-
public class DocumentAutoSnappingController.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static DocumentAutoSnappingController.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final DocumentAutoSnappingControllerattach(IScanbotCameraView cameraView, ContourDetector contourDetector)Convenience method for attaching DocumentAutoSnappingController to IScanbotCameraViewAuto-snapping is enabled by default as soon as you create new instance of DocumentAutoSnappingController. final DocumentAutoSnappingControllerattach(IScanbotCameraView cameraView, ContourDetectorFrameHandler frameHandler)Convenience method for attaching DocumentAutoSnappingController to IScanbotCameraViewAuto-snapping is enabled by default as soon as you create new instance of DocumentAutoSnappingController. -
-
Method Detail
-
attach
final DocumentAutoSnappingController attach(IScanbotCameraView cameraView, ContourDetector contourDetector)
Convenience method for attaching DocumentAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of DocumentAutoSnappingController. You can manually enable or disable auto-snapping by setting DocumentAutoSnappingController.isEnabled.
- Parameters:
cameraView- cameraView to attach tocontourDetector- contourDetector to process frames and get live detection results
-
attach
final DocumentAutoSnappingController attach(IScanbotCameraView cameraView, ContourDetectorFrameHandler frameHandler)
Convenience method for attaching DocumentAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of DocumentAutoSnappingController. You can manually enable or disable auto-snapping by setting DocumentAutoSnappingController.isEnabled.
- Parameters:
cameraView- cameraView to attach toframeHandler- contourDetectorFrameHandler to process frames and get live detection results
-
-
-
-