CreditCardScanningResult

data class CreditCardScanningResult(val detectionStatus: DocumentDetectionStatus, val scanningStatus: CreditCardScanningStatus, val creditCard: GenericDocument?, val quad: List<Point>, val quadNormalized: List<PointF>) : AutoCloseable, Parcelable

Contains the result of running the credit card scanner.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(detectionStatus: DocumentDetectionStatus, scanningStatus: CreditCardScanningStatus, creditCard: GenericDocument?, quad: List<Point>, quadNormalized: List<PointF>)

Properties

Link copied to clipboard

Generic document containing credit card data. Not present, if status is FAIL.

Link copied to clipboard

The status of the credit card detection step.

Link copied to clipboard

Coordinates of the detected credit card in the input image (clockwise from top-left).

Link copied to clipboard

Coordinates of the detected credit card in the input image (clockwise from top-left), normalized to the range 0, 1.

Link copied to clipboard

The status of the credit card scanning step.

Functions

Link copied to clipboard
Link copied to clipboard
open override fun close()
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject