How i can obtain image from web cam at regular time interval to do real time processing
Mostra commenti meno recenti
I am using following code to capture images
clc
2 Commenti
anis altaf
il 5 Feb 2014
Modificato: anis altaf
il 5 Feb 2014
Image Analyst
il 5 Feb 2014
did you try ...'Period',35); ????? Seems like the obvious thing to try.
Risposte (1)
Shivaputra Narke
il 4 Feb 2014
Modificato: Walter Roberson
il 4 Feb 2014
Try to use following code
function VideoDemo
global indx
global vHandle
vHandle=videoinput('winvideo');
start(vHandle);
indx=1;
showTimer=timer('timerFcn',@timefcn);
set(showTimer,'ExecutionMode','fixedRate','Period',5);
start(showTimer)
function timefcn(varargin)
global vHandle
imshow(getsnapshot(vHandle));
drawnow;
Categorie
Scopri di più su Image Preview and Device Configuration in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!