Neologistic Paraphasic Mumbling
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

node-red-contrib-rpi-imagecapture

0.0.2 • Public • Published

node-red-contrib-rpi-imagecapture

This node allows to take picture from standard USB webcam connected to a Raspberry.

It uses the fswebcam package.

Prerequisites

Install the fswebcam package on the Raspberry

Install

From your node-red directory:

npm install node-red-contrib-rpi-imagecapture

or

in the Node-red, Manage palette, Install node-red-contrib-rpi-imagecapture

Usage

The fswebcam configuration needs to be defined into a file stored in the Raspberry.
The available options can be found using the fswebcam -help command.

For example :

device /dev/video0
resolution 640X480
set brightness=70%
set contrast=70%
no-banner
jpeg 95
skip 10
set "Focus, Auto"=False
set "Focus (absolute)"=7
rotate 180

The path to the configuration file needs to be defined into the node properties.

Input

The picture is captured when a msg arrived into the node.

Output

The captured picture is stored in a Buffer object in msg.payload.capturedImg.

License

MIT License

install

npm i node-red-contrib-rpi-imagecapture

Downloadsweekly downloads

16

version

0.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability