Commit 0f3037bd authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent e836b231
...@@ -9,24 +9,10 @@ ...@@ -9,24 +9,10 @@
var image_width = 1600 var image_width = 1600
var image_height = 1200 var image_height = 1200
var thumbnail_size = 200 var thumbnail_size = 200
var compression = 50 var video_filter = 'vflip,hflip'
var difference_threshold = .05 var difference_threshold = .05
var millisecond_image_delay = 15000 var millisecond_image_delay = 15000
var days_to_save = 150 var days_to_save = 150
var flip = "--flip h,v"
var settings= '\
--set "Focus, Auto"=False \
--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)"=15% \
--set Brightness=50% \
--set Contrast=50% \
--set Saturation=50% \
--set Gain=0% \
--set Sharpness=100%'
// //
// requires // requires
// //
...@@ -53,7 +39,7 @@ function update() { ...@@ -53,7 +39,7 @@ function update() {
// //
console.log('\ncapture '+name) console.log('\ncapture '+name)
while (true) { while (true) {
execSync('avconv -y -f v4l2 -s 1280x720 -i /dev/video0 -vframes 1 image.jpg') execSync('avconv -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg')
// //
// check that taking image was successful // check that taking image was successful
// //
...@@ -123,7 +109,7 @@ function update() { ...@@ -123,7 +109,7 @@ function update() {
// //
// take initial image // take initial image
// //
execSync('avconv -y -f v4l2 -s 1280x720 -i /dev/video0 -vframes 1 oldimage.jpg') execSync('avconv -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg')
// //
// start update // start update
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment