views:

783

answers:

2

I have a Logitech webcam (QuickCam Pro for Notebooks), and I'd like to take a snapshot using the cam from a command line.

Does it have any command line interface?

If not, is there an API that will allow me to build a command line tool like this?

Thanks!

+4  A: 

The question itself is not programming related, just a request of some hardwares bundled softwares documentation.

I will answer the question as it WAS a programming question.

If you talking about webcams on a windows OS you can use DirectShow as in this example:

http://www.codeproject.com/KB/audio-video/WebcamUsingDirectShowNET.aspx

Just create a console application in visual studio that takes some commandline parameters and let it use the code in the example and you are on your way.

Stefan
+1  A: 

You could use OpenCV to build such a command line application yourself. Basically you would use captureFromCam() to initialize the camera and then call QueryFrame() to capture a picture. Should be straightforward.

jörg