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 BooleanshouldCropDocumentprivate BooleanrecognizePatientInfoBoxprivate BooleanrecognizeBarcodeprivate BooleanextractCroppedImageprivate BooleanpreprocessInput
-
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 BooleangetShouldCropDocument()Document will be detected and cropped before recognition. final UnitsetShouldCropDocument(Boolean shouldCropDocument)Document will be detected and cropped before recognition. final BooleangetRecognizePatientInfoBox()All data in the patient info box will be extracted. final UnitsetRecognizePatientInfoBox(Boolean recognizePatientInfoBox)All data in the patient info box will be extracted. final BooleangetRecognizeBarcode()Some forms are printed with an extra barcode that encodes the same information as the document. final UnitsetRecognizeBarcode(Boolean recognizeBarcode)Some forms are printed with an extra barcode that encodes the same information as the document. final BooleangetExtractCroppedImage()If true, cropped document image will be extracted and returned. final UnitsetExtractCroppedImage(Boolean extractCroppedImage)If true, cropped document image will be extracted and returned. final BooleangetPreprocessInput()If true, the image is sharpened before processing. final UnitsetPreprocessInput(Boolean preprocessInput)If true, the image is sharpened before processing. final JSONObjecttoJson(ToJsonConfiguration config)final MedicalCertificateScanningParametersclone()final static MedicalCertificateScanningParametersdefault()-
-
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()
-
-
-
-