Playing videos in Matlab
Show older comments
Hi Guys
I wantt help fpr following code instade of reading the frames of videos i want to read video as normal playing
load('Detector.mat');
vidReader = VideoReader('004.avi');
vidPlayer = vision.DeployableVideoPlayer;
i = 1;
results = struct('Boxes',[],'Scores',[]);
while(hasFrame(vidReader))
I = readFrame(vidReader);
step(vidPlayer,I);
i = i+1;
3 Comments
Vivek Khokar
on 20 Jun 2020
Edited: Walter Roberson
on 17 Oct 2020
I used vision.VideoPlaye to play video but I got the following error! Please Help Me Out, ASAP!!!
Unable to resolve the name vision.VideoPlayer. // error
my code is:
% Create two video players, one to display the video,
% and one to display the foreground mask.
obj.maskPlayer = vision.VideoPlayer('Position', [740, 400, 700, 400]);
obj.videoPlayer = vision.VideoPlayer('Position', [20, 400, 700, 400]);
Masumi Morishige
on 17 Oct 2020
Edited: Masumi Morishige
on 25 Nov 2020
I met the same error and solved it by installing "Computer Vision Toolbox" from "HOME > Add-Ons".
Although it's written in Japanese, I will share the article just in case.
I'm happy if this helps you.
Lusanni Acosta-Rodriguez
on 4 Dec 2020
Thanks Masumi! After installing the "Computer Vision Toolbox" the error went away. Now I am facing another one. But, with respect to the Vision Toolbox is good!
Again, thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!