←Select platform

OcrZoneType Enumeration

Summary
Zone types.
Syntax
C#
VB
Objective-C
C++
Java
[SerializableAttribute()] 
public enum OcrZoneType 
<SerializableAttribute()> 
Public Enum OcrZoneType  
typedef NS_ENUM(NSInteger, LTOcrZoneType) 
public enum OcrZoneType 
[SerializableAttribute()] 
public enum class OcrZoneType   
Members
Value Member Description
0 Text Flowing text type zone.
1 Table Table type zone.
2 Graphic Zone containing graphics (Not sure).
3 Omr OMR (Optical Markup Recognition) zone.
4 Micr MICR (Magnetic Ink Character Recognition) zone. Check processing. Currently, the engine does not auto-detect MICR zones. Instead, use MICRCodeDetectionCommand to detect the MICR zone area automatically, if needed, and add an OcrZone object with OcrZoneType.Micr to the page. After the zone with MICR data is recognized, call the ExtractMicrData method to parse the row data into an OcrMicrData object.
5 Icr ICR (Intelligent Character Recognition) zone. Handwritten text and numbers.
6 Mrz MRZ (Machine Readable Zone). Only applicable to passports and identity cards. Travel passports worldwide are MRPs (machine-readable passports). They are standardized by the ICAO Document 9303 (endorsed by the International Organization for Standardization and the International Electrotechnical Commission as ISO/IEC 7501-1) and have a special machine-readable zone (MRZ). MRZs are usually at the bottom of the identity page at the beginning of a passport. MRZ text uses capital letters and digits separated by one or more < characters (for example, P<<FIRSTNAME<<<<<LASTNAME). Currently, the engine does not auto-detect MRZ zones. Instead, call MRZCodeDetectionCommand to detect the MRZ zone area automatically, if needed, and add an OcrZone object with OcrZoneType.Mrz to the page. After a zone with MRZ data is recognized, call IOcrZoneCharacters to parse the row data.
7 Barcode Barcode zone. Currently, the engine does not auto-detect barcode zones. Instead, call the BarcodeReader to detect the barcode zone area(s) automatically, if needed, and add an OcrZone object with OcrZoneType.Barcode to the page. For future use by LEADTOOLS.
8 None No recognition zone.
9 FieldData Field data zone (for example, the name, address, and date fields in passports and identity cards). Field data uses capital letters, digits, and separators. Currently, the engine does not auto-detect field data zones. Set field data manually if a zone is known to contain field data. After a zone with field data is recognized, call IOcrZoneCharacters to parse the row data.
10 Cmc7 CMC7 zone filling method. ConnectCode MICR CMC7 font is based on the CMC-7 (ISO 1004) industry standard.
Remarks

The OcrZoneType is used to classify the zone into one of the three basic zone-categories: text, table or graphics. For these, use OcrZoneType.Text, OcrZoneType.Table, and OcrZoneType.Graphic, respectively.

For text zones, the following OcrZone members provide extra information about the text inside the zone: OcrZone.CharacterFilters, OcrZone.TextDirection and OcrZone.TextStyle.

The OcrZoneType.Table type is for table-type zones. In this type of zone is specified, the OCR engine will try to reconstruct the original table text layout of the zone in the final output document.

For graphic zones use the OcrZoneType.Graphic type. If OcrZoneType.Graphic is specified, no recognition will be run on the zone and all other recognition-related settings will be ignored.

OcrZoneType.None specifies an area to ignore when recognizing the page.

Each OCR engine supports different type of zones. To get the type of zones supported by an engine, use IOcrZoneManager.GetSupportedZoneTypes. Trying to set a zone type that is not supported by the engine being used will cause an error.

Example

For an example, refer to IOcrPage.AutoZone.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.