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

Function test_writer_crop

tests/test_video.py:117–122  ·  view source on GitHub ↗
(tmp_path, video_clip)

Source from the content-addressed store, hash-verified

115
116
117def test_writer_crop(tmp_path, video_clip):
118 x1, x2, y1, y2 = 0, 50, 0, 100
119 video_clip.set_bbox(x1, x2, y1, y2)
120 file = video_clip.crop(dest_folder=str(tmp_path))
121 vid = VideoWriter(file)
122 assert vid.dimensions == (x2 - x1, y2 - y1)
123
124
125@pytest.mark.parametrize("target_height", [200, 177])

Callers

nothing calls this directly

Calls 3

VideoWriterClass · 0.90
set_bboxMethod · 0.80
cropMethod · 0.45

Tested by

no test coverage detected