How to captured 60 Frames in 1 Sec?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Device Connection 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!