Frame Grabber for USB Camera

Hello everyone, I am new to Igor pro. I currently have a Logitech HD Pro Webcam C920 and wanted to write some code that would allow me to take take a picture from the camera and then process it in Igor. I know that there is the XOP that allows users to write code that will let Igor communicate with USB devices. I was wondering if anyone has already written a code that can interface with Logitech USB cameras and give me an idea of if it was difficult to code.

Sincerely,
Stuart
It would help if you started by stating which platform and OS you are using. The answers you might get for one OS are very different than the other.

Many Logitech web cameras can be supported by existing XOPs so you may not even need to write an XOP.

A.G.
WaveMetrics, Inc.
Under WIN XP you should be able to use the VFW (Video for Windows) XOP. According to http://en.wikipedia.org/wiki/DirectShow you should also be able to use the DirectShow XOP. I suggest you start with the latter.

You should be able to find the XOP in your Igor Pro folder:More Extensions:Data Acquisition:Frame Grabbers:DSXOP. To install create a shortcut to the DSXop.xop file and put it in your Igor Extensions folder. Restart IGOR and open the DSGrabberDemo.pxp experiment to try.

I hope this helps,

A.G.
WaveMetrics, Inc.
Hi everyone,

I take the opportunity of this question about using cameras with Igor to ask another one on the DSXOP.
I use a camera that is recognized by my OS (Windows 7, 64 bits), but I often get troubles when using it with Igor through the DSXOP.
Indeed, after initializing, turning on the video and turning it off afterwards, and if I repeat this sequence, I get the following error message: "Failed to add filter."
Can someone explain me why this error message appears, what it means and how to fix my problem?

Thanks.
Restedumonde.
A.G Thank you so much for the help! The experiment that you suggested worked perfectly and showed me how to incorporate cameras into my code.
restedumonde wrote:
Indeed, after initializing, turning on the video and turning it off afterwards, and if I repeat this sequence, I get the following error message: "Failed to add filter."


The error you report is only returned when failing to initialize a new video window. I am unable to reproduce it here (on Win-8) so I am curious if this is something that is unique to the particular camera driver. Could you try the same process with a completely different video camera?

A.G.
WaveMetrics, Inc.

Hi everyone.

Is there a similar frame grabber for Igor 8. I need to take pictures from a USB webcam. How can i do that?

Cheers

Silvan

 

Hi,

 

Look up the NewCamera command where you can set the specific camera to use. There is reference to the GetCamera availablecameras keyword to get the exact name of the camera. 

 

Andy