Face Capture Detection via Webcam

asked 2014-08-21 00:35:54 -0500

chachan gravatar image

updated 2014-08-21 01:16:24 -0500

Hi, first of all I'm sorry if my English is kinda mess, cause this isn't my main languange.

I'm a kind of newbie and I get a college task to make gender recognition with SVM. I just told you before I am really a newbie, right? I don't know how to start. I already make a acquisition application to capture image through a webcam, but I don't know how to make webcam detect our face using OpenCv, and then when we press button capture, the image just capture our face. How to make it? How to join java and OpenCv?

Anyway I'm using Java and netbeans 7.1. Thank you so much and really really sorry.

edit retag flag offensive close merge delete



hey, that's quite advanced for a college project ;)

first, start reading

then, it's a bit unfortunate, that you want to do that from java, as a little bug in the java wrappers does not allow you to create a FaceRecognizer without additional jni code, so, probably much easier to do that from python, or c++

berak gravatar imageberak ( 2014-08-21 01:16:48 -0500 )edit

I know right? ;( I also really wanna change my program languange, but it seems I must do it in Java T_T Thank you so much, i'll try to read that first. but I'm quite beginner, maybe somtimes I'll asking questions again. Is it okay? Thank you so much :')

chachan gravatar imagechachan ( 2014-08-21 01:22:17 -0500 )edit

sure, feel free to ask again, that's what this site is all about ;)

if you want to start somehow, maybe first try to get images from the webcam, and try to get the face-detection running ? (that'll keep you busy for the day, hehe ;)

berak gravatar imageberak ( 2014-08-21 01:26:52 -0500 )edit

also read this page, there's a short facedetect demo at the bottom

berak gravatar imageberak ( 2014-08-21 01:31:00 -0500 )edit

I already did the application to get images from webcam. Now I a bit confuse how to make that rectangle in our face. And then capture that area. Waw... Is that hard? Okay, I'll stop talking and try that first. Once again thank you so much :')

chachan gravatar imagechachan ( 2014-08-21 01:32:10 -0500 )edit

the hard thing for most people is finding the resources. you will need to load an xml cascade file for this, the getClass().getResource... sometimes does not work, try an absolute path to the cascade then

berak gravatar imageberak ( 2014-08-21 04:59:17 -0500 )edit