wkentaro / labelme

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

I find a bug when I edit polygons #541

Closed zemofreedom closed 4 years ago

zemofreedom commented 4 years ago

In edit polygons model, when i move one point to edge(espicially in right edge and down edge), the window will closed. If i move the boundingbox, it works well.

zemofreedom commented 4 years ago

I have solve the problem. It cause by the function outOfPixmap(canvas.py). When press and move the point, i will get the value over img_h and img_w. It also happens in move shapes. Only use offet to calulator the point after moving will get some error value in edge(like value small than 0 and value > w or h)

wkentaro commented 4 years ago

Can you send the solution as a PR?