Skip to content

HaarCascade

Moscowsky Anton edited this page Nov 23, 2021 · 5 revisions

Haar Cascade

This attribute implements recognition by Haar cascades. OpenCV contains a number of already trained cascades, and also provides utilities to train them.

Modes Accuracy assessment 3D-translation 3D-rotation Contour extraction Additional info
D - -

1. Modes

1.1. Detect

Finds areas identified with Haar cascades.

1.2. Проверка (Check)

Not implemented

1.3. Извлечение (Extract)

Not implemented

2. XML-description

2.1. Common parameters

  • Name (string, must be set) attribute unique name
  • Type (string, must be "HaarCascade") attribute type
  • Weight (double, default: 1) attribute weight
  • Probability (double, default: 0.75) not used in this attribute
  • Contour (bool, default: true) not used in this attribute

2.2. Special parameters

  • Cascade (must be provided) The path to the XML file containing the cascade. If the path starts with '/', then it is considered global, if not, then local from the location of the object base.
  • min_size (int, default = 30) minimal size of detected cascade

2.3. Example

<AttributeLib>
    
    <Attribute Name="HaarFace" Type="HaarCascade" Cascade="cascades/haarcascade_frontalcatface_extended.xml"/>

</AttributeLib>

<SimpleObjectBase>  
    
    <SimpleObject Name="Face" ID="10">              
        <Attribute Type="Detect">HaarFace</Attribute>            
    </SimpleObject>  
    
</SimpleObjectBase>

haar example

Clone this wiki locally