←Select platform

OcrZoneType Enumeration

Summary

Zone types.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
[SerializableAttribute()] 
public enum OcrZoneType   
<SerializableAttribute()> 
Public Enum OcrZoneType  
    
    
[SerializableAttribute()] 
public enum OcrZoneType    
typedef NS_ENUM(NSInteger, LTOcrZoneType) 
public enum OcrZoneType 
Leadtools.Forms.Ocr.OcrZoneType = function() { }; 
Leadtools.Forms.Ocr.OcrZoneType.prototype = {<br/> 
  Text = 0, 
    Table = 1, 
    Graphic = 2, 
    Omr = 3, 
    Micr = 4, 
    Icr = 5, 
    Mrz = 6, 
    Barcode = 7, 
    None = 8, 
    FieldData = 9, 
     
 }; 
[SerializableAttribute()] 
public enum class OcrZoneType   

Members

ValueMemberDescription
0Text Flowing text type zone.
1Table Table type zone.
2Graphic Zone containing graphics (Not sure).
3Omr OMR (Optical Markup Recognition) zone.
4Micr 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.
5Icr ICR (Intelligent Character Recognition) zone. Handwritten text and numbers.
6Mrz 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.
7Barcode 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.
8None No recognition zone.
9FieldData 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.
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 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.

Example

For an example, refer to IOcrPage.AutoZone.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Ocr Assembly