Interface HealthInsuranceCardScanner
-
- All Implemented Interfaces:
@Deprecated(message = "Use DocumentDataExtractor instead.") public interface HealthInsuranceCardScanner
Recognizer for German-issued European health insurance cards (EHIC), a.k.a. elektronische Gesundheitskarten (eGK). The recognizer performs validation on the result that is specific to German cards and returns a failure result if any of the fields that can be validated fail validation. NOTE: In order to operate, this class requires tesseract languages and trained data to be present in the application bundle.
-
-
Method Summary
Modifier and Type Method Description abstract EuropeanHealthInsuranceCardRecognizerConfiguration
copyCurrentConfiguration()
Returns a copy of the current configuration. abstract Unit
setConfiguration(EuropeanHealthInsuranceCardRecognizerConfiguration configuration)
Sets the configuration for the EHIC scanner. abstract EuropeanHealthInsuranceCardRecognitionResult
recognizeNv21(ByteArray image, Integer width, Integer height, Integer orientation)
Detect and extract data from EHIC in an N21 format image given as an byte array. abstract EuropeanHealthInsuranceCardRecognitionResult
recognizeNv21WithFinderOverlay(ByteArray image, Integer width, Integer height, Integer orientation, Rect finderRect)
Detect and extract data from EHIC in an N21 format image given as an byte array in specified finder overlay rect abstract EuropeanHealthInsuranceCardRecognitionResult
recognizeJPEG(ByteArray image, Integer orientation)
Detect and extract data from EHIC in an JPEG image given as an byte array. abstract EuropeanHealthInsuranceCardRecognitionResult
recognizeBitmap(Bitmap image, Integer orientation)
Detect and extract data from EHIC in an image given as Bitmap. abstract Unit
clear()
Clears the result accumulation cache (for live detection) -
-
Method Detail
-
copyCurrentConfiguration
abstract EuropeanHealthInsuranceCardRecognizerConfiguration copyCurrentConfiguration()
Returns a copy of the current configuration.
-
setConfiguration
abstract Unit setConfiguration(EuropeanHealthInsuranceCardRecognizerConfiguration configuration)
Sets the configuration for the EHIC scanner.
- Parameters:
configuration
- The configuration to set.
-
recognizeNv21
abstract EuropeanHealthInsuranceCardRecognitionResult recognizeNv21(ByteArray image, Integer width, Integer height, Integer orientation)
Detect and extract data from EHIC in an N21 format image given as an byte array.
- Parameters:
image
- An N21 format image containing an EHIC on a clean background.width
- Image width.height
- Image height.orientation
- Image orientation in degrees.
-
recognizeNv21WithFinderOverlay
abstract EuropeanHealthInsuranceCardRecognitionResult recognizeNv21WithFinderOverlay(ByteArray image, Integer width, Integer height, Integer orientation, Rect finderRect)
Detect and extract data from EHIC in an N21 format image given as an byte array in specified finder overlay rect
- Parameters:
image
- An N21 format image containing an EHIC on a clean background.width
- Image width.height
- Image height.orientation
- Image orientation in degrees.finderRect
- Image scanning area.
-
recognizeJPEG
abstract EuropeanHealthInsuranceCardRecognitionResult recognizeJPEG(ByteArray image, Integer orientation)
Detect and extract data from EHIC in an JPEG image given as an byte array.
- Parameters:
image
- An JPEG format image containing an EHIC on a clean background.orientation
- Image orientation in degrees.
-
recognizeBitmap
abstract EuropeanHealthInsuranceCardRecognitionResult recognizeBitmap(Bitmap image, Integer orientation)
Detect and extract data from EHIC in an image given as Bitmap.
- Parameters:
image
- Bitmap containing an EHIC on a clean background.orientation
- Image orientation in degrees.
-
-
-
-