Add attribute to label in label definition creator for lidar workflow
addAttribute(
adds an attribute with the specified name and type to the indicated label. The attribute is
added to the hierarchy of the specified label in the ldc
,labelName
,attributeName
,typeOfAttribute
,attributeDefault
)labelDefinitionCreatorLidar
object
ldc
.
addAttribute(___,
specifies options using one or more name-value pair arguments in addition to the input
arguments in the previous syntax.Name,Value
)
Create an empty labelDefinitionCreatorLidar
object.
ldc = labelDefinitionCreatorLidar
Cuboid
label, Vehicle
, to the label definition
creator.
addLabel(ldc, 'Vehicle', 'Cuboid');
Add a Color
attribute to the Vehicle
label as a
string.
addAttribute(ldc,'Vehicle','Color','String','Red')
Display the details of the updated label definition creator object.
ldc
ldc = labelDefinitionCreatorLidar contains the following labels: Vehicle with 1 attributes and belongs to None group. (info) For more details about attributes, use the info method.
Display information about the label Vehicle
using the
info
object function .
info(ldc,'Vehicle')
Name: "Vehicle" Type: Cuboid LabelColor: {''} Group: "None" Attributes: "Color" Description: ' '
Display information about the Color
attribute of the
Vehicle
label using the info
object
function.
info(ldc,'Vehicle/Color')
Name: "Color" Type: String DefaultValue: 'Red' Description: ' '