X-AnyLabeling icon indicating copy to clipboard operation
X-AnyLabeling copied to clipboard

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

Open GrwyYJ opened this issue 1 year ago • 2 comments

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

GrwyYJ avatar May 14 '24 02:05 GrwyYJ

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

CVHub520 avatar May 14 '24 03:05 CVHub520

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

GrwyYJ avatar May 14 '24 06:05 GrwyYJ

解决方案: 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

GrwyYJ avatar Jun 04 '24 12:06 GrwyYJ

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.

CVHub520 avatar Jun 04 '24 12:06 CVHub520