Package io.scanbot.sdk.vin
Class VinScanner
- java.lang.Object
-
- io.scanbot.sdk.vin.VinScanner
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class VinScanner extends java.lang.Object implements java.lang.AutoCloseableAPI for VIN scanning.
-
-
Constructor Summary
Constructors Constructor Description VinScanner(VinScannerConfiguration configuration)Constructs VinScanner with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanRecognitionQueue()Clean the queue of recognized VIN.voidclose()Closes native resources held by the object.protected voidfinalize()VinScannerResultrun(ImageRef image)Recognize VIN in the given image.
-
-
-
Constructor Detail
-
VinScanner
public VinScanner(VinScannerConfiguration configuration) throws LicenseException
Constructs VinScanner with the given params.- Parameters:
configuration- The configuration to use for the VIN scanner.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Detail
-
run
public VinScannerResult run(ImageRef image) throws InvalidImageRefException, LicenseException
Recognize VIN in the given image.- Parameters:
image- The image to recognize VIN in.- Returns:
- The recognized text line.
- Throws:
InvalidImageRefException- If an invalid image reference is usedLicenseException- If license requirements for the API are not met
-
cleanRecognitionQueue
public void cleanRecognitionQueue()
Clean the queue of recognized VIN.
-
close
public void close()
Closes native resources held by the object.- Specified by:
closein interfacejava.lang.AutoCloseable
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-