WO2016145678A1 - Automatic exposure method and device - Google Patents

Automatic exposure method and device Download PDF

Info

Publication number
WO2016145678A1
WO2016145678A1 PCT/CN2015/075562 CN2015075562W WO2016145678A1 WO 2016145678 A1 WO2016145678 A1 WO 2016145678A1 CN 2015075562 W CN2015075562 W CN 2015075562W WO 2016145678 A1 WO2016145678 A1 WO 2016145678A1
Authority
WO
WIPO (PCT)
Prior art keywords
brightness value
adjusted
preset threshold
value
brightness
Prior art date
Application number
PCT/CN2015/075562
Other languages
French (fr)
Chinese (zh)
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 WO2016145678A1 publication Critical patent/WO2016145678A1/en

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

Definitions

  • the present invention relates to the field of data processing, and in particular, to a method and apparatus for automatic exposure.
  • Auto exposure is when the camera takes a specific exposure algorithm to automatically select the aperture size, exposure time, and sensitivity value when shooting an object, so that the image brightness of the object is normal.
  • some of the traditional auto-exposure algorithms use the overall brightness control of the image to control the exposure.
  • Other algorithms control the exposure according to the picture brightness histogram.
  • Other algorithms use the brightness reference to adjust the brightness to control the exposure.
  • the brightness in the focus frame is usually used as the reference brightness for exposure, so when using these exposure algorithms, the brightness difference between the subject and the background is quite large, if the subject in the focus frame If the background is too bright and the background outside the focus frame is too dark, the entire image will be brighter and overexposed, and vice versa.
  • the uneven exposure of the face seriously affects the image quality.
  • the method and device for automatic exposure provided by the embodiments of the present invention can improve image quality.
  • a method of automatic exposure comprising:
  • the first brightness value is a current brightness value of a current image in the finder frame
  • the second brightness value is a preset brightness value of the current image in the frame
  • An automatic exposure device comprising:
  • a first acquiring unit configured to acquire a first brightness value, where the first brightness value is a current brightness value of a current image in the frame;
  • a second acquiring unit configured to acquire a second brightness value, where the second brightness value is a preset brightness value of the current image in the finder frame;
  • an adjusting unit configured to calculate, according to the first brightness value and the second brightness value, and adjust the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is Within the preset threshold.
  • An embodiment of the present invention provides a method and apparatus for automatically exposing, by acquiring a first brightness value of a current image in a finder frame and a second brightness value of a current image in a finder frame, according to the first brightness value and the second brightness value. Calculating, and adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold.
  • the embodiment of the present invention adjusts according to the current overall image brightness in the framing frame, so that the image in the focus frame does not appear, compared with the prior art method of performing exposure only according to the brightness of the image in the focus frame.
  • the exposure brightness is controlled by adjusting the first brightness value to make the calculation result of the first brightness value and the second brightness value satisfy the preset threshold value, so that the overall brightness of the image is uniform. Improve image quality.
  • FIG. 1 is a flowchart of a method for automatic exposure according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for automatically exposing according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for automatically exposing according to an embodiment of the present invention.
  • FIG. 5 is a block diagram of a device for automatically exposing according to an embodiment of the present invention.
  • FIG. 6 is a block diagram of another apparatus for automatically exposing according to an embodiment of the present invention.
  • FIG. 7 is a block diagram of another apparatus for automatically exposing according to an embodiment of the present invention.
  • FIG. 8 is a block diagram of another apparatus for automatically exposing according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for automatic exposure, which can improve image quality, and the flow thereof is as shown in FIG. 1 and includes:
  • the first brightness value is a current brightness value of the current image in the frame. It is worth noting that the process of obtaining the current image brightness value in the framing frame is to convert the RGB data of the current image in the finder frame into YUV data. In the YUV data, "Y" represents brightness. Therefore, by acquiring the "Y" value in the YUV data of the current image in the finder frame, the current brightness value of the current image in the finder frame, that is, the first brightness value can be determined.
  • the second brightness value is a preset brightness value of the current image in the frame.
  • the preset brightness value is set according to the user's personal preference. It should be noted that the second brightness value is also a value of "Y" in the YUV data. The purpose of setting the second brightness value is to ensure that the image in the viewfinder can satisfy the user's exposure requirements for the current image under different light illumination conditions.
  • step 202 The specific calculation process of the first brightness value and the second brightness value is described in detail in step 202, which will be described later, and will not be described herein.
  • An embodiment of the present invention provides a method for automatically exposing, by acquiring a first brightness value of a current image in a finder frame and a second brightness value of a current image in a finder frame, and performing calculation according to the first brightness value and the second brightness value, And adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold.
  • the embodiment of the present invention adjusts according to the current overall image brightness in the framing frame, so that the image in the focus frame does not appear, compared with the prior art method of performing exposure only according to the brightness of the image in the focus frame.
  • the method of preset threshold realizes exposure control, so that the overall brightness of the image is uniform and the image quality is improved.
  • step 103 the method flow of step 103 is described in detail, including:
  • the preset threshold is used to determine whether the calculation result of the first brightness value and the second brightness value satisfies the condition for adjusting the first brightness value.
  • the specific value of the preset threshold is set to the empirical value. The present invention does not limit the specific value of the preset threshold. However, it should be noted that if the preset threshold is set too large, the degree of approximation of the adjusted first brightness value and the second brightness value will be affected. If the preset range is too small, the number of times the first brightness value is adjusted is increased during the adjustment, and the time for adjusting the first brightness value is increased.
  • the image presented at this time is an image obtained when the exposure time and the photosensitive value are not adjusted, and there is a phenomenon of overexposure or underexposure, that is, At this time, the "Y" value of the current image in the frame may be too large (the display effect is that the image is bright), and the "Y" value of the current image in the frame may be too small (the display effect is dark). Whether the "Y" value is too large or the "Y" value is too small does not meet the user's ideal photo brightness, that is, the second brightness value. Therefore, by calculating the difference between the first brightness value and the second brightness value, it is determined whether it is necessary to adjust the first brightness value and how to adjust the first brightness value.
  • the first brightness value is not adjusted.
  • the difference between the first brightness value and the second brightness value is less than or equal to the preset threshold, it is indicated that the first brightness value and the second brightness value are close in value, and the expressed brightness also meets the requirements of the user. Therefore, in this case, it is not necessary to adjust the first brightness value, and it is sufficient to directly use the first brightness value for exposure.
  • the absolute value of the difference between the first brightness value and the second brightness value is greater than a preset threshold, it indicates that the first brightness value and the second brightness value are different in value, and the brightness expressed is also related to the user's expectation.
  • the brightness is not the same.
  • the first brightness value is closer to the second brightness value, thereby achieving a satisfactory exposure effect of the user.
  • steps 2041 and 2042 wherein the steps 2041 and 2042 are alternatively performed, including:
  • step 204 the method flow of step 204 is described in detail, including:
  • the first brightness value gradually approaches the second brightness value by adjusting a plurality of times. If the difference between the first brightness value and the second brightness value is within a preset threshold by only one adjustment, the brightness of the current image in the frame is obviously brightly changed, which is unfavorable to the user's judgment. Whether a brightness value meets the requirements. Therefore, in the process of multiple adjustments, the first brightness value after each adjustment is further calculated with the second brightness value, and it is determined whether the difference between the adjusted first brightness value and the second brightness value is less than or equal to Set the value field.
  • a method for adjusting a first brightness value is described in detail, and is specifically divided into two aspects, including:
  • the first brightness value is adjusted by adjusting the exposure time or sensitivity of the terminal.
  • the present invention is applied to the process of automatic exposure.
  • the relationship between exposure time and sensitivity is one-to-one. After determining the exposure time, the corresponding sensitivity can be determined. Thereby, when taking a picture, the exposure time and sensitivity required for the time of the shooting are determined by the exposure table. It is worth noting that the longer the exposure time, the higher the brightness of the captured image; the higher the sensitivity, the higher the brightness of the captured image. Therefore, by adjusting the length of the exposure time and the magnitude of the sensitivity, the purpose of adjusting the first brightness value can be achieved.
  • the magnitude of the first brightness value is adjusted each time to be the same as the size of the preset threshold.
  • the first brightness value is 10; the second brightness value is 3; and the preset threshold is 1.
  • the absolute value of the difference between the first brightness value and the second brightness value is 7, which is greater than a preset threshold, and therefore, the first brightness is adjusted.
  • the value is used, it is lowered by 1 each time (equal to the preset threshold).
  • the second brightness value is calculated. If the difference between the first brightness value and the second brightness value is greater than or equal to the preset threshold, the adjustment is continued, and the first brightness value passes through 9.
  • the method includes:
  • the third brightness value is a preset brightness value of the face image when the current image of the framing frame includes the face image. Through the face detection technology, it is possible to detect whether a face is included in the current image in the frame.
  • the third brightness value is used instead of the second brightness value, and the first brightness value is calculated, and the first brightness value is adjusted according to the calculation result.
  • the first brightness value and the third brightness value are used for calculation.
  • the calculation rule and the calculation method are the same as the rules and methods for calculating the first brightness value and the second brightness value, and the method is not described herein.
  • the second brightness value is used to calculate with the first brightness value.
  • An embodiment of the present invention provides a method for automatically exposing, by acquiring a first brightness value of a current image in a finder frame and a second brightness value of a current image in a finder frame, and performing calculation according to the first brightness value and the second brightness value, And adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold.
  • the embodiment of the present invention adjusts according to the current overall image brightness in the framing frame, so that the image in the focus frame does not appear, compared with the prior art method of performing exposure only according to the brightness of the image in the focus frame.
  • the exposure brightness is controlled by adjusting the first brightness value to make the calculation result of the first brightness value and the second brightness value satisfy the preset threshold value, so that the overall brightness of the image is uniform. Improve image quality.
  • An embodiment of the present invention provides an apparatus for automatically exposing, as shown in FIG. 5, comprising: a first acquiring unit 51, a second acquiring unit 52, and an adjusting unit 53.
  • the first obtaining unit 51 is configured to acquire a first brightness value, where the first brightness value is a current brightness value of a current image in the finder frame.
  • the second obtaining unit 52 is configured to acquire a second brightness value, where the second brightness value is a preset brightness value of the current image in the finder frame.
  • the adjusting unit 53 is configured to calculate, according to the first brightness value and the second brightness value, and adjust the first brightness value according to the calculation result, so as to calculate the adjusted first brightness value and the second brightness value Within the preset threshold.
  • the adjusting unit 53 further includes: a setting subunit 531 and a calculating subunit 532.
  • a setting sub-unit 531 configured to set the preset threshold, where the preset threshold is used to determine whether the calculation result of the first brightness value and the second brightness value meets a condition for adjusting the first brightness value .
  • the calculation subunit 532 calculates a difference between the first brightness value and the second brightness value.
  • the first brightness value is not adjusted.
  • the first brightness value is adjusted, and the adjusting the first brightness value includes:
  • the first brightness value is reduced.
  • the first brightness value is less than the second brightness value
  • the first brightness value is increased.
  • the adjusting unit 53 further includes: a determining subunit 533.
  • the determining subunit is configured to determine whether a difference between the adjusted first brightness value and the second brightness value is greater than the preset threshold.
  • the adjusted first brightness value is continuously adjusted.
  • the adjusting unit 53 is further configured to adjust the first brightness value by adjusting an exposure time or a sensitivity.
  • the size of the first brightness value is adjusted each time to be the same as the size of the preset threshold.
  • the apparatus further includes: a third obtaining unit 54.
  • the third obtaining unit 54 is configured to acquire a third brightness value, where the third brightness value is a preset brightness value of the face image when the current image includes the face image in the finder frame.
  • the third brightness value is used instead of the second brightness value, and the first brightness value is calculated, and the first brightness value is adjusted according to the calculation result.
  • the embodiment of the present invention provides an apparatus for automatically exposing, the first acquiring unit acquires a first brightness value of a current image in the finder frame, and the second acquiring unit acquires a second brightness value of the current image in the finder frame, according to the first brightness.
  • the value and the second brightness value are calculated, and the adjusting unit adjusts the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold.
  • the method for performing exposure according to the image brightness in the focus frame is adjusted according to the overall image brightness in the finder frame, so that the image and the focus in the focus frame do not occur.
  • the exposure control is implemented by adjusting the first brightness value to make the calculation result of the first brightness value and the second brightness value satisfy the preset threshold, thereby improving the image quality.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

An automatic exposure method and device, which relate to the field of data processing and can make the overall luminance of an image uniform. The method comprises: acquiring a first luminance value of a current image in a finder frame and a second luminance value of the current image in the finder frame; and performing calculation according to the first luminance value and the second luminance value, and adjusting the first luminance value according to a calculation result, such that a calculation result of the adjusted first luminance value and the second luminance value is within a pre-set threshold value. The present invention is applied to a method process of automatic exposure.

Description

一种自动曝光的方法及装置Method and device for automatic exposure
本申请要求于2015年3月16日提交中国专利局、申请号为201510114040.3,发明名称为“一种自动曝光的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510114040.3, the entire disclosure of which is incorporated herein by reference. in.
技术领域Technical field
本发明涉及数据处理领域,尤其涉及一种自动曝光的方法及装置。The present invention relates to the field of data processing, and in particular, to a method and apparatus for automatic exposure.
背景技术Background technique
自动曝光就是相机在拍摄物体时采用特定的曝光算法自动选择光圈大小、曝光时间、感光值,以使物体的影像亮度正常。Auto exposure is when the camera takes a specific exposure algorithm to automatically select the aperture size, exposure time, and sensitivity value when shooting an object, so that the image brightness of the object is normal.
然而,传统的自动曝光算法中有一些算法是使用图片的整体亮度控制曝光,还有一些算法是根据图片亮度直方图控制曝光,另外一些算法是使用亮度参考值调整亮度来控制曝光。在这些传统的自动曝光算法中,通常都是根据对焦框内的亮度作为参考亮度进行曝光的,因此使用这些曝光算法在拍摄主体和背景之间亮度差相当大时,如果对焦框内的拍摄主体过亮而对焦框外的背景过暗,则会使拍摄出来的图像整体都偏亮,出现过曝现象,而反之,则会出现曝光不足的现象。特别在针对人脸拍摄的主体时,人脸曝光不均严重影响图像质量。However, some of the traditional auto-exposure algorithms use the overall brightness control of the image to control the exposure. Other algorithms control the exposure according to the picture brightness histogram. Other algorithms use the brightness reference to adjust the brightness to control the exposure. In these conventional automatic exposure algorithms, the brightness in the focus frame is usually used as the reference brightness for exposure, so when using these exposure algorithms, the brightness difference between the subject and the background is quite large, if the subject in the focus frame If the background is too bright and the background outside the focus frame is too dark, the entire image will be brighter and overexposed, and vice versa. Especially when focusing on the subject of the face, the uneven exposure of the face seriously affects the image quality.
发明内容Summary of the invention
本发明实施例提供的一种自动曝光的方法及装置,可提高图像质量。The method and device for automatic exposure provided by the embodiments of the present invention can improve image quality.
一种自动曝光的方法,包括:A method of automatic exposure comprising:
获取第一亮度值,所述第一亮度值为取景框中当前图像的当前亮度值;Obtaining a first brightness value, where the first brightness value is a current brightness value of a current image in the finder frame;
获取第二亮度值,所述第二亮度值为所述取景框中当前图像的预设亮度值;Obtaining a second brightness value, where the second brightness value is a preset brightness value of the current image in the frame;
根据所述第一亮度值和所述第二亮度值计算,并根据计算结果调整所述第一亮度值,使调整后的第一亮度值与第二亮度值的计算结果在预设阈值内。Calculating according to the first brightness value and the second brightness value, and adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold.
一种自动曝光的装置,包括: An automatic exposure device comprising:
第一获取单元,用于获取第一亮度值,所述第一亮度值为取景框中当前图像的当前亮度值;a first acquiring unit, configured to acquire a first brightness value, where the first brightness value is a current brightness value of a current image in the frame;
第二获取单元,用于获取第二亮度值,所述第二亮度值为所述取景框中当前图像的预设亮度值;a second acquiring unit, configured to acquire a second brightness value, where the second brightness value is a preset brightness value of the current image in the finder frame;
调整单元,用于根据所述第一亮度值和所述第二亮度值计算,并根据计算结果调整所述第一亮度值,使调整后的第一亮度值与第二亮度值的计算结果在预设阈值内。And an adjusting unit, configured to calculate, according to the first brightness value and the second brightness value, and adjust the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is Within the preset threshold.
本发明实施例提供了一种自动曝光的方法及装置,通过获取取景框中当前图像的第一亮度值和取景框中当前图像的第二亮度值,根据第一亮度值和第二亮度值进行计算,并根据计算结果调整第一亮度值,使调整后的第一亮度值和第二亮度值的计算结果在预设阈值内。相比与现有技术只根据对焦框内的图像亮度进行曝光的方法来说,本发明实施例是根据取景框内当前整体的图像亮度来进行调节的,因此不会出现对焦框内的图像与对焦框外的图像曝光程度相差过大的情况,同时通过调整第一亮度值,使第一亮度值与第二亮度值的计算结果满足预设阈值的方法实现曝光控制,使图像整体亮度均匀,提高图像质量。An embodiment of the present invention provides a method and apparatus for automatically exposing, by acquiring a first brightness value of a current image in a finder frame and a second brightness value of a current image in a finder frame, according to the first brightness value and the second brightness value. Calculating, and adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold. The embodiment of the present invention adjusts according to the current overall image brightness in the framing frame, so that the image in the focus frame does not appear, compared with the prior art method of performing exposure only according to the brightness of the image in the focus frame. When the exposure degree of the image outside the focus frame is too large, the exposure brightness is controlled by adjusting the first brightness value to make the calculation result of the first brightness value and the second brightness value satisfy the preset threshold value, so that the overall brightness of the image is uniform. Improve image quality.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为本发明实施例提供的一种自动曝光的方法流程图;FIG. 1 is a flowchart of a method for automatic exposure according to an embodiment of the present invention;
图2为本发明实施例提供的另一种自动曝光的方法流程图;FIG. 2 is a flowchart of another method for automatically exposing according to an embodiment of the present invention; FIG.
图3为本发明实施例提供的另一种自动曝光的方法流程图;FIG. 3 is a flowchart of another method for automatically exposing according to an embodiment of the present invention; FIG.
图4为本发明实施例提供的另一种自动曝光的方法流程图;4 is a flowchart of another method for automatically exposing according to an embodiment of the present invention;
图5为本发明实施例提供的一种自动曝光的装置构成框图;FIG. 5 is a block diagram of a device for automatically exposing according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的另一种自动曝光的装置构成框图;FIG. 6 is a block diagram of another apparatus for automatically exposing according to an embodiment of the present invention; FIG.
图7为本发明实施例提供的另一种自动曝光的装置构成框图;FIG. 7 is a block diagram of another apparatus for automatically exposing according to an embodiment of the present invention; FIG.
图8为本发明实施例提供的另一种自动曝光的装置构成框图。 FIG. 8 is a block diagram of another apparatus for automatically exposing according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种自动曝光的方法,可提高图像质量,其流程如图1所示,包括:The embodiment of the invention provides a method for automatic exposure, which can improve image quality, and the flow thereof is as shown in FIG. 1 and includes:
101、获取第一亮度值。101. Acquire a first brightness value.
其中,第一亮度值为取景框中当前图像的当前亮度值。值得说明的是,获取取景框中当前图像亮度值的过程为,将取景框中当前图像的RGB数据转换为YUV数据。在YUV数据中,“Y”代表亮度。因此,通过获取取景框中当前图像的YUV数据中的“Y”值,可确定取景框中当前图像的当前亮度值,即第一亮度值。The first brightness value is a current brightness value of the current image in the frame. It is worth noting that the process of obtaining the current image brightness value in the framing frame is to convert the RGB data of the current image in the finder frame into YUV data. In the YUV data, "Y" represents brightness. Therefore, by acquiring the "Y" value in the YUV data of the current image in the finder frame, the current brightness value of the current image in the finder frame, that is, the first brightness value can be determined.
102、获取第二亮度值。102. Acquire a second brightness value.
其中,第二亮度值为取景框中当前图像的预设亮度值。该预设亮度值是根据用户个人喜好进行设定的。需要说明的是,第二亮度值也由YUV数据中的“Y”值。设置第二亮度值的目的是为了保证在处于不同光线照射情况下,取景框中的图像都可以满足用户对当前图像的曝光要求。The second brightness value is a preset brightness value of the current image in the frame. The preset brightness value is set according to the user's personal preference. It should be noted that the second brightness value is also a value of "Y" in the YUV data. The purpose of setting the second brightness value is to ensure that the image in the viewfinder can satisfy the user's exposure requirements for the current image under different light illumination conditions.
103、根据第一亮度值和第二亮度值计算,并根据计算结果调整第一亮度值,使调整后的第一亮度值与第二亮度值的计算结果在预设阈值内。103. Calculate according to the first brightness value and the second brightness value, and adjust the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold.
其中,第一亮度值和第二亮度值的具体计算过程在后述步骤202中做了详细的描述,在此不做赘述。The specific calculation process of the first brightness value and the second brightness value is described in detail in step 202, which will be described later, and will not be described herein.
本发明实施例提供了一种自动曝光的方法,通过获取取景框中当前图像的第一亮度值和取景框中当前图像的第二亮度值,根据第一亮度值和第二亮度值进行计算,并根据计算结果调整第一亮度值,使调整后的第一亮度值和第二亮度值的计算结果在预设阈值内。相比与现有技术只根据对焦框内的图像亮度进行曝光的方法来说,本发明实施例是根据取景框内当前整体的图像亮度来进行调节的,因此不会出现对焦框内的图像与对焦框外的图像曝光程度相差过大的情况,同时通过调整第一亮度值,使第一亮度值与第二亮度值的计算结果满足 预设阈值的方法实现曝光控制,使图像整体亮度均匀,提高图像质量。An embodiment of the present invention provides a method for automatically exposing, by acquiring a first brightness value of a current image in a finder frame and a second brightness value of a current image in a finder frame, and performing calculation according to the first brightness value and the second brightness value, And adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold. The embodiment of the present invention adjusts according to the current overall image brightness in the framing frame, so that the image in the focus frame does not appear, compared with the prior art method of performing exposure only according to the brightness of the image in the focus frame. If the degree of exposure of the image outside the focus frame is too large, and the first brightness value is adjusted, the calculation result of the first brightness value and the second brightness value is satisfied. The method of preset threshold realizes exposure control, so that the overall brightness of the image is uniform and the image quality is improved.
本发明提供的另一实施例中,如图2所示,详细描述了步骤103的方法流程,包括:In another embodiment provided by the present invention, as shown in FIG. 2, the method flow of step 103 is described in detail, including:
201、设置预设阈值。201. Set a preset threshold.
其中,预设阈值用于判断第一亮度值和第二亮度值的计算结果,是否满足调整第一亮度值的条件。设置预设阈值的具体数值大小为经验值,本发明不对预设阈值的具体数值做限定。但是,需要说明的是,如果设置的预设阈值过大,则会影响调整后第一亮度值和第二亮度值的近似度。如果设置的预设值域过小,则会在调整时增加调整第一亮度值的次数,增加调整第一亮度值的时间。The preset threshold is used to determine whether the calculation result of the first brightness value and the second brightness value satisfies the condition for adjusting the first brightness value. The specific value of the preset threshold is set to the empirical value. The present invention does not limit the specific value of the preset threshold. However, it should be noted that if the preset threshold is set too large, the degree of approximation of the adjusted first brightness value and the second brightness value will be affected. If the preset range is too small, the number of times the first brightness value is adjusted is increased during the adjustment, and the time for adjusting the first brightness value is increased.
202、计算第一亮度值和第二亮度值的差值。202. Calculate a difference between the first brightness value and the second brightness value.
其中,由于第一亮度值为取景框中当前图像的亮度值,此时的呈现的图像是没有经过调整曝光时间和感光值时获取的图像,会有过曝或者欠曝的现象,也就是说此时的取景框中当前图像的“Y”值有可能过大(显示效果为图像偏亮),也又可能取景框中当前图像的“Y”值过小(显示效果为图像偏暗)。不管是“Y”值偏大还是“Y”值偏小都不符合用户理想的照片亮度,也就是第二亮度值。因此,通过计算第一亮度值与第二亮度值的差值,来确定是否需要调整第一亮度值和如何调整第一亮度值。Wherein, since the first brightness value is the brightness value of the current image in the frame, the image presented at this time is an image obtained when the exposure time and the photosensitive value are not adjusted, and there is a phenomenon of overexposure or underexposure, that is, At this time, the "Y" value of the current image in the frame may be too large (the display effect is that the image is bright), and the "Y" value of the current image in the frame may be too small (the display effect is dark). Whether the "Y" value is too large or the "Y" value is too small does not meet the user's ideal photo brightness, that is, the second brightness value. Therefore, by calculating the difference between the first brightness value and the second brightness value, it is determined whether it is necessary to adjust the first brightness value and how to adjust the first brightness value.
203、当第一亮度值和第二亮度值的差值的绝对值小于等于预设阈值时,不调整第一亮度值。203. When an absolute value of a difference between the first brightness value and the second brightness value is less than or equal to a preset threshold, the first brightness value is not adjusted.
其中,第一亮度值和第二亮度值的差值小于等于预设阈值时,说明第一亮度值和第二亮度值在数值上很接近,所表示的亮度也符合用户的要求。因此,在这种情况下,不需要对第一亮度值进行调整,直接使用第一亮度值进行曝光即可。Wherein, when the difference between the first brightness value and the second brightness value is less than or equal to the preset threshold, it is indicated that the first brightness value and the second brightness value are close in value, and the expressed brightness also meets the requirements of the user. Therefore, in this case, it is not necessary to adjust the first brightness value, and it is sufficient to directly use the first brightness value for exposure.
204、当第一亮度值和第二亮度值的差值的绝对值大于预设阈值时,调整第一亮度值。204. Adjust a first brightness value when an absolute value of a difference between the first brightness value and the second brightness value is greater than a preset threshold.
其中,当第一亮度值和第二亮度值的差值的绝对值大于预设阈值时,说明第一亮度值和第二亮度值在数值上相差很多,所表现出来的亮度也与用户的期望亮度不相同,此时,通过调整第一亮度值,使第一亮度值更趋近与第二亮度值,从而达到用户满意的曝光效果。 Wherein, when the absolute value of the difference between the first brightness value and the second brightness value is greater than a preset threshold, it indicates that the first brightness value and the second brightness value are different in value, and the brightness expressed is also related to the user's expectation. The brightness is not the same. At this time, by adjusting the first brightness value, the first brightness value is closer to the second brightness value, thereby achieving a satisfactory exposure effect of the user.
具体的,在执行步骤204时,有如下述步骤2041和步骤2042,其中,步骤2041和步骤2042为择一执行的关系,包括:Specifically, when performing step 204, there are the following steps 2041 and 2042, wherein the steps 2041 and 2042 are alternatively performed, including:
2041、当第一亮度值大于第二亮度值时,调小第一亮度值。2041: When the first brightness value is greater than the second brightness value, reduce the first brightness value.
2042、当第一亮度值小于第二亮度值时,调大第一亮度值。2042. When the first brightness value is less than the second brightness value, increase the first brightness value.
在本发明提供的另一实施例中,如图3所示,详细描述了步骤204的方法流程,包括:In another embodiment provided by the present invention, as shown in FIG. 3, the method flow of step 204 is described in detail, including:
301、判断调整后的第一亮度值与第二亮度值的差值是否大于预设阈值。301. Determine whether a difference between the adjusted first brightness value and the second brightness value is greater than a preset threshold.
其中,第一亮度值通过多次调整,逐渐趋近第二亮度值。如果仅通过一次调整,就使第一亮度值与第二亮度值的差值在预设阈值内,则会使取景框中当前图像亮度出现明显的明亮跳变,不利与用户判断调整后的第一亮度值是否符合要求。因此,在多次调整的过程中,要对每次调整后的第一亮度值再与第二亮度值进行计算,判断调整后的第一亮度值与第二亮度值的差值是否小于等于预设值域。Wherein, the first brightness value gradually approaches the second brightness value by adjusting a plurality of times. If the difference between the first brightness value and the second brightness value is within a preset threshold by only one adjustment, the brightness of the current image in the frame is obviously brightly changed, which is unfavorable to the user's judgment. Whether a brightness value meets the requirements. Therefore, in the process of multiple adjustments, the first brightness value after each adjustment is further calculated with the second brightness value, and it is determined whether the difference between the adjusted first brightness value and the second brightness value is less than or equal to Set the value field.
302、当调整后的第一亮度值与第二亮度值的差值大于预设阈值时,则继续调整调整后的第一亮度值。302. When the difference between the adjusted first brightness value and the second brightness value is greater than a preset threshold, continue to adjust the adjusted first brightness value.
在本发明提供的另一实施例中,详细描述了调整第一亮度值的方法流程,具体分为两个方面,包括:In another embodiment provided by the present invention, a method for adjusting a first brightness value is described in detail, and is specifically divided into two aspects, including:
第一方面,通过调整终端的曝光时间或感光度,调整第一亮度值。In the first aspect, the first brightness value is adjusted by adjusting the exposure time or sensitivity of the terminal.
其中,需要说明的是,由于本发明应用于自动曝光的过程中。在自动曝光的过程中,曝光时间和感光度时一一对应的关系。在确定曝光时间后,便可以确定对应的感光度。从而,在进行拍照时,通过曝光表,确定该次拍摄时需要使用的曝光时间和感光度。值得说明的是,曝光时间越长,则拍摄出的图像亮度越高;感光度越大,则拍摄出的图像亮度越高。因此,通过调整曝光时间的长短和感光度的大小,可以达到调整第一亮度值的目的。Among them, it should be noted that the present invention is applied to the process of automatic exposure. In the process of automatic exposure, the relationship between exposure time and sensitivity is one-to-one. After determining the exposure time, the corresponding sensitivity can be determined. Thereby, when taking a picture, the exposure time and sensitivity required for the time of the shooting are determined by the exposure table. It is worth noting that the longer the exposure time, the higher the brightness of the captured image; the higher the sensitivity, the higher the brightness of the captured image. Therefore, by adjusting the length of the exposure time and the magnitude of the sensitivity, the purpose of adjusting the first brightness value can be achieved.
第二方面,每次调整第一亮度值的大小与预设阈值的大小相同。In the second aspect, the magnitude of the first brightness value is adjusted each time to be the same as the size of the preset threshold.
其中,单次调整第一亮度值的大小如果过大,则会出现取景框中当前图像亮度跳变;如果过小则会延长相机的处理时间。现举例说明:If the size of the first brightness value is adjusted too large, the brightness of the current image in the frame will jump; if it is too small, the processing time of the camera will be prolonged. Here is an example:
第一亮度值为10;第二亮度值为3;预设阈值为1。在上述情况下,第一亮度值与第二亮度值的差值的绝对值为7,大于预设阈值,因此,在调整第一亮 度值时,每次下调1(与预设阈值大小相等)。当每次调整第一亮度值后,都要和第二亮度值进行计算,如第一亮度值与第二亮度值的差还大于等于预设阈值,则继续调整,第一亮度值历经9、8、7…4直至第一亮度值调整至3时,此时第一亮度值和第二亮度值的差值为0,小于等于预设值域,停止调整,并通过调整曝光时间或光感度以使得拍摄出的图像的亮度值为3。The first brightness value is 10; the second brightness value is 3; and the preset threshold is 1. In the above case, the absolute value of the difference between the first brightness value and the second brightness value is 7, which is greater than a preset threshold, and therefore, the first brightness is adjusted. When the value is used, it is lowered by 1 each time (equal to the preset threshold). After each adjustment of the first brightness value, the second brightness value is calculated. If the difference between the first brightness value and the second brightness value is greater than or equal to the preset threshold, the adjustment is continued, and the first brightness value passes through 9. 8, 7...4 until the first brightness value is adjusted to 3, at which time the difference between the first brightness value and the second brightness value is 0, less than or equal to the preset value range, the adjustment is stopped, and the exposure time or the light sensitivity is adjusted. So that the brightness of the captured image is 3.
在本发明提供的另一实施例中,如图4所示,执行在步骤103之前,包括:In another embodiment provided by the present invention, as shown in FIG. 4, before step 103, the method includes:
401、获取第三亮度值。401. Obtain a third brightness value.
其中,第三亮度值为检测到取景框中当前图像包含人脸图像时人脸图像的预设亮度值。通过人脸检测技术,可检测到取景框中当前图像中是否包含人脸。The third brightness value is a preset brightness value of the face image when the current image of the framing frame includes the face image. Through the face detection technology, it is possible to detect whether a face is included in the current image in the frame.
402、当获取到第三亮度值时,使用第三亮度值代替第二亮度值,与第一亮度值进行计算,并根据计算结果调整第一亮度值。402. When the third brightness value is obtained, the third brightness value is used instead of the second brightness value, and the first brightness value is calculated, and the first brightness value is adjusted according to the calculation result.
其中,在检测到取景框中当前图像包含人脸时,则会使用第一亮度值与第三亮度值进行计算。其计算规则与计算方法与第一亮度值与第二亮度值进行计算的规则和方法相同,在此不对该方法进行赘述。当没有检测出人脸时,则使用第二亮度值与第一亮度值进行计算。Wherein, when it is detected that the current image includes a human face in the framing frame, the first brightness value and the third brightness value are used for calculation. The calculation rule and the calculation method are the same as the rules and methods for calculating the first brightness value and the second brightness value, and the method is not described herein. When no face is detected, the second brightness value is used to calculate with the first brightness value.
本发明实施例提供了一种自动曝光的方法,通过获取取景框中当前图像的第一亮度值和取景框中当前图像的第二亮度值,根据第一亮度值和第二亮度值进行计算,并根据计算结果调整第一亮度值,使调整后的第一亮度值和第二亮度值的计算结果在预设阈值内。相比与现有技术只根据对焦框内的图像亮度进行曝光的方法来说,本发明实施例是根据取景框内当前整体的图像亮度来进行调节的,因此不会出现对焦框内的图像与对焦框外的图像曝光程度相差过大的情况,同时通过调整第一亮度值,使第一亮度值与第二亮度值的计算结果满足预设阈值的方法实现曝光控制,使图像整体亮度均匀,提高图像质量。An embodiment of the present invention provides a method for automatically exposing, by acquiring a first brightness value of a current image in a finder frame and a second brightness value of a current image in a finder frame, and performing calculation according to the first brightness value and the second brightness value, And adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold. The embodiment of the present invention adjusts according to the current overall image brightness in the framing frame, so that the image in the focus frame does not appear, compared with the prior art method of performing exposure only according to the brightness of the image in the focus frame. When the exposure degree of the image outside the focus frame is too large, the exposure brightness is controlled by adjusting the first brightness value to make the calculation result of the first brightness value and the second brightness value satisfy the preset threshold value, so that the overall brightness of the image is uniform. Improve image quality.
本发明实施例提供了一种自动曝光的装置,如图5所示,包括:第一获取单元51、第二获取单元52、调整单元53。An embodiment of the present invention provides an apparatus for automatically exposing, as shown in FIG. 5, comprising: a first acquiring unit 51, a second acquiring unit 52, and an adjusting unit 53.
第一获取单元51,用于获取第一亮度值,所述第一亮度值为取景框中当前图像的当前亮度值。The first obtaining unit 51 is configured to acquire a first brightness value, where the first brightness value is a current brightness value of a current image in the finder frame.
第二获取单元52,用于获取第二亮度值,所述第二亮度值为所述取景框中当前图像的预设亮度值。 The second obtaining unit 52 is configured to acquire a second brightness value, where the second brightness value is a preset brightness value of the current image in the finder frame.
调整单元53,用于根据所述第一亮度值和所述第二亮度值计算,并根据计算结果调整所述第一亮度值,使调整后的第一亮度值与第二亮度值的计算结果在预设阈值内。The adjusting unit 53 is configured to calculate, according to the first brightness value and the second brightness value, and adjust the first brightness value according to the calculation result, so as to calculate the adjusted first brightness value and the second brightness value Within the preset threshold.
在该装置的另一种可选的构成方式中,如图6所示,调整单元53,还包括:设置子单元531、计算子单元532。In another optional configuration of the device, as shown in FIG. 6, the adjusting unit 53 further includes: a setting subunit 531 and a calculating subunit 532.
设置子单元531,用于设置所述预设阈值,所述预设阈值用于判断所述第一亮度值和所述第二亮度值的计算结果,是否满足调整所述第一亮度值的条件。a setting sub-unit 531, configured to set the preset threshold, where the preset threshold is used to determine whether the calculation result of the first brightness value and the second brightness value meets a condition for adjusting the first brightness value .
计算子单元532,计算所述第一亮度值和所述第二亮度值的差值。The calculation subunit 532 calculates a difference between the first brightness value and the second brightness value.
当所述第一亮度值和所述第二亮度值的差值的绝对值小于所述预设阈值时,不调整所述第一亮度值。When the absolute value of the difference between the first brightness value and the second brightness value is less than the preset threshold, the first brightness value is not adjusted.
当所述第一亮度值和所述第二亮度值的差值的绝对值大于所述预设阈值时,调整所述第一亮度值,所述调整所述第一亮度值包括:When the absolute value of the difference between the first brightness value and the second brightness value is greater than the preset threshold, the first brightness value is adjusted, and the adjusting the first brightness value includes:
当所述第一亮度值大于所述第二亮度值时,调小所述第一亮度值。When the first brightness value is greater than the second brightness value, the first brightness value is reduced.
当所述第一亮度值小于所述第二亮度值时,调大所述第一亮度值。When the first brightness value is less than the second brightness value, the first brightness value is increased.
如图7所示,调整单元53,还包括:判断子单元533。As shown in FIG. 7, the adjusting unit 53 further includes: a determining subunit 533.
判断子单元,用于判断调整后的第一亮度值与所述第二亮度值的差值是否大于所述预设阈值。The determining subunit is configured to determine whether a difference between the adjusted first brightness value and the second brightness value is greater than the preset threshold.
当所述调整后的第一亮度值与所述第二亮度值的差值大于所述预设阈值时,则继续调整所述调整后的第一亮度值。When the difference between the adjusted first brightness value and the second brightness value is greater than the preset threshold, the adjusted first brightness value is continuously adjusted.
在本发明提供的另一实施例中,如图7所示,In another embodiment provided by the present invention, as shown in FIG. 7,
所述调整单元53,还用于通过调整曝光时间或感光度,调整所述第一亮度值。The adjusting unit 53 is further configured to adjust the first brightness value by adjusting an exposure time or a sensitivity.
每次调整所述第一亮度值的大小与所述预设阈值的大小相同。The size of the first brightness value is adjusted each time to be the same as the size of the preset threshold.
如图8所示,该装置还包括:第三获取单元54。As shown in FIG. 8, the apparatus further includes: a third obtaining unit 54.
第三获取单元54,用于获取第三亮度值,所述第三亮度值为检测到所述取景框中当前图像包含人脸图像时人脸图像的预设亮度值。The third obtaining unit 54 is configured to acquire a third brightness value, where the third brightness value is a preset brightness value of the face image when the current image includes the face image in the finder frame.
当获取到所述第三亮度值时,使用所述第三亮度值代替所述第二亮度值,与所述第一亮度值进行计算,并根据计算结果调整所述第一亮度值。 When the third brightness value is obtained, the third brightness value is used instead of the second brightness value, and the first brightness value is calculated, and the first brightness value is adjusted according to the calculation result.
值得说明的是,上述如图5至图8所示的装置,用于实现如图1至图4的方法流程。It should be noted that the apparatus shown in FIG. 5 to FIG. 8 described above is used to implement the method flow of FIG. 1 to FIG.
本发明实施例提供了一种自动曝光的装置,通过第一获取单元获取取景框中当前图像的第一亮度值,第二获取单元获取取景框中当前图像的第二亮度值,根据第一亮度值和第二亮度值进行计算,调整单元根据计算结果调整第一亮度值,使调整后的第一亮度值和第二亮度值的计算结果在预设阈值内。相比与现有技术只根据对焦框内的图像亮度进行曝光的方法来说,本发明实施例是根据取景框内整体的图像亮度来进行调节的,因此不会出现对焦框内的图像与对焦框外的图像曝光程度相差过大的情况,同时通过调整第一亮度值,使第一亮度值与第二亮度值的计算结果满足预设阈值的方法而实现曝光控制,提高图像质量。The embodiment of the present invention provides an apparatus for automatically exposing, the first acquiring unit acquires a first brightness value of a current image in the finder frame, and the second acquiring unit acquires a second brightness value of the current image in the finder frame, according to the first brightness. The value and the second brightness value are calculated, and the adjusting unit adjusts the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold. Compared with the prior art, the method for performing exposure according to the image brightness in the focus frame is adjusted according to the overall image brightness in the finder frame, so that the image and the focus in the focus frame do not occur. When the degree of exposure of the image outside the frame is too large, the exposure control is implemented by adjusting the first brightness value to make the calculation result of the first brightness value and the second brightness value satisfy the preset threshold, thereby improving the image quality.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

  1. 一种自动曝光的方法,其特征在于,包括:A method of automatic exposure, comprising:
    获取第一亮度值,所述第一亮度值为取景框中当前图像的当前亮度值;Obtaining a first brightness value, where the first brightness value is a current brightness value of a current image in the finder frame;
    获取第二亮度值,所述第二亮度值为所述取景框中当前图像的预设亮度值;Obtaining a second brightness value, where the second brightness value is a preset brightness value of the current image in the frame;
    根据所述第一亮度值和所述第二亮度值计算,并根据计算结果调整所述第一亮度值,使调整后的第一亮度值与第二亮度值的计算结果在预设阈值内。Calculating according to the first brightness value and the second brightness value, and adjusting the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is within a preset threshold.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一亮度值和所述第二亮度值计算,并根据计算结果调整所述第一亮度值,使调整后的第一亮度值与所述第二亮度值的计算结果在预设阈值内,包括:The method according to claim 1, wherein the calculating according to the first brightness value and the second brightness value, and adjusting the first brightness value according to a calculation result, so that the adjusted first brightness The calculation result of the value and the second brightness value is within a preset threshold, and includes:
    设置所述预设阈值,所述预设阈值用于判断所述第一亮度值和所述第二亮度值的计算结果,是否满足调整所述第一亮度值的条件;And setting the preset threshold, where the preset threshold is used to determine whether the calculation result of the first brightness value and the second brightness value satisfies a condition for adjusting the first brightness value;
    计算所述第一亮度值和所述第二亮度值的差值;Calculating a difference between the first brightness value and the second brightness value;
    当所述第一亮度值和所述第二亮度值的差值的绝对值小于所述预设阈值时,不调整所述第一亮度值;When the absolute value of the difference between the first brightness value and the second brightness value is less than the preset threshold, the first brightness value is not adjusted;
    当所述第一亮度值和所述第二亮度值的差值的绝对值大于所述预设阈值时,调整所述第一亮度值,所述调整所述第一亮度值包括:When the absolute value of the difference between the first brightness value and the second brightness value is greater than the preset threshold, the first brightness value is adjusted, and the adjusting the first brightness value includes:
    当所述第一亮度值大于所述第二亮度值时,调小所述第一亮度值;When the first brightness value is greater than the second brightness value, the first brightness value is reduced;
    当所述第一亮度值小于所述第二亮度值时,调大所述第一亮度值。When the first brightness value is less than the second brightness value, the first brightness value is increased.
  3. 根据权利要求2所述的方法,其特征在于,所述当所述第一亮度值和所述第二亮度值的差值的绝对值大于所述预设阈值时,调整所述第一亮度值,包括:The method according to claim 2, wherein the first brightness value is adjusted when an absolute value of a difference between the first brightness value and the second brightness value is greater than the preset threshold ,include:
    判断调整后的第一亮度值与所述第二亮度值的差值是否大于所述预设阈值;Determining whether a difference between the adjusted first brightness value and the second brightness value is greater than the preset threshold;
    当所述调整后的第一亮度值与所述第二亮度值的差值大于所述预设阈值时,则继续调整所述调整后的第一亮度值。When the difference between the adjusted first brightness value and the second brightness value is greater than the preset threshold, the adjusted first brightness value is continuously adjusted.
  4. 根据权利要求1所述的方法,其特征在于,所述调整所述第一亮度值,包括: The method according to claim 1, wherein the adjusting the first brightness value comprises:
    通过调整曝光时间或感光度,调整所述第一亮度值;Adjusting the first brightness value by adjusting exposure time or sensitivity;
    每次调整所述第一亮度值的大小与所述预设阈值的大小相同。The size of the first brightness value is adjusted each time to be the same as the size of the preset threshold.
  5. 根据权利要求1-4任意一项所述的方法,其特征在于,所述根据所述第一亮度值和所述第二亮度值计算,并根据所述计算结果调整所述第一亮度值,使调整后的第一亮度值与第二亮度值的计算结果在预设阈值内之前,所述方法包括:The method according to any one of claims 1 to 4, wherein the calculating according to the first brightness value and the second brightness value, and adjusting the first brightness value according to the calculation result, Before the calculation result of the adjusted first brightness value and the second brightness value is within a preset threshold, the method includes:
    获取第三亮度值,所述第三亮度值为检测到所述取景框中当前图像包含人脸图像时人脸图像的预设亮度值;Obtaining a third brightness value, where the third brightness value is a preset brightness value of the face image when the current image includes the face image in the finder frame;
    当获取到所述第三亮度值时,使用所述第三亮度值代替所述第二亮度值,与所述第一亮度值进行计算,并根据计算结果调整所述第一亮度值。When the third brightness value is obtained, the third brightness value is used instead of the second brightness value, and the first brightness value is calculated, and the first brightness value is adjusted according to the calculation result.
  6. 一种自动曝光的装置,其特征在于,包括:An apparatus for automatically exposing, comprising:
    第一获取单元,用于获取第一亮度值,所述第一亮度值为取景框中当前图像的当前亮度值;a first acquiring unit, configured to acquire a first brightness value, where the first brightness value is a current brightness value of a current image in the frame;
    第二获取单元,用于获取第二亮度值,所述第二亮度值为所述取景框中当前图像的预设亮度值;a second acquiring unit, configured to acquire a second brightness value, where the second brightness value is a preset brightness value of the current image in the finder frame;
    调整单元,用于根据所述第一亮度值和所述第二亮度值计算,并根据计算结果调整所述第一亮度值,使调整后的第一亮度值与第二亮度值的计算结果在预设阈值内。And an adjusting unit, configured to calculate, according to the first brightness value and the second brightness value, and adjust the first brightness value according to the calculation result, so that the calculated result of the adjusted first brightness value and the second brightness value is Within the preset threshold.
  7. 根据权利要求6所述的装置,其特征在于,所述调整单元,还包括:The apparatus according to claim 6, wherein the adjusting unit further comprises:
    设置子单元,用于设置所述预设阈值,所述预设阈值用于判断所述第一亮度值和所述第二亮度值的计算结果,是否满足调整所述第一亮度值的条件;Setting a sub-unit, configured to set the preset threshold, where the preset threshold is used to determine whether a calculation result of the first brightness value and the second brightness value satisfies a condition for adjusting the first brightness value;
    计算子单元,计算所述第一亮度值和所述第二亮度值的差值;Calculating a subunit, calculating a difference between the first brightness value and the second brightness value;
    当所述第一亮度值和所述第二亮度值的差值的绝对值小于所述预设阈值时,不调整所述第一亮度值;When the absolute value of the difference between the first brightness value and the second brightness value is less than the preset threshold, the first brightness value is not adjusted;
    当所述第一亮度值和所述第二亮度值的差值的绝对值大于所述预设阈值时,调整所述第一亮度值,所述调整所述第一亮度值包括:When the absolute value of the difference between the first brightness value and the second brightness value is greater than the preset threshold, the first brightness value is adjusted, and the adjusting the first brightness value includes:
    当所述第一亮度值大于所述第二亮度值时,调小所述第一亮度值;When the first brightness value is greater than the second brightness value, the first brightness value is reduced;
    当所述第一亮度值小于所述第二亮度值时,调大所述第一亮度值。When the first brightness value is less than the second brightness value, the first brightness value is increased.
  8. 根据权利要求7所述的装置,其特征在于,所述调整单元,还包括: The apparatus according to claim 7, wherein the adjusting unit further comprises:
    判断子单元,用于判断调整后的第一亮度值与所述第二亮度值的差值是否大于所述预设阈值;a determining subunit, configured to determine whether a difference between the adjusted first brightness value and the second brightness value is greater than the preset threshold;
    当所述调整后的第一亮度值与所述第二亮度值的差值大于所述预设阈值时,则继续调整所述调整后的第一亮度值。When the difference between the adjusted first brightness value and the second brightness value is greater than the preset threshold, the adjusted first brightness value is continuously adjusted.
  9. 根据权利要求6所述的装置,其特征在于,The device of claim 6 wherein:
    所述调整单元,还用于通过调整曝光时间或感光度,调整所述第一亮度值;The adjusting unit is further configured to adjust the first brightness value by adjusting an exposure time or a sensitivity;
    每次调整所述第一亮度值的大小与所述预设阈值的大小相同。The size of the first brightness value is adjusted each time to be the same as the size of the preset threshold.
  10. 根据权利要求6-9任意一项所述的装置,其特征在于,包括:The device according to any one of claims 6-9, comprising:
    第三获取单元,用于获取第三亮度值,所述第三亮度值为检测到所述取景框中当前图像包含人脸图像时人脸图像的预设亮度值;a third acquiring unit, configured to acquire a third brightness value, where the third brightness value is a preset brightness value of the face image when the current image includes the face image in the finder frame;
    当获取到所述第三亮度值时,使用所述第三亮度值代替所述第二亮度值,与所述第一亮度值进行计算,并根据计算结果调整所述第一亮度值。 When the third brightness value is obtained, the third brightness value is used instead of the second brightness value, and the first brightness value is calculated, and the first brightness value is adjusted according to the calculation result.
