WordFind_Offset
Sets the value of the page's Image_Offfset variable. The variable is based on the difference in the position of the specified word on the current page and on the matched fingerprint image.
Syntax
bool WordFind_Offset (StrParam)
Parameters
- String value of a keyword that the action is to find on both the fingerprint and recognized image.
- An optional parameter that specifies the offset threshold. If not specified, the default value is 100 pixels.
Returns
Always True.Level
Page level.Details
This action locates a word or phrase on both the recognized page and on the fingerprint. The positioning of both locations are compared to determine an offset value. The calculated difference is stored in the DCO of the current page in the variable Image_Offset. This value will be used by subsequent actions, such as ReadZones, to compensate for the difference so the field data is properly located.For best results, the word or phrase should appear only once or the first instance of the word or phrase should always appear in the same location.
The threshold is the maximum distance between keywords found on the Live image and the fingerprint. The Default value is 100 pixels. If the keywords are more than 100 pixels apart no Offset is generated; preventing matches of keywords where there is more then one instance of the word to be found on an image. A successful matched pair will update the Image_Offset variable at the page level.
This action requires the FingerPrint CCO to have full page recognition results. Otherwise, there will be nothing to match against.
This action should not be located in the same ruleset where full page recognition is done. It needs to exist in a ruleset that is performed afterwards.
- Example
WordFind_Offset("Invoice")