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

Function joint_stracks

tutorials/trades/byte_tracker.py:314–325  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

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

Callers 1

stepMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected