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

Function _get_cv2_param

scenedetect/platform.py:109–115  ·  view source on GitHub ↗
(param_name: str)

Source from the content-addressed store, hash-verified

107 """
108
109 def _get_cv2_param(param_name: str) -> int | None:
110 if param_name.startswith("CV_"):
111 param_name = param_name[3:]
112 try:
113 return getattr(cv2, param_name)
114 except AttributeError:
115 return None
116
117 return {
118 "jpg": _get_cv2_param("IMWRITE_JPEG_QUALITY"),

Callers 1

get_cv2_imwrite_paramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected