Package io.scanbot.sdk.vin
Class DefaultVinScanner
-
- All Implemented Interfaces:
-
io.scanbot.sdk.vin.VinScanner
public final class DefaultVinScanner implements VinScanner
Default implementation for VinScanner.
-
-
Constructor Summary
Constructors Constructor Description DefaultVinScanner()
-
Method Summary
Modifier and Type Method Description VinScannerConfigurationcopyCurrentConfiguration()Returns a copy of the current configuration. UnitsetConfiguration(VinScannerConfiguration configuration)Sets the configuration for the VIN scanner. VinScannerResultscan(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect finderRect)Scan nv21 image to recognize VIN. -
-
Method Detail
-
copyCurrentConfiguration
VinScannerConfiguration copyCurrentConfiguration()
Returns a copy of the current configuration.
-
setConfiguration
Unit setConfiguration(VinScannerConfiguration configuration)
Sets the configuration for the VIN scanner.
- Parameters:
configuration- The configuration to set.
-
scan
VinScannerResult scan(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.
-
-
-
-