How to captured 60 Frames in 1 Sec?
古いコメントを表示
Hi, below sample code which it's 60 frames per 60 seconds , but i need to generate 60 frames in 1 sec ? if any idea?
if true
% code
vid = videoinput('winvideo',1, 'MJPG_1280x720');
vid1 = vid;
num_frames=60;
triggerconfig(vid1, 'Manual');
set(vid1,'FramesPerTrigger',num_frames);
start(vid1);
while 1
[data1 time1] = getdata(vid1,num_frames);
kk=length(time1);
for i=1:kk
F=data1(:,:,:,i);
aviobj = addframe(aviobj,F);
end
aviobj = close(aviobj);
end
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で National Instruments Frame Grabbers についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!