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

Function joint_stracks

tutorials/cstrack/byte_tracker.py:340–351  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

338
339
340def joint_stracks(tlista, tlistb):
341 exists = {}
342 res = []
343 for t in tlista:
344 exists[t.track_id] = 1
345 res.append(t)
346 for t in tlistb:
347 tid = t.track_id
348 if not exists.get(tid, 0):
349 exists[tid] = 1
350 res.append(t)
351 return res
352
353
354def sub_stracks(tlista, tlistb):

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected