How to Install OpenCV in Ubuntu 16.04 LTS for Python






In this post we will see How to Install OpenCV in Ubuntu for Python
OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. OpenCV means Intel® Open Source Computer Vision Library. It is a collection of C functions and a few C++ classes that implement some popular Image Processing and Computer Vision algorithms. OpenCV is Available on Mac, Windows, Linux (Terminal environment).

Step 1 – Updating Ubuntu

Step 2 – Install dependencies

Step 3 –  Get OpenCV

Step 4 – build and install OpenCV

Now to check if OpenCV is installed on a machine, run the following commands

We will get the opencv version installed
in this case it’s 3.2.x
Python Basics Training at Simplilearn.com!
Create a Python program

Follow the commands

The above command will create a folder called python_test and create a main.py file inside it
Now place any .jpeg image inside the python_test folder.
So Now your python_test folder will contain two files as follows
.
├── sample.jpeg
└── main.py

Now open the main.py and add the following code

Now run the python program with the following command

press ESC to exit


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Stuff I use to make videos

Windows notebook – http://amzn.to/2zcXPyF

Apple MacBook Pro – http://amzn.to/2BTJBZ7

Desktop - http://amzn.to/2zct252

Microphone – http://amzn.to/2zcYbW1

notebook mouse – http://amzn.to/2BVs4Q3

Screen Recording Software – Camtasia