You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using box_non_max_merge to Merge YOLO Boxes? #2021
I have searched the Supervision issues and found no similar feature requests.
Question
Hello everyone,
maybe someone can help me out. I’m facing the following challenge: In my scene, a truck drives into an area and moves toward an unloading zone (always exactly one truck). However, YOLO returns multiple detection boxes for the same truck — for example parts of the trailer, the cab, or parts of the cargo. In principle the detection works, but I’d like to merge these boxes into a single one since they all overlap anyway.
In Supervision, I found the function box_non_max_merge(), which I think could solve this problem. However, the function doesn’t expect a Detections object but rather a 2D array of object detection predictions.
changed the title [-]Using box_non_max_merge to Merge YOLO Boxes – Is This the Correct Approach?[/-][+]Using `box_non_max_merge` to Merge YOLO Boxes – Is This the Correct Approach?[/+]on Jan 21, 2026
changed the title [-]Using `box_non_max_merge` to Merge YOLO Boxes – Is This the Correct Approach?[/-][+]Using `box_non_max_merge` to Merge YOLO Boxes?[/+]on Jan 21, 2026
Activity
DP1701 commentedon Nov 26, 2025
Okay, I should have searched the Doc more thoroughly. Everything is easier with:
If anyone ever faces the same challenge.
[-]Using box_non_max_merge to Merge YOLO Boxes – Is This the Correct Approach?[/-][+]Using `box_non_max_merge` to Merge YOLO Boxes – Is This the Correct Approach?[/+][-]Using `box_non_max_merge` to Merge YOLO Boxes – Is This the Correct Approach?[/-][+]Using `box_non_max_merge` to Merge YOLO Boxes?[/+]