SizeAttribute - Extended-Object-Detection-ROS/wiki_english GitHub Wiki
This attribute checks if the object meets the size parameters in the image.
Modes | Accuracy assessment | 3D-translation | 3D-rotation | Contour extraction | Additional info |
---|---|---|---|---|---|
- | C | ❌ | ❌ | ❌ | - |
Not implemented
Checks that the object's area is greater than (MinAreaPc * image area) and less than (MaxAreaPc * image area).
Not implemented
- Name (string, must be set) attribute unique name
- Type (string, must be "Size") attribute type
- Weight (double, default: 1) attribute weight
- Probability (double, default: 0.75) not used for this aatibute
- Contour (bool, default: true) not used for this aatibute
- MinAreaPc (default: 0) The minimum threshold in percents for the ratio of object area to image area.
- MaxAreaPc (default: 100) The maximum threshold in percents for the ratio of object area to image area.
The example also contains a description of the color detection attribute, since the size attribute should be paired with attribute in the detection mode.
<AttributeLib>
<Attribute Name="HistColorPink" Type="HistColor" Histogram="histograms/Pink.yaml"/>
<Attribute Name="NotFractal" Type="Size" MinAreaPc="0.5" MaxAreaPc="100"/>
</AttributeLib>
<SimpleObjectBase>
<SimpleObject Name="PinkSticker" ID="2">
<Attribute Type="Detect">HistColorPink</Attribute>
<Attribute Type="Check">NotFractal</Attribute>
</SimpleObject>
</SimpleObjectBase>
In the example of the histogram filtering attribute, you can see that without the size attribute, unwanted noises are present in the image.