O'Reilly logo

Getting Started with Raspberry Pi Zero by Richard Grimmett

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

Downloading and installing OpenCV – a fully featured vision library

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

  • 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.
  • sudo apt-get install libavformat-dev: This library provides a way to code and decode audio and video streams.
  • 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, try either ...

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