Book Image

Raspberry Pi Robotics Essentials

By : Richard Grimmett
Book Image

Raspberry Pi Robotics Essentials

By: Richard Grimmett

Overview of this book

Table of Contents (14 chapters)
Raspberry Pi Robotics Essentials
About the Author
About the Reviewers

Downloading and installing OpenCV – a fully featured vision library

Now that you have your camera connected, you can begin to access some amazing capabilities that have been provided by the open source community. Open a terminal window and type the following commands:

  1. sudo apt-get update: You're going to download a number of new software packages, so it is good to make sure that everything is up to date.

  2. sudo apt-get install build-essential: Although you may have done this earlier, this library is essential to build OpenCV.

  3. sudo apt-get install libavformat-dev: This library provides a way to code and decode audio and video streams.

  4. sudo apt-get install ffmpeg: This library provides a way to transcode audio and video streams.

  5. sudo apt-get install libcv2.4 libcvaux2.4 libhighgui2.4: This command shows the basic OpenCV libraries. Note the number in the command. This will almost certainly change as new versions of OpenCV become available. If 2.4 does not work, either try 3.0 or search on Google...