Can you please answer how to save snapshot during video recording

2 次查看(过去 30 天)
Please can you help me for, how to get a snapshot during recording?

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-2-3
编辑:KALYAN ACHARJYA 2018-2-3
%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

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by