Society of Robots - Robot Forum

Software => Software => Topic started by: Half Shell on August 28, 2009, 11:11:59 PM

Title: Webcam video acquisition for MATLAB under Linux?
Post by: Half Shell on August 28, 2009, 11:11:59 PM
Does anyone have experience getting raw video to stream into MATLAB in Linux? I'm using a logitech webcam - I think it's the Communicatix or whatever they call it. It works under my current distro (just Ubuntu 9.04) so I know I can grab video from it. I can see the webcam successfully loading under /dev/ as video0 and audio1 (not sure what audio0 is, strangely enough).

I know I can write a script to take individual images and have MATLAB process those, but video is what I want to do. Unfortunately, the only solution for streaming in video data from a camera seems to be the Data Acquisition Toolbox. This is Windows only and not free. Since my robots tend to work around Linux as a framework (easier to code for) this is kind of a no-go for me.
Title: Re: Webcam video acquisition for MATLAB under Linux?
Post by: Half Shell on August 30, 2009, 10:40:22 AM
The webcam's proper name is Communicate STX.

So far web searches are turning up nill. I have a theory of creating a seperate program that regularly saves pictures taken from the webcam feed, but I'd much rather just stream the video into MATLAB. Any takers?