Package io.scanbot.sdk.check
Class CheckScanner
- java.lang.Object
-
- io.scanbot.sdk.check.CheckScanner
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CheckScanner extends java.lang.Object implements java.lang.AutoCloseableAPI for check scanning. Required licence feature(s): CheckScanner.
-
-
Constructor Summary
Constructors Constructor Description CheckScanner(CheckScannerConfiguration configuration)Constructs CheckScanner 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()CheckScanningResultrun(ImageRef image)Scan check in the given image.
-
-
-
Constructor Detail
-
CheckScanner
public CheckScanner(CheckScannerConfiguration configuration) throws LicenseException
Constructs CheckScanner with the given params.- Parameters:
configuration- The configuration to use for the check scanner.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Detail
-
run
public CheckScanningResult run(ImageRef image) throws InvalidImageRefException, LicenseException
Scan check in the given image.- Parameters:
image- The image to scan check in.- Returns:
- The check scanning result.
- 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
-
-