L_OcrAutoRecognizeTraceWriteLineCallback

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

Parameters

L_OcrAutoRecognizeJob job

Current running OCR job

L_OcrTraceCategory category

Specifies the logged message severity. For a list of possible values, refer to L_OcrTraceCategory

const L_TCHAR* message

The log message the current OCR job sent

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

Comments

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

Help Version 21.0.2020.8.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - LEAD Engine C API Help