Package io.scanbot.sdk.hicscanner
Class DefaultHealthInsuranceCardScanner
-
- All Implemented Interfaces:
-
io.scanbot.sdk.hicscanner.HealthInsuranceCardScanner
public final class DefaultHealthInsuranceCardScanner implements HealthInsuranceCardScanner
Default HealthInsuranceCardScanner implementation
-
-
Constructor Summary
Constructors Constructor Description DefaultHealthInsuranceCardScanner(BlobManager blobManager)
-
Method Summary
Modifier and Type Method Description HealthInsuranceCardRecognitionResult
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. HealthInsuranceCardRecognitionResult
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 HealthInsuranceCardRecognitionResult
recognizeJPEG(ByteArray image, Integer orientation)
Detect and extract data from EHIC in an JPEG image given as an byte array. HealthInsuranceCardRecognitionResult
recognizeBitmap(Bitmap image, Integer orientation)
Detect and extract data from EHIC in an image given as Bitmap. Unit
clear()
Clears the result accumulation cache (for live detection) -
-
Constructor Detail
-
DefaultHealthInsuranceCardScanner
DefaultHealthInsuranceCardScanner(BlobManager blobManager)
-
-
Method Detail
-
recognizeNv21
HealthInsuranceCardRecognitionResult 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
HealthInsuranceCardRecognitionResult 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
HealthInsuranceCardRecognitionResult 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
HealthInsuranceCardRecognitionResult 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.
-
-
-
-