#include "ltocr.h"

L_VOID pEXT_CALLBACK YourFunction(job, category, message, userData)

L_OcrAutoRecognizeJob job; Current running OCR job
L_OcrTraceCategory category; Log message severity
const L_TCHAR* message Log message
L_VOID* userData; pointer to additional parameters

The trace callback that gets invoked when L_OcrAutoRecognizeManager outputs debug messages for the current running job.

Parameter Description
job Current running OCR job
category Specifies the logged message severity. For a list of possible values, refer to L_OcrTraceCategory
message The log message the current OCR job sent
pUserData 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 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 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.