public static interface IRecognitionCoreAPI.TextRecognitionSettings
Modifier and Type | Method and Description |
---|---|
void |
setAreaOfInterest(android.graphics.Rect areaOfInterest)
Sets the area on the frame where the text is to be found.
|
void |
setRecognitionLanguage(Language... languages)
Sets the languages to be used for recognition.
|
void |
setTextOrientationDetectionEnabled(java.lang.Boolean enabled)
Determines whether orientation detection will be used.
|
void setRecognitionLanguage(Language... languages)
By default, only English language is set. Setting the correct languages for your text will improve recognition accuracy. However, setting too many languages may slow down performance.
languages
- one or more languages to be used for recognitionvoid setAreaOfInterest(android.graphics.Rect areaOfInterest)
By default, no area of interest is selected.
areaOfInterest
- the rectangle specifying the area of interestvoid setTextOrientationDetectionEnabled(java.lang.Boolean enabled)
enabled
- boolean flag - is page orientation detection enabled or not.