MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / get_detect_hash_params

Method get_detect_hash_params

scenedetect/_cli/context.py:436–451  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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

Callers 2

handle_optionsMethod · 0.95
detect_hash_commandFunction · 0.80

Calls 2

get_valueMethod · 0.80

Tested by

no test coverage detected