#include "ltocr.h"
L_INT pEXT_CALLBACK YourFunction(data, userData)
Monitors progress of OCR operations.
Pointer to a L_OcrProgressData structure that contains progress callback data for the current process.
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.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
For an example, refer to L_OcrEngine