vision.DeployableVideoPlayer in GUI
7 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I am trying to find a better solution than having an image that we update with the frames in a while loop to play a video.
I found that vision.DeployableVideoPlayer is running really well better than vision.VideoPlayer, when running like so:
% Deployable
videoFReader = vision.VideoFileReader(filename);
depVideoPlayer = vision.DeployableVideoPlayer;
cont = ~isDone(videoFReader);
while cont
videoFrame = videoFReader();
depVideoPlayer(videoFrame);
cont = ~isDone(videoFReader) && isOpen(depVideoPlayer);
end
release(videoFReader);
release(depVideoPlayer);
% Standard
videoFReader = vision.VideoFileReader(filename);
videoPlayer = vision.VideoPlayer;
cont = ~isDone(videoFReader );
while cont
videoFrame = videoFReader();
videoPlayer(videoFrame);
cont = ~isDone(videoFReader) && isOpen(videoPlayer);
end
release(videoFReader);
release(depVideoPlayer);
But it does not seem that the deployable supports being attached to anything?
My goal would be to integrate it into my GUI, maybe inside of a panel, but can this be done?
0 件のコメント
回答 (1 件)
Vidip
2024 年 8 月 28 日
Integrating a video player into a MATLAB GUI by using the 'vision.DeployableVideoPlayer' is a liitle difficult as it is designed to run independently and does not natively support embedding into a GUI component like a panel. However, you can refer to the below example link as it shows how to display multiple video streams in a custom graphical user interface (GUI):
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!