Handle detect-hist command options and return args to construct one with.
(
self,
threshold: float | None = None,
bins: int | None = None,
min_scene_len: str | None = None,
)
| 419 | } |
| 420 | |
| 421 | def get_detect_hist_params( |
| 422 | self, |
| 423 | threshold: float | None = None, |
| 424 | bins: int | None = None, |
| 425 | min_scene_len: str | None = None, |
| 426 | ) -> dict[str, ty.Any]: |
| 427 | """Handle detect-hist command options and return args to construct one with.""" |
| 428 | |
| 429 | min_scene_len_frames = self._resolve_min_scene_len("detect-hist", min_scene_len) |
| 430 | return { |
| 431 | "bins": self.config.get_value("detect-hist", "bins", bins), |
| 432 | "min_scene_len": min_scene_len_frames, |
| 433 | "threshold": self.config.get_value("detect-hist", "threshold", threshold), |
| 434 | } |
| 435 | |
| 436 | def get_detect_hash_params( |
| 437 | self, |
no test coverage detected