Create training data for an object detector
[
creates an image datastore and a box label datastore training data from the
specified ground truth.imds
,blds
] = objectDetectorTrainingData(gTruth
)
You can combine the image and box label datastores using combine
(imds
,blds
) to
create a datastore needed for training. Use the combined datastore with the
training functions, such as trainACFObjectDetector
,
trainYOLOv2ObjectDetector
, trainFastRCNNObjectDetector
,
trainFasterRCNNObjectDetector
,
and trainRCNNObjectDetector
.
This function supports parallel computing using multiple MATLAB® workers. Enable parallel computing using the Computer Vision Toolbox Preferences dialog.
returns a table of training data from the specified ground truth.
trainingDataTable
= objectDetectorTrainingData(gTruth
)gTruth
is an array of groundTruth
objects. You can use
the table to train an object detector using the Computer Vision Toolbox™ training functions.
___ = objectDetectorTrainingData(
returns a table of training data with additional options specified by one or
more name-value pair arguments. If you create the gTruth
,Name,Value
)groundTruth
objects in
gTruth
using a video file, a custom data source, or an
imageDatastore
object with
different custom read functions, then you can specify any combination of
name-value pair arguments. If you create the groundTruth
objects from an image collection or image sequence data source, then you can
specify only the 'SamplingFactor
' name-value pair
argument.
estimateAnchorBoxes
| trainACFObjectDetector
| trainFasterRCNNObjectDetector
| trainFastRCNNObjectDetector
| trainRCNNObjectDetector
| trainYOLOv2ObjectDetector