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