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: 1397
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: 1397
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: 402
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 :)

Return to “General Topics”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest