This program implements frontal face detection using haarcascade_frontalface.xml . I made this for learning purpose .
You can download any haarcascade xml file from this link - https://github.com/opencv/opencv/tree/master/data/haarcascades