MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / joint_stracks

Function joint_stracks

tutorials/transtrack/mot_online/byte_tracker.py:304–315  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

302
303
304def joint_stracks(tlista, tlistb):
305 exists = {}
306 res = []
307 for t in tlista:
308 exists[t.track_id] = 1
309 res.append(t)
310 for t in tlistb:
311 tid = t.track_id
312 if not exists.get(tid, 0):
313 exists[tid] = 1
314 res.append(t)
315 return res
316
317
318def sub_stracks(tlista, tlistb):

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected