0.0.4 • Published 3 years ago

pi-camera-shim v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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');