Updating the PageID rule to use pattern matching

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:

  1. Click the Datacap Studio Rulemanager tab.
  2. In the Rulesets pane, select the PageID ruleset and click Lock/Unlock ruleset to lock the ruleset for editing.
  3. Expand the PageID ruleset. Then, right-click the PageID rule and choose Add Function.
  4. Rename the new function Identify using Pattern Match.
  5. Click the Actions library tab.
  6. 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.
  7. 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

  8. In the Rulesets pane, click Save. Then, click Lock/Unlock ruleset and choose Publish Ruleset.