Can you please answer how to save snapshot during video recording

7 vues (au cours des 30 derniers jours)
Ritika
Ritika le 3 Fév 2018
Please can you help me for, how to get a snapshot during recording?

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 3 Fév 2018
Modifié(e) : KALYAN ACHARJYA le 3 Fév 2018
%Snapshot
in_vid=videoinput('winvideo', 1);
set(in_vid,'ReturnedColorSpace','RGB');
image_shot=getsnapshot(vid);
imwrite(image_shot,filename,'png');
%here png, but you can choose format as your requirement

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by