Cartucho / OpenLabeling

Label images and video for Computer Vision applications
Apache License 2.0
926 stars 266 forks source link

[Windows] Double display on command prompt - Possible solution #72

Closed koufopoulosf closed 3 years ago

koufopoulosf commented 4 years ago

I have anaconda installed on my Windows 10 desktop. I installed OpenLabeling and it was working just fine. Sometimes, when I loaded some images on the input(empty file) and the .txt annotations (from an already annotated dataset) on the output(empty file), to see if I could see the annotation work from ready datasets, the program crashed and I had to restart the command prompt again.

Doing these experiments to find out how OpenLabeling works, for some unknown reason, it started displaying the image paths twice. Everytime I press "a", "d", "w" and "s" to change image or label, it displays twice the path name which is pretty annoying if you have to work on OpenLabeling for many hours.

You can see below how it looks like:

anaconda_prompt_image_labeling

On the other hand, on Virtual Machine (Linux Mint) it works pretty good, added the zoom in/zoom out feature which doesn't exist when using Windows. Although when holding left click to move the image (when zoomed in), it starts to create an bounding box which you have to remove later.

I believe OpenLabeling is by far the best labeling tool!!

I would appreciate a solution to this "double-show-path&class" problem.

Thanks in advance!

EDIT: I don't have this problem with this older version of OpenLabeling: https://github.com/rcabg/OpenLabeling

FINAL EDIT: Comparing the previous code (run.py from https://github.com/rcabg/OpenLabeling) a possible solution I found was to comment the lines:

1125 set_img_index(img_index)

1135 set_class_index(class_index)

on main.py. I realised it because it was only double displaying image and class names.

Please confirm it doesn't affect the code.

Also, I find it more elegant to change the lines:

FROM: 1066 # initialize 1067 set_img_index(0) 1068 edges_on = False 1069 1070 display_text('Welcome!\n Press [h] for help.', 4000)

first

TO: 1066 display_text('Welcome to OpenLabeling!\nPress [h] for help.\n', 4000) 1067 1068 # initialize 1069 set_img_index(0) 1070 edges_on = False

second

I look forward for someone to confirm that these changes do not affect the code.

We owe to evolve the code! Thank you!