How i can obtain image from web cam at regular time interval to do real time processing
古いコメントを表示
I am using following code to capture images
clc
2 件のコメント
anis altaf
2014 年 2 月 5 日
編集済み: anis altaf
2014 年 2 月 5 日
Image Analyst
2014 年 2 月 5 日
did you try ...'Period',35); ????? Seems like the obvious thing to try.
回答 (1 件)
Shivaputra Narke
2014 年 2 月 4 日
編集済み: Walter Roberson
2014 年 2 月 4 日
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;
カテゴリ
ヘルプ センター および File Exchange で Image Preview and Device Configuration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!