Interface LicensePlateScanner
-
- All Implemented Interfaces:
public interface LicensePlateScanner
Component to analyze live preview, recognize car license plate on it and parse license plate data.
-
-
Method Summary
Modifier and Type Method Description abstract LicensePlateScanResult
scanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)
Scan image to recognize text on it abstract Unit
cleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer. abstract Integer
getMinimumNumberOfRequiredFramesWithEqualScanResult()
Minimum number of accumulated frames that have equal result. abstract Unit
setMinimumNumberOfRequiredFramesWithEqualScanResult(Integer minimumNumberOfRequiredFramesWithEqualScanResult)
Minimum number of accumulated frames that have equal result. abstract Integer
getMaximumNumberOfAccumulatedFrames()
Maximum number of accumulated frames to inspect before actual result is returned. abstract Unit
setMaximumNumberOfAccumulatedFrames(Integer maximumNumberOfAccumulatedFrames)
Maximum number of accumulated frames to inspect before actual result is returned. abstract Boolean
getShouldProvideCroppedImage()
If the result object should contain a cropped image with license plate abstract Unit
setShouldProvideCroppedImage(Boolean shouldProvideCroppedImage)
If the result object should contain a cropped image with license plate abstract LicensePlateScanStrategy
getScanStrategy()
Additional parameter to set the method of scanning. abstract Unit
setScanStrategy(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
-
-
-
-