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.
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