Package io.scanbot.sdk.barcode
Class BarcodeScanner
- java.lang.Object
-
- io.scanbot.sdk.barcode.BarcodeScanner
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class BarcodeScanner extends java.lang.Object implements java.lang.AutoCloseableAPI for barcode scanning. Required licence feature(s): QRCode.
-
-
Constructor Summary
Constructors Constructor Description BarcodeScanner(BarcodeScannerConfiguration configuration)Constructs BarcodeScanner with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes native resources held by the object.protected voidfinalize()BarcodeScannerResultrun(ImageRef image)Recognize barcodes in the given image.
-
-
-
Constructor Detail
-
BarcodeScanner
public BarcodeScanner(BarcodeScannerConfiguration configuration) throws LicenseException
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 Detail
-
run
public BarcodeScannerResult run(ImageRef image) throws InvalidImageRefException, LicenseException
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
-
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
-
-