espressif / esp32-camera

Apache License 2.0
1.78k stars 618 forks source link

any info on lens correction on OV2640? #603

Closed RomanLut closed 3 months ago

RomanLut commented 7 months ago

I would like to improve image quality from ov2640 camera with 120 deg lens, which do not match default correction.

The only information I found on this topic is description in ov3640 datasheet: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/OV3660_CSP3_DS_1.3_sida.pdf

and lens correction values in ov5640 software implementation notes: https://www.arducam.com/downloads/modules/OV5640/OV5640_Software_app_note_parallel.pdf

It seems that correction values are in 5800-583d registers, it seems to be 36+25 control poins. Also there are some "step" registers 5842-5849.

However I do not understand what does "step" registes do and where correction values are mapped.

Does anyone have experience tweaking lens correction values on ov2640, or can explain how all thouse values work on other cameras?

image image

image

Hello1024 commented 5 months ago

This is a feature of the camera, not of the camera framework within the esp32.

You should contact the camera manufacturer, OmniVision.

Or... This correction appears to be basic brightness adjustment of each pixel - so you could just turn the cameras lens correction off and do it yourself in your own code.

github-actions[bot] commented 3 months ago

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