create
Create label definitions table from the label definition creator object
Syntax
Description
creates a label definitions table, labelDefs
= create(ldc
)labelDefs
, from the label definition
creator object ldc
. You can import the labelDefs
table
into the Image Labeler and
Video Labeler apps
to label ground truth data.
Examples
Create Label Definitions Table from Label Definition Creator Object
Create an empty label definition creator object.
ldc = labelDefinitionCreator
ldc = labelDefinitionCreator with 0 labels. Use the
Add a label "Vehicle" to the label definition creator object. Specify the type of label as a rectangle and add a description to the label.
addLabel(ldc,'Vehicle','Rectangle','Description','Bounding box for the vehicle. Use this label for cars and buses.')
Add an attribute "IsCar" to the label "Vehicle". Specify the type of attribute as logical with value true
and add description to the attribute.
addAttribute(ldc,'Vehicle','IsCar','logical',true,'Description','Type of vehicle')
Add an attribute "IsBus" to the label "Vehicle". Specify the type of attribute as logical with value false
and add description to the attribute.
addAttribute(ldc,'Vehicle','IsBus','logical',false,'Description','Type of vehicle')
Create a label definitions table from the definitions stored in the label definition creator object.
labelDefs = create(ldc)
labelDefs=1×6 table
Name Type LabelColor Group Description Hierarchy
___________ _________ __________ ________ ____________________________________________________________________ ____________
{'Vehicle'} Rectangle {0x0 char} {'None'} {'Bounding box for the vehicle. Use this label for cars and buses.'} {1x1 struct}
Input Arguments
ldc
— Label definition creator
labelDefinitionCreator
object
Label definition creator, specified as a labelDefinitionCreator
object. The object ldc
defines the
labels, sublabels, and attributes used for generating the label definitions table
labelDefs
.
Output Arguments
labelDefs
— Label definitions
table
Label definitions, returned as a table with up to seven columns. The possible columns are Name, Type, LabelColor, PixelLabelID, Group, Description, and Hierarchy. This table specifies the definitions of labels, sublabels, and attributes for labeling ground truth data. For more details, see LabelDefinitions.
Version History
Introduced in R2018b
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)