Detect objects in monocular camera using YOLO v2 deep learning detector
The yolov2ObjectDetectorMonoCamera
object contains information about you only look
once version 2 (YOLO v2) object detector that is configured for use with a monocular camera
sensor. To detect objects in an image captured by the camera, pass the detector to the
detect
object
function.
When using the detect
object function with a
yolov2ObjectDetectorMonoCamera
object, use of a CUDA®-enabled NVIDIA® GPU with a compute capability of 3.0 or higher is highly recommended. The GPU
reduces computation time significantly. Usage of the GPU requires Parallel Computing Toolbox™.
Create a yolov2ObjectDetector
(Computer Vision Toolbox) object by calling the trainYOLOv2ObjectDetector
(Computer Vision Toolbox) function with training data (requires Deep Learning Toolbox™).
detector = trainYOLOv2ObjectDetector(trainingData,____);
Create a monoCamera
object to model the monocular
camera sensor.
sensor = monoCamera(____);
Create a yolov2ObjectDetectorMonoCamera
object by passing the detector and sensor as
inputs to the configureDetectorMonoCamera
function. The
configured detector inherits property values from the original detector.
configuredDetector = configureDetectorMonoCamera(detector,sensor,____);
detect | Detect objects using YOLO v2 object detector configured for monocular camera |
configureDetectorMonoCamera
| trainYOLOv2ObjectDetector
(Computer Vision Toolbox)monoCamera
| yolov2ObjectDetector
(Computer Vision Toolbox)