L_OcrAutoPreprocessPageCommands

enum 
{ 
   L_OcrAutoPreprocessPageCommands_None = 0x00, 
   L_OcrAutoPreprocessPageCommands_Deskew = 0x01, 
   L_OcrAutoPreprocessPageCommands_Rotate = 0x02, 
   L_OcrAutoPreprocessPageCommands_Invert = 0x04, 
   L_OcrAutoPreprocessPageCommands_All = 0xFF 
}; typedef L_UINT L_OcrAutoPreprocessPageCommands; 

Performs page pre-processing commands.

Value Meaning
L_OcrAutoPreprocessPageCommands_None [0x00] None
L_OcrAutoPreprocessPageCommands_Deskew [0x01] Automatic deskewing. If the image is skewed, the IOcrPage.AutoPreprocess method will try to deskew it.
L_OcrAutoPreprocessPageCommands_Rotate [0x02] Automatic 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.
L_OcrAutoPreprocessPageCommands_Invert [0x04] Automatic 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.
L_OcrAutoPreprocessPageCommands_All [0xFF] Run all the commands (Deskew, Rotate, Invert).

Comments

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 L_OcrPage_AutoPreprocess function. Call this function prior to calling L_OcrPage_Recognize.

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