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

Function joint_stracks

tutorials/cstrack/tracker.py:382–393  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

380
381
382def joint_stracks(tlista, tlistb):
383 exists = {}
384 res = []
385 for t in tlista:
386 exists[t.track_id] = 1
387 res.append(t)
388 for t in tlistb:
389 tid = t.track_id
390 if not exists.get(tid, 0):
391 exists[tid] = 1
392 res.append(t)
393 return res
394
395
396def sub_stracks(tlista, tlistb):

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected