In this post we will learn how to install the latest OpenCV4.1 with Python3.7 on Windows10. Earlier I had shared a post on Installing OpenCV3.3 with Python3 on Windows10 which included long instructions and building the package locally on the machine. And Boy! Did that take time?
Today We’ll achieve the same task but in a very short time compared to earlier methods. Firstly we need to install Python3.7 and Pip (Package Manager) on the system. (Recommendation: Use Anaconda)
When you type python on the terminal or the command prompt, you should get something like this:
Lets check whether we’ve got pip as well and get it updated to the latest version:
Now lets install the additional packages using pip:
pip install numpy
pip install scipy
pip install matplotlib
pip install scikit-learn
pip install scikit-image
After installing these packages we are ready to install the OpenCV4.1 with additional modules:
- Visit this URL: https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
- Download: opencv_python‑4.1.0+contrib‑cp37‑cp37m‑win_amd64.whl
- After the download is complete, Go to the folder and run:
pip install .\opencv_python‑4.1.0+contrib‑cp37‑cp37m‑win_amd64.whl
If you see the message as Successfully installed opencv-python-4.1.0+contrib it means that the Installation was successful.
With this we have successfully completed the installation of OpenCV4.1 with Contrib modules on our Windows10 computer. Now what are we waiting for, Lets start our Image Processing Adventures.