필터 지우기
필터 지우기

vision.Dep​loyableVid​eoPlayer in GUI

조회 수: 2 (최근 30일)
Johan Svendsen
Johan Svendsen 2021년 1월 18일
편집: Johan Svendsen 2021년 1월 18일
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개)

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by