#include "ltocr.h"
L_VOID pEXT_CALLBACK YourFunction(job, category, message, userData)
The trace callback that gets invoked when L_OcrAutoRecognizeManager outputs debug messages for the current running job.
Current running OCR job
Specifies the logged message severity. For a list of possible values, refer to L_OcrTraceCategory
The log message the current OCR job sent
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 TraceCallbackUserData member of the L_OcrAutoRecognizeManagerOptions structure you set by calling L_OcrAutoRecognizeManager_SetOptions function.)
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.
This callback will be invoked when L_OcrAutoRecognizeManager outputs debug messages for the current running job.
In order to activate this callback you need to create an instance of L_OcrAutoRecognizeManagerOptions, initialize it and pass your callback function pointer to the L_OcrAutoRecognizeManagerOptions.TraceCallback member and then call L_OcrAutoRecognizeManager_SetOptions, these steps will set the auto recognize manager options only but this callback will be invoked after a call to L_OcrAutoRecognizeManager_RunJob, L_OcrAutoRecognizeManager_RunJobAsync or L_OcrAutoRecognizeManager_Run.
Required DLLs and Libraries
For an example, refer to L_OcrAutoRecognizeManager