PCT/CN2015/075562 2015-03-16 2015-03-31 Automatic exposure method and device WO2016145678A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510114040.3 2015-03-16
CN201510114040.3A CN106034208A (en) 2015-03-16 2015-03-16 Method and device for automatic exposure

Publications (1)

Publication Number Publication Date
WO2016145678A1 true WO2016145678A1 (en) 2016-09-22

Family

ID=56918229

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075562 WO2016145678A1 (en) 2015-03-16 2015-03-31 Automatic exposure method and device

Country Status (2)

Country Link
CN (1) CN106034208A (en)
WO (1) WO2016145678A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657994A (en) * 2017-03-03 2017-05-10 深圳市金立通信设备有限公司 Exposure testing method, control terminal, terminal to be tested, and exposure testing system
CN107370957B (en) * 2017-08-24 2019-03-05 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108989689A (en) * 2018-09-17 2018-12-11 成都品果科技有限公司 A kind of method and apparatus of adjust automatically exposure gain
CN110661983B (en) * 2019-11-12 2021-03-19 腾讯科技(深圳)有限公司 Image acquisition method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070182845A1 (en) * 2006-02-03 2007-08-09 Micron Technology, Inc. Auto exposure for digital imagers
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
CN103973992A (en) * 2014-05-21 2014-08-06 深圳英飞拓科技股份有限公司 Automatic exposure method and device for LED white-light source
CN104144289A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Photographing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458540C (en) * 2006-10-27 2009-02-04 北京中星微电子有限公司 Automatic exposure regulating method and device
JP2010204304A (en) * 2009-03-02 2010-09-16 Panasonic Corp Image capturing device, operator monitoring device, method for measuring distance to face
CN101873434A (en) * 2009-04-21 2010-10-27 安国国际科技股份有限公司 Image pick-up device and related method
CN103888680B (en) * 2014-03-28 2017-07-11 中国科学技术大学 A kind of adjusting method of camera time for exposure
CN104184958B (en) * 2014-09-17 2017-07-11 中国科学院光电技术研究所 A kind of automatic exposure control method and its device based on FPGA suitable for space exploration imaging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070182845A1 (en) * 2006-02-03 2007-08-09 Micron Technology, Inc. Auto exposure for digital imagers
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
CN104144289A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Photographing method and device
CN103973992A (en) * 2014-05-21 2014-08-06 深圳英飞拓科技股份有限公司 Automatic exposure method and device for LED white-light source

