Install the MATLAB Support Package for USB Webcams
Support package installation is not required to use webcams in MATLAB® Online™.
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 MATLAB Support Package for USB Webcams.
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
Example that shows how to acquire images using a webcam
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.