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

LogicOr

A pseudo-attribute that allows you to combine two attributes with a logical OR. In this case, objects are returned that have at least one attribute that gave a result in one area. If two attributes in the area coincide at the same time, then their result is combined.

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

1. Modes

1.1. Detect

Returns the areas in which one or both of the attributes tested positive. In this case, rectangles lying in the same area (having a high IOU) are combined. logic or

1.2. Check

Checks that the area meets at least one attribute.

1.3. Extract

Not implemented

2. XML-description

2.1. Common parameters

  • Name (string, must be set) attribute unique name
  • Type (string, must be "LogicOr") 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

  • A (string, must be set) The first attribute must be declared in the AttributeLib tag above this one.
  • B (string, must be set) The second attribute must be declared in the AttributeLib tag above this one.
  • iou (double, must be set) The threshold of IOU, which the characteristics must satisfy for the union.

2.3. Example

<?xml version="1.0" ?>

<AttributeLib>
    
    <Attribute Name="HistColorPink" Type="HistColor" Histogram="histograms/Pink.yaml"/> 
    
    <Attribute Name="HistColorOrange" Type="HistColor" Histogram="histograms/Orange.yaml"/>    
    
    <Attribute Name="PinkOrOrange" Type="LogicOr" iou="0.5" A="HistColorPink" B="HistColorOrange"/>
    
</AttributeLib>

<SimpleObjectBase>  
    
    <SimpleObject Name="PinkOrOrangeSticker" ID="5">              
        <Attribute Type="Detect">PinkOrOrange</Attribute>          
    </SimpleObject>
    
</SimpleObjectBase>

logic or example

⚠️ **GitHub.com Fallback** ⚠️