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

Function joint_stracks

tutorials/jde/byte_tracker.py:331–342  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

329 return output_stracks
330
331def joint_stracks(tlista, tlistb):
332 exists = {}
333 res = []
334 for t in tlista:
335 exists[t.track_id] = 1
336 res.append(t)
337 for t in tlistb:
338 tid = t.track_id
339 if not exists.get(tid, 0):
340 exists[tid] = 1
341 res.append(t)
342 return res
343
344def sub_stracks(tlista, tlistb):
345 stracks = {}

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected