In this project, I am using OpenCV in Python to start a video then detect faces and draw a square around the face.Click here to see the same project using JavaScript.
Add and remove different face cascades for differece resultsThe only recognized face is my face is (image: me.jpg). You can simply add your image instead, then change the code print your name.
References:
OpenCV
face recognition
Flask