L_OcrProgressCallback

#include "ltocr.h"

L_INT pEXT_CALLBACK YourFunction(data, userData)

Monitors progress of OCR operations.

Parameters

L_OcrProgressData* data

Pointer to a L_OcrProgressData structure that contains progress callback data for the current process.

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 userData parameter of the all functions that uses this callback.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

The OCR engine will continuously invoke the callback procedure during the different OCR operations with an instance of L_OcrProgressData providing the current processing stage and a percentage indicator value. Use this function to indicate progress of application operations.

You can use this callback to abort OCR process and cancel all pending operations by returning an error code like ERROR_USER_ABORT.

Required DLLs and Libraries

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

LEADTOOLS OCR Module - LEAD Engine C API Help