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

Method get_detect_hist_params

scenedetect/_cli/context.py:421–434  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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,

Callers 2

handle_optionsMethod · 0.95
detect_hist_commandFunction · 0.80

Calls 2

get_valueMethod · 0.80

Tested by

no test coverage detected