Create an empty labelDefinitionCreatorMultisignal
object.
Add a label with the name 'Car'
. Specify the type of label as 'Rectangle'
. Adding a 'Rectangle'
also adds a 'Cuboid'
entry to the label definitions table.
Add an attribute 'Color'
to the label 'Car'
. Specify the attribute type as 'String'
with the value 'Red'
.
Add a label with the name 'TrafficLight'
. Specify the type of the label as 'Rectangle'
. Add a description to the label.
Add a sublabel with the name 'RedLight'
to the label 'TrafficLight'
. Specify the type of the sublabel as 'Rectangle'
.
Add an attribute 'isOn'
to the sublabel 'RedLight'
in the label 'TrafficLight'
. Specify the attribute type for the sublabel as 'logical'
with the value false
.
Display the details of the updated labelDefinitionCreatorMultisignal
object.
ldc =
labelDefinitionCreatorMultisignal contains the following labels:
Car with 0 sublabels and 1 attributes and belongs to None group. (info)
TrafficLight with 1 sublabels and 0 attributes and belongs to None group. (info)
For more details about attributes and sublabels, use the info method.
Display information about the attribute under the label 'Car'
using the object function info
.
Name: "Car"
SignalType: Image
LabelType: Rectangle
Group: "None"
LabelColor: {''}
Attributes: "Color"
Sublabels: []
Description: ' '
Name: "Car"
SignalType: PointCloud
LabelType: Cuboid
Group: "None"
LabelColor: {''}
Attributes: "Color"
Sublabels: []
Description: ' '
Display information about the attribute under the label 'TrafficLight'
using the object function info
.
Name: "TrafficLight"
SignalType: Image
LabelType: Rectangle
Group: "None"
LabelColor: {''}
Attributes: []
Sublabels: "RedLight"
Description: 'Bounding boxes for stop signs'
Name: "TrafficLight"
SignalType: PointCloud
LabelType: Cuboid
Group: "None"
LabelColor: {''}
Attributes: []
Sublabels: "RedLight"
Description: 'Bounding boxes for stop signs'
Display information about the attribute under the sublabel 'RedLight'
in the label 'TrafficLight'
using the object function info
.
Name: "RedLight"
Type: Rectangle
LabelColor: ''
Attributes: "isOn"
Sublabels: []
Description: ' '
Display information about the attribute 'isOn'
under the sublabel 'RedLight'
in the label 'TrafficLight'
using the object function info
.
Name: "isOn"
Type: Logical
DefaultValue: 0
Description: ' '