CAMShift for face tracking

asked 2015-02-22 21:00:05 -0600

Jack000 gravatar image

I'm just getting started with OpenCV and for my first project I'm trying to do some face detection and tracking. The use case is pretty simple:

  • find one face in my webcam feed with Haar Cascade
  • track the center point of that face with CAMShift/meanshift

the face detection part works fine, but I find that CAMShift and meanshift tends to extend to the neck region, lowering my center point. Is there any way to tell CAMShift that I'm only interested in faces? Is this the wrong approach for what I'm trying to do - what is the best way to track the face, and only the face after the detection step?

edit retag flag offensive close merge delete

Comments

Hmmm, for me it seems more legit to use Kalman for your face tracking or optical flow.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-23 06:24:12 -0600 )edit
1

yeah that's what I'm doing now. I thought Haar -> CAMShift -> Kalman would have better performance and/or be more accurate, as suggested by this: https://code.google.com/p/camshift-ka... but maybe CAMShift is just not the right way to solve this particular problem.

Jack000 gravatar imageJack000 ( 2015-02-24 01:05:09 -0600 )edit