Ask Your Question

Revision history [back]

Issue to load generated cascade.xml

<opencv_storage> <cascade> <stagetype>BOOST</stagetype> <featuretype>HAAR</featuretype> <height>70</height> <width>50</width> <stageparams> <boosttype>GAB</boosttype> <minhitrate>9.9900001287460327e-001</minhitrate> <maxfalsealarm>5.0000000000000000e-001</maxfalsealarm> <weighttrimrate>9.4999999999999996e-001</weighttrimrate> <maxdepth>1</maxdepth> <maxweakcount>100</maxweakcount></stageparams> <featureparams> <maxcatcount>0</maxcatcount> <featsize>1</featsize> <mode>BASIC</mode></featureparams> <stagenum>3</stagenum> <stages> <_> <maxweakcount>1</maxweakcount> <stagethreshold>1.</stagethreshold> <weakclassifiers> <_> <internalnodes> 0 -1 0 -2.1743691831943579e-005</internalnodes> <leafvalues> -1. 1.</leafvalues></weakclassifiers> <_> <maxweakcount>1</maxweakcount> <stagethreshold>1.</stagethreshold> <weakclassifiers> <_> <internalnodes> 0 -1 2 -2.7870906051248312e-003</internalnodes> <leafvalues> -1. 1.</leafvalues></weakclassifiers> <_> <maxweakcount>1</maxweakcount> <stagethreshold>1.</stagethreshold> <weakclassifiers> <_> <internalnodes> 0 -1 1 8.9884233602788299e-006</internalnodes> <leafvalues> 1. -1.</leafvalues></weakclassifiers></stages> <features> <_> <rects> <_> 0 0 2 1 -1. <_> 1 0 1 1 2.</rects> <tilted>0</tilted> <_> <rects> <_> 0 0 1 6 -1. <_> 0 3 1 3 2.</rects> <tilted>0</tilted> <_> <rects> <_> 0 0 2 56 -1. <_> 0 0 1 28 2. <_> 1 28 1 28 2.</rects> <tilted>0</tilted></features></cascade> </opencv_storage>

click to hide/show revision 2
No.2 Revision

updated 2016-10-18 06:13:05 -0600

berak gravatar image

Issue to load generated cascade.xml

<?xml version="1.0"?>
<opencv_storage>
<cascade>
  <stagetype>BOOST</stagetype>
  <featuretype>HAAR</featuretype>
<stageType>BOOST</stageType>
  <featureType>HAAR</featureType>
  <height>70</height>
  <width>50</width>
  <stageparams>
    <boosttype>GAB</boosttype>
    <minhitrate>9.9900001287460327e-001</minhitrate>
    <maxfalsealarm>5.0000000000000000e-001</maxfalsealarm>
    <weighttrimrate>9.4999999999999996e-001</weighttrimrate>
    <maxdepth>1</maxdepth>
    <maxweakcount>100</maxweakcount></stageparams>
  <featureparams>
    <maxcatcount>0</maxcatcount>
    <featsize>1</featsize>
    <mode>BASIC</mode></featureparams>
  <stagenum>3</stagenum>
<stageParams>
    <boostType>GAB</boostType>
    <minHitRate>9.9900001287460327e-001</minHitRate>
    <maxFalseAlarm>5.0000000000000000e-001</maxFalseAlarm>
    <weightTrimRate>9.4999999999999996e-001</weightTrimRate>
    <maxDepth>1</maxDepth>
    <maxWeakCount>100</maxWeakCount></stageParams>
  <featureParams>
    <maxCatCount>0</maxCatCount>
    <featSize>1</featSize>
    <mode>BASIC</mode></featureParams>
  <stageNum>3</stageNum>
  <stages>
    
    <_>
      <maxweakcount>1</maxweakcount>
      <stagethreshold>1.</stagethreshold>
      <weakclassifiers>
        <_>
          <internalnodes>
<!-- stage 0 -->
    <_>
      <maxWeakCount>1</maxWeakCount>
      <stageThreshold>1.</stageThreshold>
      <weakClassifiers>
        <_>
          <internalNodes>
            0 -1 0 -2.1743691831943579e-005</internalnodes>
          <leafvalues>
-2.1743691831943579e-005</internalNodes>
          <leafValues>
            -1. 1.</leafvalues></weakclassifiers>
    
    <_>
      <maxweakcount>1</maxweakcount>
      <stagethreshold>1.</stagethreshold>
      <weakclassifiers>
        <_>
          <internalnodes>
