diviquery
diviquery

Reputation: 759

Explanation of haarcascade xml files in opencv

I'm working on a project for which I require high accuracy for face detection. For detection I'm using opencv with python.

I'm still not able to achieve my target so I was thinking of manipulating the fields/data in the xml files - haarcascade_frontalface_default.xml and haarcascade_frontalface_alt2.xml.

However, I was unable to understand the tags in it. I want a brief explanation of the major tags only.

Upvotes: 1

Views: 5428

Answers (1)

luke88
luke88

Reputation: 1008

Personally I used in more than one occasion the standard opencv's classifiers and they worked fine for me.

But there are a lot of features that could make this classifiers not the best choice for you, like for example the pose of the face (common problem), the excessive luminosity in the captured frame, etc.

You can try to create your own classifier (http://docs.opencv.org/trunk/d7/d8b/tutorial_py_face_detection.html):

  1. with an existing dataset (here you can choose the best one that fits for your goal based on the explanations http://www.face-rec.org/databases/)
  2. or with a custom dataset with pictures (a lot of) taken by you in similar conditions of when your application has to detect the face

Upvotes: 1

Related Questions