A Python tool that can extract Faces from Images.
I also built a similar tool capable of Facial recognition.
sudo apt-get install python-opencv
python Detect_face.py "Image path or just name if in same folder"
Note:If some faces are not detected try reducing the value of scalefactor in Detect_face.py on Line 20