My xml train file differ than predefined xml

asked 2014-06-12 12:36:22 -0600

Borneq gravatar image

updated 2014-06-12 12:48:05 -0600

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 82 -numNeg 20 -w 40 -h 40

edit retag flag offensive close merge delete

Comments

I must use opencv_haartraining.exe instead of opencv_traincascade.exe? But opencv_haartraining.exe causes error

Borneq gravatar imageBorneq ( 2014-06-12 13:17:55 -0600 )edit