labelmeai / labelme

Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).
https://labelme.io
Other
13.11k stars 3.37k forks source link

Optimize label\shape.py #1460

Closed PairZhu closed 1 month ago

PairZhu commented 2 months ago

Optimized the rendering logic of shapes so that the thickness of shape lines and crosshair remains consistent on the screen regardless of the zoom level.

Additionally, another advantage is that shapes do not become distorted when the x and y axes have different scaling ratios (this is useful in my project, but such a requirement is uncommon, so the related changes have not been uploaded).

PairZhu commented 2 months ago

The first CI failure doesn't seem to be caused by my code, can you check the cause? @wkentaro

wkentaro commented 1 month ago

Reopened in https://github.com/labelmeai/labelme/pull/1471