groundTruthDataSource
Object for storing ground truth data sources
Description
ThegroundTruthDataSource
object defines the source of ground truth data. Use this object to specify a data source for thegroundTruth
object. To label the data source, load thegroundTruthDataSource
object into a labeling app.
TheImage Labelersupports data sources for collections of images.
TheVideo Labelersupports data sources for videos and image sequences. This app also supports custom data sources.
Creation
Syntax
Description
Image Datastore Source
returns a ground truth data source object for angtSource
= groundTruthDataSource(imds
)imageDatastore
specified byimds
.
Collection of Images Source
returns a ground truth data source object for a collection of images specified bygtSource
= groundTruthDataSource(imageFiles
)imageFiles
. Images must be in a file format readable byimread
.
Video File Source
returns a ground truth data source object for a video file specified bygtSource
= groundTruthDataSource(videoName
)videoName
. Videos must be in a file format readable byVideoReader
.
Video as a Sequence of Images Source
returns a ground truth data source object for an image sequence located in the folder specified bygtSource
= groundTruthDataSource(imageSeqFolder
)imageSeqFolder
.
returns a ground truth data source object for an image sequence with a corresponding timestamp for each image contained in the specified folder.gtSource
= groundTruthDataSource(imageSeqFolder
,timestamps
)timestamps
sets theTimeStamps
property.
Custom Data Source
returns a ground truth data source object by using the custom reader function handle,gtSource
= groundTruthDataSource(sourceName
,readerFcn
,timestamps
)readerFcn
.sourceName
sets theSource
property andtimestamps
set theTimeStamps
property. The custom reader function loads an image fromsourceName
that corresponds to the current timestamp specified in theduration
vectortimestamps
.
Input Arguments
Properties
Examples
Tips
groundTruth
objects for video-basedgroundTruthDataSource
objects rely on the video reading capabilities of your operating system. AgroundTruth
object created using a video data source remains consistent only for the same platform that was used to create it. To create a platform-specificgroundTruth
object, convert the video into a sequence of images.