how to save the video frame as a image before detecting the next video frame in Face Detection and Tracking Using the KLT Algorithm?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Anandakumar Selvaraj
le 27 Nov 2013
Réponse apportée : Anand
le 27 Nov 2013
i want to save the videoFrame in the while loop as separate image in the Face Detection and Tracking Using the KLT Algorithm example so that each videoFrame is saved as a image for a demo i prepare...any one help me
note : i have seen some example using frame & frame rate in this case tracking is not only based on frame it is also based on visiblePoints so if there is less than 2 visiblePoints the loop will terminate.
0 commentaires
Réponse acceptée
Anand
le 27 Nov 2013
If I understand your question correctly, all you need to do is have a call to imwrite inside the loop that writes the video frame with the markers for visible points and bounding box to a file.
So something like this:
Before the while loop:
nFrame = 1;
In the loop right at the end,
imwrite(videoFrame,['image_' double2str(nFrame)],'png');
n = n + 1;
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Computer Vision with Simulink 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!