In this chapter, we used the Haar face classifier to detect a face from a video feed and then we drew a rectangle around it. Next, we detected the eyes and smile from a given face, and drew circles around the eyes and mouth. After this, using our knowledge of face, eye, and smile detection, we turned the LEDs of our robot on and off when the eyes and smile were detected. Finally, by creating a white dot in the center of the face rectangle, we made the robot follow our face.
In the next chapter, we will learn how to control our robot using our voice. We will also create an Android application that will recognize what we are speaking about. When the Android application detects certain keywords, the Android smartphone's Bluetooth will send bits of data to the Raspberry Pi Bluetooth. Once our robot recognizes these keywords, we will use them to move the robot in different...