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);endaviobj = close(aviobj);endend
Best Answer