We're going to see how we can perform facial recognition with dlib with a relatively small amount of code. Facial recognition here means that we're going to look at an image and see whether or not this person is the same as the person in a different image. We're going to keep it simple here and just compare two faces to see whether they're the same, but this can easily be generalized, as we'll see later.
Here, we're going to do something similar to the first example, where we're going to prompt the user to open two files, each with a face that is going to be compared to another. For this, we are going to use some faces from Labeled Faces in the Wild (LFW). It's a nice database that has thousands of faces from various celebrities. ...