esphome / esphome/feature-requests

ESP32 Camera Color Picker

Open
#844 2 comments 3 reactions 0 assignees View on GitHub
component: esp32_camera
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

I want to read the single RGB or the luminance values of a specified pixel of an ESP32 camera picture directly within ESPhome, similar to a **Color Picker**. Provide a pixel coordinate (x,y) and get one of the RGB values in return.
**Please describe your use case for this integration and alternatives you've tried:**

I read my 3-phase Ferres power meter by detecting the red section of the revolving disk inside. My trials with luminance and RGB boards were not successful. Instead I installed an ESP32 Camera to detect the red stripe. It works fine, but is cumbersome and not suitable for higher power consumption. My current approach inside Home Assistant: Crop the camera image at the ROI to 1 pixel and save it every second as a jpg file. Read the byte containing the DC-part of the FFT luminance encoding with a commandline sensor using tail and hexdump. The sensor value varies sufficiently enough to detect a complete resolution of the disk, which is in my case equivalent to the consumption of 8 Watt.
**Additional context**

Such a feature would allow an ESP32 camera to act as a **generic sensor** in other application domains too.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.