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

Issue with the extracted images in Extract_Mouth_Batch.py #126

Open
StarvedHawk opened this issue Sep 24, 2021 · 1 comment
Open

Issue with the extracted images in Extract_Mouth_Batch.py #126

StarvedHawk opened this issue Sep 24, 2021 · 1 comment

Comments

@StarvedHawk
Copy link

StarvedHawk commented Sep 24, 2021

There is a problem with the Extract Mouth Batch.py script, Instead of cropping the mouth region it crops the upper eye.
I identified that this has something to do with the Width and the Height set for it. When you swap the values for the 2 variables it does provide a mouth render but in a skewed way. It would be helpful if you could provide examples of how the images should be output and correct the requirements for the training

WhatsApp Image 2021-09-23 at 17 36 51
Before Swapping the Values

mouth_000
. After swapping the values of width and height

@Mr-Usama
Copy link

Mr-Usama commented Apr 6, 2022

  • In videos.py use these lines of code will work, using cv2 resize method occurs this problem .

from skimage.transform import resize
resized_img = resize(frame, new_img_shape)

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