Class MedicalCertificateScanningResult
- java.lang.Object
-
- io.scanbot.sdk.medicalcertificate.MedicalCertificateScanningResult
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class MedicalCertificateScanningResult extends java.lang.Object implements java.lang.AutoCloseableThe result of the medical certificate scanning.
-
-
Constructor Summary
Constructors Constructor Description MedicalCertificateScanningResult(boolean scanningSuccessful, MedicalCertificatePatientInfoBox patientInfoBox, java.util.List<MedicalCertificateCheckBox> checkBoxes, java.util.List<MedicalCertificateDateRecord> dates, MedicalCertificateFormType formType, int clockwiseRotations, ImageRef croppedImage, double scaleX, double scaleY, DocumentDetectionResult documentDetectionResult)Constructs MedicalCertificateScanningResult with the given params.MedicalCertificateScanningResult(MedicalCertificatePatientInfoBox patientInfoBox, java.util.List<MedicalCertificateCheckBox> checkBoxes, java.util.List<MedicalCertificateDateRecord> dates, DocumentDetectionResult documentDetectionResult)Constructs MedicalCertificateScanningResult with default parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes native resources (images) held by the object.java.util.List<MedicalCertificateCheckBox>getCheckBoxes()Getter for checkBoxes field.intgetClockwiseRotations()Getter for clockwiseRotations field.ImageRefgetCroppedImage()Getter for croppedImage field.java.util.List<MedicalCertificateDateRecord>getDates()Getter for dates field.DocumentDetectionResultgetDocumentDetectionResult()Getter for documentDetectionResult field.MedicalCertificateFormTypegetFormType()Getter for formType field.MedicalCertificatePatientInfoBoxgetPatientInfoBox()Getter for patientInfoBox field.doublegetScaleX()Getter for scaleX field.doublegetScaleY()Getter for scaleY field.booleangetScanningSuccessful()Getter for scanningSuccessful field.
-
-
-
Constructor Detail
-
MedicalCertificateScanningResult
public MedicalCertificateScanningResult(boolean scanningSuccessful, MedicalCertificatePatientInfoBox patientInfoBox, java.util.List<MedicalCertificateCheckBox> checkBoxes, java.util.List<MedicalCertificateDateRecord> dates, MedicalCertificateFormType formType, int clockwiseRotations, ImageRef croppedImage, double scaleX, double scaleY, DocumentDetectionResult documentDetectionResult)Constructs MedicalCertificateScanningResult with the given params.- Parameters:
scanningSuccessful- True if scanning was successful. Default is falsepatientInfoBox- Patient info box.checkBoxes- Found checkboxes.dates- Found dates.formType- Form type. Default is UNKNOWNclockwiseRotations- 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 0croppedImage- The cropped image used for recognition.scaleX- The scale factor used to scale the image to the recognition size. Default is 1.0scaleY- The scale factor used to scale the image to the recognition size. Default is 1.0documentDetectionResult- Result of the document detection in the input image. Is available only if the shouldCropDocument parameter is set to true.
-
MedicalCertificateScanningResult
public MedicalCertificateScanningResult(MedicalCertificatePatientInfoBox patientInfoBox, java.util.List<MedicalCertificateCheckBox> checkBoxes, java.util.List<MedicalCertificateDateRecord> dates, DocumentDetectionResult documentDetectionResult)
Constructs MedicalCertificateScanningResult with default parameters.- Parameters:
patientInfoBox- Patient info box.checkBoxes- Found checkboxes.dates- Found dates.documentDetectionResult- Result of the document detection in the input image. Is available only if the shouldCropDocument parameter is set to true.
-
-
Method Detail
-
getScanningSuccessful
public boolean getScanningSuccessful()
Getter for scanningSuccessful field. See constructor documentation for more information about the field.- Returns:
- scanningSuccessful
-
getPatientInfoBox
public MedicalCertificatePatientInfoBox getPatientInfoBox()
Getter for patientInfoBox field. See constructor documentation for more information about the field.- Returns:
- patientInfoBox
-
getCheckBoxes
public java.util.List<MedicalCertificateCheckBox> getCheckBoxes()
Getter for checkBoxes field. See constructor documentation for more information about the field.- Returns:
- checkBoxes
-
getDates
public java.util.List<MedicalCertificateDateRecord> getDates()
Getter for dates field. See constructor documentation for more information about the field.- Returns:
- dates
-
getFormType
public MedicalCertificateFormType getFormType()
Getter for formType field. See constructor documentation for more information about the field.- Returns:
- formType
-
getClockwiseRotations
public int getClockwiseRotations()
Getter for clockwiseRotations field. See constructor documentation for more information about the field.- Returns:
- clockwiseRotations
-
getCroppedImage
public ImageRef getCroppedImage()
Getter for croppedImage field. See constructor documentation for more information about the field.- Returns:
- croppedImage
-
getScaleX
public double getScaleX()
Getter for scaleX field. See constructor documentation for more information about the field.- Returns:
- scaleX
-
getScaleY
public double getScaleY()
Getter for scaleY field. See constructor documentation for more information about the field.- Returns:
- scaleY
-
getDocumentDetectionResult
public DocumentDetectionResult getDocumentDetectionResult()
Getter for documentDetectionResult field. See constructor documentation for more information about the field.- Returns:
- documentDetectionResult
-
close
public void close()
Closes native resources (images) held by the object.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-