Package io.scanbot.sdk.creditcard
Interface CreditCardScanner
-
- All Implemented Interfaces:
public interface CreditCardScanner
-
-
Method Summary
Modifier and Type Method Description abstract CreditCardScannerConfiguration
copyCurrentConfiguration()
Returns a copy of the current configuration. abstract Unit
setConfiguration(CreditCardScannerConfiguration configuration)
Sets the configuration for the credit card scanner. abstract CreditCardScanningResult
scan(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the NV21 format image abstract 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 abstract CreditCardScanningResult
scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the BGR format image abstract CreditCardScanningResult
scanFromJpeg(ByteArray image, Integer orientation)
Performs credit card data scanning on the JPEG image abstract CreditCardScanningResult
scanFromBitmap(Bitmap image, Integer orientation)
Performs credit card data scanning on the Bitmap abstract Unit
clearResult()
Clears the scanning result -
-
Method Detail
-
copyCurrentConfiguration
abstract CreditCardScannerConfiguration copyCurrentConfiguration()
Returns a copy of the current configuration.
-
setConfiguration
abstract Unit setConfiguration(CreditCardScannerConfiguration configuration)
Sets the configuration for the credit card scanner.
- Parameters:
configuration
- The configuration to set.
-
scan
abstract CreditCardScanningResult scan(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the NV21 format image
-
scanInArea
abstract 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
abstract CreditCardScanningResult scanFromBgr(ByteArray bgr, Integer width, Integer height, Integer orientation)
Performs credit card data scanning on the BGR format image
-
scanFromJpeg
abstract CreditCardScanningResult scanFromJpeg(ByteArray image, Integer orientation)
Performs credit card data scanning on the JPEG image
-
scanFromBitmap
abstract CreditCardScanningResult scanFromBitmap(Bitmap image, Integer orientation)
Performs credit card data scanning on the Bitmap
-
clearResult
abstract Unit clearResult()
Clears the scanning result
-
-
-
-