Book Image

BeagleBone By Example

By : Pei JIA, Jayakarthigeyan Prabakar, Alexander Hiam
Book Image

BeagleBone By Example

By: Pei JIA, Jayakarthigeyan Prabakar, Alexander Hiam

Overview of this book

BeagleBone is a low cost, community-supported development platform to develop a variety of electronic projects. This book will introduce you to BeagleBone and get you building fun, cool, and innovative projects with it. Start with the specifications of BeagleBone Black and its operating systems, then get to grips with the GPIOs available in BeagleBone Black. Work through four types of exciting projects: building real-time physical computing systems, home automation, image processing for a security system, and building your own tele-controlled robot and learn the fundamentals of a variety of projects in a single book. By the end of this book, you will be able to write code for BeagleBone in order to operate hardware and impart decision-making capabilities with the help of efficient coding in Python.
Table of Contents (17 chapters)
BeagleBone By Example
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

OpenCV – introduction and setting up on the BeagleBone board


In this topic you will learn about what OpenCV is and how we can use it to capture images from a web camera that is connected to the BeagleBone board.

OpenCV stands for Open Source Computer Vision. It is mainly designed for real-time computer visualization. So, this library will basically help us to use commonly used programming languages like C, C++ and Python to capture images from the camera connected to our computer – in our case, using the BeagleBone board. When we go to the project section of this chapter to capture an image from the USB camera using Python, you will understand how simple the OpenCV library makes it to code in getting inputs from the camera, generate outputs as image files, and much more in image processing.

Installing OpenCV on Debian on a BeagleBone board

Follow the steps to install OpenCV on Debian on a BeagleBone board:

Step 1: Install compiler:

sudo apt-get -y install build-essential cmake pkg-config

These...