(
ctx: click.Context,
threshold: float | None,
min_content_val: float | None,
frame_window: int | None,
weights: tuple[float, float, float, float] | None,
luma_only: bool,
kernel_size: int | None,
min_scene_len: str | None,
)
| 715 | ) |
| 716 | @click.pass_context |
| 717 | def detect_adaptive_command( |
| 718 | ctx: click.Context, |
| 719 | threshold: float | None, |
| 720 | min_content_val: float | None, |
| 721 | frame_window: int | None, |
| 722 | weights: tuple[float, float, float, float] | None, |
| 723 | luma_only: bool, |
| 724 | kernel_size: int | None, |
| 725 | min_scene_len: str | None, |
| 726 | ): |
| 727 | ctx = ctx.obj |
| 728 | assert isinstance(ctx, CliContext) |
| 729 | detector_args = ctx.get_detect_adaptive_params( |
| 730 | threshold=threshold, |
| 731 | min_content_val=min_content_val, |
| 732 | frame_window=frame_window, |
| 733 | luma_only=luma_only, |
| 734 | min_scene_len=min_scene_len, |
| 735 | weights=weights, |
| 736 | kernel_size=kernel_size, |
| 737 | ) |
| 738 | ctx.add_detector(AdaptiveDetector, detector_args) |
| 739 | |
| 740 | |
| 741 | DETECT_THRESHOLD_HELP = """Find fade in/out using averaging. |
nothing calls this directly
no test coverage detected