Webcam Support from MATLAB

Use webcams with MATLAB to acquire images and video.

Capabilities and Features

With MATLAB® Support Package for USB Webcams, you can connect to your computer’s webcam and acquire images straight into MATLAB. Functionality is provided to preview live images, adjust acquisition parameters, and take snapshots either individually or in a loop.

Connect to your webcam from the MATLAB desktop or through a web browser with MATLAB Online™. If you are using MATLAB Online, the support package is already installed for you. Get started with Webcam Support in MATLAB Online.

Supported Hardware

You can acquire images from any USB video class (UVC) compliant webcam. This includes webcams that are built into laptops and other devices as well as those that plug into your computer via USB port.

Note: To acquire images into MATLAB from a webcam that is connected to a Raspberry Pi™ or BeagleBone® Black, use MATLAB Support from Raspberry Pi or MATLAB Support from BeagleBone Black respectively. 

Platform and Release Support

See the hardware support package system requirements table for current and prior version, release, and platform availability.

View enhancements and bug fixes in release notes.

Related Hardware Support Views: MATLAB, Apple, Automotive, Biotech and Pharmaceutical, Consumer Electronics, Consumer Goods, Creative, DirectShow, Image Processing and Computer Vision, Industrial Automation and Machinery, Logitech, MathWorks Supported, MATLAB Product Family, Metals, Materials, and Mining, Microsoft, Philips, Project-Based Learning, QuickTime, Rail, Ships, and Other Transportation, Semiconductor, Support Package Installer Enabled, USB, Webcam (USB Video)

Ready to install?

Before installing the support package, confirm you have the correct setup. View system requirements and installation options.

Get support package




Support Package


Support Package Installer installs this support package. To start the installer, go to the MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages. For more information, read the documentation.

Get support package



  • Any UVC compliant webcam

Don't see the hardware you're looking for?