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 CreditCardScannerConfiguration
copyCurrentConfiguration()
Returns a copy of the current configuration. Unit
setConfiguration(CreditCardScannerConfiguration configuration)
Sets the configuration for the credit card scanner. CreditCardScanningResult
scan(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the NV21 format image 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 CreditCardScanningResult
scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the BGR format image CreditCardScanningResult
scanFromJpeg(ByteArray image, Integer orientation)
Performs credit card data scanning on the JPEG image CreditCardScanningResult
scanFromBitmap(Bitmap image, Integer orientation)
Performs credit card data scanning on the Bitmap Unit
clearResult()
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
-
-
-
-