How to add webcam to simulink?

Hey; I wrote a code in matlab with webcam, and now I want to use it in simulink.
How can I add webcam block or something that work with my webcam? I try with matlab function and its doesnt work...

Answers (1)

Walter Roberson
Walter Roberson on 6 Jun 2022
Edited: Walter Roberson on 6 Jun 2022
You will need to install the support package for USB webcam first.

4 Comments

Dekel Mashiach
Dekel Mashiach on 6 Jun 2022
Edited: Dekel Mashiach on 6 Jun 2022
The block (from video device) only recognizes me the webcam of the laptop, how can I make it also recognize an external webcam that I connected to usb?
Make sure you have the right support package.
You might require Image Acquisition Toolbox
https://www.mathworks.com/hardware-support/video-capture-device.html
They are right?
Those look ok.

Sign in to comment.

Asked:

on 5 Jun 2022

Commented:

on 6 Jun 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!