Selector
Input: |
Receipt.fp, total7.yml |
Command: |
FormProcApp.exe Receipt.fp Example7 Example7\total.yml -l en-US |
Output: |
Receipt_total7_0.json |
According to the selector logic, the new code here causes any output .json files that do not match the given simple rule to be omitted.
selector:
- {voc: ['TOTAL']}
The same result as in Anchor is obtained here. However, if the input image is changed to a different kind of document or alter this selector, the output .json file may not be created at all.
This feature is useful when your input images are fed in an uncontrolled way. Moreover, the API also allows multiple OPFD .yaml files to be specified, and only those that the selector matches have .json files produced. The .json files that are created always contain all the raw words with bounding box info, along with 0 or more field matches.