cvat icon indicating copy to clipboard operation
cvat copied to clipboard

Request for polygon merging.

Open yuanyuangoo opened this issue 2 years ago • 9 comments

Can we have a button to merge multiple polygons into one polygon?

yuanyuangoo avatar Sep 27 '22 20:09 yuanyuangoo

Hi @yuanyuangoo

Polygon can be only grouped within one frame. In exported annotations grouped objects have the same group_id identifier. Please, refer to documentation: https://opencv.github.io/cvat/docs/manual/advanced/shape-grouping/

Also there is a feature under active development #4543, like Paint & Brush tools. It uses binary masks instead of vector shapes and it does not have such restrictions like polygons.

I hope it will help, I will close the issue.

bsekachev avatar Sep 28 '22 06:09 bsekachev

@yuanyuangoo , could you please give us an idea what you mean? How do you want to merge them?

nmanovic avatar Sep 28 '22 06:09 nmanovic

#774

bsekachev avatar Sep 28 '22 06:09 bsekachev

@nmanovic Hi, like if I only want to merge two polygons that partly overlapped, it would delete two polygons and create a new polygon that would be the union of the two old polygons. Grouping just makes them very messy, and I cannot send them to the background or foreground together.

It is useful when I label a big object, and I want to add more area to the labeled object. Which point is the starting point would not be an issue for me.

yuanyuangoo avatar Sep 28 '22 19:09 yuanyuangoo

I am +1 for this issue, being able to merge objects in 1 frame into a common object would be helpful. Eg some toolits only allow instance-segmentation (differentiate between instances, eg apple1, apple2), and not semantic segmentation (you only differentiate the class/type of objects - apple/orange). So by merging objects manually in CVAT dataset we can implement "semantic segmentation" even using only instance-segmentation toolkits.

breznak avatar Oct 01 '22 21:10 breznak

@yuanyuangoo, @breznak, how do you think, would it be useful for annotators to be able to work with grouped objects like we can in vector image editors (CorelDraw, Adobe Illustrator, Inkscape) or other tools (like Google Presentations, Word, or PowerPoint)? I mean, to work with a group just like a single object (select by 1 click, move all elements to bg/fg, drag by mouse, resize etc.), while still being able to work with separate objects by a ctrl+click?

zhiltsov-max avatar Oct 07 '22 10:10 zhiltsov-max

Hi, this idea is helpful for semantic segmentation, which would work for me. But it would work for instance segmentation if I want to add a part to a labeled object when labeling a big thing.

yuanyuangoo avatar Oct 09 '22 18:10 yuanyuangoo

Hi, this idea is helpful for semantic segmentation, which would work for me. But it would work for instance segmentation if I want to add a part to a labelled object when labelling a big thing.


From: Maxim Zhiltsov @.> Sent: 07 October 2022 23:15 To: opencv/cvat @.> Cc: Alan Shangguan @.>; Mention @.> Subject: Re: [opencv/cvat] Request for polygon merging. (Issue #5006)

@yuanyuangoohttps://github.com/yuanyuangoo, @breznakhttps://github.com/breznak, how do you think, would it be useful for annotators to be able to work with grouped objects like we can in vector image editors (CorelDraw, Adobe Illustrator, Inkscape) or other tools (like Google Presentations, Word, or PowerPoint)? I mean, to work with a group just like a single object (select by 1 click, move all elements to bg/fg, drag by mouse, resize etc.), while still being able to work with separate objects by a ctrl+click?

— Reply to this email directly, view it on GitHubhttps://github.com/opencv/cvat/issues/5006#issuecomment-1271402735, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC5SJ53GAM4667GXGFW3KQ3WB7Z3RANCNFSM6AAAAAAQXDX43Y. You are receiving this because you were mentioned.Message ID: @.***>

yuanyuangoo avatar Oct 11 '22 09:10 yuanyuangoo

I'd also find this function incredibly useful (I used it extensively in with other tools, e.g. V7, and I think it's a great functionality). And having it in the polygon tool rather than in a brush-like tool would be great.

Fraccalo avatar Oct 17 '22 11:10 Fraccalo

@Fraccalo , we have added a brush tool. Probably it will help a little bit with your use case: https://opencv.github.io/cvat/docs/manual/advanced/annotation-with-brush-tool/

nmanovic avatar Jan 04 '23 16:01 nmanovic