フィルターのクリア

real time video processing

1 回表示 (過去 30 日間)
Saffana Siddiqua
Saffana Siddiqua 2019 年 12 月 10 日
コメント済み: Saffana Siddiqua 2019 年 12 月 10 日
how can i get the framerate while using vision.VideoFileReader?

回答 (1 件)

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2019 年 12 月 10 日
I did real-time processing with a video, what you can do is take out the frames per second of the video and with a "tic toc" to save the processing time of your code, and with that time obtained skip all the following frames at that time of such that the application obtaining real-time data works for you :
v = VideoReader(filename);
fr=v.FrameRate;
k=1;
while k<v.NumFrames
frame = read(v,k);
tic
%your processing here
time=toc;
k=k+ceil(time*fr);
end
  1 件のコメント
Saffana Siddiqua
Saffana Siddiqua 2019 年 12 月 10 日
but i am using vision.videofilereader, i tried fr=v.FrameRate but it shows invalid function

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by