-
public final class NativeGenericTextRecognizer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNativeGenericTextRecognizer.Companion
-
Constructor Summary
Constructors Constructor Description NativeGenericTextRecognizer(String tessDataPath)
-
Method Summary
Modifier and Type Method Description final NativeTextRecognitionResultscanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)Scan image to recognize a text and validate it with the predefined validator final UnitcleanRecognitionQueue()Allows to clean the accumulated frames inside the recognizer final UnitsetConfiguration(NativeGenericTextRecognizerConfig config)Sets the configuration to use during the text recognition -
-
Constructor Detail
-
NativeGenericTextRecognizer
NativeGenericTextRecognizer(String tessDataPath)
-
-
Method Detail
-
scanNv21
final NativeTextRecognitionResult scanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)
Scan image to recognize a text and validate it with the predefined validator
- Parameters:
nv21- image in form of nv21-encoded byte arraywidth- image width, pixelsheight- image height, pixelsorientation- image orientation.finderRect- if non-null - perform scanning only in given area.
-
cleanRecognitionQueue
final Unit cleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer
-
setConfiguration
final Unit setConfiguration(NativeGenericTextRecognizerConfig config)
Sets the configuration to use during the text recognition
-
-
-
-