preview
Preview live video data from webcam
Add-On Required: This feature requires the MATLAB Support Package for USB Webcams add-on.
Description
preview(
creates a preview window that
displays live video data for the cam
)webcam
object cam
.
The size of the preview image is determined by the value of the
Resolution
property for cam
. The preview window
shows live RGB image from the webcam and displays the camera name, resolution, frame rate,
and the timestamp. Timestamp is the elapsed time since the object was created.
preview(
creates a
preview window that displays live video data for cam
,im
)webcam
object cam
. The preview window properties are
defined by the image
object im
. The size
of the preview image is determined by the value of the Resolution
property for cam
. The preview window shows a live RGB image from the
webcam. This syntax is not supported in MATLAB®
Online™.
Examples
Input Arguments
Version History
Introduced in R2014a