webcam
Connection to USB web camera
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
Description
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 webcam
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 wcam
= webcam(hwObj
)webcam
object wcam
and connects
to a web camera that is attached to the NVIDIA DRIVE or Jetson hardware. When the webcam
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.
allows you to select the camera specified by wcam
= webcam(hwObj
,cameraName
)cameraName
. Use this
syntax when you have more than one camera connected to the NVIDIA® hardware.
allows you to select the camera specified by wcam
= webcam(hwObj
,cameraIndex
)cameraIndex
. Use this
syntax when you have more than one camera connected to the NVIDIA hardware.
allows you to select the dimensions of the image captured by the camera connected to the
NVIDIA hardware.wcam
= webcam(hwObj
,cameraName
,resolution
)
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 webcam
object by using the
clear
function.
Input Arguments
Output Arguments
Properties
Object Functions
snapshot | Capture RGB image from Camera |
Examples
Extended Capabilities
Version History
Introduced in R2018b
See Also
Functions
Objects
jetson
|drive
|imageDisplay
|camera
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