L_OcrPage_SetBitmapChangedCallback

Summary

Sets a callback to get fired when any auto preprocessing command gets called on the OCR page to notify the user that the page bitmap has changed and give him the chance to get the new updated page bitmap.

Syntax

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_SetBitmapChangedCallback(page, callback, userData)

Parameters

L_OcrPage page

Handle to the OCR page.

L_OcrPageBitmapChangedCallback callback

A callback to get fired when bitmap changes using any auto preprocess operation.

L_VOID* userData

Optional user data to pass to the callback function.

Returns

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

Comments

Use this function to set a callback to get fired when any auto preprocessing command gets called on the OCR page to notify the user that the page bitmap has changed and give him the chance to get the new updated page bitmap.

To disable this callback from firing call L_OcrPage_SetBitmapChangedCallback passing NULL to the 'callback' parameter.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_OcrPage_AutoPreprocess

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.