Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
cams
Commits
612b53c0
Commit
612b53c0
authored
Dec 12, 2017
by
Neil Gershenfeld
Browse files
wip
parent
98b6cab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
cams.js
View file @
612b53c0
...
...
@@ -19,6 +19,7 @@ var settings= '\
--set "Focus (absolute)"=0%
\
--set "White Balance Temperature, Auto"=False
\
--set "White Balance Temperature"=50%
\
--set "Exposure, Auto"="Manual Mode"
\
--set "Exposure, Auto Priority"=False
\
--set "Exposure (Absolute)"=50%
\
--set Brightness=50%
\
...
...
@@ -51,8 +52,7 @@ function update() {
// take new image
//
console
.
log
(
'
\n
capture
'
+
name
)
//execSync('fswebcam --jpeg '+compression+' --resolution '+image_width+'x'+image_height+' --save image.jpg')
execSync
(
'
fswebcam --jpeg
'
+
compression
+
'
--resolution
'
+
image_width
+
'
x
'
+
image_height
+
'
'
+
settings
+
'
--save image.jpg
'
)
execSync
(
'
fswebcam --jpeg
'
+
compression
+
'
--resolution
'
+
image_width
+
'
x
'
+
image_height
+
'
--save image.jpg
'
)
//
// remove prior images
//
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment