Skip to Content
Hands-On Robotics Programming with C++
book

Hands-On Robotics Programming with C++

by Dinesh Tavasalkar
March 2019
Intermediate to advanced
312 pages
7h 37m
English
Packt Publishing
Content preview from Hands-On Robotics Programming with C++

Capturing the image

To capture the image of your ball, place it on some dark surface. I have placed my green ball on a mobile phone case, which is black:

If your ball is black, or of a dark color, you can place the ball on a surface that has a light color. This is to make sure there is a very high contrast between the color of the ball and the color of the background, which will help us in thresholding later on.

While capturing the image, make sure that there are no white colored patches on the ball, as this may cause problems later on while thresholding:

The photo on the left has a big white region because of too much lighting. On the right, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming

Learn Robotics Programming

Danny Staple
C++ Reactive Programming

C++ Reactive Programming

Praseed Pai, Peter Abraham

Publisher Resources

ISBN: 9781789139006Supplemental Content