yolov2ObjectDetector

Detect objects using YOLO v2 object detector

Description

The yolov2ObjectDetector object defines the trained YOLO v2 object detector. To detect objects in an image, pass the trained YOLO v2 object detector to the detect object function. The YOLO v2 object detector recognizes specific objects in images, based on the training images and ground truth data used with the trainYOLOv2ObjectDetector function.

Creation

Create a yolov2ObjectDetector object by calling the trainYOLOv2ObjectDetector function with training data (requires Deep Learning Toolbox™).

detector = trainYOLOv2ObjectDetector(trainingData,____)

Properties

expand all

Name of the classification model, specified as a character vector or string scalar. By default, the name is set to the heading of the second column of the trainingData table specified in the trainYOLOv2ObjectDetector function. You can modify this name after creating the yolov2ObjectDetector object.

This property is read-only.

Trained YOLO v2 object detection network, specified as a DAGNetwork object. This object stores the layers that define the YOLO v2 object detection network.

This property is read-only.

Names of object classes that the YOLO v2 object detector was trained to find, specified as a cell array of character vectors. This property is set by the trainingData input argument in the trainYOLOv2ObjectDetector function. Specify the class names as part of the trainingData table.

This property is read-only.

Set of anchor boxes, specified as an N-by-2 matrix defining the height and the width of N anchor boxes. This property is set by the AnchorBoxes property of the output layer in the YOLO v2 network.

The anchor boxes are defined when creating the YOLO v2 network by using the yolov2Layers function. Alternatively, if you create the YOLO v2 network layer-by-layer, the anchor boxes are defined by using the yolov2OutputLayer function.

This property is read-only.

Set of image sizes used for training, specified as an M-by-2 matrix, where each row is of the form [height width]. This property is set by the trainingSizes input argument in the trainYOLOv2ObjectDetector function.

Object Functions

detectDetect objects using YOLO v2 object detector

Introduced in R2019a