Skip to the content.

face_detection.py

index

preparation

Search haarcascade_frontalface_alt.xml:

$ sudo find / -name "haarcascade_frontalface_alt.xml"

and copy file to this repository directory

If you cannot find file, please download from web

usage

$ python face_detection.py sample.jpg

original image

image

processed image

image

face_detection_camera.py

caution

Camera is needed

preparation

Search haarcascade_frontalface_alt.xml:

$ sudo find / -name "haarcascade_frontalface_alt.xml"

and copy file to this repository directory

If you cannot find file, please download from web

command

$ python face_detection_camera.py

Reference