How i can obtain image from web cam at regular time interval to do real time processing
Afficher commentaires plus anciens
I am using following code to capture images
clc
2 commentaires
anis altaf
le 5 Fév 2014
Modifié(e) : anis altaf
le 5 Fév 2014
Image Analyst
le 5 Fév 2014
did you try ...'Period',35); ????? Seems like the obvious thing to try.
Réponses (1)
Shivaputra Narke
le 4 Fév 2014
Modifié(e) : Walter Roberson
le 4 Fév 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;
Catégories
En savoir plus sur Image Preview and Device Configuration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!