In this chapter, we saw how a computer can detect faces in an image. One of the primary strengths of using a powerful library such as OpenCV is the ease with which such seemingly complicated tasks can be compressed to a few lines of C++ code. We saw that by fine-tuning the parameters of our function, we can make our OpenCV/C++ code perform face detection.
As we have stated in this chapter, face detection is often the first step in building a sophisticated computer vision system. In the subsequent chapters of the book, we will build upon the face detection code to perform some interesting forms of analysis on the faces that we detect. In this chapter, we have already taken the first steps towards that goal.