Package io.scanbot.textpattern
Class JniTextPatternScanner
-
- All Implemented Interfaces:
public final class JniTextPatternScanner extends SelfDisposable
-
-
Constructor Summary
Constructors Constructor Description JniTextPatternScanner()
-
Method Summary
Modifier and Type Method Description final TextPatternScannerResult
scan(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)
Scan image to recognize a text and validate it with the predefined validator final Unit
cleanRecognitionQueue()
Allows to clean the accumulated frames inside the scanner. final Unit
setConfiguration(TextPatternScannerConfiguration config)
Sets the configuration to use during the text recognition. -
-
Method Detail
-
scan
final TextPatternScannerResult scan(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)
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.areaRect
- if non-null - perform scanning only in given area.
-
cleanRecognitionQueue
final Unit cleanRecognitionQueue()
Allows to clean the accumulated frames inside the scanner.
-
setConfiguration
final Unit setConfiguration(TextPatternScannerConfiguration config)
Sets the configuration to use during the text recognition.
-
-
-
-