WO2022096013A1 - 自动曝光方法、装置、电子设备及计算机可读存储介质 - Google Patents

自动曝光方法、装置、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022096013A1
WO2022096013A1 PCT/CN2021/129487 CN2021129487W WO2022096013A1 WO 2022096013 A1 WO2022096013 A1 WO 2022096013A1 CN 2021129487 W CN2021129487 W CN 2021129487W WO 2022096013 A1 WO2022096013 A1 WO 2022096013A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
brightness
value
image
brightness adjustment
Prior art date
Application number
PCT/CN2021/129487
Other languages
English (en)
French (fr)
Inventor
谭坤
郭奕滨
高飞
Original Assignee
影石创新科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 影石创新科技股份有限公司 filed Critical 影石创新科技股份有限公司
Publication of WO2022096013A1 publication Critical patent/WO2022096013A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Definitions

  • the present application relates to the technical field of image processing, and in particular, to an automatic exposure method, an automatic exposure device, an electronic device and a storage medium.
  • Automatic exposure refers to the method of automatically adjusting the aperture, shutter, signal gain, etc., so as to obtain a clear image with a color close to the real object. Since the birth of point-and-shoot cameras, those skilled in the related fields have been studying automatic exposure methods.
  • the automatic exposure of existing shooting devices is generally realized by the following methods: calculating the average brightness of the current image, and comparing the average brightness of the current image with the set brightness target value, if the average brightness of the current image is averaged. If the value is higher than the set brightness target value, the automatic exposure control module shortens the integration time or reduces the digital gain value, otherwise, it prolongs the integration time or increases the digital gain value. That is, the exposure of the scene is automatically controlled by changing the integration time and the digital gain value, so that the image brightness is maintained at a relatively reasonable brightness value.
  • the above automatic exposure method can only make the image with uniform brightness distribution to be exposed normally, and the image with large difference in brightness will cause the bright part of the image to be brighter and the dark part to be darker through the existing automatic exposure control method.
  • the captured image or video is very dark in places without light sources, resulting in unclear details in the captured photos, while in places with light sources It's over-exploded again, and the content is lost.
  • the present invention provides an automatic exposure method, the method comprising:
  • step S3 determine whether the adjusted image has overexposure in a local area, if so, go to step S4, if not, go to step S5;
  • S5 Calculate the first brightness adjustment value of each pixel according to the brightness value of each pixel and its adjacent plurality of pixels;
  • S6 calculate the second brightness adjustment value of each pixel according to the first brightness adjustment value of each pixel and the pixel gain table
  • the pixel gain table is the pixel value obtained according to the empirical value and its corresponding gain coefficient.
  • the present invention provides an automatic exposure device comprising:
  • an acquisition module used to acquire the shooting scene of the original image
  • a first brightness adjustment module configured to adjust the brightness of the original image to the reference brightness of the corresponding shooting scene
  • a judgment module for judging whether the image adjusted by the brightness adjustment module has local area overexposure
  • the second brightness adjustment module is used to reduce the brightness of the image with local area overexposure after brightness adjustment by the first brightness adjustment module
  • a first calculation module configured to calculate the first brightness adjustment value of each pixel according to the brightness value of each pixel and its adjacent multiple pixels
  • a second calculation module configured to calculate the second brightness adjustment value of each pixel according to the first brightness adjustment value of each pixel and the pixel gain table
  • the third brightness adjustment module is configured to adjust the brightness of each pixel in the original image to the corresponding second brightness adjustment value.
  • the present invention provides an electronic device, comprising:
  • the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the above-mentioned automatic exposure method.
  • the present invention adjusts the brightness of the image as a whole and performs anti-overexposure processing in local areas, and then performs the brightness of each pixel through the brightness of adjacent pixels and the pixel gain table.
  • the adjustment solves the problems of the existing exposure method that the dark area is too dark and the bright area is too explosive.
  • FIG. 1 is a flowchart of an automatic exposure method in Embodiment 1 of the present invention.
  • FIG. 2 is a schematic diagram of a pixel and its surrounding pixels in Embodiment 1 of the present invention.
  • Embodiment 3 is a structural block diagram of an automatic exposure apparatus in Embodiment 2 of the present invention.
  • FIG. 4 is a structural block diagram of an electronic device in Embodiment 2 of the present invention.
  • the automatic exposure method in this embodiment includes the following steps.
  • the exposure parameters of the photographing device for photographing the original image are obtained, including the exposure time T and the exposure gain value G, and the exposure amount EV of the original image is calculated according to the exposure time and exposure.
  • the judgment of multiple shooting scenes can be realized by setting different thresholds for the exposure amount EV of the original image and the ratio ⁇ of the pixels with the overexposure grayscale threshold to the total pixels, as shown in the following table shown.
  • the exposure of the photographing device is directly adjusted to adjust the brightness of the image.
  • the exposure of the current image is La
  • the exposure of the current image is EVa
  • the reference brightness of the corresponding shooting scene is Lb
  • the next output Exposure amount EVb EVa*Lb/La.
  • the exposure amount EV is a combination of shutter time, ISO value and aperture.
  • the exposure amount EV is adjusted by adjusting the shutter time.
  • step S3 Determine whether the adjusted image has partial area overexposure, if yes, go to step S4, if not, go to step S5.
  • the set threshold such as 5% or 10%
  • the target brightness to be adjusted in this step is associated with the ratio n of the number n of pixels whose brightness value exceeds the preset value in step S3 to the total number of image pixels N, and the gain of the target brightness is adjusted according to the value of n, n The larger the value of , the smaller the target brightness gain.
  • the relationship between the target brightness and n is as follows:
  • the brightness adjustment in this embodiment is basically the same as that in step S2, and the brightness is also adjusted by adjusting the exposure of the image.
  • the desired target brightness is gradually approached through multiple iterations.
  • the second brightness adjustment take the image after the first brightness adjustment as the current image, its brightness value is Lx2, and the corresponding exposure amount is EV2, by counting the number n of pixels in the current image whose brightness value exceeds the preset value
  • the third brightness adjustment take the image after the second brightness adjustment as the current image, its brightness value is Lx3, and the corresponding exposure is EV3, by counting the number n of pixels in the current image whose brightness value exceeds the preset value and the image
  • the ratio n of the number n of pixels whose brightness value exceeds the preset value in the adjusted image to the total number of image pixels N is less than the set threshold (for example, 5% or 10%).
  • S5 Calculate the first brightness adjustment value of each pixel according to the brightness values of each pixel and its adjacent multiple pixels.
  • the calculation method of the first brightness adjustment value is different.
  • pixel A is located in the middle of the image, and the brightness values of pixel A and its surrounding 8 pixels (shaded parts) are obtained respectively, and the average brightness of these 9 pixels is used as the first brightness adjustment value of pixel A;
  • pixel B is located in On the edge of the image, the brightness values of pixel B and its surrounding 5 pixels are obtained respectively, and the average brightness of these 6 pixels is used as the first brightness adjustment value of pixel B;
  • pixel C is located at the corner of the image, and pixel C is obtained separately. and the brightness values of the three surrounding pixels, and the average brightness of these four pixels is taken as the first brightness adjustment value of pixel C.
  • this step also includes the following sub-steps:
  • S52 Set different weight values according to the distance between each adjacent pixel and the pixel whose brightness is to be adjusted.
  • a weight value ⁇ 1 is set for pixel A
  • a weight value ⁇ 2 is set for the four adjacent pixels on the upper, lower, left and right sides of pixel A
  • a weight value ⁇ 3 is set for the adjacent pixels at the four corners of pixel A, where ⁇ 1> ⁇ 2 > ⁇ 3.
  • the weight values can also be set in the same manner for the pixel B and the pixel C.
  • the luminance value of pixel A is LA0
  • the luminance values of the adjacent upper, lower, left, and right pixels of pixel A are LA1, LA2, LA3, and LA4, respectively
  • the luminance values of the adjacent four corners of pixel A are LA5, respectively.
  • LA6, LA7, LA8 then the first brightness adjustment value of pixel A is:
  • the first brightness adjustment values for pixel B and pixel C can also be calculated in the same way.
  • the adjacency in this step is not limited to direct adjacency. Taking pixel A as an example, a total of 24 pixels in the upper and lower rows and the left and right columns centered on pixel A can be used as adjacent pixels. .
  • S6 Calculate the second brightness adjustment value of each pixel according to the first brightness adjustment value of each pixel and the pixel gain table.
  • the pixel gain table in this step is the pixel value and its corresponding gain coefficient obtained according to the empirical value.
  • the weight value of the position of each pixel is related to the distance between each pixel
  • the brightness value of each pixel in the original image is adjusted according to the corresponding second brightness adjustment value.
  • the present embodiment discloses an automatic exposure device, including: an acquisition module for acquiring a shooting scene of an original image; a first brightness adjustment module for adjusting the brightness of the original image to a corresponding The reference brightness of the shooting scene; the judgment module is used to judge whether the image adjusted by the brightness adjustment module has overexposure in a local area; the second brightness adjustment module is used to reduce the existing local area after the brightness adjustment by the first brightness adjustment module.
  • the brightness of the overexposed image; the first calculation module is used to calculate the first brightness adjustment value of each pixel according to the brightness value of each pixel and its adjacent multiple pixels.
  • each pixel is a pixel in the image adjusted by the first brightness adjustment module
  • each pixel is the second brightness adjustment module.
  • the second calculation module is used to calculate the second brightness adjustment value of each pixel according to the first brightness adjustment value of each pixel and the pixel gain table;
  • the third brightness adjustment module is used to convert the original image The brightness of each pixel in is adjusted to the corresponding second brightness adjustment value.
  • processing procedures and corresponding parameters of each module are the same as or similar to those in Embodiment 1.
  • this embodiment discloses an electronic device, including: a memory, where a computer program is stored; and a processor for executing the computer program to realize the automatic exposure in Embodiment 1 method.
  • This embodiment discloses a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the automatic exposure method in Embodiment 1 is implemented.
  • the storage medium can be a computer-readable storage medium, for example, a ferroelectric memory (FRAM, Ferromagnetic Random Access Memory), Read Only Memory (ROM, Read Only Memory), Programmable Read Only Memory (PROM, Programmable Read Only Memory), Erasable Programmable Read Only Memory (EPROM, Erasable Programmable Read Only Memory), electrified Erasable programmable read only memory (EEPROM, Electrically Erasable Programmable Read Only Memory), flash memory, magnetic surface memory, optical disk, or compact disk read only memory (CD-ROM, Compact Disk-Read Only Memory) and other memories; can also include Various devices of one or any combination of the above memories.
  • FRAM ferroelectric memory
  • ROM Read Only Memory
  • PROM Programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • flash memory magnetic surface memory, optical disk, or compact disk read only memory (CD-ROM, Compact Disk-Read Only Memory) and other memories
  • CD-ROM Compact Dis

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明提供了一种自动曝光方法,在现有的曝光方法基础上,通过先整体调整图像亮度并进行防局部区域过曝处理,再通过相邻像素的亮度及像素增益表对各像素的亮度进行调整,解决了现有的曝光方法存在的暗区偏暗、亮区过爆的问题。另外,本发明还揭示了一种对应的自动曝光设备及电子装置。

