Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
BeagleBone Robotic Projects

You're reading from   BeagleBone Robotic Projects Developer or hobbyist, you'll love the way this book helps you turn the BeagleBone Black into a working robot. From listening and speaking to seeing and moving, we'll show you how ‚Äì step by step.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781783559329
Length 244 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Richard Grimmett Richard Grimmett
Author Profile Icon Richard Grimmett
Richard Grimmett
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

BeagleBone Robotic Projects
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with the BeagleBone Black FREE CHAPTER 2. Programming the BeagleBone Black 3. Providing Speech Input and Output 4. Allowing the BeagleBone Black to See 5. Making the Unit Mobile – Controlling Wheeled Movement 6. Making the Unit Very Mobile – Controlling Legged Movement 7. Avoiding Obstacles Using Sensors 8. Going Truly Mobile – Remote Control of Your Robot 9. Using a GPS Receiver to Locate Your Robot 10. System Dynamics 11. By Land, Sea, and Air Index

Using the vision library to detect colored objects


Now that you have access to the OpenCV library, let's see what it can do.

Prepare for lift off

OpenCV and your webcam can track objects. This might be useful if you are building a system that needs to track and follow a colored ball. OpenCV makes this amazingly simple by providing some high-level libraries that can help you with this task. I'm going to do this in Python, as I find it much easier to work with than C. If you feel more comfortable in C, these instructions should be fairly easy to translate. Also, performance will be better if implemented in C, so you might create the initial capability in Python, and then finalize the code in C.

Engage thrusters

If you'd like, create a directory to hold your image-based work. From your home directory, create a directory named imageplay by typing mkdir imageplay. Then change directory to imageplay by typing cd imageplay.

Once there, let's bring over your camera.py file as a starting point by typing...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image