Package 

Interface HealthInsuranceCardScanner


  • 
    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 Unit reinitWithValidationType(HealthInsuranceCardValidationType validationType) Init HealthInsuranceCardScanner with another validation type, by default validation type set up into HealthInsuranceCardValidationType.ValidationAutoSupported
      abstract Unit setValidationType(HealthInsuranceCardValidationType validationType) Set new validation type in HealthInsuranceCardScanner, by default validation type set up into HealthInsuranceCardValidationType.ValidationAutoSupported
      abstract HealthInsuranceCardRecognitionResult recognize(ByteArray image, Integer width, Integer height, Integer orientation) Extract data from EHIC in an N21 format image given as an byte array.
      abstract HealthInsuranceCardRecognitionResult recognizeWithFinderOverlay(ByteArray image, Integer width, Integer height, Integer orientation, Rect finderRect) Extract data from EHIC in an N21 format image given as an byte array in specified finder overlay rect
      abstract HealthInsuranceCardRecognitionResult recognizeJPEG(ByteArray image, Integer width, Integer height, Integer orientation) Extract data from EHIC in an JPEG image given as an byte array.
      abstract HealthInsuranceCardRecognitionResult recognizeBitmap(Bitmap image, Integer orientation) Extract data from EHIC in an image given as Bitmap.
      abstract HealthInsuranceCardRecognitionResult detectAndRecognize(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 HealthInsuranceCardRecognitionResult detectAndRecognizeWithFinderOverlay(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 HealthInsuranceCardRecognitionResult detectAndRecognizeJPEG(ByteArray image, Integer width, Integer height, Integer orientation) Detect and extract data from EHIC in an JPEG image given as an byte array.
      abstract HealthInsuranceCardRecognitionResult detectAndRecognizeBitmap(Bitmap image, Integer orientation) Detect and extract data from EHIC in an image given as Bitmap.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • reinitWithValidationType

        @Deprecated(message = Use setter method for validation type instead, replaceWith = @ReplaceWith(imports = {}, expression = setValidationType(validationType))) abstract Unit reinitWithValidationType(HealthInsuranceCardValidationType validationType)

        Init HealthInsuranceCardScanner with another validation type, by default validation type set up into HealthInsuranceCardValidationType.ValidationAutoSupported

        Parameters:
        validationType - HealthInsuranceCardValidationType type of validation for HIC cards
      • setValidationType

         abstract Unit setValidationType(HealthInsuranceCardValidationType validationType)

        Set new validation type in HealthInsuranceCardScanner, by default validation type set up into HealthInsuranceCardValidationType.ValidationAutoSupported

        Parameters:
        validationType - HealthInsuranceCardValidationType type of validation for HIC cards
      • recognize

         abstract HealthInsuranceCardRecognitionResult recognize(ByteArray image, Integer width, Integer height, Integer orientation)

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

         abstract HealthInsuranceCardRecognitionResult recognizeWithFinderOverlay(ByteArray image, Integer width, Integer height, Integer orientation, Rect finderRect)

        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 HealthInsuranceCardRecognitionResult recognizeJPEG(ByteArray image, Integer width, Integer height, Integer orientation)

        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.
        width - Image width.
        height - Image height.
        orientation - Image orientation in degrees.
      • recognizeBitmap

         abstract HealthInsuranceCardRecognitionResult recognizeBitmap(Bitmap image, Integer orientation)

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

         abstract HealthInsuranceCardRecognitionResult detectAndRecognize(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.
      • detectAndRecognizeWithFinderOverlay

         abstract HealthInsuranceCardRecognitionResult detectAndRecognizeWithFinderOverlay(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.
      • detectAndRecognizeJPEG

         abstract HealthInsuranceCardRecognitionResult detectAndRecognizeJPEG(ByteArray image, Integer width, Integer height, 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.
        width - Image width.
        height - Image height.
        orientation - Image orientation in degrees.
      • detectAndRecognizeBitmap

         abstract HealthInsuranceCardRecognitionResult detectAndRecognizeBitmap(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.