public enum OcrZoneType
Public Enum OcrZoneType
typedef NS_ENUM(NSInteger, LTOcrZoneType)
public enum OcrZoneType
public enum class OcrZoneType
|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. For check processing.Note that currently, MICR zones are not auto-detected by the engine. Instead, you need to use MICRCodeDetectionCommand to detect the MICR zone area automatically if needed and add an OcrZone object with OcrZoneType.Micr to the page.Once a zone with MICR data is recognized, you can use 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) 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. These zones are normally used for passports and identity cards.MRZ text uses capital letters, digits separated by one or more < characters. For example, |
|7||Barcode||Barcode zone.Note that currently, Barcode zones are not auto-detected by the engine. Instead, you need to use BarcodeReader to detect the barcode zone(s) area automatically if needed and add an OcrZone object with OcrZoneType.Barcode to the page.This for future use of LEADTOOLS.|
|8||None||No recognition zone.|
|9||FieldData||Field data zone. For example, the name, address and date fields data in passports and identity cards.Field data uses capital letters, digits and separators.Note that currently, Field data zones are not auto-detected by the engine. Instead this should be set manually if a zone is known to contain field data to enhance the recognition results.Once a zone with field data is recognized, you can use the 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.|
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.
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.
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 the engine, use IOcrZoneManager.GetSupportedZoneTypes. Trying to set a zone type that is not supported by the engine will cause an error.
For an example, refer to IOcrPage.AutoZone.