esp-who ov2640驱动中曝光值的设置问题

camera
Posts: 1
Joined: Tue Sep 24, 2019 12:38 am

esp-who ov2640驱动中曝光值的设置问题

Postby camera » Tue Sep 24, 2019 1:21 am

Code: Select all

static int set_aec_value(sensor_t *sensor, int value)
{
    if(value < 0) {
        value = 0;
    } else if(value > 1200) {
        value = 1200;
    }
    sensor->status.aec_value = value;
    return set_reg_bits(sensor, BANK_SENSOR, REG04, 0, 3, value & 0x3)
           || write_reg(sensor, BANK_SENSOR, AEC, (value >> 2) & 0xFF)
           || set_reg_bits(sensor, BANK_SENSOR, REG45, 0, 0x3F, value >> 10);
}
你好,我使用了esp-eye的开发套件,刷了camera_web_server这个例子的固件,连接上设备后其中camera的设置有一栏是设置曝光值,其范围是0-1200,然后我在esp-who/components/esp32-camera/sensors目录下ov2640.c中找到这一段代码,我想问的是这个1200具体指曝光时间是多长,是30s,20s还是多少?0是不是就代表曝光时间为0?

User avatar
ESP_Me-no-dev
Posts: 80
Joined: Mon Jan 04, 2016 6:30 pm

Re: esp-who ov2640驱动中曝光值的设置问题

Postby ESP_Me-no-dev » Tue Oct 29, 2019 8:04 am

The exposure settings on those sensors is actually measured in lines. So for max res of 1600x1200 you can expose for the whole duration of 1200 lines. Not sure if that makes any sense :). For smaller resolutions you get less lines and less exposure. There are 3 main resolutions from which all others are made from: 1600x1200, 800x600 and 400x300

Who is online

Users browsing this forum: No registered users and 29 guests