Book Image

Getting Started with Raspberry Pi Zero

By : Richard Grimmett
Book Image

Getting Started with Raspberry Pi Zero

By: Richard Grimmett

Overview of this book

Raspberry Pi Zero is half the size of Raspberry Pi A, only with twice the utility. At just three centimeters wide, it packs in every utility required for full-fledged computing tasks. This practical tutorial will help you quickly get up and running with Raspberry Pi Zero to control hardware and software and write simple programs and games. You will learn to build creative programs and exciting games with little or no programming experience. We cover all the features of Raspberry Pi Zero as you discover how to configure software and hardware, and control external devices. You will find out how to navigate your way in Raspbian, write simple Python scripts, and create simple DIY programs.
Table of Contents (16 chapters)
Getting Started with Raspberry Pi Zero
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

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 3.0 or Google for the latest version of OpenCV.

  • sudo apt-get install python-opencv: This is the Python development kit needed for OpenCV, as you are going to use Python.

  • sudo apt-get install opencv-doc: This command will download the documentation...