how to load video on matlab gui
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
timothy lienanto
le 15 Nov 2020
Modifié(e) : Ameer Hamza
le 15 Nov 2020
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.
0 commentaires
Réponse acceptée
Ameer Hamza
le 15 Nov 2020
Modifié(e) : Ameer Hamza
le 15 Nov 2020
You can use implay(): https://www.mathworks.com/help/releases/R2020b/images/ref/implay.html to play video.
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!