Also Published As

Publication number Publication date
CN106034208A (en) 2016-10-19

Similar Documents

Publication Publication Date Title
US10397486B2 (en) Image capture apparatus and method executed by image capture apparatus
US8121404B2 (en) Exposure control apparatus and image pickup apparatus
US8106965B2 (en) Image capturing device which corrects a target luminance, based on which an exposure condition is determined
US20070195171A1 (en) Face importance level determining apparatus and method, and image pickup apparatus
TW201233159A (en) High dynamic range transition
JP6720881B2 (en) Image processing apparatus and image processing method
US20180139369A1 (en) Backlit face detection
WO2016145678A1 (en) Automatic exposure method and device
US20090167932A1 (en) Image capturing apparatus
CN108989689A (en) A kind of method and apparatus of adjust automatically exposure gain
TW201721269A (en) Automatic exposure system and auto exposure method thereof
US10271029B2 (en) Image pickup apparatus and method of controlling an image pickup apparatus
TWI407780B (en) Methods for image exposure correction
JP5149055B2 (en) Imaging device
JP2018098670A5 (en)
JP5367123B2 (en) Method for adjusting brightness of digital camera image
US8982244B2 (en) Image capturing apparatus for luminance correction, a control method therefor, and a recording medium
JP2019029833A (en) Imaging apparatus
JP2010183460A (en) Image capturing apparatus and method of controlling the same
WO2020237615A1 (en) Exposure control method for photographing apparatus, and photographing apparatus
JP2010183461A (en) Image capturing apparatus and method of controlling the same
US20190052803A1 (en) Image processing system, imaging apparatus, image processing apparatus, control method, and storage medium
JP2016213717A (en) Image processing apparatus, image processing method, program, and storage medium
JP6272006B2 (en) Imaging apparatus, image processing method, and program
JP2014220701A (en) Imaging device and imaging method

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: 15885061

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.02.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15885061

Country of ref document: EP

Kind code of ref document: A1