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.15k stars 6.23k forks source link

encoding error #991

Open kiitio opened 1 year ago

kiitio commented 1 year ago

anaconda labelimg error Version: 1.8.6 Summary: LabelImg is a graphical image annotation tool and label object bounding boxes in images Home-page: https://github.com/tzutalin/labelImg Author: TzuTa Lin Author-email: tzu.ta.lin@gmail.com License: MIT license Location: e:\software\anaconda\envs\pytorch\lib\site-packages Requires: lxml, pyqt5 I open the dataset and it prompts me that the encoding is wrong: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 0: invalid start byte Then I convert the classes.txt of the data to utf-8 format, it still reported an error: UnicodeDecodeError: 'gbk' codec can't decode byte 0x8a in position 8: illegal multibyte sequence When I was coding in gbk, I was prompted to convert it to utf-8, and after I switched it, I was prompted to convert gbk

After receiving it, I would like to ask if you have any other annotation tools to share, which support the yolov5 txt annotation format

Sh9hid commented 1 year ago

Create a new conda environment. pip install /labelImg/tree/master/requirements /requirements-linux-python3.txt

chaohong100 commented 1 year ago

I want to train YOLO to recognize the direction of objects. For that, I need to annotate prominent corners and the line connecting two annotated boxes will indicate the direction. It would be helpful if the corner is positioned at the center of the annotated box, and if a cross is displayed at the center of the box. Additionally, the annotated box needs to be of a fixed size.

Sh9hid commented 1 year ago

For the annotated box to be of fixed size, the images need to be resized and it heavily depends on the quality of your dataset. For a cross you can use the Opencv library to drawmarker() at the center of bounding boxes and then you can center your corner around the cross.