Package io.scanbot.sdk.creditcard
Class DefaultCreditCardScanner
-
- All Implemented Interfaces:
-
io.scanbot.sdk.creditcard.CreditCardScanner
public final class DefaultCreditCardScanner implements CreditCardScanner
Implementation of CreditCardScanner - performs detection and scanning of the credit card data.
-
-
Constructor Summary
Constructors Constructor Description DefaultCreditCardScanner()
-
Method Summary
Modifier and Type Method Description CreditCardScannerConfigurationcopyCurrentConfiguration()Returns a copy of the current configuration. UnitsetConfiguration(CreditCardScannerConfiguration configuration)Sets the configuration for the credit card scanner. CreditCardScanningResultscan(ByteArray nv21, Integer width, Integer height, Integer orientation)Performs credit card data scanning on the NV21 format image CreditCardScanningResultscanInArea(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)Performs credit card data scanning in the finder rect on the NV21 format image CreditCardScanningResultscanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)Performs credit card data scanning on the BGR format image CreditCardScanningResultscanFromJpeg(ByteArray image, Integer orientation)Performs credit card data scanning on the JPEG image CreditCardScanningResultscanFromBitmap(Bitmap image, Integer orientation)Performs credit card data scanning on the Bitmap UnitclearResult()Clears the scanning result -
-
Method Detail
-
copyCurrentConfiguration
CreditCardScannerConfiguration copyCurrentConfiguration()
Returns a copy of the current configuration.
-
setConfiguration
Unit setConfiguration(CreditCardScannerConfiguration configuration)
Sets the configuration for the credit card scanner.
- Parameters:
configuration- The configuration to set.
-
scan
CreditCardScanningResult scan(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the NV21 format image
-
scanInArea
CreditCardScanningResult scanInArea(ByteArray nv21, Integer width, Integer height, Integer orientation, Rect areaRect)
Performs credit card data scanning in the finder rect on the NV21 format image
-
scanFromBgr
CreditCardScanningResult scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the BGR format image
-
scanFromJpeg
CreditCardScanningResult scanFromJpeg(ByteArray image, Integer orientation)
Performs credit card data scanning on the JPEG image
-
scanFromBitmap
CreditCardScanningResult scanFromBitmap(Bitmap image, Integer orientation)
Performs credit card data scanning on the Bitmap
-
clearResult
Unit clearResult()
Clears the scanning result
-
-
-
-