The project is done using face_recognition api contributed by Adam Geitgey
So,first things first
->Install the face_recognition library
then,
->Take a snap of a face to be recognized and save in the director(face_recognition) as (say) xyz.jpg .Make sure to make the change the the name 'sdey.jpg' to the 'xyz.jpg' in the facerec.py file
->run facerec.py