I have predefined XML in c:\opencv\sources\data\haarcascades\ My generated xml is differ, because: - predefined are big or pretty big: 280 KB - 3.6 MB - structure diffs: in predefined is:
<_> <!-- tree 13 --> <_> <!-- root node --> <feature> <rects> <_>11 9 4 7 -1.</_> <_>11 9 2 7 2.</_></rects> <tilted>0</tilted></feature> <threshold>8.6949411779642105e-003</threshold> <left_val>0.1258095055818558</left_val> <right_val>-0.4798910021781921</right_val></_></_> <_> <!-- tree 14 -->
Whereas in my xml is:
<_> <rects> <_> 0 2 33 1 -1.</_> <_> 11 2 11 1 3.</_></rects> <tilted>0</tilted></_> <_>
I badly create it? I have 82 positive images, crate pos.vec by opencv_createsamples.exe and run
c:\opencv\build\x86\vc10\bin\opencv_traincascade.exe -data dir -vec pos.vec -bg negative\neg.txt -numPos 57 -numNeg 5 -w 40 -h 40