LEADTOOLS WCF OCR (Leadtools.Services.Forms.DataContracts assembly)
LEAD Technologies, Inc

OcrZoneCharacterFilters Enumeration






Character set filter.
Syntax
[DataContractAttribute(Namespace="http://Leadtools.Services.Forms.DataContracts/2009/01", Name="OcrZoneCharacterFilters")]
[FlagsAttribute()]
public enum OcrZoneCharacterFilters : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<DataContractAttribute(Namespace="http://Leadtools.Services.Forms.DataContracts/2009/01", Name="OcrZoneCharacterFilters")>
<FlagsAttribute()>
Public Enum OcrZoneCharacterFilters 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As OcrZoneCharacterFilters
[DataContractAttribute(Namespace="http://Leadtools.Services.Forms.DataContracts/2009/01", Name="OcrZoneCharacterFilters")]
[FlagsAttribute()]
public enum OcrZoneCharacterFilters : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.Services.Forms.DataContracts.OcrZoneCharacterFilters = function() { };
Leadtools.Services.Forms.DataContracts.OcrZoneCharacterFilters.prototype = {
LeadtoolsMemberMarker(replace me) };
[DataContractAttribute(Namespace="http://Leadtools.Services.Forms.DataContracts/2009/01", Name="OcrZoneCharacterFilters")]
[FlagsAttribute()]
public enum class OcrZoneCharacterFilters : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
AllAll characters. Since all elements are enabled, there is no filtering. This a combination of Digit (| Uppercase | Lowercase | Punctuation | Miscellaneous).
AlphaUpper and lowercase letters only. This is a combination of (Uppercase | Lowercase).
DigitRecognition of numerals only. For example: "3" (Digit Three).
LowercaseRecognition of lowercase letters only including accented ones. For example: "a" (Lowercase a).
MiscellaneousRecognition of other miscellaneous characters only. For example: "+" (Plus sign).
NoneNo character filters.
NumbersDigits plus the "FilterPlus" characters This is a combination of (Digit | Plus).
PlusEnables 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.
PunctuationRecognition of punctuation signs only. For example: "!" (Exclamation Mark).
UppercaseRecognition of uppercase letters only, including accented ones. For example: "A" (Capital A).
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

Example
For an example, refer to DocumentConvertOptions.PagesZones
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Services.Forms.DataContracts.OcrZoneCharacterFilters

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Leadtools.Services.Forms.DataContracts Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Applications developed with LEADTOOLS WCF components require runtime licenses. Server licensing is required for applications on a server. For more information, refer to: Imaging Pro/Document/Medical