You must update the PageID rule to identify unrecognized
pages by using pattern matching.
About this task
You put the pattern matching function at the end so it
runs only if standard fingerprint matching and text matching both
fail. You are going to use a new sample image that has offsets large
enough to make standard fingerprint matching fail. Most applications
use one page identification method, this exercise is for illustration
purposes only.
Procedure
To update the PageID rule to use pattern matching:
- Click the Datacap Studio Rulemanager tab.
- In the Rulesets pane, select the PageID ruleset
and click Lock/Unlock ruleset to lock the ruleset
for editing.
- Expand the PageID ruleset. Then,
right-click the PageID rule and choose Add
Function.
- Rename the new function Identify using Pattern
Match.
- Click the Actions library tab.
- Select and add each of the actions that are shown in the
following table to the Identify using Pattern Match function
by clicking Add to function. Then, set the
action parameters as shown in the table.
| Library |
Action |
Parameter |
| PatternMatch |
PatternMatch_Identify |
|
| rrunner |
rrSet |
varSource = GeometricPattern
varTarget = @P.MatchType
|
Important: rrSet ("GeometricPattern", "@P.MatchType")
stores the string GeometricPattern in a page variable that is called
MatchType within the runtime hierarchy. You can see which pages were
identified by which PageID function.
- Add the rrSet action to the Identify using Fingerprint function
and set the action parameter as shown.
| Library |
Action |
Parameter |
| rrunner |
rrSet |
varSource = Fingerprint varTarget = @P.MatchType
|
- In the Rulesets pane, click Save.
Then, click Lock/Unlock ruleset and choose Publish
Ruleset.