Comments (7)
@rmekdma if you don't need graphical Qt stuff, you can install the very very slightly older build, like this: pip install 'opencv-contrib-python==3.3.0.9'
(after removing the current one, of course: pip uninstall opencv-contrib-python
)
from opencv-python.
There are now two new headless distributions: https://github.com/skvark/opencv-python/releases/tag/14
Please note that it takes still a few hours before builds finish and packages are available for install.
from opencv-python.
Yes, I will make a new headless entry after other blocking issues are fixed.
from opencv-python.
@skvark , installing libSM is not an option in environments like heroku, or google cloud engine (you're not root, and thus can't install anything or even build from src)
having qt support is nice on the desktop, but would it be possible to have a "headless" version ?
from opencv-python.
Can you install libSM / other deps to the Docker image? The X11 dependencies come from Qt and they cannot be avoided.
Bundling libSM and other X11 libs into the wheels is not possible, because auditwheel excludes them automatically:
- https://github.com/pypa/auditwheel/blob/master/auditwheel/policy/policy.json
- https://www.python.org/dev/peps/pep-0513/#the-manylinux1-policy
Headless version should be possible to implement by patching the binary with patchelf (by removing problematic DT_NEEDED entries) and creating an alternate distribution. I'll try that when I have more time to focus on this project.
In the meantime, you can downgrade to 3.3.0.9 which is exactly the same build but without Qt.
from opencv-python.
Thanks for the info. For now, a downgrade solves the immediate issue. If necessary, we can add X11 libs, but I'd prefer not to since we aren't using that functionality.
from opencv-python.
Same problem to me. I use python 2.7 and ubuntu 14.04 in the docker image. After I installed libsm6 another error came out.
File "/usr/local/lib/python2.7/dist-packages/cv2/__init__.py", line 9, in <module>
from .cv2 import *
ImportError: libXrender.so.1: cannot open shared object file: No such file or directory
from opencv-python.
Related Issues (20)
- Exception: Not found: 'python/cv2/py.typed' ERROR: Failed building wheel for opencv-python in Anaconda Python 3.6 HOT 1
- cv2.findEssentialMat() Error with 2 cameraMatrix HOT 2
- closed HOT 1
- Uninstalling opencv-python prevents opencv-contrib-python from working.
- A error with using cv2.cvtColor to convert BGR img to HSV
- IndexError: invalid index to scalar variable.
- CMake Error: CMake was unable to find a build program corresponding to "Ninja"
- MacOS: pylint confuses the type of cv2.error HOT 2
- OpenCV feed keeps getting crash
- The imread function for reading images and the imshow function for setting image titles should support Chinese characters
- TypeError: 'numpy._DTypeMeta' object is not subscriptable HOT 1
- Functions missing from aruco module
- Gpu memory increase while using cv2.rectangle
- error when compile debug opencv-python
- Run cv2 window in fullscreen automatically
- Update dependent numpy version from 1.21.4 -> 1.26.4
- ImportError: DLL load failed while importing cv2: The specified module could not be found. HOT 1
- ImportError: DLL load failed while importing cv2
- I have a problem installing opencv python==4.5.3.56 ,I want the same version to be compatible with my project
- remove the desired text from the image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv-python.