<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: OpenCV Haartraining: Detect objects using Haar-like features</title>
	<atom:link href="http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/</link>
	<description>Rhonda Ltd., computer vision software blog</description>
	<lastBuildDate>Thu, 09 Sep 2010 14:42:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: shri</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-900</link>
		<dc:creator>shri</dc:creator>
		<pubDate>Fri, 03 Sep 2010 07:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-900</guid>
		<description>thanks for the reply,i got the answer from the function icvCreateCARTStageClassifier which is in cvhaartraining.cpp, ( left val and right val and threshold are adaboost algo dependent)

about the haar feature value: sum of black rectangle value -sum of white rectangle ,

                                                 depending on the values the sum will be -ve or +ve.

  thanks once again for the reply</description>
		<content:encoded><![CDATA[<p>thanks for the reply,i got the answer from the function icvCreateCARTStageClassifier which is in cvhaartraining.cpp, ( left val and right val and threshold are adaboost algo dependent)</p>
<p>about the haar feature value: sum of black rectangle value -sum of white rectangle ,</p>
<p>                                                 depending on the values the sum will be -ve or +ve.</p>
<p>  thanks once again for the reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Soldatov</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-893</link>
		<dc:creator>Andrey Soldatov</dc:creator>
		<pubDate>Thu, 02 Sep 2010 01:27:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-893</guid>
		<description>Hi shri, I&#039;m not sure regarding the question. Please, clarify &#039;can it be -ve or +ve (both)&#039;. Value of Haar feture can be positive or negative because weight of a rectangle can be positive or negative. After comparison of feature with threshold the algorithm chooses one of positive values: &#039;left_val&#039; or &#039;right val&#039;.</description>
		<content:encoded><![CDATA[<p>Hi shri, I&#8217;m not sure regarding the question. Please, clarify &#8216;can it be -ve or +ve (both)&#8217;. Value of Haar feture can be positive or negative because weight of a rectangle can be positive or negative. After comparison of feature with threshold the algorithm chooses one of positive values: &#8216;left_val&#8217; or &#8216;right val&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Soldatov</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-892</link>
		<dc:creator>Andrey Soldatov</dc:creator>
		<pubDate>Thu, 02 Sep 2010 01:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-892</guid>
		<description>I&#039;m not sure I understood you. If you just want to use haartraining, all these rules are inside OpenCV algorithm, so you don&#039;t actually need to know anything of them. Please, confirm if you need some more explanation about internals of the algorithm.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure I understood you. If you just want to use haartraining, all these rules are inside OpenCV algorithm, so you don&#8217;t actually need to know anything of them. Please, confirm if you need some more explanation about internals of the algorithm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobi</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-875</link>
		<dc:creator>Tobi</dc:creator>
		<pubDate>Thu, 19 Aug 2010 10:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-875</guid>
		<description>Hi Chenwei,

I also had the same problem! I configured everything correctly, but still I had empty output. How I solved my issues:
I found another compilation of my openCV and used its opencv_performance and all of a sudden it worked out. Maybe you try that too! (I know it is no solution, but it is a point to start)!!

greets, Tobi</description>
		<content:encoded><![CDATA[<p>Hi Chenwei,</p>
<p>I also had the same problem! I configured everything correctly, but still I had empty output. How I solved my issues:<br />
I found another compilation of my openCV and used its opencv_performance and all of a sudden it worked out. Maybe you try that too! (I know it is no solution, but it is a point to start)!!</p>
<p>greets, Tobi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shri</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-851</link>
		<dc:creator>shri</dc:creator>
		<pubDate>Tue, 03 Aug 2010 11:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-851</guid>
		<description>hi

 some one please tell  how to get the threshold and left val and right val as explained by anrey, as am new to haar training.</description>
		<content:encoded><![CDATA[<p>hi</p>
<p> some one please tell  how to get the threshold and left val and right val as explained by anrey, as am new to haar training.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shri</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-821</link>
		<dc:creator>shri</dc:creator>
		<pubDate>Sat, 17 Jul 2010 10:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-821</guid>
		<description>hi andrey,  please give some more explanation regarding weak classifier and its error calculation ,

ie, the selection of weak classifier, by AdaBoost    


 then the value of Harr feature can it be -ve or +ve (both)?


 thank you in advance</description>
		<content:encoded><![CDATA[<p>hi andrey,  please give some more explanation regarding weak classifier and its error calculation ,</p>
<p>ie, the selection of weak classifier, by AdaBoost    </p>
<p> then the value of Harr feature can it be -ve or +ve (both)?</p>
<p> thank you in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Soldatov</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-811</link>
		<dc:creator>Andrey Soldatov</dc:creator>
		<pubDate>Fri, 09 Jul 2010 05:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-811</guid>
		<description>In general, you need some knowledge about the Viola-Jones object detection algorithm and Haar features. You can start from wiki pages or from http://opencv.willowgarage.com/documentation/c/object_detection.html. There is short description of Haar features. Or read http://research.microsoft.com/en-us/um/people/viola/Pubs/Detect/violaJones_CVPR2001.pdf. But simple description of the parameters is as follows.

&#039;feature&#039; - a rule to get one number from multiple points of image. Object detection algorithm gets several (or several hundreds) such numbers from image and then analyzes them to return answer if it can detect the object.

Haar features are calculated based on two rectangles on image (To be more precise, on window of some size got from Viola-Jones algorithm. This size is encoded in xml in &#039;size&#039; field.) as sum of intensity of pixels on each rectangle. Then results for two rectangles are summed with weights (sum = sum1 * weight1 + sum2 * weight2). 5 numbers for each rectangle mean: (x, y, width, height, weight). Pay attention that the coordinates are related to window and not to whole image.

Then the algorithm compares sum with &#039;threshold&#039; and decides if feature is &#039;pro&#039; or &#039;con&#039; to say that an object detected. As a result of the comparison it selects &#039;left_val&#039; or &#039;right val&#039;. negative value is &#039;con&#039;, positive is &#039;pro&#039;.

On each stage the algorithm sums values &#039;pro&#039; and &#039;con&#039; for several features and compares this sum with stage_threshold. If sum is lager than &#039;stage_threshold&#039;, window is considered as passed the stage.

If some window passed all stages it passed whole classifier.</description>
		<content:encoded><![CDATA[<p>In general, you need some knowledge about the Viola-Jones object detection algorithm and Haar features. You can start from wiki pages or from <a href="http://opencv.willowgarage.com/documentation/c/object_detection.html" rel="nofollow">http://opencv.willowgarage.com/documentation/c/object_detection.html</a>. There is short description of Haar features. Or read <a href="http://research.microsoft.com/en-us/um/people/viola/Pubs/Detect/violaJones_CVPR2001.pdf" rel="nofollow">http://research.microsoft.com/en-us/um/people/viola/Pubs/Detect/violaJones_CVPR2001.pdf</a>. But simple description of the parameters is as follows.</p>
<p>&#8216;feature&#8217; &#8211; a rule to get one number from multiple points of image. Object detection algorithm gets several (or several hundreds) such numbers from image and then analyzes them to return answer if it can detect the object.</p>
<p>Haar features are calculated based on two rectangles on image (To be more precise, on window of some size got from Viola-Jones algorithm. This size is encoded in xml in &#8216;size&#8217; field.) as sum of intensity of pixels on each rectangle. Then results for two rectangles are summed with weights (sum = sum1 * weight1 + sum2 * weight2). 5 numbers for each rectangle mean: (x, y, width, height, weight). Pay attention that the coordinates are related to window and not to whole image.</p>
<p>Then the algorithm compares sum with &#8216;threshold&#8217; and decides if feature is &#8216;pro&#8217; or &#8216;con&#8217; to say that an object detected. As a result of the comparison it selects &#8216;left_val&#8217; or &#8216;right val&#8217;. negative value is &#8216;con&#8217;, positive is &#8216;pro&#8217;.</p>
<p>On each stage the algorithm sums values &#8216;pro&#8217; and &#8216;con&#8217; for several features and compares this sum with stage_threshold. If sum is lager than &#8216;stage_threshold&#8217;, window is considered as passed the stage.</p>
<p>If some window passed all stages it passed whole classifier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jsay</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-798</link>
		<dc:creator>Jsay</dc:creator>
		<pubDate>Tue, 22 Jun 2010 12:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-798</guid>
		<description>Tags like &quot;feature&quot;, &quot;rects&quot;, &quot;threshold&quot;, &quot;light_val&quot;, &quot;right_val&quot;...</description>
		<content:encoded><![CDATA[<p>Tags like &#8220;feature&#8221;, &#8220;rects&#8221;, &#8220;threshold&#8221;, &#8220;light_val&#8221;, &#8220;right_val&#8221;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jsay</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-797</link>
		<dc:creator>Jsay</dc:creator>
		<pubDate>Tue, 22 Jun 2010 12:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-797</guid>
		<description>Hello,

I&#039;m just wondering that how to interpret the resulting xml-file? There are tags like , , , , , ..

Could you explain me those and the values included?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m just wondering that how to interpret the resulting xml-file? There are tags like , , , , , ..</p>
<p>Could you explain me those and the values included?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Soldatov</title>
		<link>http://www.computer-vision-software.com/blog/2009/06/opencv-haartraining-detect-objects-using-haar-like-features/comment-page-2/#comment-786</link>
		<dc:creator>Andrey Soldatov</dc:creator>
		<pubDate>Wed, 16 Jun 2010 01:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.computer-vision-software.com/blog/?p=64#comment-786</guid>
		<description>Hi, Atul. I believe, you use incorrect (too small) size of sample. You should replace &quot;20 20&quot; with the size used during training.

But another question, for which purpose do you use haarconv? OpenCV creates xml file in the end of training and there is no need to make it manually. Besides, OpenCV package contains convert_cascade.exe if you need to convert temporary results of training to xml to perform some tests while cascade is not ready yet. In both cases of haarconv and convert_cascade you must specify correct size of sample.</description>
		<content:encoded><![CDATA[<p>Hi, Atul. I believe, you use incorrect (too small) size of sample. You should replace &#8220;20 20&#8243; with the size used during training.</p>
<p>But another question, for which purpose do you use haarconv? OpenCV creates xml file in the end of training and there is no need to make it manually. Besides, OpenCV package contains convert_cascade.exe if you need to convert temporary results of training to xml to perform some tests while cascade is not ready yet. In both cases of haarconv and convert_cascade you must specify correct size of sample.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
