L_OcrProgressCallback - OCR Module - LEAD Engine C++ API Help

L_OcrProgressCallback

#include "ltocr.h"

L_INT pEXT_CALLBACK YourFunction(data, userData)

L_OcrProgressData* data; pointer to L_OcrProgressData structure
L_VOID * userData; pointer to additional parameters

Monitors progress of OCR operations.

Parameter Description
data Pointer to a L_OcrProgressData structure that contains progress callback data for the current process.
userData A void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the userData parameter of the all functions that uses this callback.

Returns

SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

The OCR engine will continuously invoke the callback procedure during the different OCR operations with an instance of L_OcrProgressData providing the current processing stage and a percentage indicator value. Use this function to indicate progress of application operations.

You can use this callback to abort OCR process and cancel all pending operations by returning an error code like ERROR_USER_ABORT.

Required DLLs and Libraries

LTOCR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions: L_OcrPage_FromBitmap, L_OcrPage_AutoPreprocess, L_OcrPage_AutoZone, L_OcrPage_Recognize, L_OcrDocument_Save
Topics: Recognizing OCR Pages

Example

For an Example, refer to L_OcrEngine

Help Version 20.0.2018.6.21
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - LEAD Engine C API Help