DEV Community

Discussion on: Simple Face Recognizing System using python and openCV

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.