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

Interpolation of polygons #824

Closed
fywu85 opened this issue Nov 6, 2019 · 10 comments · Fixed by #1571
Closed

Interpolation of polygons #824

fywu85 opened this issue Nov 6, 2019 · 10 comments · Fixed by #1571
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@fywu85
Copy link

fywu85 commented Nov 6, 2019

I understand that by enabling dragging, I can move a polygon around by shifting it in X and Y directions. Similarly, is there a feature in CVAT that would also allow me to rotate the polygon?

@fywu85 fywu85 changed the title Can rotate polygon? Can we rotate polygon? Nov 6, 2019
@nmanovic
Copy link
Contributor

nmanovic commented Nov 6, 2019

@fywu85 , it is not possible. What is the reason for the request? Could you please describe your use case?

@nmanovic nmanovic added the question Further information is requested label Nov 6, 2019
@fywu85
Copy link
Author

fywu85 commented Nov 7, 2019

Say if I want to label an object in a video that rotates only in the image plane from frame to frame, e.g., a vehicle making a left turn, being able to rotate the object's polygon would be huge time saver. For example, one of my use cases is as follows:
image
Without rotation, I will need to readjust every point in the polygon in the previous frame to make it refit to the left turning vehicles in the current frame. With rotation, this operation will be almost instant.

@nmanovic
Copy link
Contributor

nmanovic commented Nov 8, 2019

@fywu85 , internally we have a prototype for interpolation of polygons between frames (as for bounding boxes). In the case it will work perfect. But it will take time to release it. Let me rename the issue. I'm not sure that the feature will be available in next release.

@nmanovic nmanovic changed the title Can we rotate polygon? Interpolation of polygons Nov 8, 2019
@nmanovic nmanovic added enhancement New feature or request and removed question Further information is requested labels Nov 8, 2019
@nmanovic nmanovic added this to the 1.0.0 - Beta milestone Nov 8, 2019
@fywu85
Copy link
Author

fywu85 commented Nov 9, 2019

Thank you for the info. That sounds great! In your knowledge, what would be the current best approach to label this? If I do not care about the precision of the boundary of the object, can I rotate or interpolate a bounding box to get a reasonable location label of a turning vehicle? Or, can I potentially use the semi-automatic segmentation feature here?

@nmanovic
Copy link
Contributor

@fywu85 , to do that efficiently need to wait interpolation of polygons. You can find technical resources on your side and we will give you ideas and a sample of code how it can be implemented inside CVAT.

@fywu85
Copy link
Author

fywu85 commented Nov 11, 2019

@nmanovic Thank you! That will be really helpful. Would you mind sharing with us your ideas on how to approach implementing this interpolation + rotation feature? If we succeed, we will be happy to contribute a PR (:

@bsekachev
Copy link
Member

@fywu85

Hi, as Nikita said, we have a prototype for interpolation of a poly shapes (not only polygons, by the way).
It can be found in cvat-core module which is expected to be a part of the tool in the nearest future (current production version CVAT mostly doesn't work with this module).

  • Our JavaScript client-side implementation can be found here
    It is based on stable marriage problem algorithm which is used to finding a matching of points between two shapes.
  • It doesn't work perfectly yet, but we suppose after some testing and adjustment it would be much better.
  • One more comment is that algorithm isn't implemented on the server part at all, so it is also need to write the same code in Python. But it isn't expected to be the most difficult thing here.

Glad to see your comments and ideas about how it can be improved.

@enavarro222
Copy link

I'm also very interested in this feature.

Thanks for your work on this soft !

@ekingedik
Copy link

Hello! We are also really interested in this feature. Is there a rough estimation when this functionality will be available?

Best,
Ekin

@bsekachev
Copy link
Member

We will try hard to implement it in this month.
But there aren't guarantees

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

Successfully merging a pull request may close this issue.

5 participants