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

Generalized 'Oriented Rectangle' with polygon for OpenCV:TrackerMIL #8454

Open
2 tasks done
JuliusLin opened this issue Sep 18, 2024 · 1 comment
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@JuliusLin
Copy link

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Is your feature request related to a problem? Please describe.

Currently, polygon can only perform track in interpolation style between key frames and lack of semi-auto tracking capability like 'Oriented Rectangle' used when clicking OpenCV icon from left sidebar then select Tracking:TrackerMIL. This make labeling for segmentation much difficult.
OpenCV should allow users to select number of points for polygon (or polyline), instead of restricting to (oriented) rectangle only, (oriented) rectangle is a special case of 4 points that form a rectangle, but if relax the the restriction and allow user to manually click a number of points for forming a polygon that would be perfect, because segmentation require higher precision using polygons.

Describe the solution you'd like

When click on OpenCV icon at left sidebar and select Tracking:TrackerMIL, OpenCV should allow users to select a number of points to form a polygon (or polyline), instead of restricting to (oriented) rectangle only, which is a special case of polygon.

Describe alternatives you've considered

No response

Additional context

No response

@JuliusLin JuliusLin added the enhancement New feature or request label Sep 18, 2024
@klakhov
Copy link
Contributor

klakhov commented Sep 20, 2024

Hi @JuliusLin, that could be good enhancement but I dont think we can implement it on our side.
All of the OpenCV features in CVAT rely on opencv-js (more about it here). Which is basically js bindings for c++ opencv library. The tracker feature in original opencv works only with rectangles (docs).

Maybe you can use our shapes converter feature to convert rect to polygons to edit them for more precision?

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

No branches or pull requests

2 participants