Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle bounding boxes on the edge properly #3

Closed
shoumikchow opened this issue May 3, 2021 · 3 comments · Fixed by #8
Closed

Handle bounding boxes on the edge properly #3

shoumikchow opened this issue May 3, 2021 · 3 comments · Fixed by #8
Labels
good first issue Good for newcomers

Comments

@shoumikchow
Copy link
Owner

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.

@shreyasvedpathak
Copy link
Contributor

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

@shoumikchow
Copy link
Owner Author

Absolutely! Feel free to fork and submit a PR.

@shreyasvedpathak
Copy link
Contributor

Please check #8

@shoumikchow shoumikchow linked a pull request Mar 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants