Implement a face alignment system using facial landmarks to normalize face images, enhancing recognition accuracy. This process involves computing a similarity transform to adjust the face image based on detected landmarks such as eyes, nose, and mouth.
The goal is to align the face image so that the eye centers are horizontally aligned, the inter-eye distance is fixed, and the image is cropped to a standard size, which can be achieved through a combination of translation, rotation, and scaling. These transformations can be represented using affine matrices, which describe linear transformations in 2D space.
To achieve this, the following steps are necessary:
This technique is widely used in face recognition systems to improve the accuracy of facial feature matching.
Face image and landmarks
Aligned face
Compute transform from landmarks to canonical positions