esphome / esphome/feature-requests

Make gain ceiling a configurable option for the ESP32 Camera Component

Open
#593 1 comment 1 reaction 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**

After removing the IR-filter from the lens of a OV2640 camera it really helps the night vision a lot to set the gain ceiling to max (6 or GAINCEILING_128X). This should be configurable in the ESP32 Camera Components frame settings:

`gainceiling (Optional, int): The Automatic Gain Control (AGC) gain ceiling, from 0 to 6 (2x to 128x). Defaults to 0.`

Currently the gain ceiling gets set to 0 in [camera_init(const camera_config_t* config)](https://github.com/espressif/esp32-camera/blob/b1c9712d11188771f28fe45aedf9c051db9b969e/driver/camera.c#L1230)
It should be set from a ESPHome option in [ESP32Camera::setup()](https://github.com/esphome/esphome/blob/6682c43dfaeb1c006943ae546145e5f22262cadb/esphome/components/esp32_camera/esp32_camera.cpp#L11) as the other camera options.

**Please describe your use case for this integration and alternatives you've tried:**

To allow the ESP32 Camera Component to be used in low light conditions.

**Additional context**

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.