Package io.scanbot.generictext
Class NativeGenericTextRecognizer
-
- All Implemented Interfaces:
public final class NativeGenericTextRecognizer extends SelfDisposable
-
-
Field Summary
Fields Modifier and Type Field Description public final static Integer
DEFAULT_MINIMUM_REQUIRED_FRAME_COUNT
public final static Integer
DEFAULT_MAXIMUM_ACCUMULATED_FRAME_COUNT
public final static Integer
DEFAULT_OCR_RESOLUTION_LIMIT
-
Constructor Summary
Constructors Constructor Description NativeGenericTextRecognizer()
-
Method Summary
Modifier and Type Method Description 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 final Unit
cleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer. final Unit
setConfiguration(NativeGenericTextRecognizerConfig config)
Sets the configuration to use during the text recognition. -
-
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.
-
-
-
-