Ground truth label data
The groundTruth
object contains information
about the data source, label definitions, and marked label annotations for a set of
ground truth labels. You can export or import a groundTruth
object from the Image Labeler
and Video Labeler
apps.
To create training data for an object detector from arrays of groundTruth
objects, use the objectDetectorTrainingData
function.
To create training data for a semantic segmentation network from arrays of
groundTruth
objects, use the pixelLabelTrainingData
function.
To export a groundTruth
object from a labeling app, on the app toolstrip,
select Export Labels > To Workspace. The app exports the object to the MATLAB® workspace. To create a groundTruth
object
programmatically, use the groundTruth
function (described
here).
returns an object containing ground truth labels that can be imported into the
Image
Labeler and Video
Labeler apps.gTruth
= groundTruth(dataSource
,labelDefs
,labelData
)
dataSource
specifies the source of the ground
truth data and sets the DataSource
property.
labelDefs
specifies the label, sublabel, and
attribute definitions of the ground truth data and sets the
LabelDefinitions
property.
labelData
specifies the identifying
information, position, and timestamps for marked labels and sets the
LabelData
property.
selectLabelsByGroup | Select ground truth labels by label group |
selectLabelsByType | Select ground truth labels by label type |
selectLabelsByName | Select ground truth labels by label name |
changeFilePaths | Change file paths in ground truth data |
groundTruth
objects for video-based data
sources rely on the video reading capabilities of your operating system. A
groundTruth
object created using a video
data source remains consistent only for the same platform that was used to
create it. To create a platform-specific groundTruth
object, convert the video into a sequence of
images.
objectDetectorTrainingData
| pixelLabelDatastore
| pixelLabelImageDatastore
| pixelLabelTrainingData