How to get an image from webcam in simulimk?

5 ビュー (過去 30 日間)
Dekel Mashiach
Dekel Mashiach 2022 年 6 月 24 日
回答済み: Pravarthana P 2022 年 6 月 27 日
I use usb webcam and I need to get snapshot, someone know how can I do it in simulink?
  2 件のコメント
Eamon Gekakis
Eamon Gekakis 2022 年 6 月 24 日
This needs a bit more clarification, do you want simulink to actuate a usb webcam snapshot and then display in simulink? Or do you just need to display a snapshot image in simulink. For the latter, you can try displaying the image in an annotation, let me know if this helps.
Dekel Mashiach
Dekel Mashiach 2022 年 6 月 24 日
編集済み: Dekel Mashiach 2022 年 6 月 24 日
I designed an algorithm that needs to get a image matrix in order to work. I want to turn on a camera in real time and after a few seconds take a snapshot and put it into the Matlab function.. I try with the block "from video deveice" and I don't know what to do now..

サインインしてコメントする。

回答 (1 件)

Pravarthana P
Pravarthana P 2022 年 6 月 27 日
Hi Dekel Mashiah,
I understand that you are trying to capture images from a webcam and use that in a MATLAB function. You can try the two possible steps:
  • Use can capture the images through webcam directly to MATLAB using the Webcam Image Acquisition using the function snapshot. For the same you can refer the following documentations:
Hope the above provided information helps you!!

Community Treasure Hunt

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

Start Hunting!

Translated by