Why do I receive the error "GETDATA timed out before FRAMES were available" when using GETDATA in Image Acquisition Toolbox 4.3 (R2012a)?
I'm using a camera on a Linux machine. I would like to get image data frame by frame in a for-loop. However, I get errors as follows at the same line of different iterations. What should I do to avoid the error?
Warning: Unable to start acquisition: Error event occurred at 13:57:18 for video input object: YUYV_640x480-linuxvideo-2. The image acquisition device failed to start acquiring images. The image acquisition device failed to start acquiring images. Error in imaqdevice/getdata (line 139) frames = getdata(imaqgate('privateGetField', obj, 'uddobject'),varargin{:}); Error in test (line 8) imageData1=getdata(vid1,1); Error using imaqdevice/getdata (line 146) OBJ is not running and no frames are available. Error in test (line 10) imageData2=getdata(vid2,1);
set(vid,'Timeout',50); %set the Timeout property of VIDEOINPUT object 'vid' to 50 seconds
2. Before GETDATA, wait until there's an available frame
while get(vid,'FramesAvailable')<1 %Wait until at least 1 frame is available unavailable=1; end
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.