ImageGear Professional DLL v17.1 for Windows Accusoft
FNIG_REC_WORD_CHECK
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Callback Functions > FNIG_REC_WORD_CHECK

Glossary Item Box

The user-written checking callback function.

Declaration:

  Copy Code
DWORD ACCUAPI FNIG_REC_WORD_CHECK(     int nZone,      LPCWSTR pTobechecked,      enumIGRecCheckWordReturnCode *pOpinion,      void *pReserved);

Arguments:

nZone Zone list index of the zone containing the string to be checked.
pTobechecked UNICODE string (or line) to be checked by the function.
pOpinion Pointer to variable to hold the returned value.
pReserved Internal use only.

Return Value:

IGE_REC_EXT_OK. This callback function should always return with this value.

Supported Raster Image Formats:

See IG_REC_image_import.

Remarks:

The FNIG_REC_WORD_CHECK callback function allows user-written checking of recognition results. It gives the application the ability to influence recognition results at the zone level. This checking can be called back by some recognition modules (MOR, MAT) through the checking subsystem during the recognition of a particular zone. The value returned in the pOpinion parameter can influence a recognition module decision about the recognized result. It is the task of the function to check the pTobechecked UNICODE recognized string and to decide whether it is acceptable for that zone. The pOpinion parameter of the function should make a judgment on the acceptability of the recognized string through one of the enumIGRecCheckWordReturnCode values.

To use user-written checking for a zone:

The following are some examples where the enumIGRecCheckWordReturnCode value is to be returned by the integrating application:

The callback function should not contain calls to any IG_REC_... functions.

©2012. Accusoft Corporation. All Rights Reserved.