Class MedicalCertificateScanningParameters

java.lang.Object
io.scanbot.sdk.medicalcertificate.MedicalCertificateScanningParameters

public class MedicalCertificateScanningParameters extends Object
Parameters 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 Details

    • 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 `true`.
      recognizePatientInfoBox - All data in the patient info box will be extracted. If false, the patient info box is ignored. Default is `true`.
      recognizeBarcode - 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 `true`.
      extractCroppedImage - If true, cropped document image will be extracted and returned. Default is `false`.
      preprocessInput - If true, the image is sharpened before processing. Default is `false`.
    • MedicalCertificateScanningParameters

      public MedicalCertificateScanningParameters()
      Constructs MedicalCertificateScanningParameters with default parameters.
  • Method Details

    • 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.