フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to convert captured frames from webcam into avi format with 20fps.

1 回表示 (過去 30 日間)
Talha Anwer
Talha Anwer 2019 年 2 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I've used this code then it is saving the video but it's not playing when I go to that folder andplay with media player:
I'll be thankful if you may help
cd ('E:\8th semester\Machine vision LAB\Talha Data for open ended lab')
cam = webcam;
writerObj=VideoWriter('MyAVI.avi');
open(writerObj);
for i=1:60
filename = sprintf('153MC%0d.png', i);
imwrite(snapshot(cam),filename);
b=imread(['153MC',num2str(i),'.png']);
writeVideo(writerObj,b);
end
close(writerObj);

回答 (0 件)

この質問は閉じられています。

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by