Handle detect-hash command options and return args to construct one with.
(
self,
threshold: float | None = None,
size: int | None = None,
lowpass: int | None = None,
min_scene_len: str | None = None,
)
| 434 | } |
| 435 | |
| 436 | def get_detect_hash_params( |
| 437 | self, |
| 438 | threshold: float | None = None, |
| 439 | size: int | None = None, |
| 440 | lowpass: int | None = None, |
| 441 | min_scene_len: str | None = None, |
| 442 | ) -> dict[str, ty.Any]: |
| 443 | """Handle detect-hash command options and return args to construct one with.""" |
| 444 | |
| 445 | min_scene_len_frames = self._resolve_min_scene_len("detect-hash", min_scene_len) |
| 446 | return { |
| 447 | "lowpass": self.config.get_value("detect-hash", "lowpass", lowpass), |
| 448 | "min_scene_len": min_scene_len_frames, |
| 449 | "size": self.config.get_value("detect-hash", "size", size), |
| 450 | "threshold": self.config.get_value("detect-hash", "threshold", threshold), |
| 451 | } |
| 452 | |
| 453 | # |
| 454 | # Private Methods |
no test coverage detected