
To specify a time delay between the camera being turned on and the image being grabbed, use the "/delay" option to specify a time delay in milliseconds. Several useful options can be specified using command line arguments. The above example captured the following image of my cup of tea to a file called "image.bmp" (the image was converted to PNG format prior to uploading). Here’s how that appears in the console window.

CommandCam uses Microsoft’s DirectShow API to access webcams, so it should work with most USB cameras.ĬommandCam (the source code and the executable version) are published under the GNU General Public License (version 3). CommandCam is ideal for use in batch files and other situations where you want a very simple way to automate image capture. It captures a single image from a webcam and stores it in a bitmap file. CommandCam is a simple and easy to use command line webcam image grabber for Windows.
