Commit a70ece20 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent a44829e7
...@@ -38,13 +38,11 @@ function update() { ...@@ -38,13 +38,11 @@ function update() {
// take new image // take new image
// //
console.log('\ncapture '+name) console.log('\ncapture '+name)
while (true) { try {
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')
// }
// check that taking image was successful catch(err) {
// console.log(err)
if (fs.existsSync('image.jpg'))
break
} }
// //
// 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