-
Notifications
You must be signed in to change notification settings - Fork 895
Opencv imshow() not showing icons #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like you are using a
That package is not related to this project. See https://github.com/skvark/opencv-python#installation-and-usage for a complete list of what this project supplies. Also note that this project is only tested against vanilla CPython. If the problem doesn't reproduce there, it's most probably Anaconda's problem. |
@native-api Thanks for your response. This was indeed a problem with the
Like you stated above when creating a fresh conda environment and installing OpenCV directly using |
I am also having the same issue. I have recreated my environment from scratch but it doesn't seem to help. Also I am not using conda but pip, and I do not think that the |
@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. |
@Theodoret As the conda
|
@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. |
The conda package is this one https://github.com/conda-forge/opencv-feedstock which means if you run something like The package provided by this repository can be installed with Please post the output of |
Also, do not do this:
This will break your environment as explained in the readme. Install only one of the packages. |
@skvark I was aware of the need to have only one of the available modules installed as well as not having both commands run for installing the cv2 module. Thus I have only installed the
as I see it depends on the Qt4.8 package, is this dynamically or statically linked? Because my Qt4 installation is not in the |
It's dynamically linked. However, If you have a look at the installation folder you should see something like this inside the .libs folder under cv2:
I did some digging and it seems that OpenCV has its own icon set: https://github.com/opencv/opencv/tree/master/modules/highgui/src/files_Qt This is the most likely reason why the icons are not appearing. You could try to add the icons manually to the cv2 folder (I have no idea will that work). Due to the license of the icons (https://github.com/opencv/opencv/tree/master/modules/highgui/src/files_Qt/Milky) I'm not sure if I can redistribute them within |
@skvark it shouldn't be a problem redistributing the icons (considering that the conda package for example redistributes them). In any case if you want to be sure you could ask the guys at the opencv project. |
On a clean MacOS Catalina withous macports od homebrew I have created a virtual environment and installed
And then ran the following program
I had an error
I removed 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 |
There are no conflicts with |
Thank you very much. I actually do not care about Qt at this stage of my experimentation. I am trying to port and actualize something I did in C++ in 2018, which needs nothing more than imshow. This means that with |
Had the same issue and solved it by installing & removing pip install --user opencv-contrib-python
pip uninstall opencv-contrib-python FYI, I'm on Fedora 31. |
I also built opencv to static library (Windows+VS2019) and I have same problem. |
Why this bug is closed, if it is still happenning? |
@jcbritobr This issue was closed since it is not a problem with the |
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: #585 |
I did a fresh installation that way
Its happening yet even only installing that way you show in #213 |
Understood. Thank you. I think change the iconset for a mit or bsd license should solve this issue. |
I met the similar issue and answered here. Basically it is all related to Qt and its enablity with Opencv |
Any workaround to show the icons while waiting for a fix? |
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 thecv2.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
pip install opencv
conda install opencv
conda install opencv-python
The text was updated successfully, but these errors were encountered: