Addon.OCRPro.Recognize

Description

Performs OCR on a given image.

Syntax

.Addon.OCRPro.Recognize(sImageIndex, asyncSuccessFunc, asyncFailureFunc);

Parameters

<short> sImageIndex: specifies the index of image in buffer. The index is 0-based.

<OnOCRSuccess function> asyncSuccessFunc: callback function triggered when OCR is executed successfully. This is where you get the OCR result.

OnOCRSuccess Function Prototype
short sImageIndex Returns the index of the OCR'd image.
OCRResult Result The OCR result for the image.

<OnOCRFailure function> asyncFailureFunc: callback function triggered when executing OCR fails.

OnOCRFailure Function Prototype
int ErrorCode Returns the error code.
string ErrorString Returns the error string.
OCRResult Result The OCR result for the image.