MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / test_reader_read_frame

Function test_reader_read_frame

tests/test_video.py:76–82  ·  view source on GitHub ↗
(video_clip, shrink, crop)

Source from the content-addressed store, hash-verified

74
75@pytest.mark.parametrize("shrink, crop", [(1, False), (1, True), (2, False), (2, True)])
76def test_reader_read_frame(video_clip, shrink, crop):
77 if crop:
78 video_clip.set_bbox(0, 0.5, 0, 0.5, relative=True)
79 frame = video_clip.read_frame(shrink, crop)
80 height, width, _ = frame.shape
81 assert height == video_clip.height // shrink
82 assert width == video_clip.width // shrink
83
84
85def test_writer_bbox(video_clip):

Callers

nothing calls this directly

Calls 2

set_bboxMethod · 0.80
read_frameMethod · 0.80

Tested by

no test coverage detected