matthewearl / faceswap

Python script to put facial features from one face onto another
MIT License
1.4k stars 496 forks source link

Cropping the eyes #11

Open Tiaguituh05 opened 7 years ago

Tiaguituh05 commented 7 years ago

Hello, I need to extract the eyes out of the input image, my goal is to later classify if the eyes are closed or open. So far I could do that with haar eye-cascade but the results are poor, so I been searching for another method and came across your code. Great code btw! And since your code can place the landmarks, and you even know the range list of the eyes it shouldnt be hard to crop the eyes, I tried several changes but I couldnt get it to work. So if you are willing could you give me a hand with that? Thank you