#include "ltocr.h"
L_INT pEXT_CALLBACK YourFunction(data, userData)
const L_OcrAutoRecognizeJobOperationCallbackData* data; | pointer to L_OcrAutoRecognizeJobOperationCallbackData structure |
L_VOID * userData; | pointer to additional parameters |
You can use this callback to get information on the current auto recognize operation (creating an OCR document, loading a page, zoning, recognizing, saving, etc.). The address of this callback is passed as an argument to the L_OcrAutoRecognizeManager_SetJobOperationCallback function.
Parameter | Description |
---|---|
data | Pointer to a L_OcrAutoRecognizeJobOperationCallbackData structure that contains information on the current auto recognize operation. |
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 L_OcrAutoRecognizeManager_SetJobOperationCallback function.) Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function. |
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This callback gets called when L_OcrAutoRecognizeManager_Run, L_OcrAutoRecognizeManager_RunJob or L_OcrAutoRecognizeManager_RunJobAsync is called.
To activate the progress callback function, call the L_OcrAutoRecognizeManager_SetJobOperationCallback function.
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. |
For an example, refer to L_OcrAutoRecognizeManager_SetJobOperationCallback.