1.</leafValues></_></weakClassifiers></_>
    <!-- stage 1 -->
    <_>
      <maxWeakCount>1</maxWeakCount>
      <stageThreshold>1.</stageThreshold>
      <weakClassifiers>
        <_>
          <internalNodes>
            0 -1 2 -2.7870906051248312e-003</internalnodes>
          <leafvalues>
-2.7870906051248312e-003</internalNodes>
          <leafValues>
            -1. 1.</leafvalues></weakclassifiers>
    
    <_>
      <maxweakcount>1</maxweakcount>
      <stagethreshold>1.</stagethreshold>
      <weakclassifiers>
        <_>
          <internalnodes>
1.</leafValues></_></weakClassifiers></_>
    <!-- stage 2 -->
    <_>
      <maxWeakCount>1</maxWeakCount>
      <stageThreshold>1.</stageThreshold>
      <weakClassifiers>
        <_>
          <internalNodes>
            0 -1 1 8.9884233602788299e-006</internalnodes>
          <leafvalues>
8.9884233602788299e-006</internalNodes>
          <leafValues>
            1. -1.</leafvalues></weakclassifiers></stages>
-1.</leafValues></_></weakClassifiers></_></stages>
  <features>
    <_>
      <rects>
        <_>
          0 0 2 1 -1.
        <_>
          1 0 1 1 2.</rects>
      <tilted>0</tilted>
-1.</_>
        <_>
          1 0 1 1 2.</_></rects>
      <tilted>0</tilted></_>
    <_>
      <rects>
        <_>
          0 0 1 6 -1.
-1.</_>
        <_>
          0 3 1 3 2.</rects>
      <tilted>0</tilted>
2.</_></rects>
      <tilted>0</tilted></_>
    <_>
      <rects>
        <_>
          0 0 2 56 -1.
-1.</_>
        <_>
          0 0 1 28 2.
2.</_>
        <_>
          1 28 1 28 2.</rects>
      <tilted>0</tilted></features></cascade>
</opencv_storage>

2.</_></rects> <tilted>0</tilted></_></features></cascade> </opencv_storage>

Issue to load generated cascade.xml

<?xml version="1.0"?>
<opencv_storage>
<cascade>
  <stageType>BOOST</stageType>
  <featureType>HAAR</featureType>
  <height>70</height>
  <width>50</width>
  <stageParams>
    <boostType>GAB</boostType>
    <minHitRate>9.9900001287460327e-001</minHitRate>
    <maxFalseAlarm>5.0000000000000000e-001</maxFalseAlarm>
    <weightTrimRate>9.4999999999999996e-001</weightTrimRate>
    <maxDepth>1</maxDepth>
    <maxWeakCount>100</maxWeakCount></stageParams>
  <featureParams>
    <maxCatCount>0</maxCatCount>
    <featSize>1</featSize>
    <mode>BASIC</mode></featureParams>
  <stageNum>3</stageNum>
  <stages>
    <!-- stage 0 -->
    <_>
      <maxWeakCount>1</maxWeakCount>
      <stageThreshold>1.</stageThreshold>
      <weakClassifiers>
        <_>
          <internalNodes>
            0 -1 0 -2.1743691831943579e-005</internalNodes>
          <leafValues>
            -1. 1.</leafValues></_></weakClassifiers></_>
    <!-- stage 1 -->
    <_>
      <maxWeakCount>1</maxWeakCount>
      <stageThreshold>1.</stageThreshold>
      <weakClassifiers>
        <_>
          <internalNodes>
            0 -1 2 -2.7870906051248312e-003</internalNodes>
          <leafValues>
            -1. 1.</leafValues></_></weakClassifiers></_>
    <!-- stage 2 -->
    <_>
      <maxWeakCount>1</maxWeakCount>
      <stageThreshold>1.</stageThreshold>
      <weakClassifiers>
        <_>
          <internalNodes>
            0 -1 1 8.9884233602788299e-006</internalNodes>
          <leafValues>
            1. -1.</leafValues></_></weakClassifiers></_></stages>
  <features>
    <_>
      <rects>
        <_>
          0 0 2 1 -1.</_>
        <_>
          1 0 1 1 2.</_></rects>
      <tilted>0</tilted></_>
    <_>
      <rects>
        <_>
          0 0 1 6 -1.</_>
        <_>
          0 3 1 3 2.</_></rects>
      <tilted>0</tilted></_>
    <_>
      <rects>
        <_>
          0 0 2 56 -1.</_>
        <_>
          0 0 1 28 2.</_>
        <_>
          1 28 1 28 2.</_></rects>
      <tilted>0</tilted></_></features></cascade>
</opencv_storage>