Using USB webcams in Simulink
이전 댓글 표시
Hello all, I was looking for a solution for this but it seems as if nobody has this problem!
All I want is to connect a simple usb webcam to the pc and stream the video in Simulink. Why is that so hard to find??
Using Matlab r2014a, either Microsoft Lifecam Cinema or Logitech C920 webcam. I do not care for real-time data, just stream the video frame-by-frame in each simulation step. It is possible in matlab but could not find it in simulink.
Any suggestions?
댓글 수: 2
Stuart Johnson
2023년 3월 25일
Image Acquisition Toolbox
Jonathan Gadiel Ramírez Martínez
2023년 5월 16일
Did you found the answer?
답변 (1개)
Tejas
2024년 10월 23일
0 개 추천
Hello Tim,
The workflow to access a USB webcam in real-time with Simulink depends on the version of the product being used. For MATLAB version R2020a and earlier, this can be done using USB camera blocks, 'From USB Video Device'and 'USB Video Device List'. A step-by-step procedure is available in the documentation: https://www.mathworks.com/help/releases/R2020a/xpc/io_ref/usb-video-display-on-target-computer.html.
To access webcam in later versions of MATLAB, refer to this MATLAB answer: https://www.mathworks.com/matlabcentral/answers/1712310-how-do-i-integrate-a-webcam-into-my-simulink-real-time-model.
카테고리
도움말 센터 및 File Exchange에서 Image Acquisition in Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!