LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

OcrZoneRecognitionModule Enumeration

Show in webframe







Available recognition modules of the engine.
Syntax
'Declaration
 
<SerializableAttribute()>
Public Enum OcrZoneRecognitionModule 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As OcrZoneRecognitionModule
[SerializableAttribute()]
public enum OcrZoneRecognitionModule : System.IComparableSystem.IConvertibleSystem.IFormattable  
enum LTOcrZoneRecognitionModule
public enum OcrZoneRecognitionModule
Leadtools.Forms.Ocr.OcrZoneRecognitionModule = function() { };
Leadtools.Forms.Ocr.OcrZoneRecognitionModule.prototype = {
Auto = 0x00000000, OmniFontMText = 0x00000001, OmniFontMor = 0x00000002, DotMatrix = 0x00000003, Omr = 0x00000004, IcrNumeral = 0x00000005, IcrCharacter = 0x00000006, MatrixMatching = 0x00000007, OmniFontPlus2WayVoting = 0x00000008, OmniFontFireWorx = 0x00000009, OmniFontPlus3WayVoting = 0x0000000A, Asian = 0x0000000B, };
[SerializableAttribute()]
public enum class OcrZoneRecognitionModule : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
ValueMemberDescription
0x00000000AutoThe engine will try to automatically select the most suitable recognition module for the zone. This will be determined just before recognition, according to the zone's filling method (OcrZone.FillMethod) and, if necessary, other settings, most typically the character set.
0x00000001OmniFontMTextM/TEXT omnifont recognition module.
0x00000002OmniFontMorMulti-lingual MOR omnifont recognition module.
0x00000003DotMatrixDOT 9-pin draft dot-matrix recognition module.
0x00000004OmrOMR (Optical Mark Recognition) module.
0x00000005IcrNumeralHandprinted numeral recognition module.
0x00000006IcrCharacterHandprinted character recognition module.
0x00000007MatrixMatchingMAT matrix matching recognition module.
0x00000008OmniFontPlus2WayVotingOmni Font 2-way voting module.
0x00000009OmniFontFireWorxOmni Font FireWorx module.
0x0000000AOmniFontPlus3WayVotingOmni Font 3-way voting module.
0x0000000BAsianAsian characters recognition module.
Remarks

OcrZoneRecognitionModule contains the different recognition modules of the engine available to you. A recognition module must have been assigned to all zones in their OcrZone.RecognitionModule properties before processing.

Not all recognition modules are available to all engines. To determine which recognition modules are available use IOcrZoneManager.GetSupportedRecognitionModules. Trying to set a recognition module that is not available to the engine will cause an error.

Each zone needs to be associated with a OcrZoneRecognitionModule and a OcrZoneFillMethod. This is needed because some recognition modules support more than one fill method, and some fill methods are accepted by more than one recognition module. It is important to ensure that the recognition module/fill method pair is suitable. For example, the multi-lingual MOR omnifont recognition module OcrZoneRecognitionModule.OmniFontMor is capable of recognizing omnifont machine print (OcrZoneFillMethod.OmniFont), 24-pin draft dot-matrix print (OcrZoneFillMethod.DraftDot24), OCR-A (OcrZoneFillMethod.OcrA) and OCR-B (OcrZoneFillMethod.OcrB) texts.

For precise information on permitted recognition module/fill method pairs refer to An Overview of OCR Recognition Modules.

OcrZoneRecognitionModule.Auto can be set in the OcrZone.RecognitionModule property by the user, it will also be generated by IOcrPage.AutoZone (auto-zoning) and will, under certain circumstances be generated by the IOcrPage.UpdateFillMethod method.

Force the use of a particular recognition module by specifying it directly in the zone's OcrZone.RecognitionModule property after calling IOcrPage.AutoZone or IOcrPage.UpdateFillMethod.

When OcrZoneRecognitionModule.Auto is set, the recognition module is chosen primarily by the fill method (either directly specified, taken as default or auto-detected). The choices will be as follows:

Fill Method Recognition Module
OcrZoneFillMethod.DotDigitt OcrZoneRecognitionModule.MatrixMatching
OcrZoneFillMethod.DashDigit OcrZoneRecognitionModule.MatrixMatching
OcrZoneFillMethod.Mice OcrZoneRecognitionModule.MatrixMatching
OcrZoneFillMethod.OcrA OcrZoneRecognitionModule.MatrixMatching
OcrZoneFillMethod.OcrB OcrZoneRecognitionModule.MatrixMatching
OcrZoneFillMethod.Omr OcrZoneRecognitionModule.Omr
OcrZoneFillMethod.Icr OcrZoneRecognitionModule.IcrNumeral or OcrZoneRecognitionModule.IcrCharacter
OcrZoneFillMethod.OmniFont OcrZoneRecognitionModule.OmniFontMText or OcrZoneRecognitionModule.OmniFontMor
OcrZoneFillMethod.DraftDotMatrix9 OcrZoneRecognitionModule.OmniFontMText or OcrZoneRecognitionModule.OmniFontMor
OcrZoneFillMethod.DraftDotMatrix24 OcrZoneRecognitionModule.OmniFontMText or OcrZoneRecognitionModule.DotMatrix
OcrZoneFillMethod.CMC7 OcrZoneRecognitionModule.IcrCharacter

In the first nine cases, only the fill method will be used to determine the recognition module, there will be no checking whether other settings are suitable. With OcrZoneFillMethod.Icr, OcrZoneRecognitionModule.IcrCharacter will be chosen if letters or other characters unsupported by OcrZoneRecognitionModule.IcrNumeral are validated for recognition. The last three will be directed to OcrZoneRecognitionModule.OmniFontMText, unless the engine finds a language, filter or other setting which is not supported by this module. For further details see the An Overview of OCR Recognition Modules.

As an example, the zone's fill method is OcrZoneFillMethod.OmniFont and OcrZoneRecognitionModule.Auto has been specified.

If only the characters of English and/or the main West European languages are validated for recognition, then the M/TEXT omnifont recognition module (OcrZoneRecognitionModule.OmniFontMText) will be automatically selected.

However, if e.g. the Polish characters are also to be recognized, the engine will select the multi-lingual MOR omnifont recognition module OcrZoneRecognitionModule.OmniFontMor, since the M/TEXT recognition module does not support the Polish characters, but the MOR recognition module does.

Example
For an example, refer to IOcrPage.AutoZone.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Forms.Ocr.OcrZoneRecognitionModule

Requirements

Target Platforms

See Also

Reference

Leadtools.Forms.Ocr Namespace
AutoZone Method
OcrZoneFillMethod Enumeration
OcrEngineManager Class
OcrEngineType Enumeration
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with the LEADTOOLS .NET OCR
An Overview of OCR Recognition Modules

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

OcrZoneRecognitionModule requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features