Detect objects in monocular camera using Faster R-CNN deep learning detector
The fasterRCNNObjectDetectorMonoCamera
object contains information about a Faster R-CNN
(regions with convolutional neural networks) object detector that is configured for use with a
monocular camera sensor. To detect objects in an image that was captured by the camera, pass
the detector to the detect
function.
When using the detect
function with fasterRCNNObjectDetectorMonoCamera
, 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 fasterRCNNObjectDetector
(Computer Vision Toolbox) object by calling
the trainFasterRCNNObjectDetector
(Computer Vision Toolbox) function with
training data (requires Deep Learning Toolbox™).
detector = trainFasterRCNNObjectDetector(trainingData,...);
Alternatively, create a pretrained detector by using the vehicleDetectorFasterRCNN
function.
Create a monoCamera
object to model the monocular
camera sensor.
sensor = monoCamera(...);
Create a fasterRCNNObjectDetectorMonoCamera
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 Faster R-CNN object detector configured for monocular camera |
configureDetectorMonoCamera
| vehicleDetectorFasterRCNN
| trainFasterRCNNObjectDetector
(Computer Vision Toolbox)monoCamera
| fasterRCNNObjectDetector
(Computer Vision Toolbox)