Description

自动曝光方法、装置、电子设备及计算机可读存储介质 技术领域
本申请涉及图像处理技术领域,具体涉及一种自动曝光方法、自动曝光装置、电子设备及存储介质。
背景技术
自动曝光是指自动进行光圈、快门、信号增益等的调节,从而获得清晰、颜色接近实物的图像的方法。从傻瓜相机诞生以来,相关领域技术人员就一直在研究自动曝光方法。
现有的拍摄装置(如相机或手机)的自动曝光一般通过以下方式实现:计算当前图像的亮度平均值,并将当前图像亮度平均值与设定的亮度目标值比较,如果当前图像的亮度平均值高于设定的亮度目标值,自动曝光控制模块缩短积分时间或者减小数字增益值,反之则延长积分时间或者增大数字增益值。即通过改变积分时间和数字增益值来自动控制场景的曝光,使图像亮度保持在一个相对合理的亮度值上。
技术问题
然而,上述自动曝光方法只能使亮度分布均匀的图像曝光正常,而亮度差异较大的图像,通过现有的自动曝光控制方法,会导致图像中亮的部分更亮,暗的部分更暗。例如,在拍摄夜景时,由于夜景画面中往往会同时出现亮区和暗区,因此拍摄的图像或视频在没有光源的地方很暗,导致拍摄的照片的细节不清晰,而在有光源的地方又过爆严重,丢失了内容。
因此,有必要对现有的自动曝光方法进行改进。
技术解决方案
第一方面,本发明提供了一种自动曝光方法,该方法包括:
S1:获取原始图像的拍摄场景;
S2:将原始图像的亮度调整至对应的拍摄场景的参考亮度;
S3:判断调整后的图像是否存在局部区域过曝,如果是则进入步骤S4,如果不是,则进入步骤S5;
S4:降低调整后的图像的亮度;
S5:根据各像素及其相邻的多个像素的亮度值计算各像素第一亮度调整值;
S6:根据各像素的第一亮度调整值和像素增益表计算各像素的第二亮度 调整值;
S7:将原始图像中的各像素的亮度调整至对应的第二亮度调整值;
其中,像素增益表为根据经验值得到的像素值及其对应的增益系数。
第二方面,本发明提供了一种自动曝光装置,该装置包括:
获取模块,用于获取原始图像的拍摄场景;
第一亮度调整模块,用于将原始图像的亮度调整至对应的拍摄场景的参考亮度;
判断模块,用于判断经亮度调整模块调整后的图像是否存在局部区域过曝;
第二亮度调整模块,用于降低经第一亮度调整模块进行亮度调整后的存在局部区域过曝的图像的亮度;
第一计算模块,用于根据各像素及其相邻的多个像素的亮度值计算各像素的第一亮度调整值;
第二计算模块,用于根据各像素的第一亮度调整值和像素增益表计算各像素的第二亮度调整值;
第三亮度调整模块,用于将原始图像中的各像素的亮度调整至按对应的第二亮度调整值。
第三方面,本发明提供了一种电子设备,包括:
存储器,所述存储器存储有计算机程序;
处理器,所述处理器用于执行所述计算机程序以实现上述自动曝光方
法。
第四方面,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行以实现上述自动曝光方法。
有益效果
与现有技术相比,本发明在现有的曝光方法基础上,通过先整体调整图像亮度并进行防局部区域过曝处理,再通过相邻像素的亮度及像素增益表对各像素的亮度进行调整,解决了现有的曝光方法存在的暗区偏暗、亮区过爆的问题。
附图说明
图1是本发明实施例1中的自动曝光方法的流程图。
图2是本发明实施例1中的像素及其周围像素的示意图。
图3是本发明实施例2中的自动曝光装置的结构框图。
图4是本发明实施例2中的电子设备的结构框图。
本发明的实施方式
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。
实施例1
如图1所示,本实施例中的自动曝光方法包括以下步骤。
S1:获取原始图像的拍摄场景。
例如,获取拍摄该原始图像的拍摄装置的曝光参数,包括曝光时间T和曝光增益值G,并根据曝光时间和曝光计算该原始图像的曝光量EV,计算公式为:EV=T*G,然后判断原始图像的曝光量EV来确定是否为夜景拍摄场景;又如,获取原始图像的灰度直方图,计算原始图像中过曝灰度阈值的像素占总像素的比例λ来判断是否为高动态范围拍摄场景。
在本实施例中的优化方案中,可以通过对原始图像的曝光量EV和过曝灰度阈值的像素占总像素的比例λ设定不同的阈值来实现多个拍摄场景的判断,如下图表格所示。
  λ≥λ0 λ<λ0
EV≥EV0 拍摄场景1 拍摄场景2
EV<EV0 拍摄场景3 拍摄场景4
S2:将原始图像的亮度调整至对应的拍摄场景的参考亮度。
本实施例中直接调整拍摄装置的曝光量来调整图像的亮度,例如,假设当前图像的亮度为La,当前图像的曝光量为EVa,对应的拍摄场景的参考亮度为Lb,则下一次输出的曝光量EVb=EVa*Lb/La。其中,曝光量EV是快门时间、ISO值和光圈的组合,本实施例中是通过调整快门的时间来调节曝光量EV的。
S3:判断调整后的图像是否存在局部区域过曝,如果是则进入步骤S4,如果不是,则进入步骤S5。
在本步骤中,判断图像中亮度值超过预设值的像素的数目n与图像像素总数N的比值η是否大于设定阈值,如果是,则认为存在局部区域过曝。 具体地,以8bit位宽的亮度单位为例,亮度值最小是0,亮度的最大值为255,可以先统计图像中的像素值较大(如像素值为254和255)的个数n,然后判断η(η=n/N)的值是否大于设定阈值(比如5%或10%),如果是则认为图像存在局部区域过曝。
S4:降低调整后的图像的亮度。
本步骤中的要调整的目标亮度与步骤S3中的亮度值超过预设值的像素的数目n与图像像素总数N的比值η相关联,目标亮度的增益根据η的值的大小进行调整,η的值越大,目标亮度增益越小,在本实施例中,目标亮度与η的关系如下:
  η≤5% 5%<η≤20% η>20%
目标亮度的增益 1 1-0.5*(η-5%)/0.15 0.5
本实施例中的亮度调整与步骤S2中基本相同,也是通过调整图像的曝光量来调整亮度的。在本实施例中,为了观感更好,通过多次迭代逐渐逼近所需的目标亮度。
第一次亮度调整:假设当前图像的亮度为Lx1,对应的曝光量为EV1,通过统计当前图像中的亮度值超过预设值的像素的数目n与图像像素总数N的比值η1,按目标亮度与η的关系可以得到当前图像的目标亮度L1,然后计算当前图像的目标曝光量E1,其中E1=EV1*L1/Lx1,然后按曝光量(EV1+E1)/2对该图像进行曝光,得到亮度调整后的图像。
第二次亮度调整:将第一亮度调整后的图像作为当前图像,其亮度值为Lx2,对应的曝光量为EV2,通过统计当前图像中的亮度值超过预设值的像素的数目n与图像像素总数N的比值η2,按目标亮度与η的关系可以得到当前图像的目标亮度L2,然后计算当前图像的目标曝光量E2,其中E2=EV2*L2/Lx2,然后按曝光量(EV2+E2)/2对该图像进行曝光,得到亮度调整后的图像。
第三次亮度调整:将第二亮度调整后的图像作为当前图像,其亮度值为Lx3,对应的曝光量为EV3,通过统计当前图像中的亮度值超过预设值的像素的数目n与图像像素总数N的比值η3,按目标亮度与η的关系可以得到当前图像的目标亮度L3,然后计算当前图像的目标曝光量E3,其中E3=EV3*L3/Lx3,然后按曝光量(EV3+E3)/2对该图像进行曝光,得到亮度调整后的图像。
以此类推,直到调整后的图像中的亮度值超过预设值的像素的数目n与图像像素总数N的比值η小于设定阈值(比如5%或10%)。
S5:根据各像素及其相邻的多个像素的亮度值计算各像素第一亮度调整值。
如图2所示,针对像素在图像中的不同位置,其第一亮度调整值的计算方式有所不同。例如,像素A位于图像的中间,分别获取像素A及其周围的8个像素(阴影部分)的亮度值,将这9个像素的亮度平均值作为像素A的第一亮度调整值;像素B位于图像的边上,分别获取像素B及其周围的5个像素的亮度值,将这6个像素的亮度平均值作为像素B的第一亮度调整值;像素C位于图像的角落,分别获取像素C及其周围的3个像素的亮度值,将这4个像素的亮度平均值作为像素C的第一亮度调整值。
另外,在本实施例的另一具体方案中,本步骤还包括以下子步骤:
S51:以待调整亮度的像素为中心,获取该像素及其相邻各像素的亮度值。
如图2所示,获取像素A以及其周围的8个相邻像素的亮度值;获取像素B及其周围的5个相邻像素的亮度值;获取像素C及其周围的3个相邻像素的亮度值。
S52:根据各相邻像素到待调整亮度的像素的距离大小设定不同的权重值。
具体地,对像素A设定权重值α1,对像素A上下左右的4个相邻像素设定权重值α2,对像素A的4个角落的相邻像素设定权重值α3,其中α1>α2>α3。对于像素B、像素C也可以按相同方式进行权重值的设定。
S53:将该像素及相邻各像素的亮度值的加权平均值作为第一亮度调整值。
具体地,假设像素A的亮度值为LA0,像素A相邻的上下左右的像素的亮度值分别为LA1、LA2、LA3、LA4,像素A相邻的4个角落的像素的亮度值分别为LA5、LA6、LA7、LA8,则像素A的第一亮度调整值为:
(1/9)*(LA0*α1+(LA1+LA2+LA3+LA4)*α2+(LA5+LA6+LA7+LA8)*α3)。
同样地,对于像素B、像素C的第一亮度调整值也可以按相同方式进行计算。
需要说明的是,本步骤中的的相邻并不限于直接相邻,以像素A为例,可以将以像素A为中心的上下各两排、左右各两列合计24个像素作为相邻 像素。
S6:根据各像素的第一亮度调整值和像素增益表计算各像素的第二亮度调整值。
具体地,根据步骤S5得到的各像素的第一亮度调整值,在像素增益表中查到对应的增益系数,然后将各像素的第一亮度调整值与增益系数的乘积作为第二亮度调整值,即第二亮度调整值=第一亮度调整值*增益系数。本步骤中的像素增益表为根据经验值得到的像素值及其对应的增益系数。
在本实施例的优化方案中,为了增强曝光效果,在上述方案的基础上,考虑各像素在图像中的位置不同而设置不同的权重值,也就是各像素所在位置的权重值与各像素到图像中心的位置相关,越靠近图像中心位置,其权重值越高。即第二亮度调整值=第一亮度调整值*增益系数*权重,由于采用8bit位宽的亮度单位,当第二亮度调整值大于255时,将其调整为255;此外,为避免降低图像亮度,个像素的权重值不小于1。
S7:将原始图像中的各像素的亮度调整至对应的第二亮度调整值。
将原始图像中的各像素按对应的第二亮度调整值进行亮度值的调整。
实施例2
如图3所示,本实施例揭示了一种自动曝光装置,包括:一种获取模块,用于获取原始图像的拍摄场景;第一亮度调整模块,用于将原始图像的亮度调整至对应的拍摄场景的参考亮度;判断模块,用于判断经亮度调整模块调整后的图像是否存在局部区域过曝;第二亮度调整模块,用于降低经第一亮度调整模块进行亮度调整后的存在局部区域过曝的图像的亮度;第一计算模块,用于根据各像素及其相邻的多个像素的亮度值计算各像素的第一亮度调整值,需要说明的是,当经第一亮度调整模块调整后的图像不存在局部曝光时,各像素为第一亮度调整模块调整后的图像中的像素,当经第一亮度调整模块调整后的图像存在局部曝光时,各像素为第二亮度调整模块降低亮度后的图像中的像素;第二计算模块,用于根据各像素的第一亮度调整值和像素增益表计算各像素的第二亮度调整值;第三亮度调整模块,用于将原始图像中的各像素的亮度调整至按对应的第二亮度调整值。
本实施例中,各模块的处理过程和对应的参数与实施例1中的相同或相似。
实施例3
如图4所示,本实施例揭示了一种电子设备,包括:存储器,所述存储器存储有计算机程序;处理器,所述处理器用于执行所述计算机程序以实现实施例1中的自动曝光方法。
实施例4
本实施例揭示了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现实施例1中的自动曝光方法。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,存储介质可以是计算机可读存储介质,例如,铁电存储器(FRAM,Ferromagnetic Random Access Memory)、只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read Only Memory)、带电可擦可编程只读存储器(EEPROM,Electrically Erasable Programmable Read Only Memory)、闪存、磁表面存储器、光盘、或光盘只读存储器(CD-ROM,Compact Disk-Read Only Memory)等存储器;也可以是包括上述存储器之一或任意组合的各种设备。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种自动曝光方法,其特征在于,包括:
    S1:获取原始图像的拍摄场景;
    S2:将原始图像的亮度调整至对应的拍摄场景的参考亮度;
    S3:判断调整后的图像是否存在局部区域过曝,如果是则进入步骤S4,如果不是,则进入步骤S5;
    S4:降低调整后的图像的亮度;
    S5:根据各像素及其相邻的多个像素的亮度值计算各像素第一亮度调整值;
    S6:根据各像素的第一亮度调整值和像素增益表计算各像素的第二亮度调整值;
    S7:将原始图像中的各像素的亮度调整至对应的第二亮度调整值;
    其中,像素增益表为根据经验值得到的像素值及其对应的增益系数。
  2. 如权利要求1所述的自动曝光方法,其特征在于,所述步骤S1包括:通过对原始图像的曝光量EV或/和过曝灰度阈值的像素占总像素的比例λ来确定原始图像的拍摄场景。
  3. 如权利要求1所述的自动曝光方法,其特征在于,所述步骤S2包括:通过调整拍摄装置的曝光量来调整图像的亮度。
  4. 如权利要求1所述的自动曝光方法,其特征在于,所述步骤S3中判断是否存在局部区域过曝的标准为:判断图像中亮度值超过预设值的像素的数目与图像像素总数的比值是否大于设定阈值,如果是,则认为存在局部区域过曝。
  5. 如权利要求1所述的自动曝光方法,其特征在于,所述步骤S5中各像素的第一亮度调整值为该像素以及以该像素为中心的各相邻像素的亮度值的算术平均值。
  6. 如权利要求1所述的自动曝光方法,其特征在于,所述步骤S5包括以下子步骤:
    S51:以待调整亮度的像素为中心,获取该像素及其相邻各像素的亮度值;
    S52:根据各像素到待调整亮度的像素的距离大小设定不同的权重值;
    S53:将该像素及相邻各像素的亮度值的加权平均值作为第一亮度调整值。
  7. 如权利要求1所述的自动曝光方法,其特征在于,
    所述步骤S6为根据各像素的第一亮度调整值、像素增益表和各像素所在位置的权重值计算第二亮度调整值;其中,各像素所在位置的权重值与各像素到图像中心的位置相关。
  8. 一种自动曝光装置,其特征在于,包括:
    获取模块,用于获取原始图像的拍摄场景;
    第一亮度调整模块,用于将原始图像的亮度调整至对应的拍摄场景的参考亮度;
    判断模块,用于判断经亮度调整模块调整后的图像是否存在局部区域过曝;
    第二亮度调整模块,用于降低经第一亮度调整模块进行亮度调整后的存在局部区域过曝的图像的亮度;
    第一计算模块,用于根据各像素及其相邻的多个像素的亮度值计算各像素的第一亮度调整值;
    第二计算模块,用于根据各像素的第一亮度调整值和像素增益表计算各像素的第二亮度调整值;
    第三亮度调整模块,用于将原始图像中的各像素的亮度调整至按对应的第二亮度调整值。
  9. 一种电子设备,其特征在于,包括:
    存储器,所述存储器存储有计算机程序;
    处理器,所述处理器用于执行所述计算机程序以实现权利要求1至7中任一项所述的自动曝光方法。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的自动曝光方法。
