MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / test_box_tracker

Function test_box_tracker

tests/test_trackingutils.py:79–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78
79def test_box_tracker():
80 bbox = 0, 0, 100, 100
81 tracker1 = trackingutils.BoxTracker(bbox)
82 tracker2 = trackingutils.BoxTracker(bbox)
83 assert tracker1.id != tracker2.id
84 tracker1.update(bbox)
85 assert tracker1.hit_streak == 1
86 state = tracker1.predict()
87 np.testing.assert_equal(bbox, state)
88 _ = tracker1.predict()
89 assert tracker1.hit_streak == 0
90
91
92def test_tracking_box(real_assemblies, real_tracklets):

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
predictMethod · 0.95

Tested by

no test coverage detected