bbox-visualizer icon indicating copy to clipboard operation
bbox-visualizer copied to clipboard

Handle bounding boxes on the edge properly

Open shoumikchow opened this issue 4 years ago • 3 comments

Labels on the edge of the box aren't handled properly. If an object detection model detects an image at the edge of the frame, there is a chance that some portions of a bounding box is outside the frame itself. That is, some of xmin, xmax, ymin, ymax might be negative or larger than the image dimension itself. In cases like these, OpenCV handles it by not drawing the bounding box at all.

Ideally, it should draw the lines that are outside the image dimensions along the edge.

shoumikchow avatar May 03 '21 20:05 shoumikchow

Hey, I would like to try this issue. Can I go ahead?

shreyasvedpathak avatar Aug 18 '21 05:08 shreyasvedpathak

Absolutely! Feel free to fork and submit a PR.

shoumikchow avatar Aug 18 '21 05:08 shoumikchow

Please check #8

shreyasvedpathak avatar Aug 18 '21 11:08 shreyasvedpathak