Package io.scanbot.ehicscanner
Class EhicRecognizer
-
- All Implemented Interfaces:
public final class EhicRecognizer extends SelfDisposable
Recognizer for European health insurance cards (EHIC), The recognizer performs validation on the result that is specific to German and Austrian cards and returns a failure result if any of the fields that can be validated fail validation.
-
-
Field Summary
Fields Modifier and Type Field Description private EhicRecognizerParameters
liveDetectionParameters
-
Constructor Summary
Constructors Constructor Description EhicRecognizer()
-
Method Summary
Modifier and Type Method Description final EhicRecognizerParameters
getLiveDetectionParameters()
final Unit
setLiveDetectionParameters(EhicRecognizerParameters liveDetectionParameters)
final EhicRecognitionResult
detectAndRecognizeFromNV21(ByteArray nv21, Integer width, Integer height, Integer orientation)
final EhicRecognitionResult
detectAndRecognizeInAreaFromNV21(ByteArray nv21, Integer width, Integer height, Rect areaRect, Integer orientation)
final EhicRecognitionResult
detectAndRecognizeFromJPEG(ByteArray jpeg, Integer orientation)
final EhicRecognitionResult
detectAndRecognizeFromBitmap(Bitmap image, Integer orientation)
final Unit
clear()
Clears the result accumulation cache (for live detection). -
-
Method Detail
-
getLiveDetectionParameters
final EhicRecognizerParameters getLiveDetectionParameters()
-
setLiveDetectionParameters
final Unit setLiveDetectionParameters(EhicRecognizerParameters liveDetectionParameters)
-
detectAndRecognizeFromNV21
final EhicRecognitionResult detectAndRecognizeFromNV21(ByteArray nv21, Integer width, Integer height, Integer orientation)
-
detectAndRecognizeInAreaFromNV21
final EhicRecognitionResult detectAndRecognizeInAreaFromNV21(ByteArray nv21, Integer width, Integer height, Rect areaRect, Integer orientation)
-
detectAndRecognizeFromJPEG
final EhicRecognitionResult detectAndRecognizeFromJPEG(ByteArray jpeg, Integer orientation)
-
detectAndRecognizeFromBitmap
final EhicRecognitionResult detectAndRecognizeFromBitmap(Bitmap image, Integer orientation)
-
-
-
-