face detect library

face detect library for processing(tested on Processing 1.1 / MacOS X 10.6)
jaegon lee, 2007-

download

Face Detect Library(intel mac)

installation

- install openCV framework 1.2(http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port) to /System/Library/Frameworks
direct link: http://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.2.dmg



- unzip 'FaceDetect.zip'
- move 'FaceDetect' folder to 'Documents/processing/libraries' folder and 'data' folder to your sketch folder

example code

face_example.pde(processing video library)
face_example_jmyron.pde(JMyron library)

FUNCTIONS

void start("haarcascade_frontalface_default.xml", int capture width, int capture height, int minimum face size = 20~) : start face detect library. haar file must be in 'data' folder of your sketch folder.

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

test pictures




---

face detect library

ÇÁ·Î¼¼½Ì¿ë ¾ó±¼ °ËÃâ ¶óÀ̺귯¸®(ÇÁ·Î¼¼½Ì 1.1 / MacOS X 10.6¿¡¼­ Å×½ºÆ®)

´Ù¿î·Îµå

Face Detect Library(ÀÎÅÚ¸Æ)

¼³Ä¡¹æ¹ý

- Mac OS¿ë OpenCV 1.2¸¦ ´Ù¿î·Îµå¹ÞÀº ÈÄ (http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port) /System/Library/FrameworksÆú´õ·Î À̵¿
´Ù¿î·Îµå ¸µÅ©: http://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.2.dmg



- ¶óÀ̺귯¸®¸¦ ´Ù¿î·Îµå¹Þ°í ¾ÐÃàÀ» Ǭ´Ù
- 'FaceDetect' Æú´õ¸¦ 'µµÅ¥¸àÆ®/Processing/libraries' Æú´õ·Î À̵¿
- FaceDetect/dataÆú´õ¿¡´Â ¾ó±¼ °ËÃâ¿¡ ÇÊ¿äÇÑ haarÆÄÀϵéÀÌ µé¾î ÀÖ½À´Ï´Ù. »õ·Î¿î Äڵ带 ÀÛ¼ºÇÒ ¶§¿¡ ½ºÄÉÄ¡/dataÆú´õ¿¡ º¹»çÇØ¼­ ³Ö½À´Ï´Ù.

¿¹Á¦ ÄÚµå

face_example.pde(processing video library)
face_example_jmyron.pde(JMyron library)

ÇÔ¼ö

FaceDetect(this) : »ý¼ºÀÚ ÇÔ¼ö

void start("haarcascade_frontalface_default.xml", int capture width, int capture height, int minimum face size = 20~) : FaceDetect¶óÀ̺귯¸®ÀÇ ±âº»°ªÀ» ¼³Á¤ÇÕ´Ï´Ù. ºÒ·¯¿À´Â HaarÆÄÀÏ¿¡ µû¶ó¼­ ¾ó±¼, ¸ö, ¼Õ µîÀ» °ËÃâÇÒ ¼ö ÀÖ½À´Ï´Ù. HaarÆÄÀÏÀº dataÆú´õ¾È¿¡ ³Ö¾î³õ½À´Ï´Ù.

int[][] detect(PImage or int[]) : ¾ó±¼À» °ËÃâÇÕ´Ï´Ù.(ÃÖ´ë 10°³)
- int[][0] : x
- int[][1] : y
- int[][2] : radius

test pictures