pat_RecogMatch_Id

Identifies the current page type by matching OCR results in any fingerprint Anchor zone with OCR results for the corresponding zone on the current page.

Member of namespace

PatternMatch

Syntax

bool pat_RecogMatch_Id ()

Parameters

None.

Returns

True if the ruleset is bound to a Page, and a fingerprint matching the text of at least one Anchor field is found. Otherwise, and in case of any errors, False. In addition, the page variable TemplateID is set to the matching Fingerprint ID.

Level

Page only.

Details

pat_RecogMatch_Id identifies the page by matching text from any fingerprint Anchor field with the corresponding text on the current page. Fuzzy matching is used. Full-page OCR or ICR must be performed prior to calling this action.

If any Anchor field text in the current page matches the zonal text of any fingerprint, the page is identified by that fingerprint (first match). The Type of the current page is set to the fingerprint page type if a match is found. Full page OCR or ICR must be performed on both the fingerprints and the current image prior to calling this action. Text to be matched is extracted from each fingerprint's Anchor field, which should be defined tightly around the text in the fingerprint. The search area in the current image is the fingerprint-specific field zone in the Document Hierarchy, extended by any associated METRIC variable.

Page identification using pat_RecogMatch_ID (text matching) is mutually exclusive with identification using graphical pattern matching actions (PatternMatch_Identify, etc.). Anchor fields in the Document Hierarchy should be selected carefully so that false positive text matches do not occur.

Example
pat_RecogMatch_Id()