Add the ability to draw shapes outside of the image #1777
minewilliam
started this conversation in
Ideas / Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Proposed in the rectangle rotate function feature, follow-up from discussion #1374 (comment).
Discussion about drawing polygons outside of the canvas for the purpose of adding image padding: #1075
Question about drawing points outside of the canvas: #1404
Description
It makes sense for some shapes to be drawn partially outside of the image (circle, rectangle, rotated rectangle), since some models can make predictions on occluded/partial objects.
Requirement
Add a user setting to allow/prevent this behavior.
I would opt for a setting entry for each shape type, to set whether it can be drawn outside the canvas.
Behavior
Change to circle shape
By default, I would opt to change the current behavior of the
circleshape, since I believe it does not benefit to being restricted to the boundaries of the canvas.Loading annotations that are outside the image
We must handle the loading of previously annotated shapes, which may reside outside of the canvas. The expected behavior is to do nothing and leave the shapes as they are; Only apply the restriction when the user draws/drags a shape/vertex.
ctrl + z) action should correctly revert a modified shape/vertex and place it back outside of the canvas, if such was the case.Drag group of shapes
While dragging a group of shapes, only the shapes with a restriction are tested against the boundaries of the image.
Acknowledgements
maskshape type would be quite difficult to implement this way, thus it is excluded from this setting. If such a feature is necessary, a separate, more complex feature should be proposed.Questions
allow_drawing_outside?Beta Was this translation helpful? Give feedback.
All reactions