Main Content
Supported Functions for Webcam
You can use these functions with the MATLAB® webcam feature.
Function | Purpose |
---|---|
webcamlist | Returns list of webcams that are connected to your system.
|
webcam | Creates webcam object and connects to the single camera on
your system. If you have multiple cameras and you use the webcam
function with no input argument, it creates the object and connects it to the first
camera it finds.
For information on how to create the object with an input argument if you have multiple cameras connected, see Create a Webcam Object. |
preview | Preview the images from the webcam. Use name of object as input argument, which
is cam in this
example.preview(cam) |
snapshot | Acquire a single image from the webcam. Use name of object as input argument,
which is cam in this example.
|
closePreview | Close the preview window.
|
See Also
webcamlist
| webcam
| preview
| snapshot
| closePreview