Class MedicalCertificateAutoSnappingController
-
- All Implemented Interfaces:
-
io.scanbot.sdk.camera.autosnapping.IAutoSnappingController
public final class MedicalCertificateAutoSnappingController extends BaseAutoSnappingController<MedicalCertificateAutoSnappingController.Param>
Controls auto-snapping for Medical Certificate scanning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
MedicalCertificateAutoSnappingController.Param
Data holder for info needed for frame validation.
-
Constructor Summary
Constructors Constructor Description MedicalCertificateAutoSnappingController(IScanbotCameraView cameraView, MedicalCertificateFrameHandler frameHandler)
MedicalCertificateAutoSnappingController(IScanbotCameraView cameraView, MedicalCertificateFrameHandler medicalCertificateFrameHandler, Boolean needDetachFromView)
-
Method Summary
Modifier and Type Method Description Unit
detach()
Allows to detach successor implementation class. final static MedicalCertificateAutoSnappingController
attach(IScanbotCameraView cameraView, MedicalCertificateRecognizer medicalCertificateRecognizer)
Convenience method for attaching MedicalCertificateAutoSnappingController to IScanbotCameraViewAuto-snapping is enabled by default as soon as you create new instance of MedicalCertificateAutoSnappingController. final static MedicalCertificateAutoSnappingController
attach(IScanbotCameraView cameraView, MedicalCertificateFrameHandler frameHandler)
Convenience method for attaching MedicalCertificateAutoSnappingController to IScanbotCameraViewAuto-snapping is enabled by default as soon as you create new instance of MedicalCertificateAutoSnappingController. -
-
Constructor Detail
-
MedicalCertificateAutoSnappingController
MedicalCertificateAutoSnappingController(IScanbotCameraView cameraView, MedicalCertificateFrameHandler frameHandler)
- Parameters:
cameraView
- cameraView to attach this new instance to
-
MedicalCertificateAutoSnappingController
MedicalCertificateAutoSnappingController(IScanbotCameraView cameraView, MedicalCertificateFrameHandler medicalCertificateFrameHandler, Boolean needDetachFromView)
-
-
Method Detail
-
detach
Unit detach()
Allows to detach successor implementation class. To be called in place of usage when screen hierarchy is being destroyed.
-
attach
final static MedicalCertificateAutoSnappingController attach(IScanbotCameraView cameraView, MedicalCertificateRecognizer medicalCertificateRecognizer)
Convenience method for attaching MedicalCertificateAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of MedicalCertificateAutoSnappingController. You can manually enable or disable auto-snapping by setting MedicalCertificateAutoSnappingController.isEnabled.
- Parameters:
cameraView
- cameraView to attach tomedicalCertificateRecognizer
- Medical Certificate Recognizer to process frames and get live detection results
-
attach
final static MedicalCertificateAutoSnappingController attach(IScanbotCameraView cameraView, MedicalCertificateFrameHandler frameHandler)
Convenience method for attaching MedicalCertificateAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of MedicalCertificateAutoSnappingController. You can manually enable or disable auto-snapping by setting MedicalCertificateAutoSnappingController.isEnabled.
- Parameters:
cameraView
- cameraView to attach toframeHandler
- MedicalCertificateFrameHandler to process frames and get live detection results
-
-
-
-