Class HealthInsuranceCardScannerFrameHandler
-
- All Implemented Interfaces:
@Deprecated(message = "Use GenericDocumentRecognizerFrameHandler instead.") public final class HealthInsuranceCardScannerFrameHandler extends FrameHandler
Performs Health Insurance Card data detection on camera preview frames. Outputs results via HealthInsuranceCardScannerFrameHandler.ResultHandler (.addResultHandler).
Preview frame considered intercepted if at least one HealthInsuranceCardScannerFrameHandler.ResultHandler returns
true
from HealthInsuranceCardScannerFrameHandler.ResultHandler.handleResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
HealthInsuranceCardScannerFrameHandler.ResultHandler
Continuously notified about HIC data detection results.
public abstract class
HealthInsuranceCardScannerFrameHandler.HealthInsuranceCardScannerResultHandler
Successor-class needed for cross-platform implementation
-
Constructor Summary
Constructors Constructor Description HealthInsuranceCardScannerFrameHandler(HealthInsuranceCardScanner healthInsuranceCardScanner)
-
Method Summary
Modifier and Type Method Description Boolean
handleFrame(FrameHandler.Frame previewFrame)
Invoked for every new camera preview frame. final Unit
addResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)
Registers result handler which will be notified about HIC data detection results. final Unit
removeResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)
Unregisters handler. final static HealthInsuranceCardScannerFrameHandler
attach(IScanbotCameraView cameraView, HealthInsuranceCardScanner healthInsuranceCardScanner)
Convenience method for creating new HealthInsuranceCardScannerFrameHandler and adding it as FrameHandler to given camera view. -
-
Constructor Detail
-
HealthInsuranceCardScannerFrameHandler
HealthInsuranceCardScannerFrameHandler(HealthInsuranceCardScanner healthInsuranceCardScanner)
-
-
Method Detail
-
handleFrame
@Synchronized() Boolean handleFrame(FrameHandler.Frame previewFrame)
Invoked for every new camera preview frame.
- Parameters:
previewFrame
- captured preview frame data
-
addResultHandler
final Unit addResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)
Registers result handler which will be notified about HIC data detection results.
Results are coming on the worker thread. Don't forget to move execution to main thread before updating UI.
- Parameters:
handler
- handler to register.
-
removeResultHandler
final Unit removeResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)
Unregisters handler.
- Parameters:
handler
- handler to unregister.
-
attach
final static HealthInsuranceCardScannerFrameHandler attach(IScanbotCameraView cameraView, HealthInsuranceCardScanner healthInsuranceCardScanner)
Convenience method for creating new HealthInsuranceCardScannerFrameHandler and adding it as FrameHandler to given camera view.
- Parameters:
cameraView
- camera view to which new HIC data detector will be attached
-
-
-
-