DOS-type commands that can be issued to StillCap
StillCap can be run from a Windows cmd.exe shell window, but only if it can detect a video device on the computer.
Then a DOS-type command
C:\AMCap>stillcap \?
will output all available StillCap commands:
C:\AMCap>stillcap \?
StillCap - Version 1.03 (build 18.2)
Captures still pictures from a webcam.
Copyright © 2006-2008, Noël Danjou. All rights reserved.
Usage:
stillcap [/clipboard] [/delay:] [/device:] [/display:]
[/format:] [/listdevices] [/listproperties]
[/listresolutions] [/nostillpin] [/output:]
[/property:=[,=[,...]]]
[/resolution:x[,fps]] [/trigger] [/?]
Where:
/clipboard Saves the captured picture to the clipboard.
/delay Specifies a delay in seconds to wait for before a picture is
captured (Default: no delay).
/device Specifies the 1-based index of the device to use for capture.
See the /listdevices parameter (Default: 1).
/display Sets the level of information that will be displayed.
is either of the following values:
silent - no display at all
normal - verbose mode (default)
/format Specifies the image file format.
Supported formats are BMP, JPP, PNG and TIFF (Default: BMP).
/listdevices Lists available capture devices.
/listproperties Lists properties supported by the selected device.
/listresolutions Lists supported picture resolutions for the selected device.
/nostillpin Uses the Capture pin instead of the Still pin (if available).
/output Specifies a destination path and/or filename.
/property Sets a property of the selected device
/resolution Specifies the width and height of the captured picture.
/trigger Waits for the trigger of the device to be pressed.
/? Displays this help message.
Other Windows commands that may be needed when programming StillCap using ImageJ's "exec()" function
status=exec("taskkill /FI \"WINDOWTITLE eq AMCap\""); wait(100); //Close any active AMCap apps
status=exec("taskkill /FI \"WINDOWTITLE eq stillCap\""); wait(100); //Close any active stillCap apps
status=exec(getDirectory("startup")+"..\\AMCap\\AMCap.exe");
status=exec(stillCap+" /?");
status=exec(stillCap+" /listdevices");
status=exec(stillCap+" /device:"+nd+" /listresolutions");
status=exec(stillCap+" /device:"+i+" /output:"+captureDir+fileN+i+" /format:"+imageType+" /resolution:"+setResoln);