export a video fps into GUI

Hello everyone,
im processing a video online and i want to display the fps acquired into the gui in a text form
im kind a new on this thing and im thinking to use this equation: (dont know yet if this is the best calc. and if it will lag me up)
[frames, timeStamp] = getdata(vid);
diffFrameTime = diff(timeStamp);
FPS = 1/avgTime;
so i want to display the FPS on real time alongside the video... can anyone help me?
thanks in advance

回答 (0 件)

質問済み:

2019 年 4 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by