Class HealthInsuranceCardScannerFrameHandler
-
- All Implemented Interfaces:
@Deprecated(message = "Use DocumentDataExtractorFrameHandler 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
truefrom HealthInsuranceCardScannerFrameHandler.ResultHandler.handleResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHealthInsuranceCardScannerFrameHandler.ResultHandlerContinuously notified about HIC data detection results.
public abstract classHealthInsuranceCardScannerFrameHandler.HealthInsuranceCardScannerResultHandlerSuccessor-class needed for cross-platform implementation
-
Constructor Summary
Constructors Constructor Description HealthInsuranceCardScannerFrameHandler(HealthInsuranceCardScanner healthInsuranceCardScanner)
-
Method Summary
Modifier and Type Method Description BooleanhandleFrame(FrameHandler.Frame previewFrame)Invoked for every new camera preview frame. final UnitaddResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)Registers result handler which will be notified about HIC data detection results. final UnitremoveResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)Unregisters handler. final static HealthInsuranceCardScannerFrameHandlerattach(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
-
-
-
-