HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.51k stars 6.27k forks source link

in generateColorByText: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) #364

Closed yangulei closed 5 years ago

yangulei commented 6 years ago

Thanks for sharing this useful tool 👍 I have some Chinese names in the file "predefined_classes.txt". At first, I just open "predefined_classes.txt" with Windows' notepad and type in the names, but I got the errors as below: 1 then I save the "predefined_classes.txt" with UTF-8 encoding. The app opened successfully, then I began to label the objects, I draw a box and the Chinese name list popup as it should be, but when I select a name by double click, I got the errors below: 2 I can still continue to label more objects, but none of them will be saved, the "Save" button is in gray and the Box Labels list is empty: 3

liuyiyiyiyi commented 5 years ago

Have you saved the problem?

zhuolyang commented 5 years ago

Hello, have you solved this problem? I have encountered the same problem

tzutalin commented 5 years ago

Did u still meet the issue? It should be fixed already if u uses the latest version

yangulei commented 5 years ago

@tzutalin I tried the new Windows v1.8.1 release, it works fine now, big thanks! You can close this issue now.

@liuyiyiyiyi @zhuolyang The latest release works fine with Chinese labels now, just don't forget to save the "predefined_classes.txt" with UTF-8 encoding.

tzutalin commented 5 years ago

Thanks for verifying

liuyiyiyiyi commented 5 years ago

Thank you.The latest relase is ok.

OnFleeks commented 2 years ago

pardon but i have the same problem with vietnamese character, could you please have a look

sw0965 commented 2 years ago

I changed 'open dir' path (only ENGLISH) and it works now.