camera
Connection to USB or CSI camera
Description
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
This object represents a connection from the MATLAB® software to a web camera attached to the NVIDIA DRIVE® or Jetson™ hardware. To create this object, use the camera function.
To configure the web camera settings, use the object properties listed in Properties. To interact with the web
camera, use this object with the functions listed in Object Functions.
Creation
Syntax
Description
creates a cam = camera(hwObj,cameraName,resolution)camera object cam and connects
to a camera that is attached to the NVIDIA DRIVE or Jetson hardware. The camera function supports cameras
connected to USB and camera peripheral interfaces (CSI) of the target board. When the
camera object is created, it connects to the camera and establishes
exclusive access to stream data. You can preview the data and acquire images by using
the snapshot function.
Note
Because the software establishes exclusive access to the camera, you cannot
associate more than one object to the same camera. Before code generation and
execution, you must clear the camera object by using the
clear function.
The CSI drivers on the NVIDIA® target do not support odd pixel values for the resolution.
creates a cam = camera(___,'VideoDevice','VideoDeviceID')camera object cam and connects
to a camera by using Linux® device number. If your target hardware is connected to multiple cameras
with the same name, use the 'VideoDevice' argument to specify the
camera to create a connection to.
Input Arguments
Output Arguments
Properties
Object Functions
snapshot | Capture RGB image from Camera |
