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

Function joint_stracks

tutorials/centertrack/byte_tracker.py:312–323  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

310
311
312def joint_stracks(tlista, tlistb):
313 exists = {}
314 res = []
315 for t in tlista:
316 exists[t.track_id] = 1
317 res.append(t)
318 for t in tlistb:
319 tid = t.track_id
320 if not exists.get(tid, 0):
321 exists[tid] = 1
322 res.append(t)
323 return res
324
325
326def sub_stracks(tlista, tlistb):

Callers 1

stepMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected