# node-red-contrib-rpi-imagecapture

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

Latest version **0.0.2** (published 2018-01-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-rpi-imagecapture
pnpm add node-red-contrib-rpi-imagecapture
yarn add node-red-contrib-rpi-imagecapture
bun add node-red-contrib-rpi-imagecapture
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-01-08 |
| First published | 2018-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Frederic Chanson |
| Maintainers | fchanson |
| Keywords | node-red, image capture, raspberry, usb webcam |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-rpi-imagecapture
- Repository: https://github.com/fchanson/node-red-contrib-rpi-imagecapture
- Issues: https://github.com/fchanson/node-red-contrib-rpi-imagecapture/issues
- npm.io page: https://npm.io/package/node-red-contrib-rpi-imagecapture

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-01-08
- 0.0.1 — 2018-01-08

## README

# node-red-contrib-rpi-imagecapture

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

It uses the [fswebcam package](https://www.sanslogic.co.uk/fswebcam/).

### Prerequisites

Install the [fswebcam package](https://www.raspberrypi.org/documentation/usage/webcams/) 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.<br>
The available options can be found using the **fswebcam -help** command.

For example :

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

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

---
_Source: https://npm.io/package/node-red-contrib-rpi-imagecapture · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
