Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS OCR C DLL Help

VERIFICATIONCALLBACK2

Show in webframe

#include "ltdoc2.h"

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

L_INT nZoneIndex;

/* zone index */

L_TCHAR * pszWord;

/* string contains suggested word */

DOC2_VERIFYCODE * pVerify;

/* pointer to be updated */

L_VOID * pUserData;

/* pointer to additional parameters */

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

Parameter

Description

nZoneIndex

Index of the zone that contains the recognized word.

pszWord

Character string that contains the suggested word for the recognized word.

pVerify

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

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 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

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This callback reports the suggested word for a recognized word in a zone.

This callback will be called during the recognition process.

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

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

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

Functions:

L_Doc2AddZone, L_Doc2GetZoneCount, L_Doc2GetZone, L_Doc2UpdateZone, L_Doc2RemoveZone, L_Doc2ImportZones, L_Doc2ExportZones, L_Doc2FindZones, L_Doc2SetZoneOptions, L_Doc2GetZoneOptions

Topics:

OCR Functions: Callbacks

Example

For an Example, refer to L_Doc2AddZone.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.