MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / cal_simi

Function cal_simi

tutorials/ctracker/test.py:90–91  ·  view source on GitHub ↗
(det_rect1, det_rect2)

Source from the content-addressed store, hash-verified

88 return float(i_s) / (s_1 + s_2 - i_s)
89
90def cal_simi(det_rect1, det_rect2):
91 return cal_iou(det_rect1.next_rect, det_rect2.curr_rect)
92
93def cal_simi_track_det(track, det_rect):
94 if(det_rect.curr_frame <= track.last_frame):

Callers

nothing calls this directly

Calls 1

cal_iouFunction · 0.85

Tested by

no test coverage detected