

Option 4 - Headless full package (contains both main modules and contrib/extra modules): pip install opencv-contrib-python-headless (check contrib/extra modules listing from OpenCV documentation)Īll packages contain Haar cascade files.Option 3 - Headless main modules package: pip install opencv-python-headless.or you are using some other package (such as PyQt) than OpenCV to create your GUI.

You should always use these packages if you do not use cv2.imshow et al. This means that the packages avoid a heavy dependency chain to X11 libraries and you will have for example smaller Docker images as a result. These packages are smaller than the two other packages above because they do not contain any GUI functionality (not compiled with Qt / other GUI components). Packages for server (headless) environments (such as Docker, cloud environments etc.), no GUI library dependencies

Make sure that your pip version is up-to-date (19.3 is the minimum supported version): pip install -upgrade pip. cv2 module in the root of Python's site-packages), remove it before installation to avoid conflicts. If you have previous/other manually installed (= not installed via pip) version of OpenCV installed (e.g.
#Install opencv 3.0.0 for eclipse on mac manual#
Pre-built CPU-only OpenCV packages for Python.Ĭheck the manual build section if you wish to compile the bindings from source to enable additional modules such as CUDA.
