Willjay90 / GoogleFaceDetection

18 stars 4 forks source link

can crop face shap ? #2

Open Chonlavit opened 6 years ago

Chonlavit commented 6 years ago

I want to crop face shap but I have no idea can you tell me ?

Willjay90 commented 6 years ago

do you want a contour of the face or just a rectangle where the face is ?

Chonlavit commented 6 years ago

I want a contour could you tell me?

Willjay90 commented 6 years ago

I think it's a little bit difficult for mobile vision API to do that. It provides a bounding box of the face (in rectangle), and some face landmarks (positions). You can crop the image with that bounding box containing a face.

Also, with Vision framework, provided by Apple, you can use VNFaceLandmarkRegion2D to draw some regions like this.

nextgeniosapps commented 6 years ago

Hey, is this code under MIT?