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)
- PyPI: macOS arm64 wheel missing
- cv2.createThinPlateSplineShapeTransformer not exist in 4.10
- imdecode jpeg2000 segfault or deadlock in multithreading HOT 2
- Typing of compare does not allow scalar for src1 or src2
- Why Building wheel for opencv-python when using "pip install opencv-python"
- Typing stubs generation has failed when building wheel HOT 1
- error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\convolution_layer.cpp:396: error: (-2:Unspecified error) Number of input channels should be multiple of 3 but got 4 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes'
- Gstreamer support on windows 10
- why ı am getting this error
- BUG: cv2.fillPoly() causing segmentation fault on Ubuntu 22.04.4 LTS HOT 1
- [Suggestion] Metapackage as solution to current issues with opencv as dependency HOT 1
- Build from source python 3.12 fails HOT 6
- error: OpenCV(4.8.0) /io/opencv/modules/core/src/copy.cpp:71: error: (-215:Assertion failed) cn <= 4 in function 'scalarToRawData'
- ModuleNotFoundError: No module named 'distutils' in latest release HOT 7
- MacOS arm64 wheels missing from PyPI 4.10 release HOT 2
- ImportError: numpy.core.multiarray --- Numpy 2.0.0 HOT 1
- cv2/cv2.abi3.so, 2): Library not loaded: /usr/local/opt/libunistring/lib/libunistring.2.dylib Referenced from: /usr/local/opt/gnutls/lib/libgnutls.30.dylib HOT 1
- When will opencv-python support numpy 2.0? HOT 6
- compile bug
- AttributeError: module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. HOT 1
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.