CN110636230B - Exposure adjusting method, device, equipment and storage medium - Google Patents

Exposure adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN110636230B
CN110636230B CN201911055030.1A CN201911055030A CN110636230B CN 110636230 B CN110636230 B CN 110636230B CN 201911055030 A CN201911055030 A CN 201911055030A CN 110636230 B CN110636230 B CN 110636230B
Authority
CN
China
Prior art keywords
brightness
ambient brightness
ambient
grade
change
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.)
Active
Application number
CN201911055030.1A
Other languages
Chinese (zh)
Other versions
CN110636230A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911055030.1A priority Critical patent/CN110636230B/en
Publication of CN110636230A publication Critical patent/CN110636230A/en
Application granted granted Critical
Publication of CN110636230B publication Critical patent/CN110636230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The embodiment of the application discloses an exposure adjusting method, an exposure adjusting device, an exposure adjusting equipment and a storage medium, wherein a brightness grade evaluation mechanism is established in the method, whether an ambient brightness sensor is started to carry out auxiliary exposure or not is determined by detecting the ambient brightness change grade, and specifically, when the brightness change grade is a first grade, at least one ambient brightness sensor is started to control the at least one ambient brightness sensor to acquire the current ambient brightness; and when the brightness change level is a second level, the ambient brightness sensor is turned off, and the current ambient brightness is evaluated based on the automatic exposure strategy. Therefore, the working time of the ambient brightness sensor is shortened, and the power consumption is reduced.

Description

Exposure adjusting method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an exposure adjustment method, an exposure adjustment apparatus, an exposure adjustment device, and a storage medium.
Background
The automatic exposure technology of the image sensor needs to evaluate the ambient brightness depending on the brightness information under the shutter and the analog gain, and carries out exposure iterative convergence to achieve an ideal exposure effect. When the ambient brightness is detected by using the ambient brightness sensor, the ambient brightness can be directly detected without depending on the set exposure parameters (aperture, shutter, and gain). Therefore, the application of the ambient brightness sensor to the automatic exposure technology can establish a fast and effective exposure mechanism, but the continuous operation of the ambient brightness sensor causes the problem of increased power consumption.
Disclosure of Invention
To solve the foregoing technical problems, embodiments of the present application desirably provide an exposure adjustment method, apparatus, device, and storage medium.
The technical scheme of the application is realized as follows:
in a first aspect, there is provided an exposure adjustment method, including:
acquiring ambient brightness information of at least two moments of a shooting scene;
determining a brightness change level based on the ambient brightness information at the at least two moments;
when the brightness change grade is a first grade, starting at least one ambient brightness sensor, and controlling the at least one ambient brightness sensor to acquire the current ambient brightness;
when the brightness change level is a second level, the ambient brightness sensor is closed, and the current ambient brightness is evaluated based on an automatic exposure strategy;
and resetting exposure parameters based on the current ambient brightness.
In a second aspect, there is provided an exposure adjustment apparatus, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the ambient brightness information of at least two moments of a shooting scene;
the processing unit is used for determining the brightness change level based on the ambient brightness information at the at least two moments; when the brightness change grade is a first grade, starting at least one ambient brightness sensor, and controlling the at least one ambient brightness sensor to acquire the current ambient brightness; when the brightness change level is a second level, the ambient brightness sensor is closed, and the current ambient brightness is evaluated based on an automatic exposure strategy;
and the setting unit is used for resetting the exposure parameters based on the current environment brightness.
In a third aspect, an electronic device is provided, including: at least one ambient light sensor, a processor and a memory configured to store a computer program executable on the processor, wherein the processor is configured to perform the steps of the aforementioned method when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
By adopting the technical scheme, a brightness grade evaluation mechanism is established, whether the ambient brightness sensor is started to carry out auxiliary exposure or not is determined by detecting the ambient brightness change grade, and specifically, when the brightness change grade is the first grade, at least one ambient brightness sensor is started to control the at least one ambient brightness sensor to acquire the current ambient brightness; and when the brightness change level is a second level, the ambient brightness sensor is turned off, and the current ambient brightness is evaluated based on the automatic exposure strategy. Therefore, the working time of the ambient brightness sensor is shortened, and the power consumption is reduced.
Drawings
FIG. 1 is a schematic diagram of a first process of an exposure adjustment method according to an embodiment of the present application;
fig. 2 is a schematic front view of a full-screen mobile phone in the embodiment of the present application;
fig. 3 is a schematic diagram of a back side composition structure of a full-screen mobile phone in the embodiment of the present application;
FIG. 4 is a second flowchart of an exposure adjustment method according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating the structure of an exposure adjusting apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
So that the manner in which the features and elements of the present embodiments can be understood in detail, a more particular description of the embodiments, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
An exposure adjustment method is provided in an embodiment of the present application, fig. 1 is a schematic view of a first process of the exposure adjustment method in the embodiment of the present application, and as shown in fig. 1, the method may specifically include:
step 101: acquiring ambient brightness information of at least two moments of a shooting scene;
step 102: determining a brightness change level based on the ambient brightness information at the at least two moments;
step 103: when the brightness change grade is a first grade, starting at least one ambient brightness sensor, and controlling the at least one ambient brightness sensor to acquire the current ambient brightness;
step 104: when the brightness change level is a second level, the ambient brightness sensor is closed, and the current ambient brightness is evaluated based on an automatic exposure strategy;
step 105: and resetting exposure parameters based on the current ambient brightness.
Here, the execution subject of steps 101 to 105 may be a processor of the electronic device. Here, the electronic device has a shooting function and is provided with at least one ambient brightness sensor. For example, the electronic device may be a smartphone, a personal computer (e.g., a tablet, a desktop, a notebook, a netbook, a palmtop), a camera, a virtual reality device, a wearable device, and so on.
Exemplarily, when the electronic device is a mobile phone, if the display screen of the mobile phone is a bang screen with a bang area, the ambient brightness sensor is disposed below the ink hole in the bang area.
Fig. 2 shows a schematic diagram of a front composition structure of a full-screen mobile phone, as shown in fig. 2, a display screen of the mobile phone is a full-screen, an ambient brightness sensor is arranged on one side of a top frame of the mobile phone, an earphone is arranged in the middle of the top frame, a front camera is arranged on the other side of the top frame, the front camera is in a lifting type and extends out of the mobile phone when in use, and the front camera retracts into the mobile phone when not in use. Compare in bang screen, improved the display effect of cell-phone. In practical application, the front camera of the full-screen mobile phone can also be a screen lower camera positioned below the screen.
Fig. 3 shows a schematic diagram of a back composition structure of a full-screen mobile phone, and as shown in fig. 3, a rear camera is arranged on the back of the mobile phone, and the ambient brightness sensor is arranged on one side of a top frame of the mobile phone and close to the rear camera.
Specifically, when the mobile phone includes more than two ambient light sensors, the ambient light sensors may be configured at the following positions: the mobile phone comprises a mobile phone, a front ink hole below the bang area on the front side of the mobile phone, a front screen below the mobile phone, a front top frame side, a back top frame side and a back rear sensor side.
In practical applications, the ambient brightness information is used to indicate the brightness of the shooting scene. Specifically, the brightness of the shooting scene may be indicated by the image brightness of the shooting scene. For example, the ambient brightness information includes average brightness and/or brightness dynamics; wherein, the average brightness is the average value of all pixel brightness in the image, and the brightness dynamic is the ratio of the pixel brightness average values in the brightest area and the darkest area in the image. Here, the brightest area is an area where the average value of the pixel brightness in the image is the largest, and the darkest area is an area where the average value of the pixel brightness in the image is the smallest.
In some embodiments, the determining the brightness change level based on the ambient brightness information at the at least two time instants includes: determining the change range of the ambient brightness based on the ambient brightness information at the at least two moments; and determining the brightness change level based on the environment brightness change range.
In practical applications, when the ambient brightness information includes an average brightness and a brightness dynamic state, the determining the ambient brightness variation range based on the ambient brightness information at the at least two time instants includes: calculating the variation range of the average brightness based on the average brightness of the at least two moments; calculating the variation range of the brightness dynamic state based on the brightness dynamic states at the at least two moments; and carrying out weighted average on the variation range of the average brightness and the variation range of the brightness dynamic state to obtain the variation range of the environmental brightness. Here, the luminance variation range is a difference between the maximum luminance value and the minimum luminance value in at least two time instants.
Specifically, when the ambient brightness change information includes average brightness and brightness dynamics, the brightness dynamics is normalized, and the change range of the normalized brightness dynamics is calculated; calculating the variation range of the average brightness; and carrying out weighted average on the two brightness change ranges to obtain an environment brightness change range.
In practical application, when the ambient brightness information only includes average brightness, the variation range of the average brightness is used as the variation range of the ambient brightness; and when the environment brightness information only comprises the brightness dynamic state, taking the change range of the brightness dynamic state as the environment brightness change range.
In some embodiments, the method further comprises: and when the brightness change level is a third level, keeping the exposure parameters unchanged, and continuously acquiring the ambient brightness information of the shooting scene.
In practical applications, the determining the brightness change level based on the ambient brightness change range includes: when the environment brightness change range is located in a first change range, determining the brightness change grade as a first grade; when the environment brightness variation range is located in a second variation range, determining the brightness variation grade as a second grade; when the environment brightness change range is located in a third change range, determining the brightness change grade as a third grade; wherein the first variation range is larger than the second variation range, and the second variation range is larger than the third variation range.
That is to say, when the ambient brightness changes greatly, the ambient brightness sensor is started to perform auxiliary exposure, so that the exposure setting speed is increased, the exposure parameters can be matched with the ambient brightness more quickly, and an ideal exposure effect is achieved. And when the change of the ambient brightness is small, the ambient brightness sensor is closed, the automatic exposure module is started to evaluate the ambient brightness, and then the evaluated ambient brightness is used for carrying out exposure iterative convergence, so that an ideal exposure effect is achieved. It can be understood that the ambient brightness sensor is closed when the ambient brightness changes less, the exposure parameters can be changed in time according to the ambient brightness change condition without starting the ambient brightness sensor automatic exposure module, the ideal exposure effect is achieved, the working time of the ambient brightness sensor is shortened, and the power consumption is reduced. When the environmental brightness changes within the tolerance range, the exposure parameters do not need to be reset, the ideal exposure effect can be achieved by using the exposure parameters set last time, and the change condition of the environmental brightness is continuously monitored. Here, the auto exposure module performs ambient brightness evaluation based on an auto exposure strategy.
In practical application, when only one ambient brightness sensor is included, one ambient brightness sensor is controlled to acquire the current ambient brightness, and the exposure parameters are reset based on the acquired ambient brightness information. The ambient brightness sensor mainly utilizes the phototriodes to generate currents with different intensities when receiving different light intensities so as to represent the intensity of ambient brightness.
When at least two ambient light sensors are included, step 103 specifically includes: when at least two ambient brightness sensors are started, controlling the at least two ambient brightness sensors to acquire at least two ambient brightness; and calculating to obtain the current ambient brightness based on the at least two ambient brightnesses.
Illustratively, obtaining the current ambient brightness based on the at least two pieces of ambient brightness information includes: taking the arithmetic average value of at least two environment brightness values as the current environment brightness; or a weighted average of at least two ambient brightness values is taken as the current ambient brightness.
In some embodiments, the auto exposure strategy includes: controlling an image acquisition unit to acquire a target image of the shooting scene based on historical exposure parameters; and carrying out brightness statistics on the target image to obtain the current environment brightness of the shooting scene.
Here, the ambient brightness statistics refers to statistics of the brightness of all pixels or a part of pixels in the target image, and determines the average brightness or brightness dynamics of the target image.
Accordingly, evaluating the current ambient brightness based on the auto-exposure strategy includes: and evaluating the ambient brightness at the current moment based on the automatic exposure strategy.
That is to say, in the embodiment of the present application, the monitoring of the ambient brightness is realized through an automatic exposure strategy. Currently, the common automatic exposure strategies include an average brightness method, a weight average method, a brightness histogram, and the like. The most common of these is the average luminance method. The average brightness method is to average the brightness of all pixels of the image collected by the image collecting component and finally reach the target brightness by continuously adjusting the exposure parameters. While the weight averaging method is to set different weights to different regions of the image to calculate the brightness of the image, for example, the selection of various metering modes in a camera is to change the weights of the different regions. The luminance histogram method calculates the image luminance by assigning different weights to the peaks in the histogram. Here, the average luminance refers to a luminance value determined by an average luminance method, and the luminance dynamics refers to a luminance value determined by a weight average method or a luminance histogram.
In some embodiments, the obtaining ambient brightness information of at least two time instants of the shooting scene includes: and evaluating the ambient brightness information of at least two moments in a preset time period based on the automatic exposure strategy. That is to say, the change situation of the ambient brightness information can be monitored in real time by using an automatic exposure strategy, and then whether the ambient brightness sensor is started to perform auxiliary exposure is determined according to the change situation of the ambient brightness. Here, the preset time period may be 10 seconds, 30 seconds, 1 minute, 2 minutes, etc., and the at least two times may be times divided into the preset time period according to a fixed time interval.
Specifically, the evaluating ambient brightness information of at least two moments within a preset time period based on the automatic exposure strategy includes: controlling an image acquisition unit to acquire a target image of the shooting scene at a target moment based on historical exposure parameters; and carrying out brightness statistics on the target image to obtain the ambient brightness information of the target moment. Here, the target time is any one of the at least two times.
By adopting the technical scheme, a brightness grade evaluation mechanism is established, whether the ambient brightness sensor is started to carry out auxiliary exposure or not is determined by detecting the ambient brightness change grade, and specifically, when the brightness change grade is the first grade, at least one ambient brightness sensor is started to control the at least one ambient brightness sensor to acquire the current ambient brightness; and when the brightness change level is a second level, the ambient brightness sensor is turned off, and the current ambient brightness is evaluated based on the automatic exposure strategy. Therefore, the working time of the ambient brightness sensor is shortened, and the power consumption is reduced.
Based on the foregoing embodiment, a specific implementation scenario is further provided in the embodiment of the present application, and fig. 4 is a second flowchart of the exposure adjustment method in the embodiment of the present application, and as shown in fig. 4, the method includes:
step 401: starting an image acquisition unit of the electronic equipment and starting an environment brightness monitoring function;
for example, the image acquisition unit is a camera, and the electronic device is an electronic device with a camera, such as a camera, a mobile phone, a tablet computer, a VR device, and an AR device. When the electronic equipment starts the camera to execute the shooting function, the environmental brightness monitoring function is executed at the same time.
The environment brightness monitoring function can realize the real-time monitoring of the environment brightness change condition of the electronic equipment,
step 402: acquiring ambient brightness information of at least two moments of a shooting scene;
here, ambient brightness information at least two moments in time within a preset time period is evaluated based on the automatic exposure strategy. That is to say, the change situation of the ambient brightness information can be monitored in real time by using an automatic exposure strategy, and then whether the ambient brightness sensor is started to perform auxiliary exposure is determined according to the change situation of the ambient brightness.
Step 403: determining a brightness change level based on the ambient brightness information at the at least two moments;
and analyzing the change condition of the environmental brightness of the current scene in real time according to the acquired environmental brightness information of at least two moments, wherein the environmental brightness information comprises an average brightness and a brightness dynamic range, and taking a weighted average value of the average brightness change range and the brightness dynamic change range as a quantized value of the final environmental brightness change.
Step 404: judging whether the brightness change level is a first level, if so, executing step 405; if not, go to step 406;
step 405: starting at least one ambient brightness sensor, controlling the at least one ambient brightness sensor to acquire the current ambient brightness, and then executing step 409;
step 406: judging whether the brightness change level is a second level, if so, executing step 407; if not, go to step 408;
step 407: turning off the ambient brightness sensor, evaluating the current ambient brightness based on the automatic exposure strategy, and then executing step 409;
here, the luminance change levels are classified into three levels T1 (i.e., a first level), T2 (i.e., a second level), and T3 (i.e., a third level), where T3 indicates that the luminance change range is within the exposure tolerance R (0< T3< ═ R), T2 indicates that the luminance change range exceeds the exposure tolerance R but is still within a prescribed range (R < T2< ═ 3R), and T1 indicates that the luminance characteristic changes greatly, and that T1>3R is prescribed. Here, the exposure tolerance R refers to an acceptable degree of the electronic device to the ambient brightness variation, and indicates that the ambient brightness variation is an acceptable range when the ambient brightness variation level is the third level; when the exposure parameter is in the second grade, the exposure parameter needs to be adjusted, but the adjustment speed requirement of the exposure parameter is lower; the third level also indicates that the exposure parameters need to be adjusted, but the adjustment speed of the exposure parameters is required to be higher. The exposure tolerance R can be measured experimentally.
If the current brightness change level is T1, starting an ambient brightness sensor, collecting the current ambient brightness, and performing rapid exposure according to the collected ambient brightness; if the current brightness change level is T2, the automatic exposure module is relied on to evaluate the environment brightness for iterative exposure; if the current brightness change level is T3, indicating that the ambient brightness change is small, then the continuous observation stage is performed, and neither ambient brightness exposure nor the auto-exposure module is started.
Step 408: the exposure parameters are kept unchanged and the process returns to step 402.
Here, when the process returns to step 402, the ambient brightness information at the latest time is acquired again, and the latest ambient brightness change is determined based on the ambient brightness at the latest time.
Step 409: and resetting exposure parameters based on the current ambient brightness.
Here, the different ambient brightness information corresponds to different exposure parameters, and the target exposure parameter corresponding to the current ambient brightness can be determined by pre-establishing a mapping relation table of the different ambient brightness information and the exposure parameters and by looking up the table. The exposure parameter may specifically be an exposure value representing all camera aperture shutter combinations that can give the same exposure.
In practical applications, after the step 409, the method returns to the step 402 to continue monitoring the ambient brightness change.
On the basis of the same inventive concept in the above-mentioned technology, the embodiment of the present application further provides an exposure adjusting apparatus, as shown in fig. 5, the apparatus including:
an obtaining unit 501, configured to obtain ambient brightness information of a shooting scene at least two moments;
a processing unit 502, configured to determine a brightness change level based on the ambient brightness information at the at least two time instants; when the brightness change grade is a first grade, starting at least one ambient brightness sensor, and controlling the at least one ambient brightness sensor to acquire the current ambient brightness; when the brightness change level is a second level, the ambient brightness sensor is closed, and the current ambient brightness is evaluated based on an automatic exposure strategy;
a setting unit 503, configured to reset the exposure parameters based on the current ambient brightness.
In some embodiments, the processing unit 502 is specifically configured to, when at least two ambient brightness sensors are started, control the at least two ambient brightness sensors to acquire at least two ambient brightnesses; and calculating to obtain the current ambient brightness based on the at least two ambient brightnesses.
In some embodiments, the processing unit 502 is specifically configured to determine an ambient brightness variation range based on the ambient brightness information at the at least two time instants; and determining the brightness change level based on the environment brightness change range.
In some embodiments, when the ambient brightness information includes an average brightness and a brightness dynamic state, the processing unit 502 is specifically configured to calculate a variation range of the average brightness based on the average brightness at the at least two time instants; calculating the variation range of the brightness dynamic state based on the brightness dynamic states at the at least two moments; and carrying out weighted average on the variation range of the average brightness and the variation range of the brightness dynamic state to obtain the variation range of the environmental brightness.
In some embodiments, the processing unit 502 is further configured to, when the brightness change level is a third level, keep the exposure parameter unchanged, and continue to acquire the ambient brightness information of the shooting scene.
In some embodiments, the processing unit 502 is specifically configured to determine that the brightness variation level is a first level when the ambient brightness variation range is within a first variation range; when the environment brightness variation range is located in a second variation range, determining the brightness variation grade as a second grade; when the environment brightness change range is located in a third change range, determining the brightness change grade as a second grade; wherein the first variation range is larger than the second variation range, and the second variation range is larger than the third variation range.
In some embodiments, the auto exposure strategy comprises: controlling an image acquisition unit to acquire a target image of the shooting scene based on historical exposure parameters; and carrying out brightness statistics on the target image to obtain the current environment brightness of the shooting scene.
On the basis of the same inventive concept in the above technology, an embodiment of the present application further provides an electronic device, as shown in fig. 6, the electronic device includes: at least one ambient light sensor 601, a processor 602 and a memory 603 configured to store a computer program capable of running on the processor; the processor 602, when running the computer program in the memory 603, performs the following steps:
acquiring ambient brightness information of at least two moments of a shooting scene;
determining a brightness change level based on the ambient brightness information at the at least two moments;
when the brightness change grade is a first grade, starting at least one ambient brightness sensor, and controlling the at least one ambient brightness sensor to acquire the current ambient brightness;
when the brightness change level is a second level, the ambient brightness sensor is closed, and the current ambient brightness is evaluated based on an automatic exposure strategy;
and resetting exposure parameters based on the current ambient brightness.
In some embodiments, the processor 602, when executing the computer program in the memory 603, implements the following steps: when at least two ambient brightness sensors are started, controlling the at least two ambient brightness sensors to acquire at least two ambient brightness; and calculating to obtain the current ambient brightness based on the at least two ambient brightnesses.
In some embodiments, the processor 602, when executing the computer program in the memory 603, implements the following steps: determining the change range of the ambient brightness based on the ambient brightness information at the at least two moments; and determining the brightness change level based on the environment brightness change range.
In some embodiments, the processor 602, when executing the computer program in the memory 603, implements the following steps: when the environment brightness information comprises average brightness and brightness dynamic, calculating the variation range of the average brightness based on the average brightness of the at least two moments; calculating the variation range of the brightness dynamic state based on the brightness dynamic states at the at least two moments; and carrying out weighted average on the variation range of the average brightness and the variation range of the brightness dynamic state to obtain the variation range of the environmental brightness.
In some embodiments, the processor 602, when executing the computer program in the memory 603, further performs the following steps: and when the brightness change level is a third level, keeping the exposure parameters unchanged, and continuously acquiring the ambient brightness information of the shooting scene.
In some embodiments, the processor 602, when executing the computer program in the memory 603, implements the following steps: when the environment brightness change range is located in a first change range, determining the brightness change grade as a first grade; when the environment brightness variation range is located in a second variation range, determining the brightness variation grade as a second grade; when the environment brightness change range is located in a third change range, determining the brightness change grade as a second grade; wherein the first variation range is larger than the second variation range, and the second variation range is larger than the third variation range.
In some embodiments, the auto exposure strategy comprises: controlling an image acquisition unit to acquire a target image of the shooting scene based on historical exposure parameters; and carrying out brightness statistics on the target image to obtain the current environment brightness of the shooting scene.
Of course, in practice, as shown in FIG. 6, the various components of the electronic device are coupled together by a bus system 604. It is understood that the bus system 604 is used to enable communications among the components. The bus system 604 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 604 in fig. 6.
In practical applications, the processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular.
The Memory may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.
The embodiment of the application also provides a computer readable storage medium for storing the computer program.
Optionally, the computer-readable storage medium may be applied to any electronic device in the embodiments of the present application, and the computer program enables a computer to execute corresponding processes implemented by a processor in the methods in the embodiments of the present application, which are not described herein again for brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. An exposure adjustment method, characterized in that the method comprises:
acquiring ambient brightness information of at least two moments of a shooting scene;
determining a brightness change level based on the ambient brightness information at the at least two moments;
when the brightness change grade is a first grade, starting at least one ambient brightness sensor, and controlling the at least one ambient brightness sensor to acquire the current ambient brightness;
when the brightness change level is a second level, the ambient brightness sensor is closed, and the current ambient brightness is evaluated based on an automatic exposure strategy;
resetting exposure parameters based on the current ambient brightness;
wherein the determining the brightness change level based on the ambient brightness information at the at least two moments comprises:
determining the change range of the ambient brightness based on the ambient brightness information at the at least two moments;
determining a brightness change level based on the environment brightness change range;
wherein the determining the brightness change level based on the ambient brightness change range comprises:
when the environment brightness change range is located in a first change range, determining the brightness change grade as a first grade;
when the environment brightness variation range is located in a second variation range, determining the brightness variation grade as a second grade;
wherein the first variation range is larger than the second variation range.
2. The method according to claim 1, wherein said activating at least one ambient light sensor, controlling said at least one ambient light sensor to acquire current ambient light, comprises:
when at least two ambient brightness sensors are started, controlling the at least two ambient brightness sensors to acquire at least two ambient brightness;
and calculating to obtain the current ambient brightness based on the at least two ambient brightnesses.
3. The method of claim 1, wherein when the ambient brightness information includes average brightness and brightness dynamics, the determining the ambient brightness variation range based on the ambient brightness information of the at least two time instances comprises:
calculating the variation range of the average brightness based on the average brightness of the at least two moments;
calculating the variation range of the brightness dynamic state based on the brightness dynamic states at the at least two moments;
carrying out weighted average on the variation range of the average brightness and the variation range of the brightness dynamic state to obtain the variation range of the environmental brightness;
wherein the brightness dynamic is the ratio of the average pixel brightness values in the brightest area and the darkest area in the image.
4. The method of claim 3, further comprising:
when the environment brightness change range is located in a third change range, determining the brightness change grade as a third grade; the second variation range is larger than the third variation range;
and when the brightness change grade is the third grade, keeping the exposure parameters unchanged, and continuously acquiring the ambient brightness information of the shooting scene.
5. The method of claim 4, wherein determining a brightness change level based on the ambient brightness change range comprises:
when the environment brightness change range is located in a first change range, determining the brightness change grade as a first grade;
when the environment brightness variation range is located in a second variation range, determining the brightness variation grade as a second grade;
when the environment brightness change range is located in a third change range, determining the brightness change grade as a third grade;
wherein the first variation range is larger than the second variation range, and the second variation range is larger than the third variation range.
6. The method of any of claims 1 to 5, wherein the auto-exposure strategy comprises:
controlling an image acquisition unit to acquire a target image of the shooting scene based on historical exposure parameters;
and carrying out brightness statistics on the target image to obtain the current environment brightness of the shooting scene.
7. An exposure adjustment apparatus, characterized in that the apparatus comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the ambient brightness information of at least two moments of a shooting scene;
the processing unit is used for determining the brightness change level based on the ambient brightness information at the at least two moments; when the brightness change grade is a first grade, starting at least one ambient brightness sensor, and controlling the at least one ambient brightness sensor to acquire the current ambient brightness; when the brightness change level is a second level, the ambient brightness sensor is closed, and the current ambient brightness is evaluated based on an automatic exposure strategy;
the processing unit is specifically configured to determine an ambient brightness variation range based on the ambient brightness information at the at least two moments; determining a brightness change level based on the environment brightness change range; when the environment brightness change range is located in a first change range, determining the brightness change grade as a first grade; when the environment brightness variation range is located in a second variation range, determining the brightness variation grade as a second grade; wherein the first variation range is greater than the second variation range;
and the setting unit is used for resetting the exposure parameters based on the current environment brightness.
8. An electronic device, the electronic device comprising: at least one ambient light sensor, a processor and a memory configured to store a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the method of any one of claims 1 to 6 when running the computer program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201911055030.1A 2019-10-31 2019-10-31 Exposure adjusting method, device, equipment and storage medium Active CN110636230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055030.1A CN110636230B (en) 2019-10-31 2019-10-31 Exposure adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055030.1A CN110636230B (en) 2019-10-31 2019-10-31 Exposure adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110636230A CN110636230A (en) 2019-12-31
CN110636230B true CN110636230B (en) 2021-03-05

Family

ID=68978626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055030.1A Active CN110636230B (en) 2019-10-31 2019-10-31 Exposure adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110636230B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364993B (en) * 2021-07-23 2023-04-18 北京字节跳动网络技术有限公司 Exposure parameter value processing method and device and electronic equipment
CN113612933B (en) * 2021-08-20 2023-05-23 联想(北京)有限公司 Processing method and device and electronic equipment
CN116095497B (en) * 2022-06-29 2023-10-20 荣耀终端有限公司 Exposure control method, device and terminal equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457599A (en) * 2010-10-29 2012-05-16 上海三旗通信科技股份有限公司 Method for detecting light of current environment by mobile phone camera

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9602735B2 (en) * 2012-12-19 2017-03-21 International Business Machines Corporation Digital imaging exposure metering system
US9232151B1 (en) * 2014-06-30 2016-01-05 Amazon Technologies, Inc. Single sensor two-sided camera
CN104732956B (en) * 2015-03-24 2017-04-19 广东欧珀移动通信有限公司 method and device for adjusting brightness of screen
CN105791679A (en) * 2016-02-29 2016-07-20 广东欧珀移动通信有限公司 Method and device for reducing camera power consumption, and mobile terminal
CN106982333B (en) * 2017-05-12 2020-03-27 深圳怡化电脑股份有限公司 Method, device and equipment for quickly correcting image sensor
CN107613191B (en) * 2017-08-01 2020-09-01 努比亚技术有限公司 Photographing method, photographing equipment and computer readable storage medium
CN107966209B (en) * 2017-11-22 2020-07-07 Oppo广东移动通信有限公司 Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457599A (en) * 2010-10-29 2012-05-16 上海三旗通信科技股份有限公司 Method for detecting light of current environment by mobile phone camera

Also Published As

Publication number Publication date
CN110636230A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN110636230B (en) Exposure adjusting method, device, equipment and storage medium
US11563897B2 (en) Image processing method and apparatus which determines an image processing mode based on status information of the terminal device and photographing scene information
EP3694203B1 (en) Method and device for obtaining exposure compensation value of high-dynamic-range image
US9407831B2 (en) Intelligent auto-exposure bracketing
CN110248105B (en) Image processing method, camera and computer storage medium
CN106127693B (en) Defogging system and defogging method
US11689785B2 (en) Dual-spectrum image automatic exposure method and apparatus, and dual-spectrum image camera and machine storage medium
JP2006311311A5 (en)
CN104952045B (en) Demister system and defogging method
US10453188B2 (en) Methods and devices for improving image quality based on synthesized pixel values
US10313601B2 (en) Image capturing device and brightness adjusting method
CN112118388B (en) Image processing method, image processing device, computer equipment and storage medium
CN105376490B (en) The terminal device of one mode switching method, device and use pattern switching method
CN108551553B (en) Method and device for controlling light supplement lamp
CN112738411B (en) Exposure adjusting method, exposure adjusting device, electronic equipment and storage medium
CN101442679A (en) Automatic white balance control system, white balance module and method thereof
US11290657B2 (en) Finder apparatus, imaging apparatus, and method of controlling finder apparatus
CN110740266B (en) Image frame selection method and device, storage medium and electronic equipment
WO2008150629A1 (en) Methods and apparatuses for image exposure correction
US10235745B2 (en) Image processing method, computer storage medium, apparatus and terminal
CN109788206B (en) Photometry method, photometry device, photographing apparatus, and storage medium
WO2010149828A1 (en) Apparatus, methods and computer readable storage mediums for controlling image exposure
CN111314623A (en) Image acquisition method and device based on driver monitoring system
US20200007732A1 (en) Image processing method and electronic device
CN112653845B (en) Exposure control method, exposure control device, electronic equipment and readable storage medium

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
GR01 Patent grant
GR01 Patent grant