This is a basic face-recognition software. To test it with some image, just keep the image in the same folder as these 2 files,and run :
$python face_detect.py test2.jpg haarcascade_frontalface_default.xml
--replace test2.jpg with images of your choice and keep playing. :D