Commit 25cde88e authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 44ec2070
...@@ -111,7 +111,16 @@ function update() { ...@@ -111,7 +111,16 @@ function update() {
// //
// take initial image // take initial image
// //
execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg') var success = true
do {
try {
execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' oldimage.jpg')
}
catch(err) {
success = false
}
}
while (success != true)
// //
// 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