How do I obtain video (.avi) from a webcam (in real time) and store the video frames somewhere for further processing?

조회 수: 2 (최근 30일)
I need to obtain video frames in real-time video. I have the Image Acquisition Toolbox (R2011b). How can I write code to automatically open the Image Acquisition Toolbox and start making video?

답변 (2개)

Amith Kamath
Amith Kamath 2013년 5월 20일
  댓글 수: 2
Mohd Aquib
Mohd Aquib 2013년 5월 23일
편집: Walter Roberson 2013년 5월 24일
thanks for replying...m using videowriter and executing this code
logfile = VideoWriter('logfile.mj2', 'Motion JPEG 2000');
vidobj.DiskLogger = logfile;
start(vidobj);
wait(vidobj, 5);
while (vidobj.FramesAcquired ~= vidobj.DiskLoggerFrameCount)
pause(.1);
end
delete(vidobj);
clear vidobj;
but irz is giving error
permission is allowed for
logfile = VideoWriter('logfile.mj2', 'Motion JPEG 2000');
plz help
Randy Souza
Randy Souza 2013년 5월 24일
I market this answer as not accepted because Mohd indicates below that this did not actually resolve the problem. However, Amith keeps the reputation points earned when the answer was marked as accepted.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2013년 5월 21일
Did you run imaqtool and see what commands it logs as you do things? Commands like preview() and getsnapshot()?
  댓글 수: 6
Mohd Aquib
Mohd Aquib 2013년 5월 23일
ok sir actually the pblm is " i need code for obtaining video(.avi format) from webcam(real time)...and i ve to store the video somewhere(desktop)in the pc so that i cd futher process it.. whenever i try,i manage to open webcam but unable to store a video where i want..i have mage acquisition toolbox so what i shd do to obtain video from and and storing it at smwhere in the pc

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by