Package io.scanbot.sdk.mc
Class MedicalCertificateScanningResult
-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.lang.AutoCloseable
public final class MedicalCertificateScanningResult implements AutoCloseable, Parcelable
The result of the medical certificate scanning.
-
-
Field Summary
Fields Modifier and Type Field Description private final Boolean
scanningSuccessful
private final MedicalCertificatePatientInfoBox
patientInfoBox
private final List<MedicalCertificateCheckBox>
checkBoxes
private final List<MedicalCertificateDateRecord>
dates
private final MedicalCertificateFormType
formType
private final Integer
clockwiseRotations
private final ImageRef
croppedImage
private final Double
scaleX
private final Double
scaleY
private final DocumentDetectionResult
documentDetectionResult
-
Constructor Summary
Constructors Constructor Description MedicalCertificateScanningResult(Map<String, Object> source)
MedicalCertificateScanningResult(JSONObject json)
MedicalCertificateScanningResult(Boolean scanningSuccessful, MedicalCertificatePatientInfoBox patientInfoBox, List<MedicalCertificateCheckBox> checkBoxes, List<MedicalCertificateDateRecord> dates, MedicalCertificateFormType formType, Integer clockwiseRotations, ImageRef croppedImage, Double scaleX, Double scaleY, DocumentDetectionResult documentDetectionResult)
-
Method Summary
Modifier and Type Method Description final Boolean
getScanningSuccessful()
True if scanning was successful. final MedicalCertificatePatientInfoBox
getPatientInfoBox()
Patient info box. final List<MedicalCertificateCheckBox>
getCheckBoxes()
Found checkboxes. final List<MedicalCertificateDateRecord>
getDates()
Found dates. final MedicalCertificateFormType
getFormType()
Form type. final Integer
getClockwiseRotations()
The number of 90-degree clockwise rotations that were applied to the original image. final ImageRef
getCroppedImage()
The cropped image used for recognition. final Double
getScaleX()
The scale factor used to scale the image to the recognition size. final Double
getScaleY()
The scale factor used to scale the image to the recognition size. final DocumentDetectionResult
getDocumentDetectionResult()
Result of the document detection in the input image. final JSONObject
toJson(ToJsonConfiguration config)
final MedicalCertificateScanningResult
clone()
Unit
close()
-
-
Constructor Detail
-
MedicalCertificateScanningResult
MedicalCertificateScanningResult(JSONObject json)
-
MedicalCertificateScanningResult
MedicalCertificateScanningResult(Boolean scanningSuccessful, MedicalCertificatePatientInfoBox patientInfoBox, List<MedicalCertificateCheckBox> checkBoxes, List<MedicalCertificateDateRecord> dates, MedicalCertificateFormType formType, Integer clockwiseRotations, ImageRef croppedImage, Double scaleX, Double scaleY, DocumentDetectionResult documentDetectionResult)
-
-
Method Detail
-
getScanningSuccessful
final Boolean getScanningSuccessful()
True if scanning was successful.
Default is false
-
getPatientInfoBox
final MedicalCertificatePatientInfoBox getPatientInfoBox()
Patient info box.
-
getCheckBoxes
final List<MedicalCertificateCheckBox> getCheckBoxes()
Found checkboxes.
-
getDates
final List<MedicalCertificateDateRecord> getDates()
Found dates.
-
getFormType
final MedicalCertificateFormType getFormType()
Form type.
Default is UNKNOWN
-
getClockwiseRotations
final Integer getClockwiseRotations()
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.
Default is 0
-
getCroppedImage
final ImageRef getCroppedImage()
The cropped image used for recognition.
-
getScaleX
final Double getScaleX()
The scale factor used to scale the image to the recognition size.
Default is 1.0
-
getScaleY
final Double getScaleY()
The scale factor used to scale the image to the recognition size.
Default is 1.0
-
getDocumentDetectionResult
final DocumentDetectionResult getDocumentDetectionResult()
Result of the document detection in the input image. Is available only if the shouldCropDocument parameter is set to true.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final MedicalCertificateScanningResult clone()
-
-
-
-