public class DocumentAutoSnappingController
Controls auto-snapping for a document based on it's detected contours.
detachpublic static io.scanbot.sdk.contourdetector.DocumentAutoSnappingController.Companion Companion
public DocumentAutoSnappingController(@NotNull
io.scanbot.sdk.ui.camera.IScanbotCameraView cameraView,
@NotNull
ContourDetectorFrameHandler contourDetectorFrameHandler)
cameraView - cameraView to attach this new instance tocontourDetectorFrameHandler - public void detach()
@JvmStatic @NotNull public static DocumentAutoSnappingController attach(@NotNull io.scanbot.sdk.ui.camera.IScanbotCameraView cameraView, @NotNull io.scanbot.sdk.core.contourdetector.ContourDetector contourDetector)
Convenience method for attaching class DocumentAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of
class DocumentAutoSnappingController. You can manually enable or disable auto-snapping by setting
DocumentAutoSnappingController.isEnabled.
cameraView - cameraView to attach tocontourDetector - contourDetector to process frames and get live detection resultsclass DocumentAutoSnappingControllerclass DocumentAutoSnappingController,
class DocumentAutoSnappingController,
detach@JvmStatic @NotNull public static DocumentAutoSnappingController attach(@NotNull io.scanbot.sdk.ui.camera.IScanbotCameraView cameraView, @NotNull ContourDetectorFrameHandler frameHandler)
Convenience method for attaching class DocumentAutoSnappingController to IScanbotCameraView
Auto-snapping is enabled by default as soon as you create new instance of
class DocumentAutoSnappingController. You can manually enable or disable auto-snapping by setting
DocumentAutoSnappingController.isEnabled.
cameraView - cameraView to attach toframeHandler - contourDetectorFrameHandler to process frames and get live detection resultsclass DocumentAutoSnappingControllerclass DocumentAutoSnappingController,
class DocumentAutoSnappingController,
detach