How to take a snapshot from webcam using Simulink
Show older comments
I am trying to Take a snapshot from a webcam in Simulink to use as part of a control system. I am currently using the "from Video Device" block. I can get a live video however I only want to take a snapshot (single photo) every 30 seconds.
How is this done?
Answers (1)
Nick Choi
on 6 Oct 2017
0 votes
There is another MATLAB Answers thread that could be helpful for this application: https://www.mathworks.com/matlabcentral/answers/46375-how-can-i-get-a-single-frame-from-a-simulink-live-video-input?s_tid=answers_rc1-3_p3_MLT
Additionally, you could try using an 'Enabled Subsystem' block if you do not want a triggered subsystem. The following documentation link provides additional information on how to use the 'Enabled Subsystem' block:
Categories
Find more on Image Acquisition in Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!