Search code examples
apicommand-linewebcamimage

Take picture using webcam from command line


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?


Solution

  • 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.