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

Function detect_hash_command

scenedetect/_cli/__init__.py:948–960  ·  view source on GitHub ↗
(
    ctx: click.Context,
    threshold: float | None,
    size: int | None,
    lowpass: int | None,
    min_scene_len: str | None,
)

Source from the content-addressed store, hash-verified

946)
947@click.pass_context
948def detect_hash_command(
949 ctx: click.Context,
950 threshold: float | None,
951 size: int | None,
952 lowpass: int | None,
953 min_scene_len: str | None,
954):
955 ctx = ctx.obj
956 assert isinstance(ctx, CliContext)
957 detector_args = ctx.get_detect_hash_params(
958 threshold=threshold, size=size, lowpass=lowpass, min_scene_len=min_scene_len
959 )
960 ctx.add_detector(HashDetector, detector_args)
961
962
963LOAD_SCENES_HELP = """Load scenes from CSV instead of detecting. Can be used with CSV generated by `list-scenes`. Scenes are loaded using the specified column as cut locations (frame number or timecode).

Callers

nothing calls this directly

Calls 2

add_detectorMethod · 0.45

Tested by

no test coverage detected