There seems to be an issue with certain objects in the label images generated by <labelme_export_json> when opened with PIL.Image.open, where the labels and pixels don't match up correctly. #1436
Labels
bug
issue
Provide environment information
Python 3.8.19
labelme 5.4.1
Pillow 10.1.0
What OS are you using?
Ubuntu 20.04.4
Describe the Bug
I found an interesting issue. The labels I annotated using Labelme appear normal in the PNG images generated by <labelme_export_json>, but when I open the label image using
<lbl = np.asarray(PIL.Image.open(label_png))>
, I notice that some pixel labels are incorrect. For example, the edges of some polygons or the centers of small objects have pixel label errors.Expected Behavior
I hope that PIL.Image.open(label_png) will display the same image as the one generated by labelme_export_json.
To Reproduce
No response
The text was updated successfully, but these errors were encountered: