(tlista, tlistb)
| 374 | return output_stracks |
| 375 | |
| 376 | def 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 | |
| 389 | def sub_stracks(tlista, tlistb): |
| 390 | stracks = {} |