Create webcam
object to acquire images from an USB webcam
attached to the NVIDIA hardware
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.
drive
| getCameraList
| image
| imageDisplay
| jetson
| snapshot
drive
| imageDisplay
| jetson
| webcam