In this article series, we’ll be learning to work with OpenCV in python. We’ll learn basic things like reading, writing & scaling images and videos. Also more advanced concepts like face-recognition and more.
Let’s start by installing OpenCV to your computer.
Start by checking if Python is installed on your computer. The easy way to check is to
in the terminal. This should give an error if python isn’t installed, in that case head over to python website and download the latest available version. If it’s already installed you’ll be displayed with the current installed version of python, make sure it’s over 3.0.1. As OpenCV might not work with the versions below that, especially with python2.
Once, you’ve installed the latest version of python. Let’s install the packages we require.
Installing OpenCV Full Version
pip install opencv-contrib-python
Paste this to the command promt and run it to install the latest version of opencv on your computer.
NOTE: We used the contrib package because it comes with everything you need in openCV. You can also just use
Once the process has been finished you might have noticed that opencv installation also installed numpy along with it. Numpy is a package used mostly for matrix calculations, you can learn about it more here.
And that’s all for this part. If you face any kinds of issues when installation, feel free to comment down below. I’ll try follow you up with a solution.