LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

OcrZoneCharacterFilters Enumeration

Show in webframe







Character set filter.
Syntax
'Declaration
 
<FlagsAttribute()>
<SerializableAttribute()>
Public Enum OcrZoneCharacterFilters 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As OcrZoneCharacterFilters
enum LTOcrZoneCharacterFilters
public enum OcrZoneCharacterFilters
Leadtools.Forms.Ocr.OcrZoneCharacterFilters = function() { };
Leadtools.Forms.Ocr.OcrZoneCharacterFilters.prototype = {
None = 0x00000000, Digit = 0x00000001, Uppercase = 0x00000002, Lowercase = 0x00000004, Alpha = 0x00000006, Punctuation = 0x00000008, Miscellaneous = 0x00000010, All = 0x0000001F, Plus = 0x00000020, Numbers = 0x00000021, };
[FlagsAttribute()]
[SerializableAttribute()]
public enum class OcrZoneCharacterFilters : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
ValueMemberDescription
0x00000000NoneNo character filters.
0x00000001DigitRecognition of numerals only. For example: "3" (Digit Three).
0x00000002UppercaseRecognition of uppercase letters only, including accented ones. For example: "A" (Capital A).
0x00000004LowercaseRecognition of lowercase letters only including accented ones. For example: "a" (Lowercase a).
0x00000006AlphaUpper and lowercase letters only. This is a combination of (Uppercase | Lowercase).
0x00000008PunctuationRecognition of punctuation signs only. For example: "!" (Exclamation Mark).
0x00000010MiscellaneousRecognition of other miscellaneous characters only. For example: "+" (Plus sign).
0x0000001FAllAll characters. Since all elements are enabled, there is no filtering. This a combination of Digit (| Uppercase | Lowercase | Punctuation | Miscellaneous).
0x00000020PlusEnables the use of the "FilterPlus" characters. The FilterPlus characters are added after any filtering. For more information, refer to LEADTOOLS OCR Plus Engine Settings and LEADTOOLS OCR Professional Engine Settings.
0x00000021NumbersDigits plus the "FilterPlus" characters This is a combination of (Digit | Plus).
Remarks

This enumeration lists the available character set filter elements. The Language environment can be narrowed by specifying Character Set filters. The name of each filter element indicates which category of characters it validates. This enumeration is attributes with the System.FlagsAttribute and its members can be combined (OR-ed) together.

The filters can have an effect either at zone level (by specifying the zone's OcrZone.CharacterFilters property), or globally, at image level (defined by the "Recognition.DefaultCharacterFilter" setting).

The way to set no filtering is to give the value OcrZoneCharacterFilters.All.

Characters of the document that are not part of the specified character set will either be rejected or will be recognized as a validated character with a similar shape. For instance, if only the English language has been selected and the document contains a letter "Capital A with acute", then the recognized output will be a letter "Capital A"

The recognition module selected for recognition can also impose restrictions, e.g. the OcrZoneRecognitionModule.IcrNumeral module is restricted to numerals and four other characters.

Not all recognition modules support all filter elements:

Recognition module Character filters supported
OcrZoneRecognitionModule.OmniFontMText OcrZoneCharacterFilters.All, OcrZoneCharacterFilters.Digit and OcrZoneCharacterFilters.Alpha
OcrZoneRecognitionModule.OmniFontMor All filters
OcrZoneRecognitionModule.DotMatrix All filters
OcrZoneRecognitionModule.Omr None (All ignored)
OcrZoneRecognitionModule.IcrNumeral OcrZoneCharacterFilters.All, OcrZoneCharacterFilters.Digit, OcrZoneCharacterFilters.Punctuation and OcrZoneCharacterFilters.Miscellaneous
OcrZoneRecognitionModule.IcrCharacter All filters
OcrZoneRecognitionModule.MatrixMatching All filters
OcrZoneRecognitionModule.OmniFontPlus2WayVoting All filters
OcrZoneRecognitionModule.OmniFontFireWorx All filters
OcrZoneRecognitionModule.OmniFontPlus3WayVoting All filters
OcrZoneRecognitionModule.Asian None (All ignored)
Example
For an example, refer to IOcrPage.AutoZone.
Inheritance Hierarchy

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

Requirements

Target Platforms

See Also

Reference

Leadtools.Forms.Ocr Namespace
AutoZone Method
OcrZoneRecognitionModule Enumeration
OcrZoneFillMethod Enumeration
OcrEngineManager Class
OcrEngineType Enumeration
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with the LEADTOOLS .NET OCR
LEADTOOLS OCR Plus Engine Settings

 

 


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

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