Validating matches – Kofax INDICIUS 6.0 User Manual

Page 69

Advertising
background image

Configuring Recognition

Getting Started Guide (Free-Form)

63

Validating Matches

Matches can be validated after being (optionally) formatted and prior to being
returned in the match collection. This is one way of “filtering” out matches before
they are returned for final analysis.

In order to validate matches a single script function is required:

MatchValue_Validate

The function takes the search name (for example, “Date”) and the match value as
arguments. It then returns True if the value is valid and False if not. Only valid
matches are returned in the match collection. This function is run by all the searches
if the SearchOptions property Run Validate Script is set. Within the function the
validation applied depends on the search name.

X

To insert the validate function template

1

Select the Script tab.

The script must be visible to apply validation rules.

2

Click the

(Insert Script Function) button on the toolbar to display a

drop down list.

3

Select the “Insert Validate Match Function” option.

A function will be inserted in template form so it can be edited to validate
data. The template includes a “Select Case” structure that runs certain parts
of the script depending on the search name. This is because the same
function is used for each search. By default the template will not validate any
values (every value will be passed).

Advertising