MedicalCertificateScanningResult

data class MedicalCertificateScanningResult(val scanningSuccessful: Boolean = false, val patientInfoBox: MedicalCertificatePatientInfoBox, val checkBoxes: List<MedicalCertificateCheckBox>, val dates: List<MedicalCertificateDateRecord>, val formType: MedicalCertificateFormType = MedicalCertificateFormType.UNKNOWN, val clockwiseRotations: Int = 0, val croppedImage: ImageRef? = null, val scaleX: Double = 1.0, val scaleY: Double = 1.0, val documentDetectionResult: DocumentDetectionResult?) : AutoCloseable, Parcelable

The result of the medical certificate scanning.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(scanningSuccessful: Boolean = false, patientInfoBox: MedicalCertificatePatientInfoBox, checkBoxes: List<MedicalCertificateCheckBox>, dates: List<MedicalCertificateDateRecord>, formType: MedicalCertificateFormType = MedicalCertificateFormType.UNKNOWN, clockwiseRotations: Int = 0, croppedImage: ImageRef? = null, scaleX: Double = 1.0, scaleY: Double = 1.0, documentDetectionResult: DocumentDetectionResult?)

Properties

Link copied to clipboard
Link copied to clipboard

The number of 90-degree clockwise rotations that were applied to the original image. The same number of counter-clockwise rotations are necessary to make the image upright again.

Link copied to clipboard
val croppedImage: ImageRef? = null

The cropped image used for recognition.

Link copied to clipboard
Link copied to clipboard

Result of the document detection in the input image. Is available only if the shouldCropDocument parameter is set to true.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scaleX: Double = 1.0

The scale factor used to scale the image to the recognition size.

Link copied to clipboard
val scaleY: Double = 1.0

The scale factor used to scale the image to the recognition size.

Link copied to clipboard

True if scanning was successful.

Functions

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