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 IntegerDEFAULT_MINIMUM_REQUIRED_FRAME_COUNTpublic final static IntegerDEFAULT_MAXIMUM_ACCUMULATED_FRAME_COUNT
-
Constructor Summary
Constructors Constructor Description NativeLicensePlateScanner(String tessDataPath)
-
Method Summary
Modifier and Type Method Description final NativeLicensePlateScanResultscanNv21(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(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.
-
-
-
-