So, we have taken our first steps in getting to know the dataset and also getting a feel of how to operate upon it. At this point, we know that all the images in our dataset contain faces (that can be detected by the cascaded classifier from Chapter 6, Face Detection Using OpenCV). Although, you might feel that this is an unnecessary step because we have already told you that the dataset contains facial images of celebrities belonging to both the gender categories. However, along the way, we picked up important skills that are going to help us in the course of our work. For example, if you are working with some other bigger dataset that has noise, then the preceding step can act as a filter to remove the images where the faces can't be detected so that they do not pose problems in the subsequent stages of our solution pipeline. Now, it's time to analyze faces!
When we are working with faces, the first step in any analysis pipeline is face...