Create a TextRecognitionSettings instance.
Get a Scandit Data Capture library text recognition property.
This function is for internal use only and any functionality that can be accessed through it can and will vanish without public notice from one version to the next. Do not call this function unless you specifically have to.
The property name.
The property value. For properties not previously set, -1 is returned.
Get the regular expression for filtering the recognized characters.
By default, no regex is set. You must set a regex in order for text recognition to work.
The regular expression.
Get the text duplicate filter value.
By default duplicate filtering is disabled.
The text duplicate filter value.
Set a Scandit Data Capture library text recognition property.
This function is for internal use only and any functionality that can be accessed through it can and will vanish without public notice from one version to the next. Do not call this function unless you specifically have to.
The property name.
The property value.
The updated TextRecognitionSettings object.
Set the regular expression for filtering the recognized characters.
Text that does not match the regular expression is ignored.
Using a regex with a capture group will make results contain only the text matching the capture group. To return the full text matching the regex, use a non-capturing group.
By default, no regex is set. You must set a regex in order for text recognition to work.
The new regular expression.
The updated TextRecognitionSettings object.
Set the text duplicate filter value.
When the filter is set to -1, each unique text is only scanned once. When set to 0, duplicate filtering is disabled. Otherwise the duplicate filter specifies an interval in milliseconds.
By default duplicate filtering is disabled.
The new value (-1, 0, or positive integer).
The updated TextRecognitionSettings object.
The configuration object as a JSON string.
Generated using TypeDoc
A configuration object for text recognition options.
Text recognition settings need to be assigned (once) to scanning options via ScanSettings.setTextRecognitionSettings and said modified ScanSettings (due to TextRecognitionSettings changes) need to be applied to a scanner via BarcodePicker.applyScanSettings or Scanner.applyScanSettings to take effect.