face_recognition.py example not working

General discussion about topics related to OpenMV.
nadirloutfi
Posts: 2
Joined: Wed Nov 15, 2017 3:24 pm

face_recognition.py example not working

Postby nadirloutfi » Wed Nov 29, 2017 1:06 pm

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
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: face_recognition.py example not working

Postby kwagyeman » Thu Nov 30, 2017 12:56 am

Ibrahim, can you help out here?
Nyamekye,
nadirloutfi
Posts: 2
Joined: Wed Nov 15, 2017 3:24 pm

Re: face_recognition.py example not working

Postby nadirloutfi » Thu Nov 30, 2017 5:42 am

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
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: face_recognition.py example not working

Postby kwagyeman » Thu Nov 30, 2017 11:05 am

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.
Nyamekye,
User avatar
iabdalkader
Posts: 550
Joined: Sun May 24, 2015 3:53 pm

Re: face_recognition.py example not working

Postby iabdalkader » Tue Dec 12, 2017 8:07 pm

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 :)
kidswong999
Posts: 28
Joined: Sun Apr 02, 2017 1:12 pm

Re: face_recognition.py example not working

Postby kidswong999 » Thu May 31, 2018 2:30 am

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.
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: face_recognition.py example not working

Postby kwagyeman » Thu May 31, 2018 2:38 am

Hi, I accidentally removed this method since I did not know where it was used. It will be added back.
Nyamekye,
spitonio
Posts: 1
Joined: Thu Sep 27, 2018 3:57 pm

Re: face_recognition.py example not working

Postby spitonio » Thu Sep 27, 2018 5:22 pm

hi im having the same issue "AttributeError: 'Image' object has no attribute 'mask_ellipse'"
with firmware 3.0.0
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: face_recognition.py example not working

Postby kwagyeman » 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.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests