Built-in OCR Validation Control plugins

NameValuePatternDescription

String contains

Optional

Optional.

Returns the evaluation of a "contains" operation for 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 once.

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 once and the matched pattern contains the value of the value field.

In case the pattern and value fields are empty, it returns false.

String equals

Optional.

Optional.

It returns the evaluation of equality operations between a value or a pattern and 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 once.

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 once 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 similarity operations between some values or a pattern and the text extracted by OCR.

The "similar operation" counts the number of changes that must be done to transform the expected value into the text extracted by OCR. This is the distance between the two 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 value field is mandatory and cannot 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 value set in the 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 once and the distance between the matched text and the value of the value field is less than the value set in the ocr.control.similar.distance parameter.

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

 

Table of contents [ Hide Show ]