Package io.scanbot.sdk.creditcard
Class CreditCardScanner
- java.lang.Object
-
- io.scanbot.sdk.creditcard.CreditCardScanner
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CreditCardScanner extends java.lang.Object implements java.lang.AutoCloseableAPI for credit card scanning. Required licence feature(s): CreditCardScanner.
-
-
Constructor Summary
Constructors Constructor Description CreditCardScanner(CreditCardScannerConfiguration configuration)Constructs CreditCardScanner with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearResult()Clears the accumulated results.voidclose()Closes native resources held by the object.protected voidfinalize()CreditCardScanningResultrun(ImageRef image)Scan the credit card in the given image.
-
-
-
Constructor Detail
-
CreditCardScanner
public CreditCardScanner(CreditCardScannerConfiguration configuration) throws LicenseException
Constructs CreditCardScanner with the given params.- Parameters:
configuration- The configuration to use for the scanner.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Detail
-
run
public CreditCardScanningResult run(ImageRef image) throws InvalidImageRefException, LicenseException
Scan the credit card in the given image.- Parameters:
image- The image to scan.- Returns:
- The scanning result.
- Throws:
InvalidImageRefException- If an invalid image reference is usedLicenseException- If license requirements for the API are not met
-
clearResult
public void clearResult()
Clears the accumulated results. Should be called after a document has been scanned to the customers satisfaction to prevent a poisoned cache.
-
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
-
-