Built in OCR Validation Control plugins
Name | Value | Pattern | Description |
---|---|---|---|
String contains |
Optional |
Optional. |
Returns the evaluation of a "contains operation" with a value or a pattern within the text extracted by OCR. If the pattern field is empty and the value field is not empty, it returns true if the text extracted by the OCR contains the value in the value field. If the pattern field is not empty and the value field is empty, it returns true if the text extracted by OCR matches the pattern only once. If the the pattern field is not empty and the value the field is not empty, it returns true if the text extracted by OCR matches the pattern only once and the matched pattern contains the value field. If the pattern and value fields are empty, it returns false. |
String equals |
Optional. |
Optional. |
It returns the evaluation of equal operations with a value or a pattern with the text extracted by OCR. If the pattern field is empty and the value field is not empty, it returns true if the text extracted by OCR equals the value in the value field. If the pattern field is not empty and the value field is empty, it returns true if the text extracted by OCR matches the pattern only once. If the pattern field is not empty and the value field is not empty, it returns true if the text extracted by OCR matches the pattern only once and the matched pattern is equal to the value field. If the pattern field is empty and the value field is empty, it returns false. |
Similar String |
Optional. |
Optional |
Returns the evaluation of similar operations with some values or a pattern with the text extracted by OCR. The "similar operation" counts the number of changes that must be done to transform the expected value with the text extracted by ocr. This is the distance between both texts. This plugin works in combination with a configuration parameter named ocr.control.similar.distance. By default the value of this parameter is 5. If a pattern field is empty and the value field is not empty, it returns true if the distance between the text extracted by OCR and the value of the value field is less than what is set in the ocr.control.similar.distance parameter. If a pattern field is not empty and the value field is empty, it returns true if the text extracted by OCR matches the pattern only once. If a pattern field is not empty and the value field is not empty, it returns true if the text extracted by OCR matches the pattern only once and the distance between the matched text and the value of the value field is less than what is set in the ocr.control.similar.distance parameter. If a pattern field is empty and value field is empty, it returns false. |