my latest project “movableDisplay” uses face tracking for navigation. harald told me that opencv has a nice face detection example. so i created a small tool for OS X that uses the built-in isight of my macbook and tracks the position of the user’s head. the coordinates and the radius are sent to other applications via OSC (oscpack library). the tool should be portable to any other platform.

– install OpenCV.framework
– open your terminal and browse to the folder
– write “./FaceDetectionOSC –cascade=haarcascade_frontalface_default.xml”

the packets /x, /y and /radius are broadcasted to localhost/ via OSC.

Download FaceDetectionOSC.zip (OS X Universal)

Download Processing Example