Class DefaultMedicalCertificateRecognizer
-
- All Implemented Interfaces:
-
io.scanbot.sdk.mcrecognizer.MedicalCertificateRecognizer
public final class DefaultMedicalCertificateRecognizer implements MedicalCertificateRecognizer
Performs detection and recognition of Medical Certificate data
-
-
Constructor Summary
Constructors Constructor Description DefaultMedicalCertificateRecognizer(BlobManager blobManager)
-
Method Summary
Modifier and Type Method Description MedicalCertificateRecognizerResult
recognizeMc(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs MC page detection and data recognition on the NV21 format image. MedicalCertificateRecognizerResult
recognizeMc(ByteArray nv21, Integer width, Integer height, Integer orientation, Boolean recognizePatientInfo, Boolean returnCroppedDocument, Boolean recognizeBarcode, Rect visibleRect)
Performs MC page detection and data recognition on the NV21 format image. MedicalCertificateRecognizerResult
recognizeMcBgr(ByteArray bgr, Integer width, Integer height, Integer orientation, Boolean shouldCropDocument, Boolean returnCroppedDocument, Boolean recognizePatientInfo, Boolean recognizeBarcode)
Performs MC page detection and data recognition on the BGR format image. MedicalCertificateRecognizerResult
recognizeMcJpeg(ByteArray image, Integer orientation, Boolean shouldCropDocument, Boolean returnCroppedDocument, Boolean recognizePatientInfo, Boolean recognizeBarcode)
Performs MC data recognition on the JPEG image. MedicalCertificateRecognizerResult
recognizeMcBitmap(Bitmap image, Integer orientation, Boolean shouldCropDocument, Boolean returnCroppedDocument, Boolean recognizePatientInfo, Boolean recognizeBarcode)
Performs MC data recognition on the Bitmap. -
-
Constructor Detail
-
DefaultMedicalCertificateRecognizer
DefaultMedicalCertificateRecognizer(BlobManager blobManager)
-
-
Method Detail
-
recognizeMc
MedicalCertificateRecognizerResult recognizeMc(ByteArray nv21, Integer width, Integer height, Integer orientation)
Performs MC page detection and data recognition on the NV21 format image. Input image can contain background elements. Recognition of Patient Information block is disabled. Image extraction is disabled. Barcode recognition is disabled
-
recognizeMc
MedicalCertificateRecognizerResult recognizeMc(ByteArray nv21, Integer width, Integer height, Integer orientation, Boolean recognizePatientInfo, Boolean returnCroppedDocument, Boolean recognizeBarcode, Rect visibleRect)
Performs MC page detection and data recognition on the NV21 format image. Input image can contain background elements.
- Parameters:
recognizePatientInfo
-Recognition of Patient Information block. true if enabled
returnCroppedDocument
-Image extraction with the result. true if enabled
recognizeBarcode
-Reading data from barcode, if it's present on document, could make data recognition more accurate. true if enabled.
-
recognizeMcBgr
MedicalCertificateRecognizerResult recognizeMcBgr(ByteArray bgr, Integer width, Integer height, Integer orientation, Boolean shouldCropDocument, Boolean returnCroppedDocument, Boolean recognizePatientInfo, Boolean recognizeBarcode)
Performs MC page detection and data recognition on the BGR format image. Input image can contain background elements.
- Parameters:
shouldCropDocument
-true if document should be detected before scanning, false - otherwise
returnCroppedDocument
-true if user need to get cropped document after scanning, false - otherwise
recognizePatientInfo
-Recognition of Patient Information block. true if enabled
recognizeBarcode
-Reading data from barcode, if it's present on document, could make data recognition more accurate. true if enabled.
-
recognizeMcJpeg
MedicalCertificateRecognizerResult recognizeMcJpeg(ByteArray image, Integer orientation, Boolean shouldCropDocument, Boolean returnCroppedDocument, Boolean recognizePatientInfo, Boolean recognizeBarcode)
Performs MC data recognition on the JPEG image. Input image can contain background elements.
- Parameters:
shouldCropDocument
-true if document should be detected before scanning, false - otherwise
returnCroppedDocument
-true if user need to get cropped document after scanning, false - otherwise
recognizePatientInfo
-Recognition of Patient Information block. true if enabled
recognizeBarcode
-Reading data from barcode, if it's present on document, could make data recognition more accurate. true if enabled.
-
recognizeMcBitmap
MedicalCertificateRecognizerResult recognizeMcBitmap(Bitmap image, Integer orientation, Boolean shouldCropDocument, Boolean returnCroppedDocument, Boolean recognizePatientInfo, Boolean recognizeBarcode)
Performs MC data recognition on the Bitmap. Input image can contain background elements.
- Parameters:
shouldCropDocument
-true if document should be detected before scanning, false - otherwise
returnCroppedDocument
-true if user need to get cropped document after scanning, false - otherwise
recognizePatientInfo
-Recognition of Patient Information block. true if enabled
recognizeBarcode
-Reading data from barcode, if it's present on document, could make data recognition more accurate. true if enabled.
-
-
-
-