Cropping of Image after Face Alignment - Face Recognition [closed]

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

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-04 11:37:52.721022

Comments

you probably need to tell us HOW you do this.

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

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 -0600 )edit