Image background color changed in GUI

Hi,

I am using GUI to label extracted frames. The original background color is red since the videos were recorded in the dark red environment. However, the background color changed to dark blue in the GUI, which is very difficult to label the black B6 mice. What causes this issue?

Thank you so much!

I think the cause of this issue is the images were read using matploblib which treats the image as RGB, while the images were stored using openCV which treats them as BGR. Thanks for pointing this issue. We will fix it in the next release. But if you add the following line after line 52 (which is im = cv2.imread(img)) in the labeling_toolbox.py file and reinstall the DLC will hopefully solve your problem.

im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)

Hope that solves the issue.
Thanks

2 Likes

Thank you so much! I will try this way and let you know if it is working.

this is now fixed in deeplabcut 2.0.5.1! You can simply pip install deeplabcut==2.0.5.1 to upgrade :slight_smile: