ExractedInfoString - Extended-Object-Detection-ROS/wiki_english GitHub Wiki

ExractedInfoString

A check flag that allows you to cut objects based on the data of the extracted information from other signs.

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

1. Modes

1.1. Detect

Not implemented

1.2. Check

Проверяет, удовлетворяет ли строка в извлеченной информации указанным значениям.

1.3. Extract

Not implemented

2. XML-description

2.1. Common parameter

  • Name (string, must be set) Unique attribute name
  • Type (string, must be "ExtractedInfoString") attribute type
  • Weight (double, default: 1) вес признака
  • Probability (double, default: 0.75) degree of confidence threshold
  • Contour (bool, default: true) not used

2.2. Extra parameters

  • field (string, default: "") filed name for checking
  • allowed (list of ints, default: empty) names of allowed fields, must be separated with spaces
  • partially (int, default: 0) if not 0, then partial matching is allowed (so that the element from allowed is a substring of the value being retrieved).

2.3. Example

Using logic attributes (OR and NOT) output of CNN detector can be separated on static and dynamic classes.

<?xml version="1.0" ?>

<AttributeLib>
    
    <Attribute Name="COCO_Dnn" Type="Dnn" framework="tensorflow" weights="ssd_mobilenet_v1_coco_2017_11_17/frozen_inference_graph.pb" config="ssd_mobilenet_v1_coco_2017_11_17/config.pbtxt" labels="ssd_mobilenet_v1_coco_2017_11_17/mscoco_label_map.pbtxt" inputWidth="300" inputHeight="300" Probability="0.5" forceCuda="1"/>
    
    <Attribute Name="COCO_lifeforms" Type="ExtractedInfoString" field="COCO_Dnn:class_label" allowed="person bird cat dog horse sheep cow elephant bear zebra giraffe" partially="0"/>
    
    <Attribute Name="COCO_transport" Type="ExtractedInfoString" field="COCO_Dnn:class_label" allowed="bicycle car motorcycle airplane bus train truck boat" partially="0"/>
    
    <Attribute Name="COCO_dynamic" Type="LogicOr" A="COCO_lifeforms" B="COCO_transport"/>
    
    <Attribute Name="COCO_static" Type="LogicNot" A="COCO_dynamic"/>
    
</AttributeLib>

<SimpleObjectBase>  
    
    <SimpleObject Name="COCO_dynamic" ID="72">              
        <Attribute Type="Detect">COCO_Dnn</Attribute>   
        <Attribute Type="Check">COCO_dynamic</Attribute>   
    </SimpleObject>
    
    <SimpleObject Name="COCO_static" ID="73">              
        <Attribute Type="Detect">COCO_Dnn</Attribute>      
        <Attribute Type="Check">COCO_static</Attribute>   
    </SimpleObject>    
    
</SimpleObjectBase>
⚠️ **GitHub.com Fallback** ⚠️