Face detection is the way of determining the locations of human faces in digital images or video stream like cam.
We use face detection in robotics and also in biometric recognition like in this instructable
In this instructable i show you how to do real time face detection using OpenCV library with Java programming language.
1- PC or laptop contains JDK (download JDK from this link)
2- Netbeans IDE( download java se from this link https://netbeans.org/downloads/ )
3- USB webcam.
See this video to know how to develop this application
Source Code :