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

Function joint_stracks

yolox/tracker/byte_tracker.py:292–303  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

290
291
292def joint_stracks(tlista, tlistb):
293 exists = {}
294 res = []
295 for t in tlista:
296 exists[t.track_id] = 1
297 res.append(t)
298 for t in tlistb:
299 tid = t.track_id
300 if not exists.get(tid, 0):
301 exists[tid] = 1
302 res.append(t)
303 return res
304
305
306def sub_stracks(tlista, tlistb):

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected