Skip to content

Install OpenCV on Raspberry Pi

Hazarre edited this page Jun 19, 2019 · 1 revision

Install openCV on RaspberryPi

Copy and paste all the commands into the terminal together

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev
sudo apt-get install libgtk2.0-dev libgtk-3-dev
sudo apt-get install libatlas-base-dev gfortran
pip3 install opencv-python
sudo apt-get install libqtgui4
sudo modprobe bcm2835-v4l2
sudo apt-get install libqt4-test

Reference:

  1. Video : https://www.youtube.com/watch?v=H5nGc8uhQaw
  2. Code : https://pysource.com/2018/10/31/raspberry-pi-3-and-opencv-3-installation-tutorial/
Clone this wiki locally