Class MedicalCertificateScanningParameters
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class MedicalCertificateScanningParameters implements Parcelable
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.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
shouldCropDocument
private Boolean
recognizePatientInfoBox
private Boolean
recognizeBarcode
private Boolean
extractCroppedImage
private Boolean
preprocessInput
-
Constructor Summary
Constructors Constructor Description MedicalCertificateScanningParameters(Map<String, Object> source)
MedicalCertificateScanningParameters(JSONObject json)
MedicalCertificateScanningParameters(Boolean shouldCropDocument, Boolean recognizePatientInfoBox, Boolean recognizeBarcode, Boolean extractCroppedImage, Boolean preprocessInput)
-
Method Summary
Modifier and Type Method Description final Boolean
getShouldCropDocument()
Document will be detected and cropped before recognition. final Unit
setShouldCropDocument(Boolean shouldCropDocument)
Document will be detected and cropped before recognition. final Boolean
getRecognizePatientInfoBox()
All data in the patient info box will be extracted. final Unit
setRecognizePatientInfoBox(Boolean recognizePatientInfoBox)
All data in the patient info box will be extracted. final Boolean
getRecognizeBarcode()
Some forms are printed with an extra barcode that encodes the same information as the document. final Unit
setRecognizeBarcode(Boolean recognizeBarcode)
Some forms are printed with an extra barcode that encodes the same information as the document. final Boolean
getExtractCroppedImage()
If true, cropped document image will be extracted and returned. final Unit
setExtractCroppedImage(Boolean extractCroppedImage)
If true, cropped document image will be extracted and returned. final Boolean
getPreprocessInput()
If true, the image is sharpened before processing. final Unit
setPreprocessInput(Boolean preprocessInput)
If true, the image is sharpened before processing. final JSONObject
toJson(ToJsonConfiguration config)
final MedicalCertificateScanningParameters
clone()
final static MedicalCertificateScanningParameters
default()
-
-
Constructor Detail
-
MedicalCertificateScanningParameters
MedicalCertificateScanningParameters(Map<String, Object> source)
-
MedicalCertificateScanningParameters
MedicalCertificateScanningParameters(JSONObject json)
-
-
Method Detail
-
getShouldCropDocument
final Boolean getShouldCropDocument()
Document will be detected and cropped before recognition. If false, a cropped image of a document is assumed.
Default is true
-
setShouldCropDocument
final Unit setShouldCropDocument(Boolean shouldCropDocument)
Document will be detected and cropped before recognition. If false, a cropped image of a document is assumed.
Default is true
-
getRecognizePatientInfoBox
final Boolean getRecognizePatientInfoBox()
All data in the patient info box will be extracted. If false, the patient info box is ignored.
Default is true
-
setRecognizePatientInfoBox
final Unit setRecognizePatientInfoBox(Boolean recognizePatientInfoBox)
All data in the patient info box will be extracted. If false, the patient info box is ignored.
Default is true
-
getRecognizeBarcode
final Boolean getRecognizeBarcode()
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
-
setRecognizeBarcode
final Unit setRecognizeBarcode(Boolean 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
-
getExtractCroppedImage
final Boolean getExtractCroppedImage()
If true, cropped document image will be extracted and returned.
Default is false
-
setExtractCroppedImage
final Unit setExtractCroppedImage(Boolean extractCroppedImage)
If true, cropped document image will be extracted and returned.
Default is false
-
getPreprocessInput
final Boolean getPreprocessInput()
If true, the image is sharpened before processing.
Default is false
-
setPreprocessInput
final Unit setPreprocessInput(Boolean preprocessInput)
If true, the image is sharpened before processing.
Default is false
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final MedicalCertificateScanningParameters clone()
-
default
final static MedicalCertificateScanningParameters default()
-
-
-
-