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

Function joint_stracks

tutorials/ctracker/byte_tracker.py:293–304  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

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

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected