CN115633258A - Brightness adjusting method, equipment, storage medium and product - Google Patents

Brightness adjusting method, equipment, storage medium and product Download PDF

Info

Publication number
CN115633258A
CN115633258A CN202211181991.9A CN202211181991A CN115633258A CN 115633258 A CN115633258 A CN 115633258A CN 202211181991 A CN202211181991 A CN 202211181991A CN 115633258 A CN115633258 A CN 115633258A
Authority
CN
China
Prior art keywords
exposure
shooting preview
preview picture
brightness
parameter value
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211181991.9A
Other languages
Chinese (zh)
Inventor
梁钢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jigan Technology Co ltd
Original Assignee
Beijing Jigan Technology Co ltd
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 Beijing Jigan Technology Co ltd filed Critical Beijing Jigan Technology Co ltd
Priority to CN202211181991.9A priority Critical patent/CN115633258A/en
Publication of CN115633258A publication Critical patent/CN115633258A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The application provides a brightness adjustment method, equipment, a storage medium and a product, comprising the following steps: and carrying out reduction adjustment on the exposure parameter value of the first stage on the current shooting preview picture in the overexposure state according to the target exposure parameter adjustment value to obtain the shooting preview picture in the overexposure state, determining an exposure convergence reference parameter value according to the exposure reduction image in the overexposure state, and carrying out reduction adjustment on the exposure parameter value of the second stage according to the exposure convergence reference parameter value to enable the brightness of the shooting preview picture to reach the target brightness. According to the method and the device, the exposure convergence reference parameter value which is closer to the target brightness is determined by performing reduction adjustment based on the target exposure parameter adjustment value on the current shooting preview picture, so that the convergence step is shortened, the exposure convergence time required by adjusting the brightness of the shooting preview picture in an unexposed state to the target brightness is shorter, and the time required by the camera to adjust the brightness of the current shooting preview picture to the target brightness is shortened.

Description

Brightness adjusting method, equipment, storage medium and product
Technical Field
The embodiment of the application relates to the technical field of image processing, in particular to a brightness adjusting method, brightness adjusting equipment, a storage medium and a product.
Background
Basic algorithms in cameras include three algorithms, auto-exposure, auto-white balance, and auto-focus, where the purpose of auto-exposure is to achieve a appreciation or target brightness level in different lighting conditions and scenes so that the captured video or image is neither too dark nor too bright. To achieve this, it is necessary to adjust exposure settings (aperture size, exposure gain, and exposure time). In the automatic exposure algorithm, a gradual approach method is most commonly adopted, that is, exposure setting is adjusted based on the difference between the brightness of the current shooting preview picture and the target brightness.
However, the brightness of the currently photographed preview image of the camera is affected by the exposure setting and also by the ambient light, when the ambient brightness is changed greatly, the span of the overall dynamic fluctuation range is too large, and when the camera is automatically exposed, the exposure convergence time is too long, that is, the camera needs a long time to adjust the brightness of the currently photographed preview image to the target brightness, which is not favorable for the user experience.
Disclosure of Invention
Embodiments of the present application provide a brightness adjustment method, a device, a storage medium, and a product, and aim to solve the problem in the prior art that a camera needs a long time to adjust the brightness of a currently-captured preview image to a target brightness due to an excessively long exposure convergence time during automatic exposure.
A first aspect of an embodiment of the present application provides a brightness adjustment method, including:
judging whether the current shooting preview picture is in an overexposure state;
under the condition that the current shooting preview picture is in an overexposure state, carrying out reduction adjustment on the exposure parameter value of the first stage according to the target exposure parameter adjustment value until the shooting preview picture in the overexposure state is obtained;
determining an exposure convergence reference parameter value according to the shooting preview picture in the non-overexposure state;
and performing reduction adjustment on the second-stage exposure parameter value according to the exposure convergence reference parameter value so as to adjust the brightness of the shooting preview picture to the target brightness.
Optionally, when the current shooting preview picture is in an overexposure state, performing a decrease adjustment on the first-stage exposure parameter value according to the target exposure parameter adjustment value until a shooting preview picture in the overexposure state is obtained, including:
under the condition that the current shooting preview picture is in an overexposure state, reducing and exposing the exposure parameter value for one time according to the target exposure parameter adjustment value to obtain a first shooting preview picture;
and under the condition that the first shooting preview picture is in an overexposure state, reducing and exposing the next exposure parameter value according to the target exposure parameter adjustment value until the shooting preview picture in the overexposure state is obtained.
Optionally, determining an exposure convergence reference parameter value according to the captured preview picture in the non-overexposure state includes:
determining a brightness ratio between the brightness of the photographed preview screen in the non-overexposure state and the target brightness;
and determining the exposure convergence reference parameter value based on the brightness ratio and the brightness of the current shooting preview picture.
Optionally, determining an exposure convergence reference parameter value according to the captured preview picture in the non-overexposure state includes:
carrying out analog gain compensation of various exposure reduction amplitudes on the shooting preview picture in the non-overexposure state;
sequentially judging whether each two adjacent shooting preview pictures in a shooting preview picture set are in an exposure state or not according to the sequence of the exposure reduction amplitude from large to small, wherein the shooting preview picture set comprises: the shooting preview picture in the non-overexposure state and the shooting preview picture subjected to various exposure reduction amplitudes;
and determining an exposure convergence reference parameter value according to whether each two adjacent shooting preview pictures in the shooting preview picture set are in an exposure state or not.
Optionally, determining an exposure convergence reference parameter value according to whether each two adjacent captured preview pictures in the captured preview picture set are in an exposure state, including:
two adjacent shooting preview pictures in the shooting preview picture set satisfy the following conditions: determining the exposure parameter value corresponding to the shooting preview picture with larger exposure reduction amplitude as the exposure convergence reference parameter value under the condition that the shooting preview picture with larger exposure reduction amplitude is in an overexposure state and the shooting preview picture with smaller exposure reduction amplitude is in the overexposure state;
and determining the exposure parameter value corresponding to the shooting preview picture with the minimum exposure reduction amplitude as the exposure convergence reference parameter value under the condition that only the shooting preview picture with the minimum exposure reduction amplitude in the shooting preview picture set is in a non-overexposure state.
Optionally, the analog gain compensation of multiple exposure reduction amplitudes is performed on the captured preview picture in the non-overexposure state, and includes:
and performing analog gain compensation of the corresponding exposure reduction amplitude on the shooting preview picture in the non-overexposure state by taking the shooting preview picture in the non-overexposure state as reference, wherein the shooting preview picture is subjected to brightness adjustment according to each exposure reduction amplitude.
Optionally, the method further comprises:
determining the brightness difference between the brightness of the current shooting preview picture and the target brightness;
and determining the target exposure parameter adjustment value and/or the number of the exposure reduction amplitudes according to the brightness difference, wherein the exposure reduction amplitude of the target exposure parameter adjustment value is increased along with the increase of the brightness difference, and the number of the exposure reduction amplitudes is increased along with the increase of the brightness difference.
A second aspect of the embodiments of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps in the brightness adjustment method described in the first aspect.
A third aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program/instruction is stored, which when executed by a processor, implements the steps in the brightness adjustment method described in the first aspect.
A fourth aspect of the embodiments of the present application provides a computer program product, which includes computer programs/instructions, and is characterized in that, when being executed by a processor, the computer programs/instructions implement the steps in the brightness adjustment method described in the first aspect.
Has the advantages that:
the application provides a brightness adjustment method, equipment, a storage medium and a product, comprising the following steps: judging whether the current shooting preview picture is in an overexposure state; under the condition that the current shooting preview picture is in an overexposure state, carrying out reduction adjustment on the exposure parameter value of the first stage according to the target exposure parameter adjustment value until the shooting preview picture in the overexposure state is obtained; determining an exposure convergence reference parameter value according to the shooting preview picture in the non-overexposure state; and performing reduction adjustment on the second-stage exposure parameter value according to the exposure convergence reference parameter value so as to adjust the brightness of the shooting preview picture to the target brightness. According to the method and the device, the target exposure parameter adjustment value-based reduction adjustment is carried out on the current shooting preview picture, the exposure convergence reference parameter value closer to the target brightness is determined, so that the convergence step is shortened, the exposure convergence time required for adjusting the brightness of the shooting preview picture in the non-overexposure state to the target brightness is shortened, and the time required for adjusting the brightness of the current shooting preview picture to the target brightness by the camera is shortened.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a brightness adjustment method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a brightness adjustment method when the target exposure parameter adjustment value is EV-6 according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a smoothing scheme for determining exposure convergence reference parameter values according to an embodiment of the present application;
fig. 4 is a schematic diagram of a brightness adjustment apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following examples are provided to better understand the present application, and are not limited to the best mode described herein, and are not intended to limit the scope of the present application, and any product that is equivalent or similar to the present application, which results from any combination of the features of the present application and other prior art, falls within the scope of the present application.
In the related art, a successive approximation method is adopted in an automatic exposure algorithm, that is, exposure settings (including aperture size, exposure gain, and exposure time) are adjusted based on a difference between the brightness of a currently photographed preview picture and target brightness. However, the brightness of the current shooting preview picture of the camera is influenced by the exposure setting and also by the ambient light, when the ambient brightness is changed greatly, the span of the whole dynamic fluctuation range is too large, and the exposure convergence time is too long when the camera is automatically exposed, so that the camera needs a long time to adjust the brightness of the current shooting preview picture to the target brightness, which is not favorable for the user experience.
In view of this, an embodiment of the present application provides a brightness adjustment method, which aims to solve the problem that in the prior art, when a camera performs an automatic exposure, an exposure convergence time is too long, so that the camera needs a long time to adjust the brightness of a current shooting preview picture to a target brightness.
Fig. 1 shows a flow chart of a brightness adjustment method, as shown in fig. 1, the specific steps are as follows:
and S101, judging whether the current shooting preview picture is in an overexposure state.
S102: and under the condition that the current shooting preview picture is in an overexposure state, performing reduction adjustment on the exposure parameter value of the first stage according to the target exposure parameter adjustment value until the shooting preview picture in the overexposure state is obtained.
S103: an exposure convergence reference parameter value is determined from the captured preview screen in the non-overexposure state.
S104: and reducing and adjusting the exposure parameter value of the second stage according to the exposure convergence reference parameter value so as to adjust the brightness of the shooting preview picture to the target brightness.
In specific implementation, the camera adjusts the exposure parameters according to the current exposure parameter adjustment values (including the aperture size, the exposure gain and the exposure time), and acquires the current shooting preview picture.
After the current shooting preview picture is collected, the brightness of the current shooting preview picture needs to be determined, and then whether the current shooting preview picture is in an overexposure state is determined according to the magnitude relation between the brightness of the current shooting preview picture and the target brightness, so that whether the step S102 is executed or the step S105 is executed: and under the condition that the current shooting preview picture is in an overexposure state, adjusting the brightness of the current shooting preview picture to target brightness by adopting the current exposure parameter adjustment value. Generally, the target brightness of the camera is set according to actual conditions, for example, when a scene is shot, the target brightness is about 48; when the human face is shot, the brightness of the target is about 55; when shooting a night scene, the target brightness is about 30.
If the brightness of the currently photographed preview picture is less than the target brightness, it is determined that the currently photographed preview picture is in an overexposure state, and the convergence duration required for adjusting the brightness of the currently photographed preview picture to the target brightness is not too long, step S105 may be directly performed, and conventional exposure convergence is performed on the basis of the current exposure parameter value (i.e. Normal AE, and the specific implementation method of conventional exposure convergence refers to the related art), and the brightness of the currently photographed preview picture is adjusted to the target brightness.
If the brightness of the current shooting preview picture is greater than the target brightness, determining that the current shooting preview picture is in an overexposure state, and adjusting the brightness of the current shooting preview picture to the target brightness for a long convergence time, wherein the brightness adjustment method provided by the embodiment of the application needs to be adopted, namely, the step S102-the step S104 are executed: firstly, according to the target exposure parameter adjustment value, the first stage exposure parameter value is reduced and adjusted until a shooting preview picture in an overexposure state is obtained, then according to the shooting preview picture in the overexposure state, an exposure convergence reference parameter value is further determined, and then according to the exposure convergence reference parameter value, the second stage exposure parameter value is reduced and adjusted, so that the brightness of the shooting preview picture is adjusted to the target brightness.
Specifically, when step S102 is implemented, in order to obtain an exposure parameter value (i.e., an exposure convergence reference parameter value) closer to the target brightness before the exposure convergence in advance when the exposure state of the current shooting preview screen is in the overexposure state, the camera generates a set of target exposure parameter adjustment values (e.g., EV-6 or EV-9) and sends the set of target exposure parameter adjustment values to the sensor of the camera, and controls the sensor of the camera to perform exposure with the exposure parameter value reduced once according to the generated target exposure parameter adjustment values, so as to obtain a first shooting preview screen, where the brightness of the first shooting preview screen is reduced compared with the current shooting preview screen, and therefore, the convergence time for adjusting the target brightness based on the first shooting preview screen is shortened compared with the time for directly performing exposure convergence using the current shooting preview screen.
However, the exposure parameter value reduction and exposure process based on the target exposure parameter adjustment value is performed only once on the current photographing preview screen, and although the difference from the target brightness can be reduced, the difference may still be too large, resulting in that the convergence time is still too long. Therefore, in order to ensure that the time for adjusting to the target brightness can be effectively reduced, it is necessary to ensure that a captured preview screen in an overexposed state is obtained.
Therefore, in order to obtain a shooting preview picture in an overexposure-free state, the embodiment of the application performs exposure parameter value reduction and exposure on the current shooting preview picture at least once based on the target exposure parameter adjustment value. Specifically, after a first shooting preview picture is obtained by carrying out exposure parameter value reduction and exposure once according to a generated target exposure parameter adjustment value, judging the magnitude relation between the brightness of the first shooting preview picture and the target brightness again so as to determine the exposure state of the first shooting preview picture, and determining the first shooting preview picture as the shooting preview picture in the non-overexposure state when the first shooting preview picture is in the non-overexposure state, considering that the pre-adjustment on the current exposure parameter value is already in place; and under the condition that the first shooting preview picture is in an overexposure state, considering that the pre-adjustment of the current exposure parameter value is not in place, and continuing to reduce and expose the exposure parameter value for the next time according to the target exposure parameter adjustment value until the shooting preview picture in the overexposure state is obtained.
For example, FIG. 2 shows a flow chart of the brightness adjustment method when the target exposure parameter adjustment value is EV-6, and as shown in FIG. 2, when it is determined that the current shooting preview screen is in the overexposed state, the camera generates EV-6 (screen brightness is decreased by 2) 6 Multiple times) of the target exposure parameter adjustment value is sent to a camera sensor, the camera sensor is controlled to perform one-time exposure parameter value reduction and exposure according to EV-6, the brightness of the current shooting preview picture is reduced by 64 times, and a first shooting preview picture is obtained.
Then, the exposure state of the first photographing preview screen is determined based on the brightness of the first photographing preview screen and the target brightness, and if the brightness of the first photographing preview screen (the EV-6 photographing preview screen) is lower than the target brightness, it is determined that the first photographing preview screen is in the non-exposure state, and the first photographing preview screen is determined as the photographing preview screen in the non-exposure state, considering that one EV-6 pre-adjustment has been made for the current photographing preview screen.
If the brightness of the first photographing preview screen (EV-6 photographing preview screen) is higher than the target brightness, the first photographing preview screen is judged to be still in an overexposure state, and if EV-6 pre-adjustment is not performed on the current photographing preview screen, the exposure parameter value (EV-6) is reduced and exposed again according to the target exposure parameter adjustment value of EV-6 (which is equivalent to the adjustment of EV-12 on the current photographing preview screen) to obtain a second photographing preview screen. And determining the exposure state of the obtained second shooting preview picture, and repeating the operation again if the second shooting preview picture is still in the overexposure state until the shooting preview picture in the overexposure state is obtained.
Wherein, the setting of the target exposure parameter adjustment value is determined according to the following mode:
firstly, the brightness difference between the brightness of the current shooting preview picture and the target brightness is determined, and the target exposure parameter adjusting value is set according to the brightness difference. The larger the brightness difference is, the longer the exposure convergence time required for adjusting the brightness of the current shooting preview picture to the target brightness is, so that a larger target exposure parameter adjustment value can be selected, the current exposure parameter value can be adjusted with a larger reduction range, the above process can be executed more quickly, and the time for adjusting the brightness of the current shooting preview picture to the target brightness is shortened. The specific target exposure parameter adjustment value may be set according to specific situations and requirements, and the present application is not limited herein.
Specifically, when step S103 is implemented, after the shooting preview picture in the non-overexposure state is obtained, the shooting preview picture is already subjected to at least one pre-adjustment based on the target exposure parameter adjustment value, and compared with the current shooting preview picture, it can be considered that the shooting preview picture is already close to the target brightness. Therefore, the embodiment of the present application provides a smoothing scheme and an extreme speed scheme to further determine an exposure convergence reference parameter value for exposure convergence, which are specifically described in the following sections S103-1 and S103-2, and are not described herein again.
In addition, a compensation module is arranged in the camera according to the embodiment of the application, the compensation module can be used for determining an exposure convergence reference parameter value in a smoothing scheme, and can be used for suppressing oscillation in the process of reducing the exposure parameter value every time, specifically, in the process of reducing and exposing according to the exposure parameter value every time, an obtained shooting preview picture is sent to the compensation module, and the compensation module performs analog gain compensation of multiple exposure reduction amplitudes on the shooting preview picture to generate the shooting preview picture of multiple exposure reduction amplitudes. The oscillation can be effectively inhibited by carrying out analog gain compensation on the shooting preview picture every time.
The analog gain compensation refers to simulating exposure gain compensation on the shooting preview picture to obtain a simulated shooting preview picture (instead of a real shooting preview picture obtained by exposure), so as to realize adjustment of the brightness of the shooting preview picture. The compensation module carries out analog gain compensation of corresponding exposure reduction amplitude on the shooting preview picture in the non-overexposure state, and carries out analog gain compensation of corresponding exposure reduction amplitude on the shooting preview picture in the non-overexposure state by taking the shooting preview picture in the non-overexposure state after brightness adjustment according to each exposure reduction amplitude as reference to generate the shooting preview picture with the exposure reduction amplitude. The analog gain compensation process and the determination of the various exposure reduction amplitudes performed in the process are described in detail in S103-1 below, and are not described in detail here.
Specifically, when step S104 is implemented, the reduction adjustment of the second stage exposure parameter value is performed according to the determined exposure convergence reference parameter value, the exposure value reduction and exposure are performed on the shooting preview picture in the non-overexposure state according to the exposure convergence reference parameter value, and then the conventional exposure convergence is performed to adjust the brightness of the shooting preview picture to the target brightness.
In the embodiment of the application, the reduction adjustment of the first-stage exposure parameter value is carried out on the current shooting preview picture in the overexposure state according to the target exposure parameter adjustment value to obtain the shooting preview picture in the overexposure state, the exposure convergence reference parameter value is determined according to the exposure reduction image in the overexposure state, and the reduction adjustment of the second-stage exposure parameter value is carried out according to the exposure convergence reference parameter value to adjust the brightness of the shooting preview picture to the target brightness. According to the method and the device, the target exposure parameter adjustment value-based reduction adjustment is carried out on the current shooting preview picture, the exposure convergence reference parameter value closer to the target brightness is determined, so that the convergence step is shortened, the exposure convergence time required for adjusting the brightness of the shooting preview picture in the non-overexposure state to the target brightness is shortened, and the time required for adjusting the brightness of the current shooting preview picture to the target brightness by the camera is shortened.
In a specific implementation manner, when determining the exposure convergence reference parameter value according to the captured preview picture in the non-overexposure state, the embodiment of the present application is implemented by two schemes, namely a smoothing scheme and an extremely fast scheme, and the following two schemes are described in detail:
s103-1 (smoothing scheme), fig. 3 shows a flowchart of the smoothing scheme to determine the exposure convergence reference parameter value, as shown in fig. 3, including the following steps:
s103-1a: analog gain compensation of various exposure reduction amplitudes is performed on the shot preview picture in the non-overexposure state.
S103-1b: and sequentially judging whether each two adjacent shooting preview pictures in the shooting preview picture set are in an exposure state or not according to the sequence of the exposure reduction amplitude from large to small.
Sequentially judging whether each two adjacent shooting preview pictures in a shooting preview picture set are in an exposure state or not according to the sequence of the exposure reduction amplitude from large to small, wherein the shooting preview picture set comprises: the shooting preview picture in the non-overexposure state and the shooting preview picture subjected to various exposure reduction amplitudes.
S103-1c: and determining an exposure convergence reference parameter value according to whether each two adjacent shooting preview pictures in the shooting preview picture set are in an exposure state or not.
In specific implementation, the camera sensor sends the shooting preview picture in the non-overexposure state to the compensation module, and the compensation module performs analog gain compensation with multiple exposure reduction amplitudes on the shooting preview picture in the non-overexposure state to generate the shooting preview picture with multiple exposure reduction amplitudes.
The number of the exposure reduction ranges is set by setting a target exposure parameter adjustment value determined based on the brightness difference between the brightness of the current shooting preview picture and the target brightness as an upper limit of the exposure reduction range, and setting the exposure reduction ranges in the upper limit range. When the brightness difference is larger, the corresponding target exposure parameter adjustment value is larger, so that more exposure reduction amplitudes can be set, more shooting preview pictures with different exposure reduction amplitudes can be generated through the compensation module, and the exposure convergence reference parameter value can be determined more quickly and accurately.
Specifically, the exposure reduction ranges can be set according to specific situations and requirements, and the application is not limited herein. For example, based on a relatively small difference between the brightness of the current photographing preview screen and the brightness of the target brightness, the target exposure parameter adjustment value may be set to EV-6 (reduction in brightness of the photographing preview screen by 2) 6 Multiple), three exposure reduction ranges are set corresponding to the target exposure parameter adjustment value of EV-6: EV-6, EV-3, normal AE (only EV-3, normal AE used analog gain compensation); based on the relatively large brightness difference, the target exposure parameter adjustment value can be set to EV-9 (brightness reduction 2 for the captured preview screen) 9 Multiple), four exposure reduction ranges are set for the target exposure parameter value for EV-9: EV-9, EV-6, EV-3, normal AE (EV-6, EV-3, normal AE only with analog gain compensation).
According to the sequence of the exposure reduction range from large to small, the respective exposure states of every two adjacent shooting preview pictures with the exposure reduction range in the shooting preview picture set are judged, and the two adjacent shooting preview pictures in the shooting preview picture set meet the following conditions: determining an exposure parameter value corresponding to the shooting preview picture with larger exposure reduction amplitude as an exposure convergence reference parameter value under the condition that the shooting preview picture with larger exposure reduction amplitude is in an overexposure state and the exposure reduction image with smaller exposure reduction amplitude is in the overexposure state; and when only the shooting preview picture with the minimum exposure reduction amplitude in the shooting preview picture set is in a non-overexposure state, determining the exposure parameter value corresponding to the shooting preview picture with the minimum exposure reduction amplitude as an exposure convergence reference parameter value.
Fig. 2 shows a schematic flowchart when the target exposure parameter adjustment value is EV-6, as shown in fig. 2, for example, when the target exposure parameter adjustment value is set to EV-6, as in the above step S102,based on the target exposure parameter adjustment value, the first-stage exposure parameter value is reduced and adjusted on the current shooting preview picture until the shooting preview picture in the non-overexposure state is obtained, the sensor sends the shooting preview picture in the non-overexposure state to the compensation module, and the compensation module carries out EV-3 (image brightness is reduced by 2) on the shooting preview picture in the non-overexposure state 3 Double) and Normal AE, and generates an EV-3 imaging preview screen and a Normal AE imaging preview screen.
And (3) forming a shooting preview picture set by the EV-6 shooting preview picture (namely the shooting preview picture in an unexposed state), the EV-3 shooting preview picture and the Normal AE shooting preview picture, and sequentially judging whether each two adjacent shooting preview pictures in the shooting preview picture set are in the exposed state or not according to the descending order of the exposure.
The concrete conditions are as follows:
if the EV-6 shooting preview picture is not overexposed, the EV-3 shooting preview picture is overexposed, the EV-6 image is basically adjusted in place, and an exposure parameter value corresponding to the EV-6 shooting preview picture is determined as an exposure convergence reference parameter value;
if the EV-6 shooting preview picture is not over-exposed, the EV-3 shooting preview picture is not over-exposed, and the Normal AE shooting preview picture is over-exposed, which shows that the EV-3 shooting preview picture is basically adjusted in place, the exposure parameter value corresponding to the EV-3 shooting preview picture is determined as an exposure convergence reference parameter value;
if the EV-6 shooting preview picture is not over-exposed, the EV-3 shooting preview picture is not over-exposed and the Normal AE shooting preview picture is not over-exposed, which indicates that the exposure parameter value corresponding to the Normal AE shooting preview picture is closer to the target brightness, the exposure parameter value corresponding to the Normal AE shooting preview picture is determined as the exposure convergence reference parameter value.
When the compensation module carries out analog gain compensation of corresponding exposure reduction amplitude on the shooting preview picture in the non-overexposure state, the shooting preview picture in the non-overexposure state is subjected to analog gain compensation of corresponding exposure reduction amplitude on the shooting preview picture in the non-overexposure state by taking the shooting preview picture subjected to brightness adjustment according to each exposure reduction amplitude as reference, and the shooting preview picture with the exposure reduction amplitude is generated.
Continuing with the example of fig. 2, EV-3 (reduction in luminance of photographing preview screen 2) is performed on the photographing preview screen in the non-overexposure state 3 Double), an EV-3 shooting preview screen is generated with reference to a shooting preview screen whose brightness is adjusted by EV-3 for the shooting preview screen in the non-overexposure state (i.e., a shooting preview screen obtained by decreasing the exposure parameter value of EV-3 and exposing the exposure parameter value used for obtaining the shooting preview screen in the non-overexposure state, the shooting preview screen being prepared in advance for use in performing analog gain compensation).
Similarly, when the analog gain compensation of Normal AE is performed on the captured preview picture in the non-overexposure state, a Normal AE analog image is generated with reference to the captured preview picture in the non-overexposure state, on which brightness adjustment is performed by Normal AE (i.e., the captured preview picture obtained by performing Normal AE on the captured preview picture in the non-overexposure state, which is prepared in advance for analog gain compensation).
S103-2 (top-rate scheme), comprising the steps of:
s103-2a, determining the brightness ratio between the brightness of the shooting preview picture in the non-overexposure state and the brightness of the target.
And S103-2b, determining the exposure convergence reference parameter value based on the brightness ratio and the brightness of the current shooting preview picture.
In a specific implementation, first, the luminance Ratio between the luminance Current and the Target luminance Target of the captured preview screen in the non-overexposure state is determined. Ratio = Target/Current, and is used for calculating the exposure amount required to be increased from Current to Target brightness, so that an exposure decision for convergence in the next step can be output. And according to the Ratio, searching an ambient brightness index table in the related technology, and determining the number n of indexes needing to be adjusted. Then, in the ambient brightness index table in the related art, the index value corresponding to the exposure parameter value of the shooting preview picture in the non-overexposure state is found, and based on the required number n of indexes and the index value of the shooting preview picture in the non-overexposure state, the exposure convergence reference parameter value is determined.
For example, the photographed preview screen in the non-overexposure state is obtained through one EV-6, the luminance is 2, that is, current _ EV-6=2, the Target luminance Target =48, ratio =48/2=24 is calculated, the ambient luminance index table in the related art is searched, and n = log is determined 1.03 Ratio=log 1.03 24=107, to achieve the exposure of the target brightness, it is necessary to add 107 indexes to the current exposure amount to complete convergence, and if an index value corresponding to the exposure parameter value of the shooting preview screen in the non-overexposure state is found to be 200 in the ambient brightness index table in the related art, the exposure parameter value corresponding to the index value 307 in the ambient brightness index table in the related art is determined as the exposure convergence reference parameter value.
For convenience of understanding, the ambient brightness index table in the related art is briefly described below.
The ambient brightness index table in the related art is a table composed of different index values corresponding to different combinations of exposure time and exposure gain. Based on the minimum exposure time and the exposure gain that can be supported by the camera sensor (under the exposure parameter value, the ambient brightness index _0 is set), then each time an exposure gear is added, the brightness is increased by 3%, and therefore, the brightness difference between two adjacent index sections is 3%. For example, index _0 represents the brightest environment, and index _500 represents the very dark environment. The essence of the control of the exposure parameter values during exposure, i.e. the control of the exposure time and gain, is to look up the ambient brightness index table by the index values to find the combination of the exposure time and gain corresponding to the index values, thereby realizing automatic exposure based on the combination of the exposure time and gain, table 1 shows the combination of the exposure time and gain corresponding to the index values in an exemplary ambient brightness index table, and as can be seen from table 1, when the exposure time is not changed, each time an exposure gear index is added, the exposure gain is increased by 3%, and the corresponding brightness is increased by 3% (i.e. the above formula n = log:) 1.03 1.03 in Ratio).
Table 1 exemplary ambient brightness index combinations of exposure time and gain corresponding to index values
Figure BDA0003867200400000131
Based on the same inventive concept, an embodiment of the present application provides a brightness adjustment apparatus, and fig. 4 shows a schematic diagram of the brightness adjustment apparatus, and as shown in fig. 4, the brightness adjustment apparatus includes:
the exposure state judging module is used for judging whether the current shooting preview picture is in an overexposure state;
the first exposure adjusting module is used for carrying out reduction adjustment on the exposure parameter value of the first stage according to the target exposure parameter adjusting value under the condition that the current shooting preview picture is in an overexposure state until the shooting preview picture in the overexposure state is obtained;
a convergence reference determining module, configured to determine an exposure convergence reference parameter value according to the shooting preview picture in the non-overexposure state;
and the second exposure adjusting module is used for reducing and adjusting the second stage exposure parameter value according to the exposure convergence reference parameter value so as to adjust the brightness of the shooting preview picture to the target brightness.
Wherein the first exposure adjustment module comprises:
the primary exposure adjusting submodule is used for reducing and exposing a primary exposure parameter value according to the target exposure parameter value under the condition that the current shooting preview picture is in an overexposure state, so as to obtain a first shooting preview picture;
and the subsequent exposure adjusting submodule is used for reducing and exposing the next exposure parameter value according to the target exposure parameter value under the condition that the first shooting preview picture is in an overexposure state until the shooting preview picture in the overexposure state is obtained.
The convergence criterion determining module includes:
a brightness ratio determination sub-module for determining a brightness ratio between the brightness of the photographed preview picture in the non-overexposure state and the target brightness;
and the first convergence reference determining submodule is used for determining the exposure convergence reference parameter value based on the brightness ratio and the brightness of the current shooting preview picture.
The convergence reference determining module further includes:
the analog gain compensation submodule is used for performing analog gain compensation of various exposure reduction amplitudes on the shooting preview picture in the non-overexposure state;
an adjacent exposure state judgment submodule, configured to sequentially judge whether each two adjacent shooting preview pictures in a shooting preview picture set are in an exposure state according to a descending order of exposure, where the shooting preview picture set includes: the shooting preview picture in the non-overexposure state and the shooting preview picture with various exposure reduction amplitudes;
and the second convergence reference determining submodule is used for determining an exposure convergence reference parameter value according to whether each two adjacent shooting preview pictures in the shooting preview picture set are in an exposure state or not.
Wherein the second convergence reference determination submodule includes:
a first convergence reference determination subunit configured to determine that two adjacent captured preview pictures in the captured preview picture set satisfy: determining the exposure parameter value corresponding to the shooting preview picture with larger exposure reduction amplitude as the exposure convergence reference parameter value under the condition that the shooting preview picture with larger exposure reduction amplitude is in an overexposure state and the shooting preview picture with smaller exposure reduction amplitude is in the overexposure state;
and a second convergence reference determining subunit, configured to determine, as the exposure convergence reference parameter value, an exposure parameter value corresponding to the shooting preview picture with the smallest exposure reduction amplitude when only the shooting preview picture with the smallest exposure reduction amplitude in the shooting preview picture set is in a non-overexposure state.
The analog gain compensation sub-module comprises:
and the analog gain compensation subunit is used for performing analog gain compensation of corresponding exposure reduction amplitude on the shooting preview picture in the overexposure state by taking the shooting preview picture in the overexposure state after brightness adjustment according to each exposure reduction amplitude as reference.
Wherein the convergence reference determining module further comprises:
the brightness difference determining submodule is used for determining the brightness difference between the brightness of the current shooting preview picture and the target brightness;
and the target exposure parameter determining submodule is used for determining the target exposure parameter value and/or the quantity of the exposure reducing amplitudes according to the brightness difference, the exposure reducing amplitude of the target exposure parameter value is increased along with the increase of the brightness difference, and the quantity of the exposure reducing amplitudes is increased along with the increase of the brightness difference.
The brightness adjusting apparatus provided in the embodiment of the present application can implement all the contents of the foregoing method embodiments, and therefore, specific functions of each module can be implemented with reference to the foregoing method embodiments, and are not described herein again.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, and fig. 5 shows a schematic diagram of the electronic device disclosed in the embodiment of the present application, and as shown in fig. 5, the electronic device 100 includes: the memory 110 and the processor 120 are connected in a communication manner through a bus, and the memory 110 and the processor 120 store a computer program, which can be executed on the processor 120 to implement the steps in the brightness adjustment method disclosed in the embodiment of the present application.
Based on the same inventive concept, in another embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program/instruction is stored, and the computer program/instruction, when executed by a processor, implements the steps in the brightness adjustment method proposed in the embodiment of the present application.
Based on the same inventive concept, in another embodiment of the present application, there is also provided a computer program product, which includes a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps in the brightness adjustment method provided in the embodiment of the present application are implemented.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The brightness adjustment method, the brightness adjustment device, the storage medium, and the brightness adjustment product provided by the present application are introduced in detail, and specific examples are applied in the present disclosure to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of adjusting brightness, comprising:
judging whether the current shooting preview picture is in an overexposure state;
under the condition that the current shooting preview picture is in an overexposure state, carrying out reduction adjustment on the exposure parameter value of the first stage according to the target exposure parameter adjustment value until the shooting preview picture in the overexposure state is obtained;
determining an exposure convergence reference parameter value according to the shooting preview picture in the non-overexposure state;
and performing reduction adjustment on the second-stage exposure parameter value according to the exposure convergence reference parameter value so as to adjust the brightness of the shooting preview picture to the target brightness.
2. The brightness adjustment method according to claim 1, wherein, in a case where the current shooting preview screen is in an overexposure state, performing a decrease adjustment of the first-stage exposure parameter value according to the target exposure parameter adjustment value until a shooting preview screen in an overexposure state is obtained, includes:
under the condition that the current shooting preview picture is in an overexposure state, reducing and exposing the exposure parameter value for one time according to the target exposure parameter adjustment value to obtain a first shooting preview picture;
and under the condition that the first shooting preview picture is in an overexposure state, reducing and exposing the next exposure parameter value according to the target exposure parameter adjustment value until the shooting preview picture in the overexposure state is obtained.
3. The brightness adjustment method according to claim 1 or 2, wherein determining the exposure convergence reference parameter value based on the captured preview screen in the non-overexposure state includes:
determining a brightness ratio between the brightness of the captured preview picture in the non-overexposure state and the target brightness;
and determining the exposure convergence reference parameter value based on the brightness ratio and the brightness of the current shooting preview picture.
4. The luminance adjustment method according to claim 1 or 2, wherein determining the exposure convergence reference parameter value based on the captured preview picture in the non-overexposure state includes:
carrying out analog gain compensation of multiple exposure reduction amplitudes on the shooting preview picture in the non-overexposure state;
sequentially judging whether each two adjacent shooting preview pictures in a shooting preview picture set are in an exposure state or not according to the sequence of the exposure reduction amplitude from large to small, wherein the shooting preview picture set comprises: the shooting preview picture in the non-overexposure state and the shooting preview picture subjected to various exposure reduction amplitudes;
and determining an exposure convergence reference parameter value according to whether each two adjacent shooting preview pictures in the shooting preview picture set are in an exposure state or not.
5. The brightness adjustment method according to claim 4, wherein determining the exposure convergence reference parameter value according to whether each of two adjacent captured preview pictures in the captured preview picture set is in an exposure state comprises:
two adjacent shooting preview pictures in the shooting preview picture set satisfy the following conditions: determining the exposure parameter value corresponding to the shooting preview picture with larger exposure reduction amplitude as the exposure convergence reference parameter value under the condition that the shooting preview picture with larger exposure reduction amplitude is in an unexposed state and the shooting preview picture with smaller exposure reduction amplitude is in an overexposed state;
and determining the exposure parameter value corresponding to the shooting preview picture with the minimum exposure reduction amplitude as the exposure convergence reference parameter value under the condition that only the shooting preview picture with the minimum exposure reduction amplitude in the shooting preview picture set is in a non-overexposure state.
6. The brightness adjustment method according to claim 4 or 5, wherein the analog gain compensation of a plurality of exposure reduction magnitudes is performed on the captured preview picture in the non-overexposure state, and comprises:
and performing analog gain compensation of the corresponding exposure reduction amplitude on the shooting preview picture in the non-overexposure state by taking the shooting preview picture in the non-overexposure state after brightness adjustment is performed according to each exposure reduction amplitude as reference.
7. The brightness adjustment method according to any one of claims 4 to 6, characterized in that the method further comprises:
determining the brightness difference between the brightness of the current shooting preview picture and the target brightness;
and determining the target exposure parameter adjustment value and/or the number of the exposure reduction amplitudes according to the brightness difference, wherein the exposure reduction amplitude of the target exposure parameter adjustment value is increased along with the increase of the brightness difference, and the number of the exposure reduction amplitudes is increased along with the increase of the brightness difference.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to implement the steps in the brightness adjustment method of any one of claims 1-7.
9. A computer-readable storage medium, on which a computer program/instructions are stored, characterized in that the computer program/instructions, when executed by a processor, implement the steps in the brightness adjustment method according to any one of claims 1-7.
10. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps in the brightness adjustment method as claimed in any one of claims 1-7.
CN202211181991.9A 2022-09-27 2022-09-27 Brightness adjusting method, equipment, storage medium and product Pending CN115633258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211181991.9A CN115633258A (en) 2022-09-27 2022-09-27 Brightness adjusting method, equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211181991.9A CN115633258A (en) 2022-09-27 2022-09-27 Brightness adjusting method, equipment, storage medium and product

Publications (1)

Publication Number Publication Date
CN115633258A true CN115633258A (en) 2023-01-20

Family

ID=84903880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211181991.9A Pending CN115633258A (en) 2022-09-27 2022-09-27 Brightness adjusting method, equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN115633258A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116847202A (en) * 2023-09-01 2023-10-03 深圳市广和通无线通信软件有限公司 Exposure adjustment method and device based on four-color filter array algorithm

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116847202A (en) * 2023-09-01 2023-10-03 深圳市广和通无线通信软件有限公司 Exposure adjustment method and device based on four-color filter array algorithm
CN116847202B (en) * 2023-09-01 2023-12-05 深圳市广和通无线通信软件有限公司 Exposure adjustment method and device based on four-color filter array algorithm

Similar Documents

Publication Publication Date Title
CN105979162B (en) A kind of the automatic exposure method of adjustment and device of expansible dynamic image
US20090051783A1 (en) Apparatus and method of capturing images having optimized quality under night scene conditions
CN111316635B (en) Camera control method and device
CN110493539B (en) Automatic exposure processing method, processing device and electronic equipment
US9307137B2 (en) Imaging apparatus and imaging method which perform focus adjustment while performing live-view display
CN111064898B (en) Image shooting method and device, equipment and storage medium
JP4999871B2 (en) Imaging apparatus and control method thereof
CN101472077B (en) Digital photographic apparatus with luminance compensation and compensation process thereof
CN115633258A (en) Brightness adjusting method, equipment, storage medium and product
JP2005012763A (en) White balance adjustment method of digital video image device
US20140267885A1 (en) Image capturing apparatus and method of controlling the same
CN112422837B (en) Method, device, equipment and storage medium for synthesizing high dynamic range image
US20180115695A1 (en) Image processing apparatus, image processing method, program, and recording medium
JP2013192057A (en) Imaging apparatus, control method of the same, and control program
US20120293688A1 (en) Method of adjusting the brightness of a digital camera image
CN113347352B (en) Shooting parameter adjusting method and device, electronic equipment and computer storage medium
JP5335964B2 (en) Imaging apparatus and control method thereof
JP2012090041A (en) Image processing device, method, and program
KR101971535B1 (en) Apparatus and method for adjusting auto focus in image taking device
CN115696027A (en) Photographing method, photographing apparatus, controller, device, and computer-readable storage medium
CN111586283B (en) Zooming method and device
JP2017068513A (en) Image processing device and method thereof, program, and storage medium
JP4077217B2 (en) Automatic exposure control device and program thereof
JP6554009B2 (en) IMAGE PROCESSING APPARATUS, CONTROL METHOD THEREOF, PROGRAM, AND RECORDING MEDIUM
CN116847202B (en) Exposure adjustment method and device based on four-color filter array algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination