offlinemot.utils_.detect_overlaping
- offlinemot.utils_.detect_overlaping(objects, overlap_thresh=0.5)[source]
Check if any object is overlaping within another in the list and delete one of them according to: 1) history length 2) detection probability 3) area respectively.
- Parameters
objects (list) – The list of objects instances with boxes attributes
overlap_thresh (float, optional) – A threshold of accepted overlaping ratio to the object area, before deleting one of the overlapped object (default is 0.5)
- Returns
The index of object that should be deleted or -1 if none should
- Return type
int