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 BooleanscanningSuccessfulprivate final MedicalCertificatePatientInfoBoxpatientInfoBoxprivate final List<MedicalCertificateCheckBox>checkBoxesprivate final List<MedicalCertificateDateRecord>datesprivate final MedicalCertificateFormTypeformTypeprivate final IntegerclockwiseRotationsprivate final ImageRefcroppedImageprivate final DoublescaleXprivate final DoublescaleYprivate final DocumentDetectionResultdocumentDetectionResult
-
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 BooleangetScanningSuccessful()True if scanning was successful. final MedicalCertificatePatientInfoBoxgetPatientInfoBox()Patient info box. final List<MedicalCertificateCheckBox>getCheckBoxes()Found checkboxes. final List<MedicalCertificateDateRecord>getDates()Found dates. final MedicalCertificateFormTypegetFormType()Form type. final IntegergetClockwiseRotations()The number of 90-degree clockwise rotations that were applied to the original image. final ImageRefgetCroppedImage()The cropped image used for recognition. final DoublegetScaleX()The scale factor used to scale the image to the recognition size. final DoublegetScaleY()The scale factor used to scale the image to the recognition size. final DocumentDetectionResultgetDocumentDetectionResult()Result of the document detection in the input image. final JSONObjecttoJson(ToJsonConfiguration config)final MedicalCertificateScanningResultclone()Unitclose()-
-
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()
-
-
-
-