(
ctx: click.Context,
threshold: float | None,
size: int | None,
lowpass: int | None,
min_scene_len: str | None,
)
| 946 | ) |
| 947 | @click.pass_context |
| 948 | def 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 | |
| 963 | LOAD_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). |
nothing calls this directly
no test coverage detected