Zone types.
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. 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, P<<FIRSTNAME<<<<<LASTNAME . Note that currently, MRZ zones are not auto-detected by the engine. Instead, use MRZCodeDetectionCommand to detect the MRZ zone area automatically, if needed, and add an OcrZone object with OcrZoneType.Mrz to the page. Once a zone with MRZ data is recognized, use the IOcrZoneCharacters to parse the row data. |
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. |
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 on 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 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.