L_OcrAutoRecognizeTraceWriteLineCallback

Summary

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

Syntax

#include "ltocr.h"

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

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

See Also

Functions

Topics

Example

For an example, refer to L_OcrAutoRecognizeManager

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

LEADTOOLS OCR Module - LEAD Engine C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.