0.0.5 • Published 10 years ago

campi v0.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

campi

campi is a Node module that encapsulates the raspistill command for taking pictures.

Author

Installation

As with any Node module, use the Node Package Manager to install it:

$ npm install campi

Usage

var Campi = require('campi');

var campi = new Campi();

campi.getImageAsStream({ /* options */ }, function (err, stream) {
    if (err) {
        throw err;
    }
    // use stream object
});

campi.getImageAsFile({ /* options */ }, './filename.jpg', function (err) {
    if (err) {
        throw err;
    }
    // use file
});

The options object supports the following properties:

OptionValue
width, wWidth
height, hHeight
encoding, eFile encoding (jpg, bmp, gif, png)
shutter, shShutter speed (>=0, <=6000000)
nopreview, n No preview (true / false)
opacity, opOpacity (>=0, <=255)
imxfx, ifxImage effect (none, negative, solarise, posterise, whiteboard, blackboard, sketch, denoise, emboss, oilpaint, hatch, gpen, pastel, watercolour, film, blur, saturation)
metering, mmMetering mode (average, spot, backlit, matrix)
quality, qQuality (>=0, <=100)
timeout, tTimeout
hflip, hfHorizontal flip
vflip, vfVertical flip
rotation, rotdegrees the picture will be rotated - integer 0<value<360
preview, prevsize and position of the preview while capturing. fullscreen horizontal, fullscreen vertical, middle screen vertical ('0,0,1920,1080','0,0,1080,1920','0,608,1080,608')

Examples

See the examples directory.

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago