How to captured 60 Frames in 1 Sec?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Device Connection en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!