(
ctx: click.Context,
threshold: float | None,
bins: int | None,
min_scene_len: str | None,
)
| 865 | ) |
| 866 | @click.pass_context |
| 867 | def detect_hist_command( |
| 868 | ctx: click.Context, |
| 869 | threshold: float | None, |
| 870 | bins: int | None, |
| 871 | min_scene_len: str | None, |
| 872 | ): |
| 873 | ctx = ctx.obj |
| 874 | assert isinstance(ctx, CliContext) |
| 875 | detector_args = ctx.get_detect_hist_params( |
| 876 | threshold=threshold, bins=bins, min_scene_len=min_scene_len |
| 877 | ) |
| 878 | ctx.add_detector(HistogramDetector, detector_args) |
| 879 | |
| 880 | |
| 881 | DETECT_HASH_HELP = """Find fast cuts using perceptual hashing. |
nothing calls this directly
no test coverage detected