(tlista, tlistb)
| 329 | return output_stracks |
| 330 | |
| 331 | def 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 | |
| 344 | def sub_stracks(tlista, tlistb): |
| 345 | stracks = {} |