how to load video on matlab gui

4 ビュー (過去 30 日間)
timothy lienanto
timothy lienanto 2020 年 11 月 15 日
編集済み: Ameer Hamza 2020 年 11 月 15 日
im a bit confuse on how to load a video on matlab gui can anyone help me with the problem. Because i am trying to load the video on axes and i havent find any answer that is correct on google.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 15 日
編集済み: Ameer Hamza 2020 年 11 月 15 日
You can also make your own GUI as shown in following code
v = VideoReader('xylophone.mp4');
figure();
ax = axes();
frame = readFrame(v);
im_frame = imshow(frame, 'Parent', ax);
while hasFrame(v)
im_frame.CData = readFrame(v);
drawnow
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by