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