Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GrwyYJ opened this issue May 14, 2024 · 4 comments
Closed

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

GrwyYJ opened this issue May 14, 2024 · 4 comments
Labels
question Further information is requested

Comments

@GrwyYJ
Copy link

GrwyYJ commented May 14, 2024

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

@CVHub520
Copy link
Owner

@CVHub520 CVHub520 added the question Further information is requested label May 14, 2024
@GrwyYJ
Copy link
Author

GrwyYJ commented May 14, 2024

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

@GrwyYJ GrwyYJ closed this as completed May 14, 2024
@GrwyYJ GrwyYJ reopened this May 14, 2024
@GrwyYJ GrwyYJ closed this as completed May 18, 2024
@GrwyYJ
Copy link
Author

GrwyYJ commented Jun 4, 2024

解决方案:
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 CVHub520 reopened this Jun 4, 2024
@CVHub520
Copy link
Owner

CVHub520 commented Jun 4, 2024

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.

@GrwyYJ GrwyYJ closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants