Why do I receive the error “GETDATA timed out before FRAMES

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 tostart 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 (line146)OBJ is not running and no frames areavailable.Error in test (line 10)imageData2=getdata(vid2,1);

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The error message on your Linux machine is caused by the delay between the device and MATLAB, which is not a constant value and this related to your system and device driver. This is the reason why it happens at random iterations. Due to the delay, there are no available frames when the time exceeds the Timeout value. To ensure that you are getting data from the camera, you have two options:

1. Setting a larger Timeout value for the object

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

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

9 Must-Try Web Developer Tools In 2022

Creating Word Cloud form Python dictionary with Flask

“Comparing my current version with 2 weeks younger version”

3 things to make you a superior Python developer in 2022

Bash Basics and Navigating Directory Trees

Let’s Git Started

Font Awesome Free 5.4.1 by @fontawesome — https://fontawesome.com / CC BY (https://creativecommons.org/licenses/by/4.0)

SOLID Principles — Programmers’ Life Saver

KubeVirt VMs on OpenShift Code Ready Containers (Part 1 of 2)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

How to configure a hardware-triggered acquisition from a GigE Vision camera?

Solving a capacitated vehicle routing problem with Google OR-Tools and Mapbox

TinyML: Some perspective of an application into acoustic scene classification

HPC? Realy?