LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
OcrAutoPreprocessPageCommand Enumeration
See Also  
Leadtools.Forms.Ocr Namespace : OcrAutoPreprocessPageCommand Enumeration



The OcrAutoPreprocessPageCommand Enumeration is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Performs page pre-processing commands

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Enum OcrAutoPreprocessPageCommand 
   Inherits System.Enum
   Implements IComparableIConvertibleIFormattable 
Visual Basic (Usage)Copy Code
Dim instance As OcrAutoPreprocessPageCommand
C# 
[SerializableAttribute()]
public enum OcrAutoPreprocessPageCommand : System.Enum, IComparableIConvertibleIFormattable  
C++/CLI 
[SerializableAttribute()]
public enum class OcrAutoPreprocessPageCommand : public System.Enum, IComparableIConvertibleIFormattable  

Members

MemberDescription
AllRun all the commands (Deskew, Rotate, Invert)
DeskewAutomatic deskewing. If the image is skewed, the IOcrPage.AutoPreprocess method will try to deskew it
InvertAutomatic inversion. If the image is black and white and is inverted (contains white on black data), the IOcrPage.AutoPreprocess method will automatically convert the image data to be black on white
RotateAutomatic rotation. If the image is rotated (its view perspective is anything other than top-left), the IOcrPage.AutoPreprocess method will auto orient it to top-left. This command is especially useful if the image upside-down.

Example

For an example, refer to IOcrPage.AutoPreprocess.

Remarks

The OCR engine can perform a series of image pre-processing steps in order to enhance the quality of the image before starting its recognition.

Perform these image pre-processing steps by calling the IOcrPage.AutoPreprocess method. Call this method prior to calling IOcrPage.Recognize or IOcrPage.RecognizeText.

Inheritance Hierarchy

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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