Webcam Acquisition Overview
You can use MATLAB® webcam support to bring live images from any USB Video Class (UVC) compliant webcam into MATLAB. This includes webcams that may be built into laptops or other devices, as well as webcams that plug into your computer via a USB port.
Using MATLAB functions, you can detect connected webcams, acquire individual snapshots from
a webcam, and optionally set up a loop for acquiring images. Use the
webcamlist function to detect the connected webcams. The
webcam function creates the object that is used to acquire images. And the
snapshot function returns a single image
from the camera. You can also preview your image and set properties for the image.
For more information, see
Connect to Webcams for how to use the
webcamlistfunction to detect your cameras
Acquire Images from Webcams for how to acquire live images from your camera into MATLAB
Set Properties for Webcam Acquisition for how to set webcam-specific or camera-specific properties for the acquisition
In desktop versions of MATLAB, webcam support is available through the MATLAB Support Package for USB Webcams. For instructions, see Install the MATLAB Support Package for USB Webcams. Webcams are also supported in MATLAB Online™. For more information, see Webcam Support in MATLAB Online.
You can use MATLAB webcam support on these platforms:
Microsoft® Windows® 64-bit
Mac OS X 64-bit