Class DefaultVinScanner
-
- All Implemented Interfaces:
-
io.scanbot.sdk.vin.VinScanner
public final class DefaultVinScanner implements VinScanner
Default implementation for VinScanner.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerminimumNumberOfRequiredFramesWithEqualRecognitionResultprivate IntegermaximumNumberOfAccumulatedFramesprivate IntegerocrResolutionLimit
-
Constructor Summary
Constructors Constructor Description DefaultVinScanner()
-
Method Summary
Modifier and Type Method Description IntegergetMinimumNumberOfRequiredFramesWithEqualRecognitionResult()Minimum number of accumulated frames that have equal result. UnitsetMinimumNumberOfRequiredFramesWithEqualRecognitionResult(Integer minimumNumberOfRequiredFramesWithEqualRecognitionResult)Minimum number of accumulated frames that have equal result. IntegergetMaximumNumberOfAccumulatedFrames()Maximum number of accumulated frames to inspect before actual result is returned. UnitsetMaximumNumberOfAccumulatedFrames(Integer maximumNumberOfAccumulatedFrames)Maximum number of accumulated frames to inspect before actual result is returned. IntegergetOcrResolutionLimit()The image will be downscaled to the given value during the processing. UnitsetOcrResolutionLimit(Integer ocrResolutionLimit)The image will be downscaled to the given value during the processing. VinScanResultscanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)Scan nv21 image to recognize VIN. -
-
Method Detail
-
getMinimumNumberOfRequiredFramesWithEqualRecognitionResult
Integer getMinimumNumberOfRequiredFramesWithEqualRecognitionResult()
Minimum number of accumulated frames that have equal result.
-
setMinimumNumberOfRequiredFramesWithEqualRecognitionResult
Unit setMinimumNumberOfRequiredFramesWithEqualRecognitionResult(Integer minimumNumberOfRequiredFramesWithEqualRecognitionResult)
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.
-
getOcrResolutionLimit
Integer getOcrResolutionLimit()
The image will be downscaled to the given value during the processing. If the quality of the scanning is not enough, try to increase the limit. This variable affects the performance of the scanning process. Higher the size limit - better the quality, but the recognition is slower.
0 - do not rescale.
-
setOcrResolutionLimit
Unit setOcrResolutionLimit(Integer ocrResolutionLimit)
The image will be downscaled to the given value during the processing. If the quality of the scanning is not enough, try to increase the limit. This variable affects the performance of the scanning process. Higher the size limit - better the quality, but the recognition is slower.
0 - do not rescale.
-
scanNv21
VinScanResult scanNv21(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)
Scan nv21 image to recognize VIN.
- 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.
-
-
-
-