Cropping of Image after Face Alignment - Face Recognition

asked 2019-01-17 19:34:52 -0500

Viraj gravatar image

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.

edit retag flag offensive close merge delete


you probably need to tell us HOW you do this.

berak gravatar imageberak ( 2019-01-18 02:46:14 -0500 )edit

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.

StevenPuttemans gravatar imageStevenPuttemans ( 2019-01-18 03:33:28 -0500 )edit