#include "ltdoc2.h"

L_INT pEXT_CALLBACK YourFunction(nRecogPage, nError, pUserData)

Reports the status of the recognized page.


L_INT nRecogPage

Zero-based index for the recognized page.

L_INT nError

Specifies the error returned from the recognition process.

L_VOID * pUserData

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 pUserData parameter of the L_Doc2Recognize / L_Doc2RecognizeExt function.)

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.


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


RECOGNIZESTATUSCALLBACK2 is invoked after recognizing each page. It reports the recognized page's index with the error code (status) that was returned from the recognition process.

RECOGNIZESTATUSCALLBACK2 is invoked by a call to the L_Doc2Recognize / L_Doc2RecognizeExt function.

If RECOGNIZESTATUSCALLBACK2 returns an error code < SUCCESS, the recognition process is terminated, and no more pages processed.

When RECOGNIZESTATUSCALLBACK2 returns SUCCESS, recognition continues.

Required DLLs and Libraries

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

LEADTOOLS OCR Module - OmniPage Engine C API Help