Processed

data class Processed(val documentIqasResult: MiSnapDocumentAnalyzer.Result.Processed.DocumentIqasResult, val passedDocumentChecks: List<MiSnapDocumentAnalyzer.Result.Processed.DocumentCheck> = emptyList(), val skippedDocumentChecks: List<MiSnapDocumentAnalyzer.Result.Processed.DocumentCheck> = emptyList(), val fourCorners: Array<IntArray> = emptyArray(), val glareCorners: Array<IntArray> = emptyArray(), val extraction: DocumentExtraction? = null, val licenseExpired: Boolean) : MiSnapDocumentAnalyzer.Result

Result returned when the frame is successfully analyzed.

Constructors

Link copied to clipboard
constructor(documentIqasResult: MiSnapDocumentAnalyzer.Result.Processed.DocumentIqasResult, passedDocumentChecks: List<MiSnapDocumentAnalyzer.Result.Processed.DocumentCheck> = emptyList(), skippedDocumentChecks: List<MiSnapDocumentAnalyzer.Result.Processed.DocumentCheck> = emptyList(), fourCorners: Array<IntArray> = emptyArray(), glareCorners: Array<IntArray> = emptyArray(), extraction: DocumentExtraction? = null, licenseExpired: Boolean)

Types

Link copied to clipboard

List of checks used to identify the passed, failed and skipped checks after analyzing a frame and comparing the IQA scores to the configured thresholds.

Link copied to clipboard
data class DocumentIqasResult(val brightness: Int, val sharpness: Int, val fourCornerConfidence: Int, val skewAngle: Int, val rotationAngle: Int, val horizontalFill: Int, val padding: Int, val noGlareConfidence: Int, val solidBackgroundConfidence: Int, val contrastConfidence: Int, val mrzConfidence: Int, val fourCorners: Array<Point>, val documentBoundingBox: Array<Point>, val glareBoundingBox: Array<Point>)

Holds the raw IQA scores.

Properties

Link copied to clipboard

The contents of the document if extracted or null if not available.

Link copied to clipboard

A 2D array that represents the 4 corners of the document.

Link copied to clipboard

A 2D array that represents the corners of a glare box.

Link copied to clipboard

Indicates if the license should be renewed.

Link copied to clipboard

The list of passed checks according to the thresholds configuration.

Link copied to clipboard

The list of checks that were skipped and have the default value.