camera
Create camera
object to acquire images from a USB or CSI camera
attached to the NVIDIA hardware
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
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.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019a
See Also
Functions
jetson
|drive
|snapshot
|image
|imageDisplay
Objects
Topics
- Sobel Edge Detection on NVIDIA Jetson Nano Using Raspberry Pi Camera Module V2
- Getting Started with the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms
- Deploy and Run Sobel Edge Detection with I/O on NVIDIA Jetson Nano
- Build and Run an Executable on NVIDIA Hardware
- Stop or Restart an Executable Running on NVIDIA Hardware
- Run Linux Commands on NVIDIA Hardware