Installing OpenCV3.4 with Python3 on Windows10

in computer-vision •  7 years ago 

In this post we will learn how to install the latest OpenCV3.4 with Python3 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 and Pip (Package Manager) on the system.

When you type python on the terminal or the command prompt, you should get something like this:

So I’ve got Python v3.6 installed on my Windows10 64 Bit Computer

Lets check whether we’ve got pip as well and get it updated to the latest version:

It seems that everything is setup properly! Yeah!!

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 OpenCV3.4 with additional modules:

Choosing this file as I have Python 3.6 and a 64 Bit Windows10

Visit this URL: https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
Download: opencv_python‑3.4.0+contrib‑cp36‑cp36m‑win_amd64.whl

After the download is complete, Go to the folder and run:

pip install .\opencv_python-3.4.0+contrib-cp36-cp36m-win_amd64.whl

If you see the message as Successfully installed opencv-python-3.4.0+contrib it means that the Installation was successful.
Try importing the modules & check for version to verify the installation:

With this we have successfully completed the installation of OpenCV3.4 with Contrib modules on our Windows10 computer. Now what are we waiting for, Lets start our Image Processing Adventures.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @shachindra92! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @shachindra92! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!