MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / test_read

Method test_read

tests/test_video_stream.py:156–163  ·  view source on GitHub ↗

Validate basic `read` functionality.

(self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters)

Source from the content-addressed store, hash-verified

154 )
155
156 def test_read(self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters):
157 """Validate basic `read` functionality."""
158 stream = vs_type(test_video.path)
159 frame = stream.read()
160 assert isinstance(frame, numpy.ndarray)
161 # For now hard-code 3 channels/pixel for each test video
162 assert frame.shape == (test_video.height, test_video.width, 3)
163 assert stream.frame_number == 1
164
165 def test_read_no_decode(
166 self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected