public struct OcrZone
Public Structure OcrZone
@interface LTOcrZone : NSObject <NSCopying>
public class OcrZone
public value class OcrZone : public System.ValueType
The OcrZone structure contains all the necessary information for describing a zone. A zone is a rectangular area on an image containing a feature of interest to the user. The image data covered by each zone is handled and processed (typically recognized) separately.
Zones can be divided into two basic categories: whether a zone is to be recognized or whether it should be treated as graphic. Zones containing text information can be considered to be either of the flowing type or of a table type. This basic classification of zones helps the OCR engine handle text information correctly.
Use the CharacterFilters property to modify the set of valid characters for recognition of text zone. Specifying the character set correctly is a recognition accuracy issue.
Other members of the zone structure specify how the checking subsystem will function for the particular zone.
To modify a zone, use IOcrZoneCollection.Item to get the OcrZone object of interest, modify the zone then set it back through IOcrZoneCollection.Item. Note that since OcrZone is a structure (value type), use the setter. The following code snippet illustrates how to change the zone type of the 4th zone in an ocrPage:
// Remember, the index is zero-based, so 4th zone has an index of 3
OcrZone zone = ocrPage.Zones;
// Prevent this zone from being recognized
zone.ZoneType = OcrZoneType.Graphic;
ocrPage.Zones = zone;
Do not modify the OcrZone.Id property. When adding zones, leave this value to the default of 0.
The preferred method of updating a zone is as illustrated in the code snippet above, first get the zone of interest, update it and set it back into the collection.
LEADTOOLS OCR .NET also supports OMR (Optical Mark Recognition) in all the engines. For more information, refer to Using OMR in LEADTOOLS .NET OCR.
If the zone is a table, the you can use IOcrTableZoneManager to get information and manipulate the cells properties.
For an example, refer to IOcrPage.AutoZone.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries