L_OcrProgressCallback

Summary

Monitors progress of OCR operations.

Syntax

#include "ltocr.h"

L_INT pEXT_CALLBACK YourFunction(data, userData)

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

See Also

Functions

Topics

Example

For an example, refer to L_OcrEngine

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.