Class DefaultLicensePlateScanner
-
- All Implemented Interfaces:
-
io.scanbot.sdk.licenseplate.LicensePlateScanner
public final class DefaultLicensePlateScanner implements LicensePlateScanner
Default implementation for LicensePlateScanner.
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
minimumNumberOfRequiredFramesWithEqualScanResult
private Integer
maximumNumberOfAccumulatedFrames
private Boolean
shouldProvideCroppedImage
private LicensePlateScanStrategy
scanStrategy
-
Constructor Summary
Constructors Constructor Description DefaultLicensePlateScanner(BlobManager blobManager)
-
Method Summary
Modifier and Type Method Description Integer
getMinimumNumberOfRequiredFramesWithEqualScanResult()
Minimum number of accumulated frames that have equal result. Unit
setMinimumNumberOfRequiredFramesWithEqualScanResult(Integer minimumNumberOfRequiredFramesWithEqualScanResult)
Minimum number of accumulated frames that have equal result. Integer
getMaximumNumberOfAccumulatedFrames()
Maximum number of accumulated frames to inspect before actual result is returned. Unit
setMaximumNumberOfAccumulatedFrames(Integer maximumNumberOfAccumulatedFrames)
Maximum number of accumulated frames to inspect before actual result is returned. Boolean
getShouldProvideCroppedImage()
If the result object should contain a cropped image with license plate Unit
setShouldProvideCroppedImage(Boolean shouldProvideCroppedImage)
If the result object should contain a cropped image with license plate LicensePlateScanStrategy
getScanStrategy()
Additional parameter to set the method of scanning. Unit
setScanStrategy(LicensePlateScanStrategy scanStrategy)
Additional parameter to set the method of scanning. LicensePlateScanResult
scanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)
Scan image to recognize text on it Unit
cleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer. -
-
Constructor Detail
-
DefaultLicensePlateScanner
DefaultLicensePlateScanner(BlobManager blobManager)
-
-
Method Detail
-
getMinimumNumberOfRequiredFramesWithEqualScanResult
Integer getMinimumNumberOfRequiredFramesWithEqualScanResult()
Minimum number of accumulated frames that have equal result.
-
setMinimumNumberOfRequiredFramesWithEqualScanResult
Unit setMinimumNumberOfRequiredFramesWithEqualScanResult(Integer minimumNumberOfRequiredFramesWithEqualScanResult)
Minimum number of accumulated frames that have equal result.
-
getMaximumNumberOfAccumulatedFrames
Integer getMaximumNumberOfAccumulatedFrames()
Maximum number of accumulated frames to inspect before actual result is returned.
-
setMaximumNumberOfAccumulatedFrames
Unit setMaximumNumberOfAccumulatedFrames(Integer maximumNumberOfAccumulatedFrames)
Maximum number of accumulated frames to inspect before actual result is returned.
-
getShouldProvideCroppedImage
Boolean getShouldProvideCroppedImage()
If the result object should contain a cropped image with license plate
-
setShouldProvideCroppedImage
Unit setShouldProvideCroppedImage(Boolean shouldProvideCroppedImage)
If the result object should contain a cropped image with license plate
-
getScanStrategy
LicensePlateScanStrategy getScanStrategy()
Additional parameter to set the method of scanning. LicensePlateScanStrategy.LicensePlateML by default
-
setScanStrategy
Unit setScanStrategy(LicensePlateScanStrategy scanStrategy)
Additional parameter to set the method of scanning. LicensePlateScanStrategy.LicensePlateML by default
-
scanNv21
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
Unit cleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer. Should be called if reusing the instance after getting the successful result
-
-
-
-