DefaultCreditCardScanner

Implementation of CreditCardScanner - performs detection and scanning of the credit card data.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun clearResult()

Clears the scanning result

Link copied to clipboard

Returns a copy of the current configuration.

Link copied to clipboard
open override 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
open override 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
open override fun scanFromBitmap(image: Bitmap, orientation: Int): CreditCardScanningResult?

Performs credit card data scanning on the Bitmap

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

Performs credit card data scanning on the JPEG image

Link copied to clipboard
open override 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
open override fun setConfiguration(configuration: CreditCardScannerConfiguration)

Sets the configuration for the credit card scanner.