Package io.scanbot.sdk.textpattern
Interface TextPatternScanner
-
- All Implemented Interfaces:
public interface TextPatternScanner
Component to scan image, recognize text on it and validate the recognized text.
-
-
Method Summary
Modifier and Type Method Description abstract TextPatternScannerConfiguration
copyCurrentConfiguration()
Returns a copy of the current configuration. abstract Unit
setConfiguration(TextPatternScannerConfiguration configuration)
Sets the configuration for the text pattern scanner. abstract TextPatternScannerResult
scan(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)
Scan image to recognize text on it. abstract Unit
cleanRecognitionQueue()
Allows to clean the accumulated frames inside the scanner. -
-
Method Detail
-
copyCurrentConfiguration
abstract TextPatternScannerConfiguration copyCurrentConfiguration()
Returns a copy of the current configuration.
-
setConfiguration
abstract Unit setConfiguration(TextPatternScannerConfiguration configuration)
Sets the configuration for the text pattern scanner.
- Parameters:
configuration
- The configuration to set.
-
scan
abstract TextPatternScannerResult scan(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)
Scan image to recognize text on it.
- 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
abstract Unit cleanRecognitionQueue()
Allows to clean the accumulated frames inside the scanner. Should be called if reusing the instance after getting the successful result.
-
-
-
-