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

Function joint_stracks

tutorials/fairmot/tracker.py:415–426  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

413
414
415def joint_stracks(tlista, tlistb):
416 exists = {}
417 res = []
418 for t in tlista:
419 exists[t.track_id] = 1
420 res.append(t)
421 for t in tlistb:
422 tid = t.track_id
423 if not exists.get(tid, 0):
424 exists[tid] = 1
425 res.append(t)
426 return res
427
428
429def sub_stracks(tlista, tlistb):

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected