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

How to crop input images properly? #6

Open
aakashns opened this issue Jan 7, 2018 · 1 comment
Open

How to crop input images properly? #6

aakashns opened this issue Jan 7, 2018 · 1 comment

Comments

@aakashns
Copy link

aakashns commented Jan 7, 2018

Hi Oeslle,
Great work with FASNet! However, I tried running the model with some test images, and they always seem to be detected as fake. After reading your paper carefully, I found this:

In step two(face detection), we first used the OpenFace face detector [35] algorithm to find the region-of-interest (ROI) corresponding to a face. Next, using OpenFace algorithms we cropped to a window sized 96 pixels and aligned the faces to center based on the nose and eyes position.

How can I replicate this procedure for my own test images? Can you possibly share the code used to detect the face, crop the image and center align the images based on nose and eyes position?

@OeslleLucena
Copy link
Owner

Hi @aakashns , first of all, thank you for ur interesting in our work. I used the OpenFace algorithm, which is open source. I did not change anything in the code.

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

2 participants