-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Added support of ellipses #4062
Conversation
…ong coordinate system)
@bsekachev , should we keep the shape size/position unchanged if some part of the shape is outside of a frame? Otherwise it is impossible to annotate some objects which are particularly outside of a frame. |
For now for all shapes where it is possible we cut shape if it is out of image. Should we cut ellipses or not is it a question. Probably we should (to keep consistensy), but we also need to add an ability to configure this behaviour for all the shapes. |
What is the major difference with rotated bounding boxes? From my point of view an ellipse shape and a rotated bounding box are very similar. I agree that it is better to configure the behavior but for some shapes like a rotated bounding box or an ellipse it is impossible to cut them without conversion to a polygon. Also could you please give me an example when the implemented behavior makes sense? |
For ellipses it was changed according to @nmanovic ideas. GIF just is not updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bsekachev , I will recommend to draw an ellipse as it is done by Photoshop and gimp by default. Looks like it is a better way for our scenarios as well. Draw an ellipse and try to annotate it using the current approach when an ellipse is drawing from a center. It will be difficult. Better to fit an ellipse into a virtual bounding box. Thus the interface can be similar to a bounding box but instead of a box, users will get an ellipse fitted into the box.
Need to say that graphical editors support both methods. The current behaviors is supported using ALT+CTRL. But I'm not sure that we need the second method. In real life it is very difficult to find a center of an object.
@bsekachev , another idea which is similar for rotated bounding boxes. Rotated shapes better to annotate using 4 points.Thus you can draw a rotated bounding box or fit an ellipse into it. BTW, how to rotate an ellipse? |
...rc/components/annotation-page/standard-workspace/controls-side-bar/draw-polyline-control.tsx
Outdated
Show resolved
Hide resolved
@bsekachev great job! What do you think about quick way to draw a circle? Usually we can hold |
There was default way to draw ellipses provided by the svg library. Now I redesigned it according to photoshop default way of drawing.
Actually it was disabled because nobody asked us about rotation of ellipses. Now, If you wish, I enabled it.
Agree, but it is a different feature where additional design stage is necessary for both bounding boxes and ellipses. |
That's interesting, but as far as I remember there were not such requests for bounding boxes for years. Maybe nobody needs it? And if we decide to implement the feature, it is probably better to do it for both bounding boxes and ellipses. |
@bsekachev , @klakhov , I agree that it is extremely rare case when you need circle or square. We are annotating real objects, not draw something on the canvas. P.S. 'bounding box', 'ellipse' should have mostly the same implementation. The only difference is representation (how we are drawing it and export to a file). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Guys, could you add a piece of documentation about the new supported type of shape? |
Hi, @dvkruchinin Could you please add some tests to ellipses? |
Hi @bsekachev, |
Hi @bsekachev, |
please help me, why I can't find the ellipse shape in the web version? how to add the ellipse shape? |
If you speak about cvat.org, the server was not updated yet. We are working on this, but it takes long time because of significant changes in CVAT. I hope the process will be finished the next week. |
Thank you, @bsekachev CVAT is the best tool among others with many features. We are looking forward to seeing the ellipse shape in the updated version. |
Motivation and context
Resolved #579
TODOs:
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.