New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@brdk/node-red-picamera2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brdk/node-red-picamera2

Node-RED node for taking photos on a Raspberry Pi using picamera2 library

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@brdk/node-red-picamera2

A Node-RED node to take still photos on a Raspberry Pi using the picamera2 library. This node will only work on a Raspberry Pi with a camera module enabled.

Prerequisites on the Raspberry Pi

First, make sure your Raspberry Pi Camera is physically connected and detected. On Raspberry Pi OS Bookworm or later, the libcamera stack is enabled by default.

Install picamera2 if not already available:

        sudo apt-get update
        sudo apt-get install python3-picamera2

For 90°/270° rotation support, install Pillow:

        pip3 install Pillow

If you are using the default path during the file option set - the path ~/Pictures will be used.

Runtime information

This node requires Raspberry Pi OS bookworm or later with the libcamera camera stack. Tested with a docker container running Python 3, Node.js 22, and Node-RED 4.x+.

Quick start

  • Drag picamera2-takephoto into your flow.
  • Connect an inject node to trigger captures.
  • Connect a debug node to inspect output.
  • Select file mode: use Buffered Mode for in-memory processing, or use Default and Auto File Name to save to disk.
  • Deploy and trigger.

Example flow idea:

  • inject -> picamera2-takephoto (Buffered Mode) -> function (base64 encode) -> storage/API node

Screenshot:

Example flow

Configuration fields

File settings

  • File Mode: 0 Buffered Mode, 1 Default, 2 Auto File Name
  • Image Name (autoname): used in auto mode as base name (no extension)
  • File Name (filename): used in default mode as base name (no extension)
  • File Path (filepath): output folder, default ~/Pictures/
  • File Format (fileformat): jpeg, png, bmp

Capture settings

  • Image Resolution: predefined list from 320x240 up to 3280x2464
  • Rotation: 0, 90, 180, 270
  • Image Flip: horizontal and vertical
  • Brightness: 0 to 100 (mapped internally to libcamera range)
  • Contrast: -100 to 100
  • Sharpness: -100 to 100
  • Quality: JPEG quality 0 to 100 (ignored for non-JPEG formats)
  • ISO: 0 (auto) or fixed values 100 to 800
  • Exposure: auto or manual
  • AWB: auto, daylight, cloudy, tungsten, fluorescent, incandescent, indoor
  • Wait for AGC (agcwait): delay before capture in seconds

Keywords

node-red

FAQs

Package last updated on 20 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts