LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

AutoDetectCells Method

Show in webframe







The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
Detects the cells within a table zone.
Syntax
void AutoDetectCells( 
   int zoneIndex
)
'Declaration
 
Sub AutoDetectCells( _
   ByVal zoneIndex As Integer _
) 
'Usage
 
Dim instance As IOcrTableZoneManager
Dim zoneIndex As Integer
 
instance.AutoDetectCells(zoneIndex)
void AutoDetectCells( 
   int zoneIndex
)

            

            
function Leadtools.Forms.Ocr.IOcrTableZoneManager.AutoDetectCells( 
   zoneIndex 
)
void AutoDetectCells( 
   int zoneIndex
) 

Parameters

zoneIndex
The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
Remarks

When this method returns, the OcrZone.Cells member of given OcrZone will contain an array of the detected cells and their properties.

You can use table cells in one of two ways:

To manipulate a cell properties other than its bound (OcrZoneCell.Bounds), get the array of detected cells through OcrZone.Cells, change the cell background color, style or any border color, style or with. When you are done, re-set the array to OcrZone.Cells and call IOcrTableZoneManager.UpdateCells.

It is not recommended that you manually remove or add cells to the OcrZone.Cells, the engine is very sensitive to zone boundaries and any non-accurate information will cause an error. Instead, use the various methods of IOcrTableZoneManager to manipulate the cell location and size.

Example
For an example, refer to IOcrTableZoneManager.
Requirements

Target Platforms

See Also

Reference

IOcrTableZoneManager Interface
IOcrTableZoneManager Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

AutoDetectCells requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features