Built in OCR Validation Control plugins

NameValuePatternDescription

String contains

Optional

Optional.

Returns the evaluation of a "contains operation" with a value or a pattern within the text extracted by OCR.

In case the pattern field is empty and the value field is not empty, it returns true if the text extracted by OCR contains the value of the value field.

In case 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 one time.

In case 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 one time and the matched pattern contains the value field.

In case 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.

In case the pattern field is empty and the value field is not empty, it returns true if the text extracted by OCR equals the value of the value field.

In case 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 one time.

In case 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 one time and the matched pattern is equal to the value field.

In case 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.

The field value is mandatory, can not be empty.

In case 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 the one set in ocr.control.similar.distance parameter.

In case 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 one time and the distance between the matched text and the value of the value field is less than set in ocr.control.similar.distance parameter.

The field value is mandatory and the field pattern is optional.

 

Table of contents [ Hide Show ]