Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install opencv on ubuntu 16.04

Hello I want to use opencv(or opencv3 any one of them) for my project. I have tried many videos on youtube to how to install opencv on ubuntu 16.04 but I am facing different issues in installing, can someone please give me a complete step-wise guide to how to install opencv on ubuntu 16.04. Thank you in advance for your kind help.

like image 720
Roshan Nalawade Avatar asked Feb 27 '17 02:02

Roshan Nalawade


2 Answers

According to this source, from Ubuntu 16.04, you can now install OpenCV for Python2.7 as follows:

pip install opencv-python

or for python3:

pip3 install opencv-python
like image 74
Tshilidzi Mudau Avatar answered Nov 05 '22 17:11

Tshilidzi Mudau


For anyone who is here looking for opencv for Ubuntu 20.04

sudo apt install libopencv-dev
like image 1
DianaNowa Avatar answered Nov 05 '22 16:11

DianaNowa