MATLAB: How to view the live video feed and capture images from the USB Webcam in MATLAB

MATLABusb webcamwebcamwebcam in appwebcam in gui

Is there an app in which I can view the USB webcam live video feed? Using the video feed I want to adjust the webcam properties and capture images

Best Answer

The Acquire Webcam Image MATLAB Live Task enables you to interactively:
  • Capture images from a USB Webcam.
  • Adjust the Webcam’s properties and see the changes real-time in a live video preview.
  • Generate the equivalent MATLAB code.
Here is an example of how to use the Webcam live task to detect water level: