CVHub520 / X-AnyLabeling

Effortless data labeling with AI support from Segment Anything and other awesome models.
GNU General Public License v3.0
3.04k stars 345 forks source link

能否设置点与线的大小与粗细 #413

Closed GrwyYJ closed 4 weeks ago

GrwyYJ commented 1 month ago

image 多边形起始点的大小与线的粗细能否设置的更小一点

CVHub520 commented 1 month ago

https://github.com/CVHub520/X-AnyLabeling/blob/main/anylabeling/views/labeling/shape.py

GrwyYJ commented 1 month ago

image 起始点能否缩小一点,或把外围扩大一圈的区域去除
标注者嫌点太大挡住标注目标了

GrwyYJ commented 4 weeks ago

解决方案: https://github.com/CVHub520/X-AnyLabeling/blob/main/anylabeling/views/labeling/shape.py 设置线粗细

            # Try using integer sizes for smoother drawing(?)
            # pen.setWidth(max(1, int(round(2.0 / self.scale))))
            # 固定设置线的粗细
            pen.setWidth(1)

与设置点大小

        # d = self.point_size / self.scale
        # 固定设置点的大小
        d = 1
CVHub520 commented 4 weeks ago

Hi!

Thank you for your feedback on setting the size and thickness for points and lines. We appreciate your input! 🌟

It looks like you've found a solution that works for you, and we're glad to hear that.

If you have any more suggestions or run into any other issues, feel free to let us know.