opencv-python: Opencv imshow() not showing icons
System information
OS: Ubutun 16.04 Container: Yes created with singularity 3.2.1 Pylibfreenect2 installation: Installed with pip Python version: 3.7 Virtual environment: Conda Enviroment
Problem description
When running the pylibfreenect multiframe_listener.py
example the cv2.imshow
window doesn’t show icons. I also raised an issue on the repository of the pylibfreenect package but as I am not sure if the problem has to do with a missing pylibfreenect or opencv dependency I also opened a topic here.
Expected
Current
Troubleshooting steps
I am currently looking at whether a system icon package is missing and whether this is a bug related to opencv.
What I already tried
- Installing opencv from different channels:
pip install opencv
conda install opencv
conda install opencv-python
- Installing GTK and VTK as explained in this topic.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 23 (6 by maintainers)
This is not a bug. Shipping the icons along the packages would be a license violation and cannot be done. OpenCV team is looking for an alternative icon set that does not have such a restrictive license. Please follow the issue here: https://github.com/opencv/opencv-python/issues/585
Had the same issue and solved it by installing & removing
opencv-contrib-python
.FYI, I’m on Fedora 31.
@TheodoreT Thanks for your message. For me, the only solution that help was to switch to the conda package. I However opened the topic so that @native-api or any of the other maintainers can look into your question.
I did a fresh installation that way
Its happening yet even only installing that way you show in #213
Why this bug is closed, if it is still happenning?
On a clean MacOS Catalina withous macports od homebrew I have created a virtual environment and installed
numpy
,opencv
, andQT5
And then ran the following program
I had an error
I removed
opencv-python
and verified thatPyQt5
was working properly. Finally, i removedopencv-python
and installedopencv-python-headless
instead, allong withPyQt5
. This time it worked well.Is this the expected behavior? I found the package list and the installation order in a tutorial on OpenCV with Python on MacOS. The tutorial did not mention installation conflicts.
I found that if I do not install
PyQt5
and installopencv-python
in isolation, I have the same error.@rickstaa thanks for the pkgs list. However, it does not seem that any of the other packages has to do anything with the icons. I would argue that the issue is related with the opencv pkg itself. Most likely the conda version and this one are kind of different created, or I do not know I might actually be wrong here.
@native-api Thanks for your response. This was indeed a problem with the
opencv-contrib-pyton
andopencv-python
packages:Like you stated above when creating a fresh conda environment and installing OpenCV directly using
conda install -c conda-forge opencv
both the error and the icon problem disappeared.