(stracksa, n_frame=10)
| 351 | |
| 352 | |
| 353 | def remove_fp_stracks(stracksa, n_frame=10): |
| 354 | remain = [] |
| 355 | for t in stracksa: |
| 356 | score_5 = t.score_list[-n_frame:] |
| 357 | score_5 = np.array(score_5, dtype=np.float32) |
| 358 | index = score_5 < 0.45 |
| 359 | num = np.sum(index) |
| 360 | if num < n_frame: |
| 361 | remain.append(t) |
| 362 | return remain |
| 363 |
nothing calls this directly
no outgoing calls
no test coverage detected