Search code examples
c++objective-copencvobject-detectionhaar-wavelet

Refining Haar detection


I'm trying to make a hand detection program by using OpenCV and Haar cascade. It works quite well but it's very jerky. So I'm asking myself if this is a trouble of the haar file that would be too 'cheap' or if there's a way to refine the detection by using contours or feature detection (or may be some other techniques).

What I would like to perform would be the same as this face detection, but for hands : Face Detection (see FaceOSC)

Thanks a lot.

EDIT : here is the kind of stuff I would like to do : Hand extraction It seems that he performs it with contour detection, but how to find the hand ?


Solution

  • The Hand Extraction video, you gave the link, is based on skin color detection and convex hull finding.

    1) Change image to YCrCb (or HSV).

    2) Threshold the image so that hand becomes white and everything other to black.

    3) Remove noise

    4) Find center of hand (if you like).

    5) Use convex hull to find sharpest points which will be finger tips.

    You can get full details from this paper.

    Anyway, no need of haar cascades.