How to use timer?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I need a code which take a picture in every 2 seconds and do it for 1 minutes. The sodocode is below: For 1 minutes In every 2 seconds { Cam=videoinput(‘winvideo’); }
0 Commenti
Risposte (1)
Image Analyst
il 2 Nov 2013
Why not just put into a loop - that's far simpler than using a timer.
for k = 1 : 30 % Go for 60 seconds (30 snapshots)
snappedImage = getsnapshot(videoObject);
pause(2); % Wait 2 seconds before continuing.
end
0 Commenti
Vedere anche
Categorie
Scopri di più su Point Grey Hardware in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!