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

Rotated bounding boxes #28

Closed
ogencoglu opened this issue Dec 28, 2023 · 4 comments
Closed

Rotated bounding boxes #28

ogencoglu opened this issue Dec 28, 2023 · 4 comments
Assignees

Comments

@ogencoglu
Copy link

Thanks for the work!

If I understood correctly, this library works only on axis-aligned bounding boxes. Any plans on supporting rotated bounding boxes?

@Smirkey
Copy link
Owner

Smirkey commented Dec 29, 2023

Hi !
Yes I have this in mind too :) I'll add it in the future

@ogencoglu
Copy link
Author

ogencoglu commented Dec 30, 2023

Great! Especially fitting a rotated box to an arbitrarily shaped polygon would be super useful:

  1. one that maximizes Intersection over Union
  2. one that minimizes Hausdorff distance between contours
  3. one that minimizes the bbox area while encapsulating the whole polygon (e.g. standard bbox fit in opencv)

In fact, number 1 & 2 would already be relevant for the current axis-aligned bboxes.

@Smirkey Smirkey self-assigned this Jan 7, 2024
@Smirkey
Copy link
Owner

Smirkey commented Jan 21, 2024

Hi :)
Some support of rotated bounding boxes was added with #33 #37 and #43

fitting a rotated box to an arbitrarily shaped polygon would be super useful:

Regarding this, I'm not sure to add it in near future, since it involves taking polygons as input and it's not what I envisioned for the lib

@ogencoglu
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants