Giving a robot the ability to see things allows it to behave in ways to which humans relate well. Computer vision is an area that much research is currently devoted to, but some of the basics are already available for use in our own code, with the Pi Camera and a little bit of work. In this chapter, we will use the robot and camera to drive to objects, and follow faces with our pan-and-tilt mechanism. I'll also give you a way to see what your robot is seeing. In this chapter, you will learn the following:
- Setting up a Raspberry Pi Camera on your robot, in terms of both software and hardware
- Revisiting Flask, the web server from Chapter 11, Programming Distance Sensors with Python, to see what the robot sees on your phone or laptop
- Revisiting color models, covered in Chapter 9, Programming RGB Strips in Python, and learning how...