python opencv real-time facial recognition. Very easy!!! Step by step!!!

preview_player
Показать описание
Codes are in my Github! More detailed instructions are inside!
Download as ZIP
Рекомендации по теме
Комментарии
Автор

how to fix this ?
enter user id end press <return> ==> 1

[INFO] Initializing face capture. Look the camera and wait ...

NameError Traceback (most recent call last)
in <module>
8 while(True):
9
---> 10 ret, img = cam.read()
11 gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
12 faces = face_detector.detectMultiScale(gray, 1.3, 5)

NameError: name 'cam' is not defined

hannafasya
Автор

Hey, thanks for this. The code seems to be working fine. Having a small issue. For faces which should show unknown, it's still showing the name for the faces which have been added to the dataset.

corneliablackmoore
Автор

I added face to dataset, but can't recognize out two people, but there's a image called "xie yuan and his friend.png" in your folder in github, how did you do that?
Thanks a lot~~

shiaubang
Автор

its shows like this system cannot find the path specified: 'dataset'

nilaventhiranvespanathan
Автор

Bro, How to add&train one or more

naveen_-jhkx
Автор

my camera is not showing up but captures imagesand save it in the folder dataset

markalfredgumaru
Автор

i typed jupyter notebook and it said -bash: jupyter: command not found, im on mac by the way

rishad