videoinput disk logging skipping every other frame
이전 댓글 표시
Hi there--
I'm logging webcam data to disk using videoinput from Image Acq Toolbox.
My webcam is set to 30 fps (verified in Matlab) and when logging to memory, it manages to obtain every frame. However, when logging to disk, I am getting exactly half as many frames as I would expect given the time. This occurs both with 'disk' and 'disk&memory' logging. I'm on a powerful i7 with plenty of memory and fast hard drives, obtaining only at 352x288 resolution, and at the moment nothing else is running. It occurs whether I have a preview on or not. Any guesses?
댓글 수: 1
kumaran B
2012년 9월 4일
Before closing the avifile object, make sure that the DiskLoggerFrameCount property of the videoinput object is equal to the FramesAcquired property. The DiskLoggerFrameCount property tells you how many frames have been written to disk. You could use code like:
whie (vidobj.DiskLoggerFrameCount ~= vidobj.FramesAcquired) pause(1); end aviobj = close(vidobj.DiskLogger);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!