To recognize data by using text matching, add rules to
the Recognize ruleset. These rules locate the data on the rental agreement
pages that you identified by using text matching.
About this task
Avoid running the rules on pages that were identified by
using fingerprint matching. You can use the variable that you set
up earlier to determine which pages use fingerprint matching.
Procedure
To recognize data by using text matching:
- In the Datacap Studio Rulesets pane,
select the Recognize rule set and click Lock/Unlock
ruleset for editing.
- Right-click the Recognize rule set
and choose Add Rule. Repeat this step to add
a total of six new rules. Rename the rules as follows:
- Recognize Pickup Date
- Recognize Pickup Location
- Recognize Return Date
- Recognize Return Location
- Recognize Car Type
- Recognize Total Cost
- Add the actions from the following table to Recognize
Pickup Date > Function1 and set the action parameters
as shown.
| Library |
Action |
Parameter |
rrunner
|
rrCompare
|
object1 = @P.MatchType
object2 = Text
|
| Locate |
RegExFind |
Date |
| Locate |
GoRightWord |
1 |
| Locate |
GroupWordsRIGHT |
2 |
| Locate |
UpdateField |
|
- Add the actions from the following table to Recognize
Pickup Location > Function1 and set the parameters
as shown.
| Library |
Action |
Parameter |
rrunner
|
rrCompare
|
object1 = @P.MatchType
object2 = Text
|
| Locate |
RegExFind |
Location |
| Locate |
GoRightWord |
1 |
| Locate |
GroupWordsRIGHT |
2 |
| Locate |
UpdateField |
|
- Add the actions from the following table to Recognize
Return Date > Function1 and set the parameters as shown.
| Library |
Action |
Parameter |
rrunner
|
rrCompare
|
object1 = @P.MatchType
object2 = Text
|
| Locate |
FindLastRegEx |
Date |
| Locate |
GoRightWord |
1 |
| Locate |
GroupWordsRIGHT |
2 |
| Locate |
UpdateField |
|
- Add the actions from the following table to Recognize
Return Location > Function1 and set the parameters
as shown.
| Library |
Action |
Parameter |
rrunner
|
rrCompare
|
object1 = @P.MatchType
object2 = Text
|
| Locate |
FindLastRegEx |
Location |
| Locate |
GoRightWord |
1 |
| Locate |
GroupWordsRIGHT |
2 |
| Locate |
UpdateField |
|
- Add the actions from the following table to Recognize
Car Type > Function1 and set the parameters as shown.
| Library |
Action |
Parameter |
rrunner
|
rrCompare
|
object1 = @P.MatchType
object2 = Text
|
| Locate |
RegExFind |
Car Type |
| Locate |
GoRightWord |
1 |
| Locate |
GroupWordsRIGHT |
2 |
| Locate |
UpdateField |
|
- Add the actions from the following table to Recognize
Total Cost > Function1 and set the parameters as shown.
| Library |
Action |
Parameter |
rrunner
|
rrCompare
|
object1 = @P.MatchType
object2 = Text
|
| Locate |
RegExFind |
Total Cost |
| Locate |
GoRightWord |
1 |
| Locate |
UpdateField |
|
- In the Rulesets pane, click Save.
Then, click Lock/Unlock ruleset and choose Publish
Ruleset.
Attention: The use of
text matching to locate and recognize OMR check
box fields is beyond the scope of this activity. When you run the
rule set, it leaves the OMR options in their default state (‘0').