VERIFICATIONCALLBACK2

#include "ltdoc2.h"

L_INT pEXT_CALLBACK YourFunction(nZoneIndex, pszWord, pVerify, pUserData)

Reports the suggested word for the last recognized word in a specific zone.

Parameters

L_INT nZoneIndex

Index of the zone containing the recognized word.

L_TCHAR * pszWord

Character string containing the suggested word for the recognized word.

DOC2_VERIFYCODE * pVerify

Pointer to be updated with user's verification answer for the suggested word.

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 member of a ZONEDATA2 structure.)

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

Returns

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

Comments

VERIFICATIONCALLBACK2 reports the suggested word for a recognized word in a zone.

VERIFICATIONCALLBACK2 is called during the recognition process.

To enable VERIFICATIONCALLBACK2, call the L_Doc2AddZone / L_Doc2AddZoneExt function or the L_Doc2UpdateZone / L_Doc2UpdateZoneExt function, and pass your callback function in the pfnCallback member of the ZONEDATA2 structure.

When calling the L_Doc2Recognize / L_Doc2RecognizeExt function, set the bEnableSubSystem and bEnableCorrection members of the RECOGNIZEOPTS2 structures to TRUE.

Required DLLs and Libraries

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

LEADTOOLS OCR Module - OmniPage Engine C API Help

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