Document.OnCheck Event |
Namespace: Kofax.OmniPageCSDK.IproPlus
It gives the application power to influence recognition results at zone level.
The Check event can be fired by some recognition modules (MOR, HNR, MAT) through the checking subsystem during the recognition of a particular zone from the Recognize method of Document or Page object. This event is fired if Check property of the Document object is True and the DisableUserCheck property of the particular UserZone object is False.
The Page parameter indicates which page is being processed. The Zone parameter is a zone index into the OCRZones collection. The Word parameter contains a word to check in the given OCR zone. If the CheckFullLines property of the related user zone is True, the Word parameter contains a full line of text. The checking subsystem can be influenced by the return value of the Opinion parameter. It is the function's task to check the Word recognized string and to decide whether it is acceptable for the zone specified by the Page and Zone parameters. The returned Opinion value should express an opinion about the recognized string's acceptability with one of the CHECKWORDRETURNCODE values - listed under the CHECKWORDRETURNCODE Enumeration topic.
The Check event is fired only if one of the following conditions are true:
Some examples are given below to illustrate which CHECKWORDRETURNCODE value ought to be returned by the integrating application:
The Document parameter is an object reference to the Document object, which fired this event. EventID is an auto incremented id of an instance of the event. This is useful, if events are trapped in different locations and it has to be determined whether they are the same events.
Note that the Engine might fire this event passing the *RegistrationCheck* in the Word parameter for internal purposes. You can return any valid opinion values in the Opinion parameter when handling this case.