labelme icon indicating copy to clipboard operation
labelme copied to clipboard

I use roboflow and find its smart polygon quite well.so labelme can support function like this.it will be nice

Open futureflsl opened this issue 3 years ago • 2 comments

Provide environment information

how roboflow develop smert polygon?

What OS are you using?

windows

Describe the Bug

how roboflow develop smert polygon?

Expected Behavior

No response

To Reproduce

No response

futureflsl avatar Oct 26 '22 12:10 futureflsl

There are 2 steps to realize the smart polygon feature.

Dragging a box, apply an segmentation model and the segmentation mask is obtained. Using cv::findContours(), convert the mask to the polygon. Using cv::approxPolyDP(), reduce the points of the polygon. https://docs.opencv.org/4.x/d3/dc0/group__imgproc__shape.html

For the interactive segmentation, it looks that EISeg can do the same thing. https://github.com/PaddlePaddle/PaddleSeg/blob/release/2.7/EISeg/README_EN.md

ryouchinsa avatar Dec 23 '22 22:12 ryouchinsa

I have not used roboflow so I don't know how good it is. I don't think a semantic segmentation model is really desired here since we have a local region and a lot of domains to segment. I think simply thresholding the selected region would do the work.

ndgnuh avatar Jul 03 '23 10:07 ndgnuh