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

Function detect_threshold_command

scenedetect/_cli/__init__.py:797–812  ·  view source on GitHub ↗
(
    ctx: click.Context,
    threshold: float | None,
    fade_bias: float | None,
    add_last_scene: bool,
    min_scene_len: str | None,
)

Source from the content-addressed store, hash-verified

795)
796@click.pass_context
797def detect_threshold_command(
798 ctx: click.Context,
799 threshold: float | None,
800 fade_bias: float | None,
801 add_last_scene: bool,
802 min_scene_len: str | None,
803):
804 ctx = ctx.obj
805 assert isinstance(ctx, CliContext)
806 detector_args = ctx.get_detect_threshold_params(
807 threshold=threshold,
808 fade_bias=fade_bias,
809 add_last_scene=add_last_scene,
810 min_scene_len=min_scene_len,
811 )
812 ctx.add_detector(ThresholdDetector, detector_args)
813
814
815DETECT_HIST_HELP = """Find fast cuts by differencing YUV histograms.

Callers

nothing calls this directly

Calls 2

add_detectorMethod · 0.45

Tested by

no test coverage detected