LEADTOOLS OCR C DLL Help > Quick Reference > Call Back Functions > OCR Professional > RECOGNIZESTATUSCALLBACK2 |
#include "ltdoc2.h"
L_INT pEXT_CALLBACK YourFunction(nRecogPage, nError, pUserData)
L_INT nRecogPage; |
/* recognized page index */ |
L_INT nError; |
/* error code for the last recognized page */ |
L_VOID * pUserData; |
/* pointer to additional parameters */ |
Reports the recognized page status.
Parameter |
Description |
nRecogPage |
Index for the recognized page. This index is zero-based. |
nError |
Specifies the error that will be returned from the recognition process. |
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 function.) |
|
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This callback will be invoked after recognizing each page. It will report the recognized page index with the error code (status) that was returned from the recognition process.
This callback will be invoked by a call to the L_Doc2Recognize function.
If this callback function return an error code < SUCCESS, the recognition process will be terminated, and no more pages will be processed.
Return SUCCESS from this callback to continue the recognition process.
Required DLLs and Libraries
LTDOC2 For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Example
For an Example, refer to L_Doc2Recognize.