PCT/CN2021/129487 2020-11-09 2021-11-09 自动曝光方法、装置、电子设备及计算机可读存储介质 WO2022096013A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011235948.7A CN112351218A (zh) 2020-11-09 2020-11-09 自动曝光方法、装置、电子设备及计算机可读存储介质
CN202011235948.7 2020-11-09

Publications (1)

Publication Number Publication Date
WO2022096013A1 true WO2022096013A1 (zh) 2022-05-12

Family

ID=74429999

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/129487 WO2022096013A1 (zh) 2020-11-09 2021-11-09 自动曝光方法、装置、电子设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112351218A (zh)
WO (1) WO2022096013A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114862722A (zh) * 2022-05-26 2022-08-05 广州市保伦电子有限公司 一种图像亮度增强实现方法及处理终端
CN115802169A (zh) * 2022-11-29 2023-03-14 福州鑫图光电有限公司 一种基于亮度直方图的自动曝光方法及终端
CN117408927A (zh) * 2023-12-12 2024-01-16 荣耀终端有限公司 图像处理方法、设备及存储介质
CN117560576A (zh) * 2023-11-13 2024-02-13 四川新视创伟超高清科技有限公司 一种焦平面区域的曝光方法及曝光系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351218A (zh) * 2020-11-09 2021-02-09 影石创新科技股份有限公司 自动曝光方法、装置、电子设备及计算机可读存储介质
CN115018743B (zh) * 2021-03-05 2024-06-14 思特威(上海)电子科技股份有限公司 片内分区曝光图像融合方法、成像装置及计算机存储介质
CN113301264B (zh) * 2021-07-26 2021-11-23 北京博清科技有限公司 一种图像亮度调整方法、装置、电子设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340523A (zh) * 2008-08-14 2009-01-07 北京中星微电子有限公司 一种对数字图像进行曝光补偿的方法和装置
CN105100632A (zh) * 2014-05-13 2015-11-25 北京展讯高科通信技术有限公司 成像设备自动曝光的调整方法及装置、成像设备
CN106506973A (zh) * 2016-12-06 2017-03-15 广东欧珀移动通信有限公司 对焦控制方法、装置、电子设备及终端设备
CN106713778A (zh) * 2016-12-28 2017-05-24 上海兴芯微电子科技有限公司 曝光控制方法和装置
CN107451979A (zh) * 2017-08-08 2017-12-08 腾讯科技(深圳)有限公司 一种图像处理方法、装置和存储介质
US20190172186A1 (en) * 2017-12-04 2019-06-06 Realtek Semiconductor Corporation Image tuning device and method
CN112351218A (zh) * 2020-11-09 2021-02-09 影石创新科技股份有限公司 自动曝光方法、装置、电子设备及计算机可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340523A (zh) * 2008-08-14 2009-01-07 北京中星微电子有限公司 一种对数字图像进行曝光补偿的方法和装置
CN105100632A (zh) * 2014-05-13 2015-11-25 北京展讯高科通信技术有限公司 成像设备自动曝光的调整方法及装置、成像设备
CN106506973A (zh) * 2016-12-06 2017-03-15 广东欧珀移动通信有限公司 对焦控制方法、装置、电子设备及终端设备
CN106713778A (zh) * 2016-12-28 2017-05-24 上海兴芯微电子科技有限公司 曝光控制方法和装置
CN107451979A (zh) * 2017-08-08 2017-12-08 腾讯科技(深圳)有限公司 一种图像处理方法、装置和存储介质
US20190172186A1 (en) * 2017-12-04 2019-06-06 Realtek Semiconductor Corporation Image tuning device and method
CN112351218A (zh) * 2020-11-09 2021-02-09 影石创新科技股份有限公司 自动曝光方法、装置、电子设备及计算机可读存储介质

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114862722A (zh) * 2022-05-26 2022-08-05 广州市保伦电子有限公司 一种图像亮度增强实现方法及处理终端
CN115802169A (zh) * 2022-11-29 2023-03-14 福州鑫图光电有限公司 一种基于亮度直方图的自动曝光方法及终端
CN115802169B (zh) * 2022-11-29 2024-04-30 福州鑫图光电有限公司 一种基于亮度直方图的自动曝光方法及终端
CN117560576A (zh) * 2023-11-13 2024-02-13 四川新视创伟超高清科技有限公司 一种焦平面区域的曝光方法及曝光系统
CN117560576B (zh) * 2023-11-13 2024-05-07 四川新视创伟超高清科技有限公司 一种焦平面区域的曝光方法及曝光系统
CN117408927A (zh) * 2023-12-12 2024-01-16 荣耀终端有限公司 图像处理方法、设备及存储介质
CN117408927B (zh) * 2023-12-12 2024-09-17 荣耀终端有限公司 图像处理方法、设备及存储介质

