How many frames in 1 sec in matlab

2 views (last 30 days)
Does it depend on my video capture device?(camera)

Accepted Answer

Walter Roberson
Walter Roberson on 8 Feb 2013
Yes. Different cameras support different frame rates.
If there is a direct connection, such as USB or ethernet, then different interfaces support different transfer rates and different latencies. If a data acquisition card is being used, different bus interfaces make a difference, as do different manufactures and models of cards.
As well, the choice of software driver makes a difference.
Then there are other factors such as your operating system, your RAM, the number of cores you have, and what else is running on your system, and how you have configured your anti-virus scanners.
On MS Windows systems, MATLAB cannot operate in "real time" because MS Windows is not a real-time operating system. (OS-X and Linux allow real-time modes for software written to support that, but MATLAB has not been so written. There are, though, some situations in which data transfer is faster or lower latency on OS-X and Linux.)
If you need very consistent frame rates, then MATLAB itself is not appropriate; you might, however, be able to use Simulink to generate software that could be compiled for real-time hardware.
  2 Comments
Claire Redfield
Claire Redfield on 8 Feb 2013
Thank you. So how to caculate 'how many TriggerFrameDelays needed', if i want to capture pictures in every 10 secs?
Walter Roberson
Walter Roberson on 8 Feb 2013
To clarify: you are wanting one packet every 10 seconds?
Have you considered using a timer object to do the work?

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!