Test opening an image sequence. Currently, only VideoStreamCv2 supports this.
(test_image_sequence: str)
| 27 | |
| 28 | |
| 29 | def 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 | |
| 41 | def test_capture_adapter(test_movie_clip: str): |
nothing calls this directly
no test coverage detected