A face detector locates a face in an image and returns its image region as a bounding box. In KYC face matching, it crops faces from a selfie and an identity document before recognition generates embeddings for comparison. section 7.2.1
Figure 7.10 Diagram of a face-matching system comparing faces from two different photos – a selfie and an ID. First, the faces from the two photos are cropped using a face detection model, and then a face recognition model generates embeddings for the faces that are compared numerically for a match.
Follow the face-matching pipeline from selfie and ID photographs through face cropping, embedding generation, and numerical comparison. section 7.2.1
A face detector supports the following verification workflow:
- Detect the face bounding box separately in the selfie and ID photo. section 7.4
- Pass the cropped faces to a face recognition model, which produces facial embeddings. section 7.2.1
- Compare the embeddings with cosine similarity to support identity verification. section 7.4
- Use a pre-trained MTCNN implementation through the facenet_pytorch library for face detection. section 7.4
