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

Method from_config

scenedetect/_cli/config.py:260–266  ·  view source on GitHub ↗
(config_value: str, default: "KernelSizeValue")

Source from the content-addressed store, hash-verified

258
259 @staticmethod
260 def from_config(config_value: str, default: "KernelSizeValue") -> "KernelSizeValue":
261 try:
262 return KernelSizeValue(int(config_value))
263 except ValueError as ex:
264 raise OptionParseFailure(
265 "Value must be an odd integer greater than 1, or set to -1 for auto kernel size."
266 ) from ex
267
268
269class EscapedString(ValidatedValue):

Callers

nothing calls this directly

Calls 2

KernelSizeValueClass · 0.85
OptionParseFailureClass · 0.85

Tested by

no test coverage detected