O'Reilly logo

Smart Internet of Things Projects by Agus Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying OpenCV on Raspberry Pi

In this section, we will deploy the OpenCV library on Raspberry Pi. I use Raspbian Jessie for testing. We're going to install OpenCV from source code in Raspberry Pi board.ss

Let's start to build the OpenCV library from source code on Raspberry Pi. Firstly, we install development libraries. Type these commands on the Raspberry Pi terminal:

$ sudo apt-get update
$ sudo apt-get install build-essential git cmake pkg-config libgtk2.0-dev
$ sudo apt-get install python2.7-dev python3-dev

We also need to install the required matrix, image and video libraries. You can type these commands:

$ sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
$ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required