DimensionAttribute - Extended-Object-Detection-ROS/wiki_english GitHub Wiki
Indicator for checking the aspect ratio of the object.
Modes | Accuracy assessment | 3D-translation | 3D-rotation | Contour extraction | Additional info |
---|---|---|---|---|---|
C | - | ❌ | ❌ | ❌ | - |
Not implemeted
Check if the ratio of the width and height of the object belongs to the range minRatio ~ maxRatio.
Not implemeted
- Name (string, must be set) attribute unique name
- Type (string, must be "Dimension") attribute type
- Weight (double, default: 1) attribute weight
- Probability (double, default: 0.75) not used in that attibute
- Contour (bool, default: true) not used in that attibute
- minRatio (double, default: 1.0) lower threshold of the width-to-height ratio
- maxRatio (double, default: 1.0) upper threshold of width-to-height ratio
Below is an example of using this feature together with a color feature. Note that the detection is performed in a soft mode, which allows you to identify the second object as well, but with a confidence factor of 0.5.
<AttributeLib>
<Attribute Name="HistColorBrightYellow" Type="HistColor" Histogram="histograms/BrightYellow.yaml"/>
<Attribute Name="Square" Type="Dimension" minRatio="0.9" maxRatio="1.1"/>
</AttributeLib>
<SimpleObjectBase>
<SimpleObject Name="YellowStickerSquared" ID="3" Mode="Soft" Probability="0.5">
<Attribute Type="Detect">HistColorBrightYellow</Attribute>
<Attribute Type="Check">Square</Attribute>
</SimpleObject>
</SimpleObjectBase>