wkentaro / labelme

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

Optimize label\shape.py #1460

Closed PairZhu closed 3 months ago

PairZhu commented 4 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 4 months ago

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

wkentaro commented 3 months ago

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