Cropping of Image after Face Alignment - Face Recognition [closed]
I manage to align the Face using landmarks, how do I tightly crop the image to take only the face potion of the image with a given width and height. Basically I need the fave only image to feed to a Facenet implementation.
you probably need to tell us HOW you do this.
You have the face landmarks, so a set of points. Feed those in a vector and calculate the convexhull of that set of points. On that hull you calculate the minimal bounding rectangle. Then resize to the input size of the Facenet network.