A quick hack for recognizing faces.
For instruction on face, see here
Dependencies:
- python 3.6
- dlib
Check requirements.txt
for other dependencies
In the root directory, place
video.mp4
: Video to run the recognition onimage.jpg
: Face or even portrait of the person to be detected
Setup the environment with all depencies and run python video.py
Place your image in the root directory and edit the image filename inside webcam.py
and edit your name inside the file as well. You can detect multiple people in one frame as well, just check for the array inside the code and you would know :)
Run python webcam.py
and boom!