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

Function test_open_image_sequence

tests/test_backend_opencv.py:29–38  ·  view source on GitHub ↗

Test opening an image sequence. Currently, only VideoStreamCv2 supports this.

(test_image_sequence: str)

Source from the content-addressed store, hash-verified

27
28
29def test_open_image_sequence(test_image_sequence: str):
30 """Test opening an image sequence. Currently, only VideoStreamCv2 supports this."""
31 sequence = VideoStreamCv2(test_image_sequence, framerate=25.0)
32 assert sequence.is_seekable
33 assert sequence.frame_size[0] > 0 and sequence.frame_size[1] > 0
34 assert sequence.duration is not None
35 assert sequence.duration.frame_num == 30
36 assert sequence.read() is not False
37 sequence.seek(100)
38 assert sequence.position == 29
39
40
41def test_capture_adapter(test_movie_clip: str):

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
seekMethod · 0.95
VideoStreamCv2Class · 0.90

Tested by

no test coverage detected