MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / detect_adaptive_command

Function detect_adaptive_command

scenedetect/_cli/__init__.py:717–738  ·  view source on GitHub ↗
(
    ctx: click.Context,
    threshold: float | None,
    min_content_val: float | None,
    frame_window: int | None,
    weights: tuple[float, float, float, float] | None,
    luma_only: bool,
    kernel_size: int | None,
    min_scene_len: str | None,
)

Source from the content-addressed store, hash-verified

715)
716@click.pass_context
717def detect_adaptive_command(
718 ctx: click.Context,
719 threshold: float | None,
720 min_content_val: float | None,
721 frame_window: int | None,
722 weights: tuple[float, float, float, float] | None,
723 luma_only: bool,
724 kernel_size: int | None,
725 min_scene_len: str | None,
726):
727 ctx = ctx.obj
728 assert isinstance(ctx, CliContext)
729 detector_args = ctx.get_detect_adaptive_params(
730 threshold=threshold,
731 min_content_val=min_content_val,
732 frame_window=frame_window,
733 luma_only=luma_only,
734 min_scene_len=min_scene_len,
735 weights=weights,
736 kernel_size=kernel_size,
737 )
738 ctx.add_detector(AdaptiveDetector, detector_args)
739
740
741DETECT_THRESHOLD_HELP = """Find fade in/out using averaging.

Callers

nothing calls this directly

Calls 2

add_detectorMethod · 0.45

Tested by

no test coverage detected