Anyone able to help solve this problem for python script.

asked 2014-06-25 02:12:57 -0500

JS gravatar image

updated 2014-06-25 02:17:30 -0500

berak gravatar image

I tried to use this python script for aligning the faces but i faced this error.

image description

edit retag flag offensive close merge delete

Comments

2

it's this one, right ?

problem's in the filename. either use 2 backslashes or a single foward one consistently (there's only 1 backslash before test.jpg)

berak gravatar imageberak ( 2014-06-25 04:08:06 -0500 )edit
2

and again, take that script with a grain of salt.

while all the code is there to crop & align the faces properly, it uses hardcoded eye positions tailored to that demo. your image data will differ significantly, so you will have to find a way to locate the eye positions there, using an eye-cascade, flandmark or manual mouse clicking even.

berak gravatar imageberak ( 2014-06-25 04:16:33 -0500 )edit

okay Thanks alot ! i tried 2 backslashes and it works and yes i i am using manual mouse clicking for cropping and aligning the face.

JS gravatar imageJS ( 2014-06-25 20:35:53 -0500 )edit