espressif / esp32-camera

Apache License 2.0
1.93k stars 642 forks source link

The top part and bottom part of the image appear significantly different in brightness. #684

Open go2net opened 2 months ago

go2net commented 2 months ago

Checklist

How often does this bug occurs?

always

Expected behavior

When using the OV5640 camera with FRAMESIZE_QSXGA and PSRAM enabled, the captured image should have uniform brightness across the entire frame, regardless of the JPEG quality setting. The image should be stable, without any shifts or artifacts. Btw, I already set frame size to 2.5MB

CONFIG_CAMERA_JPEG_MODE_FRAME_SIZE_CUSTOM=y
CONFIG_CAMERA_JPEG_MODE_FRAME_SIZE=2621440

Actual behavior (suspected bug)

With the OV5640 camera, when the JPEG quality is set to less than 4, the captured image shows a noticeable brightness difference between the top and bottom parts. Additionally, there are occasional small shifts in the image. This issue does not occur when the JPEG quality is set to 4 or higher. 2024-09-18_21_47_09-1

Error logs or terminal output

No response

Steps to reproduce the behavior

camera_config.xclk_freq_hz = 20000000;
camera_config.pixel_format = PIXFORMAT_JPEG;
camera_config.frame_size = FRAMESIZE_QSXGA;
camera_config.jpeg_quality = 2;
camera_config.fb_count = 1;
camera_config.fb_location = CAMERA_FB_IN_PSRAM;
camera_config.grab_mode = CAMERA_GRAB_LATEST;

Project release version

latest

System architecture

other (details in Additional context)

Operating system

Linux

Operating system version

FreeRTOS on ESP32

Shell

ZSH

Additional context

No response

github-actions[bot] commented 1 day ago

This issue appears to be stale. Please close it if its no longer valid.