Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CAMShift for face tracking

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?