L_OcrAutoPreprocessPageCommands

Summary

Performs page pre-processing commands.

Syntax

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; 

Members

L_OcrAutoPreprocessPageCommands_None

None.

L_OcrAutoPreprocessPageCommands_Deskew

Automatic deskewing. If the image is skewed, the IOcrPage.AutoPreprocess method will try to deskew it.

L_OcrAutoPreprocessPageCommands_Rotate

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

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

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - LEAD Engine C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.