Package io.scanbot.sdk.barcode
Class BarcodeScanner
java.lang.Object
io.scanbot.sdk.barcode.BarcodeScanner
- All Implemented Interfaces:
AutoCloseable
API for barcode scanning.
Required licence feature(s): BarcodeScanner.
-
Constructor Summary
ConstructorsConstructorDescriptionBarcodeScanner(BarcodeScannerConfiguration configuration) Constructs BarcodeScanner with the given params. -
Method Summary
-
Constructor Details
-
BarcodeScanner
Constructs BarcodeScanner with the given params.- Parameters:
configuration- The configuration to use for the barcode scanner.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Details
-
run
Recognize barcodes in the given image.- Parameters:
image- The image to recognize barcodes in.- Returns:
- The recognized barcodes.
- Throws:
InvalidImageRefException- If an invalid image reference is usedLicenseException- If license requirements for the API are not met
-
clearFrameAccumulationCache
public void clearFrameAccumulationCache()Clear the cache of the barcode frame accumulator. -
close
public void close()Closes native resources held by the object.- Specified by:
closein interfaceAutoCloseable
-
finalize
-