camera
R2026bConnection 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.
The camera object represents a connection from the
MATLAB® software to a web camera attached to the NVIDIA DRIVE® or Jetson™ hardware. To obtain the list of cameras connected to the hardware, use the
getCameraList function. Connect to the
camera by creating a camera object. To take a snapshot with the camera, use
the snapshot
function.
Creation
Description
connects to the camera with the name cam = camera(hwObj,cameraName,resolution)cameraName on the NVIDIA DRIVE or Jetson hardware and returns the connection object cam. The
camera uses the resolution resolution to capture snapshots.
You can connect to a camera connected to the USB and camera peripheral interfaces
(CSI) of the target board. When you create a camera object, MATLAB establishes exclusive access to stream data.
Note
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.
creates a connection to the camera by using one or more name-value arguments. For example,
to set the pixel format that the camera uses, specify the
cam = camera(___,Name=Value)"PixelFormat" argument.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
snapshot | Capture RGB image from Camera |
