Package 

Class BaseContourAutoSnappingController

  • All Implemented Interfaces:
    io.scanbot.sdk.camera.autosnapping.IAutoSnappingController

    
    public abstract class BaseContourAutoSnappingController
    extends BaseAutoSnappingController<BaseContourAutoSnappingController.Param>
                        

    Basic implementation for any contour-based auto-snap.

    In addition to BaseAutoSnappingController's logic also checks polygon displacement and DetectionResult status.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Boolean isEnabled
      private IAutoSnappingController.AutoSnappingStateListener stateListener
    • Method Summary

      Modifier and Type Method Description
      final Boolean getIsEnabled()
      final Unit setIsEnabled(Boolean isEnabled)
      final IAutoSnappingController.AutoSnappingStateListener getStateListener()
      final Unit setStateListener(IAutoSnappingController.AutoSnappingStateListener stateListener)
      final Unit setIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio) Flag to determine whether to treat DetectionResult.OK_BUT_BAD_ASPECT_RATIO status as DetectionResult.OK.
      • Methods inherited from class io.scanbot.sdk.autosnapping.BaseContourAutoSnappingController

        detach, setAutoSnappingCallback, setForceAutofocusBeforeSnap, setSensitivity, setShakeDetectionEnabled, trySnap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseContourAutoSnappingController

        BaseContourAutoSnappingController(IScanbotCameraView cameraView)