Skip to content

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

License

Notifications You must be signed in to change notification settings

fchanson/node-red-contrib-rpi-imagecapture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published