Class MedicalCertificateScanningParameters
- java.lang.Object
-
- io.scanbot.sdk.medicalcertificate.MedicalCertificateScanningParameters
-
public class MedicalCertificateScanningParameters extends java.lang.ObjectParameters for the medical certificate scanning. The scanner supports Form 1 (Arbeitsunfähigkeitsbescheinigung) and Form 21a (Ärztliche Bescheinigung für den Bezug von Krankengeld bei Erkrankung eines Kindes) from the KBV (Kassenärztliche Bundesvereinigung) list of forms.
-
-
Constructor Summary
Constructors Constructor Description MedicalCertificateScanningParameters()Constructs MedicalCertificateScanningParameters with default parameters.MedicalCertificateScanningParameters(boolean shouldCropDocument, boolean recognizePatientInfoBox, boolean recognizeBarcode, boolean extractCroppedImage, boolean preprocessInput)Constructs MedicalCertificateScanningParameters with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetExtractCroppedImage()Getter for extractCroppedImage field.booleangetPreprocessInput()Getter for preprocessInput field.booleangetRecognizeBarcode()Getter for recognizeBarcode field.booleangetRecognizePatientInfoBox()Getter for recognizePatientInfoBox field.booleangetShouldCropDocument()Getter for shouldCropDocument field.voidsetExtractCroppedImage(boolean extractCroppedImage)Setter for extractCroppedImage field.voidsetPreprocessInput(boolean preprocessInput)Setter for preprocessInput field.voidsetRecognizeBarcode(boolean recognizeBarcode)Setter for recognizeBarcode field.voidsetRecognizePatientInfoBox(boolean recognizePatientInfoBox)Setter for recognizePatientInfoBox field.voidsetShouldCropDocument(boolean shouldCropDocument)Setter for shouldCropDocument field.
-
-
-
Constructor Detail
-
MedicalCertificateScanningParameters
public MedicalCertificateScanningParameters(boolean shouldCropDocument, boolean recognizePatientInfoBox, boolean recognizeBarcode, boolean extractCroppedImage, boolean preprocessInput)Constructs MedicalCertificateScanningParameters with the given params.- Parameters:
shouldCropDocument- Document will be detected and cropped before recognition. If false, a cropped image of a document is assumed. Default is truerecognizePatientInfoBox- All data in the patient info box will be extracted. If false, the patient info box is ignored. Default is truerecognizeBarcode- Some forms are printed with an extra barcode that encodes the same information as the document. Reading the barcode is more reliable than OCR and is recommended when possible. If false, the barcode will not be scanned. Default is trueextractCroppedImage- If true, cropped document image will be extracted and returned. Default is falsepreprocessInput- If true, the image is sharpened before processing. Default is false
-
MedicalCertificateScanningParameters
public MedicalCertificateScanningParameters()
Constructs MedicalCertificateScanningParameters with default parameters.
-
-
Method Detail
-
getShouldCropDocument
public boolean getShouldCropDocument()
Getter for shouldCropDocument field. See constructor documentation for more information about the field.- Returns:
- shouldCropDocument
-
setShouldCropDocument
public void setShouldCropDocument(boolean shouldCropDocument)
Setter for shouldCropDocument field. See constructor documentation for more information about the field.- Parameters:
shouldCropDocument- Value to set.
-
getRecognizePatientInfoBox
public boolean getRecognizePatientInfoBox()
Getter for recognizePatientInfoBox field. See constructor documentation for more information about the field.- Returns:
- recognizePatientInfoBox
-
setRecognizePatientInfoBox
public void setRecognizePatientInfoBox(boolean recognizePatientInfoBox)
Setter for recognizePatientInfoBox field. See constructor documentation for more information about the field.- Parameters:
recognizePatientInfoBox- Value to set.
-
getRecognizeBarcode
public boolean getRecognizeBarcode()
Getter for recognizeBarcode field. See constructor documentation for more information about the field.- Returns:
- recognizeBarcode
-
setRecognizeBarcode
public void setRecognizeBarcode(boolean recognizeBarcode)
Setter for recognizeBarcode field. See constructor documentation for more information about the field.- Parameters:
recognizeBarcode- Value to set.
-
getExtractCroppedImage
public boolean getExtractCroppedImage()
Getter for extractCroppedImage field. See constructor documentation for more information about the field.- Returns:
- extractCroppedImage
-
setExtractCroppedImage
public void setExtractCroppedImage(boolean extractCroppedImage)
Setter for extractCroppedImage field. See constructor documentation for more information about the field.- Parameters:
extractCroppedImage- Value to set.
-
getPreprocessInput
public boolean getPreprocessInput()
Getter for preprocessInput field. See constructor documentation for more information about the field.- Returns:
- preprocessInput
-
setPreprocessInput
public void setPreprocessInput(boolean preprocessInput)
Setter for preprocessInput field. See constructor documentation for more information about the field.- Parameters:
preprocessInput- Value to set.
-
-