CreditCardScanner

Functions

Link copied to clipboard
abstract fun clearResult()

Clears the scanning result

Link copied to clipboard

Returns a copy of the current configuration.

Link copied to clipboard
abstract fun scan(nv21: ByteArray, width: Int, height: Int, orientation: Int): CreditCardScanningResult?

Performs credit card data scanning on the NV21 format image

Link copied to clipboard
abstract fun scanFromBgr(bgr: ByteArray, width: Int, height: Int, orientation: Int): CreditCardScanningResult?

Performs credit card data scanning on the BGR format image

Link copied to clipboard
abstract fun scanFromBitmap(image: Bitmap, orientation: Int): CreditCardScanningResult?

Performs credit card data scanning on the Bitmap

Link copied to clipboard
abstract fun scanFromJpeg(image: ByteArray, orientation: Int): CreditCardScanningResult?

Performs credit card data scanning on the JPEG image

Link copied to clipboard
abstract fun scanInArea(nv21: ByteArray, width: Int, height: Int, orientation: Int, areaRect: Rect): CreditCardScanningResult?

Performs credit card data scanning in the finder rect on the NV21 format image

Link copied to clipboard

Sets the configuration for the credit card scanner.