#include "ltocr.h"
L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_SetBitmapChangedCallback(page, callback, userData)
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.
Handle to the OCR page.
A callback to get fired when bitmap changes using any auto preprocess operation.
Optional user data to pass to the callback function.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
For an example, refer to L_OcrPage_AutoPreprocess