-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
351643e
commit 575ab3d
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# CamParam | ||
|
||
I was shocked to find no simple way to change basic webcam settings (gain, exposure, etc.) from the command line on Windows. After much time spent looking at existing approaches, I finally gave in and wrote this little program. | ||
|
||
An earlier C# version of this program is [CamParamSharp](https://github.com/scottgarner/CamParamSharp). | ||
|
||
## Usage | ||
|
||
``` | ||
// List available devices. | ||
CamParam.exe | ||
// Output | ||
0 HD Pro Webcam C920 | ||
1 OBS Virtual Camera | ||
``` | ||
|
||
``` | ||
// List properties for a device. | ||
CamParam.exe device 0 | ||
// Output | ||
Pan 0 | ||
Tilt 0 | ||
Roll 0 | ||
Zoom 100 | ||
Exposure -5 | ||
Iris -5 | ||
Focus 15 | ||
Brightness 128 | ||
Contrast 128 | ||
Hue 128 | ||
Saturation 128 | ||
Sharpness 128 | ||
Gamma 128 | ||
ColorEnable 128 | ||
WhiteBalance 4200 | ||
BacklightCompensation 0 | ||
Gain 64 | ||
``` | ||
|
||
``` | ||
// Set exposure and gain for device "0". | ||
CamParam.exe device 0 gain 64 exposure -5 | ||
// Output | ||
Exposure -5 | ||
Gain 64 | ||
``` | ||
|
||
## Acknowledgements | ||
|
||
The basis of this program is heavily influenced by [CommandCam](https://github.com/tedburke/CommandCam/blob/master/Makefile). |