face detect library

face detect library for processing
made with webcamxtra and openCV framework
jaegon lee, 2007

download

FaceDetectLibrary(ppc)
FaceDetectLibrary 02b(intel mac)
FaceDetectLibrary 03b(intel mac) add face size parameter

installation

- install openCV framework(http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port) to ~/System/Library/Frameworks



- move 'FaceDetect' folder to 'Processing-0xx/library' folder and 'haarcascade_frontalface_default.xml' to root directory
e.g. Macintosh HD/haarcascade_frontalface_default.xml

method

void start(int capture width, int capture height) : start face detect library(02b, minimum face size = 40)

void start(int capture width, int capture height,int minimum face size = 20~) : start face detect library(03b)

void stop() : stops face detect library

int[][] detect() : detects face(s), maximum 10 faces(not been tested yet)
- int[][0] : x
- int[][1] : y
- int[][2] : radius

int[] image() : returns pixel data(from webcam)

test pictures