pi-camera-shim
v0.0.4
Published
pi-camera-shim ============== Use a camera when local to pi, use test data(currently just still gif frames) when on a local system.
Downloads
2
Readme
pi-camera-shim
Use a camera when local to pi, use test data(currently just still gif frames) when on a local system.
Usage
var shim = require('pi-camera-shim');
shim.pullAndProcessLoop(function(err, image, advance, terminate){
//set the actual bytes to something
el.setAttribute('src', image.base64Image);
//pull another image
advance();
//todo: process image
}, 'path/to/test/image/directory');