Install the MATLAB Support Package for USB Webcams
You can use MATLAB® Webcam support to bring live images from any USB Video Class (UVC) 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. To use the Webcam feature, you must install the USB Webcams support package.
Webcam support is available through MATLAB Add-Ons. Using this installation process, you download and install the following files on your host computer:
MATLAB files for Webcam support
An example that shows how to acquire images using a Webcam
The USB Webcams support package documentation
To install the support package:
On the MATLAB Home tab, in the Environment section, click Add-Ons > Get Hardware Support Packages.
In the Add-On Explorer, scroll to the Hardware Support Packages section, and click show all to find your support package.
Refine the list by selecting Imaging/Cameras in the Refine by Hardware Type section on the left side of the Explorer.
In the Imaging/Cameras list, select the MATLAB Support Package for USB Webcams.