ssdObjectDetector
Description
The ssdObjectDetector
detects objects from an image, using a single
shot detector (SSD) object detector. To detect objects in an image, pass the trained detector
to the detect
function.
You can also use the trained detector for multiclass object detection. For information about
SSD deep learning network, see Getting Started with SSD Multibox Detection.
Creation
Syntax
Description
creates an object detector using the SSD deep learning network
detector
= ssdObjectDetector(net
,classes
,aboxes
)net
.
If net
is a pretrained SSD deep learning network, the function
creates a pretrained SSD object detector. The classes
and
aboxes
are values used for training the network.
If net
is an untrained SSD deep learning network, the function
creates a SSD object detector to use for training and inference.
classes
and aboxes
specify the object classes
and the anchor boxes, respectively, for training the SSD network.
Use the trainSSDObjectDetector
function to train the network before performing
object detection.
creates a SSD object detector by adding detection heads to a base network,
detector
= ssdObjectDetector(baseNet
,classes
,aboxes
,'DetectionNetworkSource',layer
)baseNet
.
The function adds detection heads to the specified feature extraction layers
layer
in the base network. To specify the names of the feature
extraction layers, use the name-value argument
'DetectionNetworkSource'
,layer
.
If baseNet
is a pretrained deep learning network, the function
creates a SSD object detector and configures it to perform transfer learning with the
specified object classes and anchor boxes.
If baseNet
is an untrained deep learning network, the function
creates a SSD object detector and configures it for object detection.
classes
and aboxes
specify the object classes
and the anchor boxes, respectively, for training the SSD network.
You must train the detector on a training dataset before performing object detection.
Use the trainSSDObjectDetector
function for training the detector.
Input Arguments
Properties
Object Functions
detect | Detect objects using SSD multibox object detector |
Examples
Extended Capabilities
Version History
Introduced in R2020a