We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 
Face Detect Library (Read 13488 times)
Face Detect Library
Sep 22nd, 2007, 3:36pm
 
I made face detect library with webcamxtra source code and openCV framework.
thanks for jtnimoy and intel. Smiley
Intel mac version only.

http://tokage.cafe24.com/facedetect/index.htm

download : http://tokage.cafe24.com/FaceDetectLibrary.zip

Re: Face Detect Library
Reply #1 - Sep 24th, 2007, 11:48am
 
sounds interessting!

the download-links (here/your website) are not working for me .. can you check they are ok?

F
Re: Face Detect Library
Reply #2 - Sep 24th, 2007, 3:51pm
 
sorry. i fixed link.
Re: Face Detect Library
Reply #3 - Sep 24th, 2007, 11:39pm
 
Me Wantie Windows-version!
I had a quick attempt at writing my own, but I can't seem to find the same OpenCV folder as the one you have.. I'm missing files at least.. Probably have to include some libs or something.. I'm not that into C, so I think I'll leave it to people who know how Smiley Or if they want to give me pointers, I'll be happy to write it.

-seltar
Re: Face Detect Library
Reply #4 - Sep 25th, 2007, 1:34am
 
Jaegon, thank you a lot, it is nicely working !

Is it possible to change the default path calls to the opencv framework and cascade xml ?

Having them, just like the fonts, in you data's sketch folder would be more convenient. Smiley

Re: Face Detect Library
Reply #5 - Oct 1st, 2007, 6:52am
 
I would love to run this, but an not sufficiently knowledgable to know if and where I should install the openCV framework?  I also understand the instruction

" move 'FaceDetect' folder to 'Processing-0xx/library' folder and 'haarcascade_frontalface_default.xml' to root directory" to mean to move this file to the Processing root directory?

I am running OSX 10.4.10 on a 2.16GHz Intell core-duo


Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: /Applications/Processing 0125/libraries/FaceDetect/library/libFaceDetect.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at FaceDetect.FaceDetect.<clinit>(FaceDetect.java:15)
Re: Face Detect Library
Reply #6 - Oct 2nd, 2007, 10:32am
 
copy the OpenCV.framework file into the /system/library folder then it will work well, almost work, i got p5 to start, but can't seem to get any face tracking working
Re: Face Detect Library
Reply #7 - Oct 11th, 2007, 10:41am
 
The root directory is in fact the boot partition.
Re: Face Detect Library
Reply #8 - Oct 24th, 2007, 1:45pm
 
Hi,

Great lib. I'd like to try it on Windows...
Re: Face Detect Library
Reply #9 - Nov 5th, 2007, 8:25am
 
Nice work, I'm really happy to see the circle on my face!!!

One question, is it possible to hijack the input stream from the raw image from the webcam, for example a video file/still image? Do you use jmyron library to obtain the camera image?
Re: Face Detect Library
Reply #10 - Apr 14th, 2008, 4:23am
 
i keep getting this for some reason:


/tmp/build59121.tmp/Temporary_3732_1902.java:16:3:16:24: Semantic Error: No applicable overload for a method with signature "start(int, int)" was found in type "FaceDetect.FaceDetect". Perhaps you wanted the overloaded version "void start(int $1, int $2, int $3);" instead?

any idea what i should do?



latest: got it working...as always if in doubt...reinstall...

jus to let you know...installed this on a mac pro, with leopard running...many thanks Smiley
Re: Face Detect Library
Reply #11 - Apr 17th, 2008, 11:39pm
 
I'm having trouble getting to work, i was wondering if anyone could help. It seems as if the whole instillation went smoothly, and I ran the example without any errors, but although with the sample code i get the video, it never identifies any faces or anything at all. I was wondering if anyone could help me.

I'm running it off of a;
powerbookG4 ppc
firewire camera
with processing version 135

as i said everything works without errors, but no faces are recognized. I've seen the software work so i know it does but i can't seem to figure out why it isn't working for me.
Re: Face Detect Library
Reply #12 - May 6th, 2008, 10:42am
 
This is a great lib! What about Hand and Finger detection?
Re: Face Detect Library
Reply #13 - May 7th, 2008, 7:22pm
 
hello jaegon,

please post a clear code example on your site and in the code download. one of my students was trying to work with the library and it wasn't clear how to write the code in relation to jmyron. thank you!

casey
Re: Face Detect Library
Reply #14 - Jun 4th, 2008, 3:09pm
 
I updated face detect library for mac os(intel mac),
and now it works with processing video library, JMyron, PImage

http://tokage.cafe24.com/facedetect/index.htm

// example code
import processing.video.*;
import FaceDetect.*;

FaceDetect fd;
Capture cam;

int MAX = 10;

int[] x = new int[MAX];
int[] y = new int[MAX];
int[] r = new int[MAX];
int[][] Faces = new int[MAX][3];

void setup(){

 size(320,240,P3D);
 cam = new Capture(this, 320, 240);
 fd = new FaceDetect(this);
 fd.start("haarcascade_frontalface_alt.xml", width,height,30);
 stroke(255,200,0);
 
 noFill();
}

void draw(){
 if (cam.available()) {
   cam.read();
   image(cam,0,0);

   Faces = fd.face(cam);
   int count = Faces.length;
   //    println(count);
   if (count>0) {
     for (int i = 0;i<count;i++) {
       x[i] = Faces[i][0];
       y[i] = Faces[i][1];
       r[i] = Faces[i][2] * 2;
       ellipse(x[i],y[i],r[i],r[i]);
     }
   }
 }
}

Pages: 1 2