Also Published As

Publication number Publication date
CN112351218A (zh) 2021-02-09

Similar Documents

Publication Publication Date Title
WO2022096013A1 (zh) 自动曝光方法、装置、电子设备及计算机可读存储介质
EP1996913B1 (en) Systems, methods, and apparatus for exposure control
WO2022116989A1 (zh) 图像处理方法、装置、设备和存储介质
CN111711767B (zh) 一种自动曝光控制方法及电子设备
CN112351195B (zh) 图像处理方法、装置和电子系统
WO2019019904A1 (zh) 白平衡处理方法、装置和终端
WO2021218603A1 (zh) 图像处理方法及投影系统
WO2022253014A1 (zh) 水下图像色彩还原方法和装置
US11496694B2 (en) Dual sensor imaging system and imaging method thereof
CN113329217B (zh) 自动白平衡参数处理方法及装置、计算机可读存储介质
CN112669758A (zh) 显示屏校正方法、装置、系统和计算机可读存储介质
CN107659777B (zh) 一种自动曝光的方法及装置
US9392242B2 (en) Imaging apparatus, method for controlling imaging apparatus, and storage medium, for underwater flash photography
WO2019227355A1 (zh) 一种图像处理方法及装置
US20180262673A1 (en) Device and method for reducing the set of exposure times for high dynamic range video/imaging
CN111311509A (zh) 一种非正常曝光图像自适应校正方法
CN115914850A (zh) 增强宽动态图像通透性的方法、电子设备和存储介质
JP2020102666A (ja) 画像処理装置、撮像装置、画像処理方法、及びプログラム
US11496660B2 (en) Dual sensor imaging system and depth map calculation method thereof
JP2012134651A (ja) 画像処理装置、方法及びプログラム
US11568526B2 (en) Dual sensor imaging system and imaging method thereof
TW202211161A (zh) 雙感測器攝像系統及其隱私保護攝像方法
CN110418066B (zh) 图像处理方法、装置、设备及存储介质
CN115914827B (zh) 一种昼夜切换方法、电子设备和存储介质
CN115103129B (zh) 拍摄参数的确定方法、装置、电子设备和计算机存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21888705

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21888705

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21888705

Country of ref document: EP

Kind code of ref document: A1