Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can crop face shap ? #2

Open
Chonlavit opened this issue Oct 27, 2017 · 4 comments
Open

can crop face shap ? #2

Chonlavit opened this issue Oct 27, 2017 · 4 comments

Comments

@Chonlavit
Copy link

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

@Willjay90
Copy link
Owner

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

@Chonlavit
Copy link
Author

I want a contour could you tell me?

@Willjay90
Copy link
Owner

Willjay90 commented Oct 30, 2017

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
Copy link

Hey, is this code under MIT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants