Page 1 of 1

face_recognition.py example not working

Posted: Wed Nov 29, 2017 1:06 pm
by nadirloutfi
Hi,

I tried to run face_recognition.py example but seems not working.
img = image.Image("data/%s/1.pgm"%(SUB)).mask_ellipse()
AttributeError: 'Image' object has no attribute 'mask_ellipse'

Regards,
Nadir

Re: face_recognition.py example not working

Posted: Thu Nov 30, 2017 12:56 am
by kwagyeman
Ibrahim, can you help out here?

Re: face_recognition.py example not working

Posted: Thu Nov 30, 2017 5:42 am
by nadirloutfi
I think my firmware is not updated to the last version.
So When I try to upgrade my firmware from 1.5.0 to the last version, I faced another issue:
"Error: No such file or directory!", I tried on Mac and machine windows. same problem.

Regards,
Nadir

Re: face_recognition.py example not working

Posted: Thu Nov 30, 2017 11:05 am
by kwagyeman
We'll, as far as I know face_recognition wasn't a feature that really worked. Ibrahim wrote that script so I can't comment much on it.

Re: face_recognition.py example not working

Posted: Tue Dec 12, 2017 8:07 pm
by iabdalkader
Hi, please follow the instructions in the comments:

# Before running the example:
# 1) Download the AT&T faces database http://www.cl.cam.ac.uk/Research/DTG/at ... _faces.zip
# 2) Exract and copy the orl_faces directory to the SD card root.


Note this is very very simple face recognition so don't expect great results :)

Re: face_recognition.py example not working

Posted: Thu May 31, 2018 2:30 am
by kidswong999
I met the same issue...

firmwave version 2.9.0, windows 10
I have already saved the file according to the steps.
It says: AttributeError: 'Image' object has no attribute 'mask_ellipse'

But on firmware version 2.7.0 , this example is ok.

Re: face_recognition.py example not working

Posted: Thu May 31, 2018 2:38 am
by kwagyeman
Hi, I accidentally removed this method since I did not know where it was used. It will be added back.

Re: face_recognition.py example not working

Posted: Thu Sep 27, 2018 5:22 pm
by spitonio
hi im having the same issue "AttributeError: 'Image' object has no attribute 'mask_ellipse'"
with firmware 3.0.0

Re: face_recognition.py example not working

Posted: Fri Sep 28, 2018 1:15 pm
by kwagyeman
Ah, yes. I think we've added it back in for v3.1.0 which we will release soon.

Re: face_recognition.py example not working

Posted: Sun Jan 06, 2019 7:28 am
by kotenok
kwagyeman wrote:
Fri Sep 28, 2018 1:15 pm
Ah, yes. I think we've added it back in for v3.1.0 which we will release soon.
Still have this error on v 3.2.0
---------------------------
AttributeError: 'Image' object has no attribute 'mask_ellipse'
---------------------------

Re: face_recognition.py example not working

Posted: Sun Jan 06, 2019 3:59 pm
by kwagyeman
K, I'll get this fixed for the next firmware release.