TextRecognitionSettings Class Reference

Public Attributes

RectF AreaPortrait
 
RectF AreaLandscape
 
Pattern Regex
 
IList< char > CharacterWhitelist
 

Detailed Description

Holds settings that affect the recognition of barcodes, such as enabled barcode symbologies, scanning hot spot etc.

Since
4.9.0

Member Data Documentation

RectF AreaPortrait

The area (in relative coordinates) in which text is to be recognized.

While it's possible to set this area to the whole image, it is not recommended to do so for speed reasons. For best performance, set this to the smallest possible area. By default, the recognition area is set to 1/4 of the image height.

This value is only used when scanning in portrait orientation. AreaLandscape is used when scanning in landscape orientation.

Since
5.1
RectF AreaLandscape

The area (in relative coordinates) in which text is to be recognized.

While it's possible to set this area to the whole image, it is not recommended to do so for speed reasons. For best performance, set this to the smallest possible area. By default, the recognition area is set to 1/4 of the image height.

This value is only used when scanning in landscape orientation. AreaPortrait is used when scanning in portrait orientation.

Since
5.1
Pattern Regex

Regular expression for filtering the recognized characters.

Text that does not match the regular expression is ignored.

By default, the regex is set to null. You must explicitly initialize the regex in order for text recognition to work.

Since
5.1
IList<char> CharacterWhitelist

White list of recognizable characters.

If the white list is non-null, a recognition result will never contain characters that are not contained in it.

By default the white list is null and all characters will be recognized.

/since 5.2