DEV Community

Cover image for Simple Face Recognizing System using python and openCV

Simple Face Recognizing System using python and openCV

pranay749254 on August 22, 2017

Face Recognising System Face Recognising System is a computer application that is used to identify people from a image or a video footag...
Collapse
 
joshnic profile image
joshNic

Hello,

thanks for this wonderful tutorial it has really taught me alot.
I tried using MySQL as my database and I successfully inserted records into the database but when I tried to on the face recognizer i got an error:
cv2.putText(img, "Name : " + str(profile[1]), (x, y + h + 20), font, (0,255, 0));
TypeError: 'int' object is not subscriptable

I would really appreciate any assistance in rectifying the above error. Thanks again for your wonderful work.

Collapse
 
bhask07 profile image
Bhask07

Traceback (most recent call last):
File "C:\Users\USER\Desktop\FACES\database.py", line 37, in
insertOrUpdate(Id,name,age,gen,cr)
File "C:\Users\USER\Desktop\FACES\database.py", line 11, in insertOrUpdate
cursor=conn.execute(cmd)
OperationalError: no such table: People

Collapse
 
shefalis436 profile image
shefalis436

For resolving this error, 1st create a table with name People and define its attributes in it.

Collapse
 
arul62545032 profile image
Arul

Hi,

Your code is really helpful. I learned a lot from this code.
In my case, my cam detects more than one face, but same id, name, and other details repeated for all the faces.

Also always takes my id value as "1" by default. but my id variable is set to null. Can you please help?

Collapse
 
su477 profile image
su-477

Can we use SQL database?

Collapse
 
lukaszkuczynski profile image
lukaszkuczynski

Does this work without the internet connection?

Collapse
 
pranay749254 profile image
pranay749254

Yes.It can be used with offline database.

Collapse
 
ajkannan20 profile image
Ajkannan20

can you describe the algorithms used here !.. thank you

Collapse
 
nagapoornima22 profile image
nagapoornima22

Hi,,

when i am creating the database with table , it is not taking the name as string, please help me how to create a database to save the captured images.