A Python tool that can extract Faces from Images.
I also built a similar tool capable of Facial recognition.
virtualenv venv
source venv/bin/activate
pip install opencv-python
git clone https://github.com/JeeveshN/Face-Detect.git
cd Face-Detect
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