-
Notifications
You must be signed in to change notification settings - Fork 861
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
cv2.imshow "The function is not implemented. Rebuild the library" #18
Comments
Duplicate of #17 |
getting same error |
It's because of ''opencv-python-headless'. Uninstall it! |
ya it is because of pip install OpenCV- python- headless just uninstall it and your error will be sorted |
uninstalled opencv-python-headless and still the same error. I am using Ubuntu. |
Thank you, @hg2051 |
I have the same problem too. I did pip uninstall opencv-python-headless and it still does not work. |
Tried pip uninstall opencv-python-headless - didn't work Closed Spyder environment and opened it again - worked! :) |
Same to me, but I do this: |
Solve: Unistall opencv-python-headless |
I have tried everything, unistalling opencv-python, contrib modules and reinstalling them and Uninstalling headless module, but not working. Can ayone help me? |
@LikhithChakravarthi Hi Addinational Solution : |
Please use Pycharm, it is way easier to manage the packages |
Hay |
The error you're encountering indicates that the version of OpenCV you're using was built without GUI support for window management. To resolve this issue and display the camera feed in a window, you can either rebuild OpenCV with GUI support or use an alternative library to display the camera feed. Here are two possible solutions: Solution 1: Rebuild OpenCV with GUI Support (Recommended) Ensure you have CMake installed on your system. Rebuild OpenCV with GUI support using CMake. You can do this by following these steps: Download the OpenCV source code from the official OpenCV website: https://opencv.org/releases/ Extract the downloaded source code archive to a directory. Open a terminal or command prompt and navigate to the directory where you extracted the OpenCV source code. Create a build directory within the OpenCV source directory and navigate to it: After successful configuration, build and install OpenCV: Once the installation is complete, you should have OpenCV with GUI support. Update your Python environment to use the newly built OpenCV library. You may need to uninstall the previous OpenCV package and install the new one. |
Thanks, it worked for me too=))) |
if you are using spyder then ... |
To do this but for windows: Instead of executing "make" and "sudo make install" as these are bash commands, Now uninstall and then reinstall "opencv-python" using pip. Done! |
pip uninstall opencv-python; pip install opencv-python Solved by pycharm |
On Ubuntu, this work for me: sudo apt-get install python3-opencv |
ugprading to a newer version solved the issue for me ( opencv 4.9.0) |
@skvark
When I connect to the server remotely using pycharm, I want a local visualization https://stackoverflow.com/questions/64784315/qt-qpa-xcb-could-not-connect-to-displayerror-while-using-opencv-on-ec2-ubuntu-s: In my past experience, pycharm can do local visualization, but sometimes it will go wrong, is this related to the pycharm version or is it related to the remote server |
Hie , I have uninstall opencv-headless but upon uninstalling that I am unable to import opencv |
Did uninstall then re-install opencv-python and it worked for me. before:
So I guess this error can be caused by mismatched versions of opencv-python and opencv-python-headless. |
If you are using Pycharm, just simply change the interpreter and try to run your application again. It solves my problem relating with this error. |
Uninstalling the opencv-python and then reinstalling it worked for me |
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /io/opencv/modules/highgui/src/window.cpp, line 545
please, OpenCV version :3.1.0
Python version: 2.7.12
OS: Elementary OS Loki.
Thanks!
The text was updated successfully, but these errors were encountered: