Class CheckAutoSnappingController
-
- All Implemented Interfaces:
-
io.scanbot.sdk.camera.autosnapping.IAutoSnappingController
public final class CheckAutoSnappingController extends BaseAutoSnappingController<CheckAutoSnappingController.Param>
Controls auto-snapping for Check recognition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CheckAutoSnappingController.Param
Data holder for info needed for frame validation.
-
Constructor Summary
Constructors Constructor Description CheckAutoSnappingController(IScanbotCameraView cameraView, CheckRecognizerFrameHandler frameHandler)
CheckAutoSnappingController(IScanbotCameraView cameraView, CheckRecognizerFrameHandler checkFrameHandler, Boolean needDetachFromView)
-
Method Summary
Modifier and Type Method Description Unit
detach()
Allows to detach successor implementation class. final static CheckAutoSnappingController
attach(IScanbotCameraView cameraView, CheckRecognizer checkRecognizer)
Convenience method for attaching CheckAutoSnappingController to IScanbotCameraViewAuto-snapping is enabled by default as soon as you create new instance of CheckAutoSnappingController. final static CheckAutoSnappingController
attach(IScanbotCameraView cameraView, CheckRecognizerFrameHandler frameHandler)
Convenience method for attaching CheckAutoSnappingController to IScanbotCameraViewAuto-snapping is enabled by default as soon as you create new instance of CheckAutoSnappingController. -
-
Constructor Detail
-
CheckAutoSnappingController
CheckAutoSnappingController(IScanbotCameraView cameraView, CheckRecognizerFrameHandler frameHandler)
- Parameters:
cameraView
- cameraView to attach this new instance to
-
CheckAutoSnappingController
CheckAutoSnappingController(IScanbotCameraView cameraView, CheckRecognizerFrameHandler checkFrameHandler, 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 CheckAutoSnappingController attach(IScanbotCameraView cameraView, CheckRecognizer checkRecognizer)
Convenience method for attaching CheckAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of CheckAutoSnappingController. You can manually enable or disable auto-snapping by setting CheckAutoSnappingController.isEnabled.
- Parameters:
cameraView
- cameraView to attach tocheckRecognizer
- Check recognizer to process frames and get live detection results
-
attach
final static CheckAutoSnappingController attach(IScanbotCameraView cameraView, CheckRecognizerFrameHandler frameHandler)
Convenience method for attaching CheckAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of CheckAutoSnappingController. You can manually enable or disable auto-snapping by setting CheckAutoSnappingController.isEnabled.
- Parameters:
cameraView
- cameraView to attach toframeHandler
- CheckRecognizerFrameHandler to process frames and get live detection results
-
-
-
-