The code detects frontal face and eyes, it even detects a smile. OpenCV is very fast in detecting the above, it almost delivers in real time.
The code is implemented in python.
You only need the code and a webcam to experience this simple implementation.