<?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/">
	<channel>
		<title><![CDATA[Forums - VisionLab]]></title>
		<link>http://mitov.com/forum/</link>
		<description><![CDATA[Forums - http://mitov.com/forum]]></description>
		<pubDate>Wed, 17 Jun 2026 00:00:16 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Haar Cascade XML, what format?]]></title>
			<link>http://mitov.com/forum/thread-3529.html</link>
			<pubDate>Tue, 20 Dec 2016 15:54:50 -0500</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-3529.html</guid>
			<description><![CDATA[I pulled a new xml file from openCV.  It looked like some performance optimization had been done (according to the git notes).<br />
<br />
I seems that the current xml does not match what was included with the lab packs.  <br />
<br />
This being the case, I can't use a new haar trainer to generate xml for my project, and I current;y have no way to determine what version/variant of an older haar trainer would be compatible.<br />
<br />
Help!<br />
<br />
Example:<br />
LabPack<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;opencv_storage&gt;<br />
&lt;haarcascade_frontaleye type_id="opencv-haar-classifier"&gt;<br />
&nbsp;&nbsp;&lt;size&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;20 20&lt;/size&gt;<br />
&nbsp;&nbsp;&lt;stages&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- stage 0 --&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;trees&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- tree 0 --&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&n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296395957469940&lt;/threshold&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;left_val&gt;-0.7730420827865601&lt;/left_val&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;right_val&gt;0.6835014820098877&lt;/right_val&gt;&lt;/_&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- tree 1 --&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- root node --&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;feature&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rects&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9 1 4 15 -1.&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9 6 4 5 3.&lt;/_&gt;&lt;/rects&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tilted&gt;0&lt;/tilted&gt;&lt;/feature&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;threshold&gt;-0.0463268086314201&lt;/threshold&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;left_val&gt;0.5735275149345398&lt;/left_val&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;right_val&gt;-0.4909768998622894&lt;/right_val&gt;&lt;/_&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;</code></div></div>
<br />
Current OpenCV<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;opencv_storage&gt;<br />
&lt;cascade type_id="opencv-cascade-classifier"&gt;&lt;stageType&gt;BOOST&lt;/stageType&gt;<br />
&nbsp;&nbsp;&lt;featureType&gt;HAAR&lt;/featureType&gt;<br />
&nbsp;&nbsp;&lt;height&gt;20&lt;/height&gt;<br />
&nbsp;&nbsp;&lt;width&gt;20&lt;/width&gt;<br />
&nbsp;&nbsp;&lt;stageParams&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;maxWeakCount&gt;93&lt;/maxWeakCount&gt;&lt;/stageParams&gt;<br />
&nbsp;&nbsp;&lt;featureParams&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;maxCatCount&gt;0&lt;/maxCatCount&gt;&lt;/featureParams&gt;<br />
&nbsp;&nbsp;&lt;stageNum&gt;24&lt;/stageNum&gt;<br />
&nbsp;&nbsp;&lt;stages&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;maxWeakCount&gt;6&lt;/maxWeakCount&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;stageThreshold&gt;-1.4562760591506958e+00&lt;/stageThreshold&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;weakClassifiers&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 0 1.2963959574699402e-01&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-7.7304208278656006e-01 6.8350148200988770e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 1 -4.6326808631420135e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.7352751493453979e-01 -4.9097689986228943e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 2 -1.6173090785741806e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6.0254341363906860e-01 -3.1610709428787231e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 3 -4.5828841626644135e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6.4177548885345459e-01 -1.5545040369033813e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 4 -5.3759619593620300e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.4219317436218262e-01 -2.0480829477310181e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 5 3.4171190112829208e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-2.3388190567493439e-01 4.8410901427268982e-01&lt;/leafValues&gt;&lt;/_&gt;&lt;/weakClassifiers&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;</code></div></div>
]]></description>
			<content:encoded><![CDATA[I pulled a new xml file from openCV.  It looked like some performance optimization had been done (according to the git notes).<br />
<br />
I seems that the current xml does not match what was included with the lab packs.  <br />
<br />
This being the case, I can't use a new haar trainer to generate xml for my project, and I current;y have no way to determine what version/variant of an older haar trainer would be compatible.<br />
<br />
Help!<br />
<br />
Example:<br />
LabPack<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;opencv_storage&gt;<br />
&lt;haarcascade_frontaleye type_id="opencv-haar-classifier"&gt;<br />
&nbsp;&nbsp;&lt;size&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;20 20&lt;/size&gt;<br />
&nbsp;&nbsp;&lt;stages&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- stage 0 --&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;trees&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- tree 0 --&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- root node --&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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.&lt;/_&gt;&lt;/rects&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tilted&gt;0&lt;/tilted&gt;&lt;/feature&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;threshold&gt;-0.0463268086314201&lt;/threshold&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;left_val&gt;0.5735275149345398&lt;/left_val&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;right_val&gt;-0.4909768998622894&lt;/right_val&gt;&lt;/_&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;</code></div></div>
<br />
Current OpenCV<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;opencv_storage&gt;<br />
&lt;cascade type_id="opencv-cascade-classifier"&gt;&lt;stageType&gt;BOOST&lt;/stageType&gt;<br />
&nbsp;&nbsp;&lt;featureType&gt;HAAR&lt;/featureType&gt;<br />
&nbsp;&nbsp;&lt;height&gt;20&lt;/height&gt;<br />
&nbsp;&nbsp;&lt;width&gt;20&lt;/width&gt;<br />
&nbsp;&nbsp;&lt;stageParams&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;maxWeakCount&gt;93&lt;/maxWeakCount&gt;&lt;/stageParams&gt;<br />
&nbsp;&nbsp;&lt;featureParams&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;maxCatCount&gt;0&lt;/maxCatCount&gt;&lt;/featureParams&gt;<br />
&nbsp;&nbsp;&lt;stageNum&gt;24&lt;/stageNum&gt;<br />
&nbsp;&nbsp;&lt;stages&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;maxWeakCount&gt;6&lt;/maxWeakCount&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;stageThreshold&gt;-1.4562760591506958e+00&lt;/stageThreshold&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;weakClassifiers&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 0 1.2963959574699402e-01&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-7.7304208278656006e-01 6.8350148200988770e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 1 -4.6326808631420135e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.7352751493453979e-01 -4.9097689986228943e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 2 -1.6173090785741806e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6.0254341363906860e-01 -3.1610709428787231e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 3 -4.5828841626644135e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6.4177548885345459e-01 -1.5545040369033813e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 4 -5.3759619593620300e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.4219317436218262e-01 -2.0480829477310181e-01&lt;/leafValues&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -1 5 3.4171190112829208e-02&lt;/internalNodes&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;leafValues&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-2.3388190567493439e-01 4.8410901427268982e-01&lt;/leafValues&gt;&lt;/_&gt;&lt;/weakClassifiers&gt;&lt;/_&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;_&gt;</code></div></div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[TVLHaarObjectDetect 4-5 Second Delay]]></title>
			<link>http://mitov.com/forum/thread-3516.html</link>
			<pubDate>Tue, 13 Dec 2016 13:48:45 -0500</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-3516.html</guid>
			<description><![CDATA[I've connected a VLDSCapture output to a VLHaarDetectObjects control, and a VLImageDisplay.<br />
The VLHaarDetectObjects control is updating a second VLImageDisplay.<br />
The detect is working, but there seems to be 4-5 seconds behind the camera.<br />
<br />
Any thoughts on optimizations, compression algorithms, etc.?<br />
<br />
I tried recording the video, and using an AVI player as in the demo, but that also trails by 4-5 seconds.<br />
<br />
If I use a single AVI player as in the demo, the delay isn't visible, but if I play the same source through two different AVI Players, the feed from the HaarDetect quickly gets (and stays) 4-5 seconds behind...]]></description>
			<content:encoded><![CDATA[I've connected a VLDSCapture output to a VLHaarDetectObjects control, and a VLImageDisplay.<br />
The VLHaarDetectObjects control is updating a second VLImageDisplay.<br />
The detect is working, but there seems to be 4-5 seconds behind the camera.<br />
<br />
Any thoughts on optimizations, compression algorithms, etc.?<br />
<br />
I tried recording the video, and using an AVI player as in the demo, but that also trails by 4-5 seconds.<br />
<br />
If I use a single AVI player as in the demo, the delay isn't visible, but if I play the same source through two different AVI Players, the feed from the HaarDetect quickly gets (and stays) 4-5 seconds behind...]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[VLAxisCapture memory leak]]></title>
			<link>http://mitov.com/forum/thread-3018.html</link>
			<pubDate>Mon, 30 Sep 2013 11:19:25 -0400</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-3018.html</guid>
			<description><![CDATA[If I create a form, drop a VLAxisCapture on it (set to a local AXIS camera and active) and run the application memory usage climbs continuously.  About 400k a second.<br />
<br />
Might be in the Axis active X control, no way for me to know for sure (no source).  <br />
<br />
However I replaced the video source with a generic image generator (playing 9 frames from bitmap files on a loop) and the demo app memory use is stable so this doesn't appear to be related to motion detection or vldraw/layers/etc.]]></description>
			<content:encoded><![CDATA[If I create a form, drop a VLAxisCapture on it (set to a local AXIS camera and active) and run the application memory usage climbs continuously.  About 400k a second.<br />
<br />
Might be in the Axis active X control, no way for me to know for sure (no source).  <br />
<br />
However I replaced the video source with a generic image generator (playing 9 frames from bitmap files on a loop) and the demo app memory use is stable so this doesn't appear to be related to motion detection or vldraw/layers/etc.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Cascade Classification for TVLHaarDetectObject]]></title>
			<link>http://mitov.com/forum/thread-3001.html</link>
			<pubDate>Mon, 08 Jul 2013 08:21:52 -0400</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-3001.html</guid>
			<description><![CDATA[I want use TVLHaarDetectObject for detect object (b/w beacon)<br />
<br />
TVLHaarDetectObject demands xml-file Cascade Classification.<br />
How to create it?<br />
What component allows to make it?<br />
Whether there are examples?]]></description>
			<content:encoded><![CDATA[I want use TVLHaarDetectObject for detect object (b/w beacon)<br />
<br />
TVLHaarDetectObject demands xml-file Cascade Classification.<br />
How to create it?<br />
What component allows to make it?<br />
Whether there are examples?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Video tracker]]></title>
			<link>http://mitov.com/forum/thread-932.html</link>
			<pubDate>Mon, 15 Oct 2012 04:26:45 -0400</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-932.html</guid>
			<description><![CDATA[[/size]Hi<br />
I will like to use the VisionLab VCL components to <br />
develop a real time video tracker.<br />
I need to user to click on the video image and then use visionlab<br />
to find a target to lock on.<br />
Then I need to move a pan and tilt video camera according to<br />
the target movement.<br />
You can look to an example here:<br />
<a href="http://www.trackertechnology.com/demos.html" target="_blank">http://www.trackertechnology.com/demos.html</a><br />
<br />
Is there a way of doing so, and if so what components of visionlab<br />
should I use and in what way.<br />
If you can send me an example I will appreciate it.<br />
I looked at the TargetsTrackDemo.exe example but I need to keep tracking the object near the mouse click all the time. In the example<br />
the acquired targets change all the time.<br />
Thanks Allot<br />
Raz]]></description>
			<content:encoded><![CDATA[[/size]Hi<br />
I will like to use the VisionLab VCL components to <br />
develop a real time video tracker.<br />
I need to user to click on the video image and then use visionlab<br />
to find a target to lock on.<br />
Then I need to move a pan and tilt video camera according to<br />
the target movement.<br />
You can look to an example here:<br />
<a href="http://www.trackertechnology.com/demos.html" target="_blank">http://www.trackertechnology.com/demos.html</a><br />
<br />
Is there a way of doing so, and if so what components of visionlab<br />
should I use and in what way.<br />
If you can send me an example I will appreciate it.<br />
I looked at the TargetsTrackDemo.exe example but I need to keep tracking the object near the mouse click all the time. In the example<br />
the acquired targets change all the time.<br />
Thanks Allot<br />
Raz]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[TVLHaarDetectObject]]></title>
			<link>http://mitov.com/forum/thread-355.html</link>
			<pubDate>Mon, 21 May 2012 01:42:19 -0400</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-355.html</guid>
			<description><![CDATA[Hi all,<br />
I downloaded Face Detection Demo and try to rewrite pascal into c++ builder.<br />
In OnDetectedObjects event handler in c++ code, I wrote below.<br />
<br />
// code starts<br />
void __fastcall TForm1::VLHaarDetectObjects1DetectedObjects(TObject *Sender, TVLDetectedObjects *Objects)<br />
<br />
{<br />
	int i,j;<br />
	TVLImageRect ARectangle;<br />
	TVLBitmap* ABitmap;<br />
<br />
<br />
	CodeSite-&gt;Send("Objects-&gt;Count:"+IntToStr(Objects-&gt;Count));<br />
	ABitmap = new TVLBitmap();<br />
	VLHaarDetectObjects1-&gt;CurrentImage-&gt;ToBitmap(ABitmap);<br />
<br />
	ABitmap-&gt;Canvas-&gt;Font-&gt;Color = clWhite;<br />
	for(i=0;i&lt;Objects-&gt;Count;i++){<br />
		ARectangle = Objects-&gt;Items[i]-&gt;Rectangle;<br />
		ABitmap-&gt;Canvas-&gt;Brush-&gt;Style = bsClear;<br />
		ABitmap-&gt;Canvas-&gt;Pen-&gt;Color = clRed;<br />
		ABitmap-&gt;Canvas-&gt;Ellipse(ARectangle.X,ARectangle.Y,ARectangle.X+ARectangle.Width,ARectangle.Y+&#8203;ARectangle.Height);<br />
		ABitmap-&gt;Canvas-&gt;TextOutW(ARectangle.X+ARectangle.Width/2,ARectangle.Y+ARectangle.Height/2,Objects-&gt;Items[i]-&gt;Name);<br />
<br />
		ABitmap-&gt;Canvas-&gt;Pen-&gt;Color = clYellow;<br />
		for(j=0;j&lt;Objects-&gt;Items[i]-&gt;Objects-&gt;Count;j++){<br />
			ARectangle = Objects-&gt;Items[i]-&gt;Objects-&gt;Items[j]-&gt;Rectangle;<br />
			ABitmap-&gt;Canvas-&gt;Ellipse(ARectangle.X,ARectangle.Y,ARectangle.X+ARectangle.Width,ARectangle.Y+&#8203;ARectangle.Height);<br />
			ABitmap-&gt;Canvas-&gt;TextOutW(ARectangle.X+ARectangle.Width/2,ARectangle.Y+ARectangle.Height/2,<br />
										Objects-&gt;Items[i]-&gt;Objects-&gt;Items[j]-&gt;Name);<br />
		}<br />
	}<br />
<br />
	VLImageDisplay2-&gt;DisplayBitmap(ABitmap);<br />
	delete ABitmap;<br />
<br />
}<br />
// code ends.<br />
<br />
It seems the event handler is called, but "Objects-&gt;Count" is always equal to zero. Objects-&gt;Count should have a value more than 0.<br />
Suggestions and advice are appreciated. <br />
Thanks in advance.<br />
<br />
Compiler: RadStudio XE2(c++ Builder) update4 <br />
Component ver: 5.02]]></description>
			<content:encoded><![CDATA[Hi all,<br />
I downloaded Face Detection Demo and try to rewrite pascal into c++ builder.<br />
In OnDetectedObjects event handler in c++ code, I wrote below.<br />
<br />
// code starts<br />
void __fastcall TForm1::VLHaarDetectObjects1DetectedObjects(TObject *Sender, TVLDetectedObjects *Objects)<br />
<br />
{<br />
	int i,j;<br />
	TVLImageRect ARectangle;<br />
	TVLBitmap* ABitmap;<br />
<br />
<br />
	CodeSite-&gt;Send("Objects-&gt;Count:"+IntToStr(Objects-&gt;Count));<br />
	ABitmap = new TVLBitmap();<br />
	VLHaarDetectObjects1-&gt;CurrentImage-&gt;ToBitmap(ABitmap);<br />
<br />
	ABitmap-&gt;Canvas-&gt;Font-&gt;Color = clWhite;<br />
	for(i=0;i&lt;Objects-&gt;Count;i++){<br />
		ARectangle = Objects-&gt;Items[i]-&gt;Rectangle;<br />
		ABitmap-&gt;Canvas-&gt;Brush-&gt;Style = bsClear;<br />
		ABitmap-&gt;Canvas-&gt;Pen-&gt;Color = clRed;<br />
		ABitmap-&gt;Canvas-&gt;Ellipse(ARectangle.X,ARectangle.Y,ARectangle.X+ARectangle.Width,ARectangle.Y+&#8203;ARectangle.Height);<br />
		ABitmap-&gt;Canvas-&gt;TextOutW(ARectangle.X+ARectangle.Width/2,ARectangle.Y+ARectangle.Height/2,Objects-&gt;Items[i]-&gt;Name);<br />
<br />
		ABitmap-&gt;Canvas-&gt;Pen-&gt;Color = clYellow;<br />
		for(j=0;j&lt;Objects-&gt;Items[i]-&gt;Objects-&gt;Count;j++){<br />
			ARectangle = Objects-&gt;Items[i]-&gt;Objects-&gt;Items[j]-&gt;Rectangle;<br />
			ABitmap-&gt;Canvas-&gt;Ellipse(ARectangle.X,ARectangle.Y,ARectangle.X+ARectangle.Width,ARectangle.Y+&#8203;ARectangle.Height);<br />
			ABitmap-&gt;Canvas-&gt;TextOutW(ARectangle.X+ARectangle.Width/2,ARectangle.Y+ARectangle.Height/2,<br />
										Objects-&gt;Items[i]-&gt;Objects-&gt;Items[j]-&gt;Name);<br />
		}<br />
	}<br />
<br />
	VLImageDisplay2-&gt;DisplayBitmap(ABitmap);<br />
	delete ABitmap;<br />
<br />
}<br />
// code ends.<br />
<br />
It seems the event handler is called, but "Objects-&gt;Count" is always equal to zero. Objects-&gt;Count should have a value more than 0.<br />
Suggestions and advice are appreciated. <br />
Thanks in advance.<br />
<br />
Compiler: RadStudio XE2(c++ Builder) update4 <br />
Component ver: 5.02]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Simple Template Maching]]></title>
			<link>http://mitov.com/forum/thread-100.html</link>
			<pubDate>Tue, 31 Jan 2012 03:45:06 -0500</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-100.html</guid>
			<description><![CDATA[Hello..<br />
     How can I implement an image template matching algorithm.?<br />
Does anyone have some exsample code ? all any suggesion?<br />
<br />
            Thanks in advance]]></description>
			<content:encoded><![CDATA[Hello..<br />
     How can I implement an image template matching algorithm.?<br />
Does anyone have some exsample code ? all any suggesion?<br />
<br />
            Thanks in advance]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Freezing]]></title>
			<link>http://mitov.com/forum/thread-68.html</link>
			<pubDate>Wed, 07 Dec 2011 07:10:46 -0500</pubDate>
			<guid isPermaLink="false">http://mitov.com/forum/thread-68.html</guid>
			<description><![CDATA[Hi!<br />
<br />
I am trying use VLDSCapture to capture my webcam video and i linked the output pin to VLHaarDetectObjects (it is configured like the example of facedetect to try detect my face) but when i start the VLHaarDetectObjects the VLImageDisplay is freezing. If i stop the VLHaarDetectObjects, my VLImageDisplay becomes normal.<br />
<br />
Can you help me Mr Boian Mitov?<br />
Your components are perfects! Congratulations!<br />
<br />
Best Regards,<br />
Rafael]]></description>
			<content:encoded><![CDATA[Hi!<br />
<br />
I am trying use VLDSCapture to capture my webcam video and i linked the output pin to VLHaarDetectObjects (it is configured like the example of facedetect to try detect my face) but when i start the VLHaarDetectObjects the VLImageDisplay is freezing. If i stop the VLHaarDetectObjects, my VLImageDisplay becomes normal.<br />
<br />
Can you help me Mr Boian Mitov?<br />
Your components are perfects! Congratulations!<br />
<br />
Best Regards,<br />
Rafael]]></content:encoded>
		</item>
	</channel>
</rss>