CV2 missing? OpenCV setup HowTo

Using workon , creating a virtual environment:

mkvirtualenv -p python3 opencv

Inside the virtual environment. If you are only working with images

pip install opencv-python

opencv-python

If you need support for working videos:

pip install opencv-contrib-python

opencv-contrib-python

If you need a non-GUI OpenCV:

pip install opencv-python-headless

opencv-python-headless

If you need to install specific version you can use == to check the available version first like

pip install opencv-python== , then install the version you require

Was this helpful?

0 / 0

Schreibe einen Kommentar 0

Your email address will not be published. Required fields are marked *


WeltenSchmid Knowledge Base Skip to content