Commit 44ec2070 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 33e3dd7c
...@@ -38,13 +38,16 @@ function update() { ...@@ -38,13 +38,16 @@ function update() {
// take new image // take new image
// //
console.log('\ncapture '+name) console.log('\ncapture '+name)
var success = true
do {
try { try {
var ret = execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg') execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg')
} }
catch(err) { catch(err) {
console.log("err") success = false
} }
console.log("ret "+ret) }
while (success != true)
// //
// remove prior images // remove prior images
// //
......
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