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

Function joint_stracks

tutorials/jde/tracker.py:376–387  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

374 return output_stracks
375
376def joint_stracks(tlista, tlistb):
377 exists = {}
378 res = []
379 for t in tlista:
380 exists[t.track_id] = 1
381 res.append(t)
382 for t in tlistb:
383 tid = t.track_id
384 if not exists.get(tid, 0):
385 exists[tid] = 1
386 res.append(t)
387 return res
388
389def sub_stracks(tlista, tlistb):
390 stracks = {}

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected