Ask Your Question

Kamil Kalinowski's profile - activity

2015-09-07 10:44:05 -0500 received badge  Notable Question (source)
2014-05-26 11:36:02 -0500 received badge  Popular Question (source)
2013-01-29 08:27:35 -0500 received badge  Nice Question (source)
2012-09-18 17:09:32 -0500 received badge  Student (source)
2012-09-18 16:34:11 -0500 asked a question Haar Cascade detecting only faces(no heads)?

Hi, I'm currently trying to solve face tracking problem using mix of Haar Cascade and camshift methods. First, I find face region using CascadeClassifier, then I pass it to method which calculates histogram for that region and then, having mentioned region and historgram new region is calculated.

It looks fine on paper, in reality it's whole other thing. By saying that I mean that when using CascadeClassifier I get Rect object which contains not only face but also whole head and a bit of background. That makes calculated histogram to be useless - with every camshift loop iteration region which formerly contained face now expands because of bits of background mixed into histogram.

So, back to topic, do any of you know Haar cascade XML files which would cause CascadeClassifier to return only face region, excluding rest of head? Or do you know of any method that would help me with getting desired result?

By far, I tried those resources: - tried, all work like default cascades shipped with OpenCV - those xml files actually cause application fail while loading into cascade, though method used for teaching them(faces only) seems to be what i'm looking for.

I would appreciate any feedback, thanks