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

Function test_writer_bbox

tests/test_video.py:85–92  ·  view source on GitHub ↗
(video_clip)

Source from the content-addressed store, hash-verified

83
84
85def test_writer_bbox(video_clip):
86 bbox = 0, 100, 0, 100
87 video_clip.set_bbox(*bbox)
88 assert video_clip.get_bbox() == bbox
89 with pytest.raises(ValueError):
90 video_clip.set_bbox(200, 100, 0, 100, relative=False)
91 video_clip.set_bbox(0, 1, 0, 1.01, relative=True)
92 assert video_clip.get_bbox(relative=True) == (0, 1, 0, 1)
93
94
95@pytest.mark.parametrize("start, end", [(0, 10), ("0:0", "0:10"), ("00:00:00", "00:00:10")])

Callers

nothing calls this directly

Calls 2

set_bboxMethod · 0.80
get_bboxMethod · 0.80

Tested by

no test coverage detected