Is there a way to capture video in Octave ?
In Matlab, I use the following (also possibly useful to other people):
a = imaqhwinfo('linuxvideo',1)
a.SupportedFormats
vid = videoinput('linuxvideo', 1, 'YUYV_640x480');
start(vid);
preview(vid);
pics = cell(1,20)
for i = 1:20
pause(1);
pics{i} = getsnapshot(vid);
end
But in Octave, none of the video-related features work. You can also use Octave bindings for OpenCV to capture video, but I'm primarily looking for a cleaner and more portable way.
source
share