Interface LicensePlateScanner
-
- All Implemented Interfaces:
public interface LicensePlateScannerComponent to analyze live preview, recognize car license plate on it and parse license plate data.
-
-
Method Summary
Modifier and Type Method Description abstract LicensePlateScanResultscanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)Scan image to recognize text on it abstract UnitcleanRecognitionQueue()Allows to clean the accumulated frames inside the recognizer. abstract IntegergetMinimumNumberOfRequiredFramesWithEqualScanResult()Minimum number of accumulated frames that have equal result. abstract UnitsetMinimumNumberOfRequiredFramesWithEqualScanResult(Integer minimumNumberOfRequiredFramesWithEqualScanResult)Minimum number of accumulated frames that have equal result. abstract IntegergetMaximumNumberOfAccumulatedFrames()Maximum number of accumulated frames to inspect before actual result is returned. abstract UnitsetMaximumNumberOfAccumulatedFrames(Integer maximumNumberOfAccumulatedFrames)Maximum number of accumulated frames to inspect before actual result is returned. abstract BooleangetShouldProvideCroppedImage()If the result object should contain a cropped image with license plate abstract UnitsetShouldProvideCroppedImage(Boolean shouldProvideCroppedImage)If the result object should contain a cropped image with license plate abstract LicensePlateScanStrategygetScanStrategy()Additional parameter to set the method of scanning. abstract UnitsetScanStrategy(LicensePlateScanStrategy scanStrategy)Additional parameter to set the method of scanning. -
-
Method Detail
-
scanNv21
abstract LicensePlateScanResult scanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)
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.finderRect- if non-null - perform scanning only in given area.
-
cleanRecognitionQueue
abstract Unit cleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer. Should be called if reusing the instance after getting the successful result
-
getMinimumNumberOfRequiredFramesWithEqualScanResult
abstract Integer getMinimumNumberOfRequiredFramesWithEqualScanResult()
Minimum number of accumulated frames that have equal result.
-
setMinimumNumberOfRequiredFramesWithEqualScanResult
abstract Unit setMinimumNumberOfRequiredFramesWithEqualScanResult(Integer minimumNumberOfRequiredFramesWithEqualScanResult)
Minimum number of accumulated frames that have equal result.
-
getMaximumNumberOfAccumulatedFrames
abstract Integer getMaximumNumberOfAccumulatedFrames()
Maximum number of accumulated frames to inspect before actual result is returned.
-
setMaximumNumberOfAccumulatedFrames
abstract Unit setMaximumNumberOfAccumulatedFrames(Integer maximumNumberOfAccumulatedFrames)
Maximum number of accumulated frames to inspect before actual result is returned.
-
getShouldProvideCroppedImage
abstract Boolean getShouldProvideCroppedImage()
If the result object should contain a cropped image with license plate
-
setShouldProvideCroppedImage
abstract Unit setShouldProvideCroppedImage(Boolean shouldProvideCroppedImage)
If the result object should contain a cropped image with license plate
-
getScanStrategy
abstract LicensePlateScanStrategy getScanStrategy()
Additional parameter to set the method of scanning. LicensePlateScanStrategy.LicensePlateML by default
-
setScanStrategy
abstract Unit setScanStrategy(LicensePlateScanStrategy scanStrategy)
Additional parameter to set the method of scanning. LicensePlateScanStrategy.LicensePlateML by default
-
-
-
-