label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Segmentation: merge multiple PolygonLabels to one annotation

Open JSchuerz opened this issue 2 years ago • 1 comments

It would be nice to be able to 'merge' multiple PolygonLabels to one annotation, e.g. in Coco formate: segmentation: [[0, 0, 1, 1, 1, 0], [2, 2, 2, 3, 3, 3]] i.e. two unconnected triangles belong to one annotation.

This is especially convenient for Instance Segmentation, where one annotation describes the mask of one instance (which does not need to be connected...)

If this is already implemented, please hint me towards some documentation - but I haven't found any on the website.

JSchuerz avatar Jul 30 '22 11:07 JSchuerz

@JSchuerz no, it's not implemented yet and contributions are highly appreciated! You can do it in the converter module. e.g. in this place: https://github.com/heartexlabs/label-studio-converter/blob/master/label_studio_converter/converter.py#L436

makseq avatar Jul 31 '22 22:07 makseq