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

Method frame_size

scenedetect/backends/opencv.py:463–468  ·  view source on GitHub ↗

Reported size of each video frame in pixels as a tuple of (width, height).

(self)

Source from the content-addressed store, hash-verified

461
462 @property
463 def frame_size(self) -> tuple[int, int]:
464 """Reported size of each video frame in pixels as a tuple of (width, height)."""
465 return (
466 math.trunc(self._cap.get(cv2.CAP_PROP_FRAME_WIDTH)),
467 math.trunc(self._cap.get(cv2.CAP_PROP_FRAME_HEIGHT)),
468 )
469
470 @property
471 def duration(self) -> FrameTimecode | None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected