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

Function joint_stracks

tutorials/motr/byte_tracker.py:289–300  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

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

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected