(
ctx: click.Context,
threshold: float | None,
fade_bias: float | None,
add_last_scene: bool,
min_scene_len: str | None,
)
| 795 | ) |
| 796 | @click.pass_context |
| 797 | def 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 | |
| 815 | DETECT_HIST_HELP = """Find fast cuts by differencing YUV histograms. |
nothing calls this directly
no test coverage detected