KtpScanResult

data class KtpScanResult(val detection: KtpDetection?, val card: RgbImage?, val portrait: Face?, val blurScore: Double?, val glareRatio: Double?, val issues: List<KtpIssue>)

Constructors

Link copied to clipboard
constructor(detection: KtpDetection?, card: RgbImage?, portrait: Face?, blurScore: Double?, glareRatio: Double?, issues: List<KtpIssue>)

Properties

Link copied to clipboard

Laplacian variance of card

Link copied to clipboard

the perspective-corrected, upright card (KtpSpec.RECTIFIED_WIDTH x KtpSpec.RECTIFIED_HEIGHT)

Link copied to clipboard

where the card was found in the source image, or null

Link copied to clipboard

fraction of saturated pixels on card

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the portrait face in card coordinates, or null (needs a face detector)