Here you will find code written with the aim of real-time Face Detection. This program was written using the Python language and using the OpenCV library.
I tried this program on my local camera and I put pictures to make sure that the code works correctly.
Here are some results:

