Package io.scanbot.licenseplate
Class NativeLicensePlateScanner
-
- All Implemented Interfaces:
public final class NativeLicensePlateScanner 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
-
Constructor Summary
Constructors Constructor Description NativeLicensePlateScanner(String tessDataPath)
-
Method Summary
Modifier and Type Method Description final NativeLicensePlateScanResult
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(NativeLicensePlateScannerConfig config)
Sets the configuration to use during the text recognition. -
-
Constructor Detail
-
NativeLicensePlateScanner
NativeLicensePlateScanner(String tessDataPath)
-
-
Method Detail
-
scanNv21
final NativeLicensePlateScanResult 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(NativeLicensePlateScannerConfig config)
Sets the configuration to use during the text recognition.
-
-
-
-