CN108769542B - Exposure parameter determination method and device and readable medium - Google Patents

Exposure parameter determination method and device and readable medium Download PDF

Info

Publication number
CN108769542B
CN108769542B CN201810539956.7A CN201810539956A CN108769542B CN 108769542 B CN108769542 B CN 108769542B CN 201810539956 A CN201810539956 A CN 201810539956A CN 108769542 B CN108769542 B CN 108769542B
Authority
CN
China
Prior art keywords
exposure
next frame
frame image
gain
determining
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
CN201810539956.7A
Other languages
Chinese (zh)
Other versions
CN108769542A (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.)
Beijing Tusimple Technology Co Ltd
Original Assignee
Beijing Tusimple 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 Tusimple Technology Co Ltd filed Critical Beijing Tusimple Technology Co Ltd
Priority to CN201810539956.7A priority Critical patent/CN108769542B/en
Publication of CN108769542A publication Critical patent/CN108769542A/en
Application granted granted Critical
Publication of CN108769542B publication Critical patent/CN108769542B/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/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • 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

Landscapes

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

Abstract

The invention discloses a method, a device and a readable medium for determining exposure parameters, belonging to the technical field of image processing, wherein in the method and the device provided by the invention, the exposure evaluation value and the current exposure parameter of a current frame image are determined; and determining an exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and the target exposure value of the next frame image. The exposure parameter for shooting the next frame image is determined by utilizing the exposure evaluation value of the current frame image, the exposure parameter for shooting the current frame image, namely the current exposure parameter, and the target exposure value of the next frame image, so that on one hand, the rapid determination of the exposure parameter is realized, and on the other hand, the image quality of the next frame image obtained by shooting with the determined exposure parameter is also ensured.

Description

Exposure parameter determination method and device and readable medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for determining an exposure parameter, and a readable medium.
Background
With the increase of the human living standard and the industrial modernization level, imaging devices (e.g., cameras) are increasingly used in various industries in daily life, such as consumer photography, machine vision in industry, quality inspection, and automatic driving. The camera is internally provided with algorithms to enable the system to automatically perform feature extraction and recognition on the image, such as face recognition, industrial defect detection, security monitoring and the like. At this time, the image quality is the most important basis. If the quality of the original image output by the camera is not good (e.g., blurred or insufficient detail), then back-end system recognition can be difficult and heavy.
To solve this problem, an Automatic Exposure (AE) algorithm is developed, and the AE algorithm is intended to automatically control an Exposure process of a camera during a photographing process to obtain an image with moderate brightness, thereby ensuring the quality of an output image. The adjustment of Exposure parameters is an important factor for ensuring image quality, and the conventional AE adjustment method is realized by adjusting Exposure Time (ET) and Exposure Gain (G) to approach an image to an ideal Exposure step by step, so that the problems of low speed and low efficiency commonly exist in the conventional AE algorithm.
Therefore, when the imaging device adopts the auto-exposure algorithm, how to quickly determine the exposure parameters is one of the technical problems to be solved.
Disclosure of Invention
The embodiment of the invention provides an exposure parameter determination method, an exposure parameter determination device and a readable medium, which are used for rapidly determining exposure parameters when an imaging device adopts an automatic exposure algorithm.
In a first aspect, an embodiment of the present invention provides an exposure parameter determining method, including:
determining an exposure evaluation value and a current exposure parameter of the current frame image, wherein the exposure evaluation value is obtained by performing exposure evaluation on the current frame image;
and determining an exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and a target exposure value of the next frame image, wherein the target exposure value of the next frame image is within a target evaluation value range, and the target evaluation value range is a range corresponding to normal image exposure.
Therefore, on one hand, the exposure parameters are quickly determined, and on the other hand, the image quality of the next frame of image shot by the determined exposure parameters is also ensured.
Preferably, the exposure parameters include exposure time and exposure gain.
The exposure time and the exposure gain are important parameters in an automatic exposure algorithm, and the quality of the obtained frame image can be ensured by adjusting the two exposure parameters.
Preferably, determining an exposure parameter for capturing an image of a next frame according to the exposure evaluation value, the current exposure parameter and a target exposure value of the image of the next frame specifically includes:
if the current frame image is determined to be underexposed according to the exposure evaluation value, determining the current exposure gain as the exposure gain for shooting the next frame image; and
determining a first ratio between a target exposure value of the next frame image and the exposure evaluation value; and are
And determining the product of the first ratio and the current exposure time as the exposure time for shooting the next frame of image.
When the exposure parameter determined by the method is used for shooting the next frame of image for shooting, the obtained next frame of image is not only normally exposed, but also the image quality is ensured.
Further, the method further comprises:
if the determined exposure time for shooting the next frame of image is greater than the maximum exposure time, determining the maximum exposure time as the exposure time for shooting the next frame of image; and are
Determining a second ratio between a current exposure time and the maximum exposure time;
and determining the product of the first ratio, the second ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
By adopting the method, on one hand, the determined exposure time for shooting the next frame image is ensured to be in the corresponding value range, on the other hand, the exposure time and the exposure gain for shooting the next frame image are also rapidly determined, and simultaneously, the image quality of the next frame image shot by utilizing the determined exposure parameters is also ensured.
Further, the method further comprises:
and if the determined exposure gain for shooting the next frame image is larger than the maximum exposure gain, determining the maximum exposure gain as the exposure gain for shooting the next frame image.
By executing the above process, the determined exposure time and exposure gain can be ensured to be in the respective corresponding value range, the exposure parameter for shooting the next frame of image can be quickly determined, and the image quality of the next frame of image shot by using the determined exposure parameter can be ensured.
Preferably, determining an exposure parameter for capturing an image of a next frame according to the exposure evaluation value, the current exposure parameter, and a target exposure value of the image of the next frame specifically includes:
if the current frame image is determined to be overexposed according to the exposure evaluation value, determining the current exposure time as the exposure time for shooting the next frame image; and are
Determining a third ratio between the target exposure value and the exposure evaluation value of the next frame image;
and determining the product of the third ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
In this way, when the current frame image is overexposed, the exposure time and the exposure gain for capturing the next frame image can be quickly determined based on the above-described procedure.
Further, the method further comprises:
if the determined exposure gain for shooting the next frame image is smaller than the minimum exposure gain, determining the minimum exposure gain as the exposure gain for shooting the next frame image; and are
Determining a fourth ratio between the current exposure gain and the minimum exposure gain;
and determining the product of the third ratio, the fourth ratio and the current exposure time as the exposure time for shooting the next frame of image.
By adopting the process, on one hand, the determined exposure gain for shooting the next frame image is ensured to be in the corresponding value range, on the other hand, the exposure time and the exposure gain for shooting the next frame image are also rapidly determined, and simultaneously, the image quality of the next frame image obtained by shooting by utilizing the determined exposure parameters is also ensured.
Further, the method further comprises:
and if the determined exposure time for shooting the next frame image is less than the minimum exposure time, determining the minimum exposure time as the exposure time for shooting the next frame image.
By executing the above process, the determined exposure time and exposure gain can be ensured to be in the respective corresponding value range, the exposure parameter for shooting the next frame of image can be quickly determined, and the image quality of the next frame of image shot by using the determined exposure parameter can be ensured.
In a second aspect, an embodiment of the present invention provides an exposure parameter determining apparatus, including:
the device comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining an exposure evaluation value and a current exposure parameter of a current frame image, and the exposure evaluation value is obtained by performing exposure evaluation on the current frame image;
and the second determining unit is used for determining the exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and the target exposure value of the next frame image, wherein the target exposure value of the next frame image is within a target evaluation value range, and the target evaluation value range is a range corresponding to normal image exposure.
Preferably, the exposure parameters include exposure time and exposure gain.
Preferably, the second determining unit is specifically configured to determine the current exposure gain as the exposure gain for capturing the next frame image if it is determined that the current frame image is underexposed according to the exposure evaluation value; and determining a first ratio between the target exposure value and the exposure evaluation value of the next frame image; and determining the product of the first ratio and the current exposure time as the exposure time for shooting the next frame of image.
Further, the second determining unit is further configured to determine, if the determined exposure time for capturing the next frame image is greater than a maximum exposure time, the maximum exposure time as the exposure time for capturing the next frame image; determining a second ratio between the current exposure time and the maximum exposure time; and determining the product of the first ratio, the second ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
Further, the second determining unit is further configured to determine the maximum exposure gain as the exposure gain for capturing the next frame image if the determined exposure gain for capturing the next frame image is greater than the maximum exposure gain.
Preferably, the second determining unit is specifically configured to determine the current exposure time as an exposure time for capturing a next frame image if it is determined that the current frame image is overexposed according to the exposure evaluation value; and determining a third ratio between the target exposure value of the next frame image and the exposure evaluation value; and determining the product of the third ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
Further, the second determining unit is further configured to determine the minimum exposure gain as the exposure gain for capturing the next frame image if the determined exposure gain for capturing the next frame image is smaller than the minimum exposure gain; determining a fourth ratio between the current exposure gain and the minimum exposure gain; and determining the product of the third ratio, the fourth ratio and the current exposure time as the exposure time for shooting the next frame of image.
Further, the second determining unit is further configured to determine the minimum exposure time as the exposure time for capturing the next frame image if the determined exposure time for capturing the next frame image is less than the minimum exposure time.
In a third aspect, an embodiment of the present invention provides a computer-readable medium, in which computer-executable instructions are stored, where the computer-executable instructions are configured to execute the exposure parameter determination method provided in the present application.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the exposure parameter determination methods provided herein.
The invention has the beneficial effects that:
the exposure parameter determining method, the exposure parameter determining device and the readable medium provided by the embodiment of the invention are used for determining the exposure evaluation value of the current frame image and the current exposure parameter, wherein the exposure evaluation value is obtained by performing exposure evaluation on the current frame image; and determining an exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and a target exposure value of the next frame image, wherein the target exposure value of the next frame image is within a target evaluation value range, and the target evaluation value range is a range corresponding to normal image exposure. Therefore, on one hand, the exposure evaluation value of the current frame image, the current exposure parameter and the target exposure value of the next frame image are directly utilized, the exposure parameter is not required to be obtained in a step-by-step adjustment mode like the prior art, and the rapid determination of the exposure parameter is realized compared with the prior art; in another aspect, the present invention determines the exposure parameter for capturing the next frame image using the target exposure value of the next frame image, thereby ensuring the image quality of the next frame image captured using the determined exposure parameter since the target exposure value of the next frame image is within the target evaluation value range corresponding to the normal exposure of the image.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flowchart of an exposure parameter determining method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a process of determining an exposure status of a current frame image according to an exposure evaluation value of the current frame image according to an embodiment of the present invention;
FIG. 3 is a schematic flowchart of determining exposure parameters for capturing a next frame image when a current frame image is underexposed according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of determining an exposure parameter for capturing a next frame image when the exposure time determined in step S33 is greater than the maximum exposure time;
FIG. 5 is a schematic flowchart of determining exposure parameters for capturing a next frame image when a current frame image is overexposed according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of determining an exposure parameter for capturing a next frame image when the exposure gain determined in step S53 is smaller than the minimum exposure gain;
fig. 7 is a schematic structural diagram of an exposure parameter determining apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computing apparatus for implementing the exposure parameter determining method according to the present invention.
Detailed Description
The exposure parameter determining method, the exposure parameter determining device and the readable medium provided by the embodiment of the invention are used for rapidly determining the exposure parameters when the imaging equipment adopts an automatic exposure algorithm, and the image quality of a frame image shot by using the determined exposure parameters is ensured.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
To facilitate understanding of the invention, the present invention relates to technical terms in which:
1. exposure time: (Exposure Time, ET), also called "Shutter", refers to a Time interval from the Shutter being opened to being closed in order to project light onto the photosensitive surface of the photographic photosensitive material, during which Time interval light is accumulated on the photosensitive element of the Sensor through the lens and finally converted into an electrical signal to be output. The longer the exposure time, the more light enters, and the method is suitable for the condition that the light condition is poor; short exposure times are suitable for better lighting. The exposure time of the camera is the time interval from the opening to the closing of the camera shutter, and under the condition that other parameters of the camera are not changed, the longer the exposure time, the brighter the obtained frame image.
2. Exposure gain: (Gain, G), generally referred to as magnification, the imaging quality of the image is different when the imaging device has different exposure gains, and the imaging device is taken as an industrial camera for illustration, the smaller the Gain is, the smaller the noise is; the larger the gain, the more noise, especially in dark places, also known as gain in industrial cameras. The gain is generally used only when the signal is weak but the exposure time is not to be increased, because the gain is amplified not only by the valid data signal but also by the noise signal, and therefore the exposure time is generally adjusted first and the gain is second.
3. Exposure strategies, typically cameras, take into account image quality, and make conventional exposure adjustment strategies, such as: when the exposure parameter needs to be increased due to underexposure, the exposure time ET is preferentially adjusted; when the exposure parameter needs to be adjusted to be small during overexposure, the exposure gain G is preferentially adjusted.
4. Exposure evaluation value: after each frame image is obtained through shooting, an exposure evaluation value of each frame image can be determined according to a preset algorithm, so that the exposure state of the current frame image can be determined according to the exposure evaluation value, and the exposure evaluation value of each frame image can be determined based on image brightness mean values, distribution conditions of image brightness histograms, image target entropies and the like.
5. Target exposure value of the next frame image: for the purpose of presetting, in practical application, the ideal exposure evaluation value of the next frame image should be in the target evaluation value range [ B ]L,BH]And defining a target exposure value of the next frame image, and performing value taking in the target evaluation value range, thereby determining an exposure parameter for shooting the next frame image by using the target exposure value of the next frame image. Note that the target evaluation value range is a range corresponding to normal image exposure.
The general flow of the existing automatic exposure algorithm is as follows: calculating an exposure evaluation value of the current frame image, and if the exposure evaluation value of the current frame image is determined not to be in a reasonable exposure range, adjusting exposure parameters, wherein the conventional AE exposure parameter adjusting method is generally used for adjusting the exposure parameters according to a fixed step length so as to ensure that the next frame is exposed reasonably; in the other method, the step length is dynamically adjusted to realize faster exposure adjustment, but both methods gradually approach an ideal exposure value according to a certain step length, the adjustment speed is slow, and the efficiency is low.
In order to solve the problem of low efficiency of an exposure parameter determination method adopted in the prior art, the embodiment of the invention provides a solution, the exposure parameter determination method provided by the invention is applied to an automatic exposure algorithm of an imaging device, the imaging device is taken as an example for explanation, and the camera can determine an exposure evaluation value and a current exposure parameter of a current frame image in an automatic exposure mode, wherein the exposure evaluation value is obtained by performing exposure evaluation on the current frame image; and determining an exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and the target exposure value of the next frame image, wherein the target exposure value of the next frame image is within the range of the target evaluation value, and the range of the target evaluation value is the range corresponding to normal image exposure.
It should be noted that the exposure parameter determining method provided by the present invention may also be applied to other devices with a shooting function, such as a mobile terminal, and the like, where the mobile terminal may be a mobile phone, a tablet, a notebook computer, and the like.
Before the exposure parameter determining method provided by the present invention is introduced, the principle of adjusting the exposure parameters is introduced as follows: according to the principle of camera imaging, the main factors affecting the brightness of an image are: the automatic exposure algorithm is that the scene light is assumed to be unchanged in a short time (in ms), the aperture needs to be externally driven or manually controlled, so that the aperture can be assumed to be unchanged, and therefore, in order to ensure the quality of a frame image obtained by shooting, the automatic exposure algorithm is implemented by adjusting the exposure parameters, wherein the exposure parameters can include, but are not limited to, exposure time and exposure gain.
Assuming that the ambient light level L is constant, the number of photons accumulated during the exposure time ET can be roughly expressed by equation (1):
O=k*L*D*ET (1)
in the formula (1), O is expressed as the light energy which is irradiated to the Sensor through the lens in the exposure time ET; k represents the light transmittance; d is expressed as the aperture value.
The electrical signal E after photoelectric conversion is as shown in formula (2):
E=Q*O (2)
wherein, Q is the photoelectric conversion capability of the Sensor, i.e. the quantum conversion efficiency, and is the inherent property of the Sensor.
The photoelectrically converted electrical signal E needs to be converted into a quantized digital signal value B through a signal amplifier and an a/D converter (for CMOS Sensor, both are integrated in one a/D conversion device). The exposure gain G actually affects the amplification factor of the amplifier (including an analog signal amplifier before a/D conversion and a digital signal amplifier after a/D conversion). The quantized digital signal value B may be expressed as:
B=n*G*E (3)
where n is the conversion rate of the a/D converter, the quantized digital signal value B can be understood as the luminance value of a frame of digital image.
From equations (1), (2) and (3), it can be derived that the quantized digital signal value B is related to the exposure gain and exposure time by:
B=n*G*Q*k*L*D*ET (4)
since n, k and Q are inherent properties of the components, the components can be regarded as constants. L represents the ambient illuminance, and can be regarded as a constant value in a short time, D represents the aperture value, and can be regarded as a constant value in the case of a fixed aperture, and therefore, equation (4) can be converted into:
B=h*G*ET (5)
where h is n × Q × k × L × D, it can be regarded as a constant.
From equation (5) it follows: (1) the image brightness value B is proportional to the product of the exposure time ET and the exposure gain G, and is defined as "proportional model 1", that is: b ℃ (G, ET); (2) if the current exposure time ET reaches the maximum or minimum exposure time, i.e. cannot be adjusted, the image brightness value B and the exposure gain G are in a proportional relationship, defined as "proportional model 2", i.e.: b ^ G; (3) if the current exposure gain G has reached the maximum or minimum exposure gain, indicating that the adjustment cannot be continued, the image brightness value B is in a proportional relationship with the exposure time ET, defined as "proportional model 3", that is: b. varies.. ET. It should be noted that, the proportional model 2 and the proportional model 3 are derived from the proportional model 1, and actually, the exposure parameters for capturing the next frame image in different states can be determined by using the proportional model 1.
The proportional models 1-3 are mathematical models of exposure time ET, exposure gain G and exposure evaluation values. In the actual automatic exposure process, the exposure setting of the next frame of Sensor collected image can be calculated according to the mathematical model, namely, the exposure parameters for shooting the next frame of image in the invention are determined.
As shown in fig. 1, a schematic flow chart of an exposure parameter determining method provided in an embodiment of the present invention may include the following steps:
and S11, determining the exposure evaluation value of the current frame image and the current exposure parameter.
Specifically, the exposure evaluation value in the present invention is obtained by performing exposure evaluation on the current frame image, and may be determined by an image brightness mean, a histogram, or a target entropy function, and for the convenience of description, the exposure evaluation value in the present invention may be replaced by the brightness mean of the frame image, or may be replaced by any other physically significant exposure evaluation value, so that the exposure evaluation value of the current frame image may be represented by the quantized image brightness value in the above formula (5) and denoted as BnWhen a frame of image is shot, the camera can automatically acquire the exposure parameters for shooting the current frame of image, namely the current frame of imageExposure parameters of (1). Preferably, the exposure parameters provided by the present invention can include, but are not limited to, exposure time ET and exposure gain G, for example, ET can be usednRepresenting the current exposure time, the current exposure gain may be represented by GnAnd (4) showing.
And S12, determining the exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and the target exposure value of the next frame image.
Specifically, the exposure parameters for capturing the next frame image are also the exposure time and the exposure gain, and for example, the exposure time for capturing the next frame image can be recorded as ETn+1The exposure gain for taking the next frame image can be noted as Gn+1. Then with the model for determining the exposure parameter (i.e., the mathematical model capable of characterizing the relationship between the exposure parameter and the exposure evaluation value — proportional model 1 ")" it can be found that:
Figure BDA0001678557420000111
wherein the exposure evaluation value B of the current frame imagenExposure time ET of current frame imagenExposure gain G of current frame imagenCan be determined by step S11, and the exposure time ET for capturing the next frame imagen+1And an exposure gain G for capturing the next frame imagen+1The calculated value is needed for this auto-exposure algorithm.
Preferably, the target exposure value of the next frame image is within a target evaluation value range, which is a range corresponding to normal image exposure. Specifically, in order to ensure the image quality of the frame image obtained by shooting, a target evaluation value range may be set: [ B ]L,BH]. If each frame image is normally exposed, the exposure evaluation value of the frame image falls within the target evaluation value range, so that the target exposure value of the next frame image can be determined according to the target evaluation range. Preferably, the target exposure value of the next frame image may be set to BavgI.e. by
Figure BDA0001678557420000121
Based on the above description, the exposure time and the exposure gain for photographing the next frame image can be determined using the mathematical model between the exposure parameter and the exposure evaluation value according to the exposure evaluation value of the current frame image, the exposure time of the current frame image, the exposure gain of the current frame image, and the target exposure value of the next frame image. Specifically, when determining the exposure parameters for capturing the next frame image, and when the exposure state of the current frame image is different, the method of determining the exposure parameters is also different, which is described in detail below:
first, referring to the flow shown in fig. 2, the determination of the exposure state of the current frame image based on the exposure evaluation value of the current frame image will be described, including the steps of:
s21, judging whether the exposure evaluation value is smaller than a preset exposure lower limit value; if yes, go to step S23; otherwise, step S22 is executed.
S22, judging whether the exposure evaluation value is larger than a preset exposure upper limit value; if yes, go to step S24; otherwise, step S25 is executed.
And S23, determining the exposure state of the current frame image as underexposure.
And S24, determining the exposure state of the current frame image as overexposure.
And S25, determining the exposure state of the current frame image as normal exposure.
In steps S21 to S25, the normal exposure in the present invention corresponds to an evaluation value range consisting of an exposure lower limit value and an exposure upper limit value, and the normal exposure indicates a better quality of an output image. If the exposure evaluation value of the current frame is determined to be smaller than the preset exposure lower limit value, it is indicated that the current frame image is under exposed, so that the current frame image is too dark, and the image quality is influenced; if the exposure evaluation value of the current frame is determined to be larger than the preset upper limit value, the current frame image is indicated to be overexposed, so that the current frame image is too bright, and the image quality is also affected. And if the exposure evaluation value of the current frame is determined to be in the evaluation value range, the image quality of the current frame is better. Both overexposure and underexposure affect the image quality, so in order to improve the quality of the next frame image, the exposure parameters for capturing the next frame image need to be determined according to some information of the current frame image.
It should be noted that the preset exposure upper limit value and the preset exposure lower limit value in the present invention may be determined according to actual situations, and the present invention does not limit these two values.
In the actual exposure control, if the exposure evaluation value of the current frame image is within the target evaluation value range, the exposure parameter for shooting the next frame image does not need to be adjusted; otherwise, the exposure parameters for capturing the next frame image need to be adjusted, and the target evaluation value of the next frame image can be BavgInstead, i.e. Bn+1=Bavg. According to the agreed exposure strategy: if the exposure is insufficient, the exposure parameters are adjusted to be large, namely: preferentially adjusting the exposure time ET; if the exposure is overexposed, the exposure parameters are adjusted to be small, namely: the exposure gain G is preferentially adjusted.
In an embodiment, when the current frame image is underexposed, the exposure parameters for capturing the next frame image may be determined according to the agreed exposure strategy, specifically according to the method shown in fig. 3, including the following steps:
and S31, if the current frame image is determined to be underexposed according to the exposure evaluation value of the current frame image, determining the current exposure gain as the exposure gain for shooting the next frame image.
In this step, according to the agreed exposure strategy, when the frame image is in an underexposure state, the exposure time ET should be preferentially increased, and the exposure gain is not adjusted, i.e., the current exposure gain G is adjustednExposure gain G determined for capturing the next frame imagen+1And is recorded as: gn+1=Gn
S32, determining a first ratio between the target exposure value of the next frame image and the exposure evaluation value of the current frame image.
In this step, the target exposure value in the next frame image is BavgExposure evaluation value of current frame image is BnIt can be determined that the first ratio is represented as:
Figure BDA0001678557420000131
And S33, determining the product of the first ratio and the current exposure time as the exposure time for shooting the next frame of image.
In this step, since the exposure gain G for capturing the next frame image has been determined in step S31n+1The target exposure value in the next frame image is BavgThen, the exposure time ET for capturing the next frame image may be determined based on the above equation (6) and the first ratio determined in step S32n+1It can be expressed as:
Figure BDA0001678557420000132
based on steps S31-S33, the exposure time and the exposure gain for shooting the next frame image can be quickly determined without changing the appointed exposure strategy, and because the exposure parameter for shooting the next frame image is determined according to the exposure evaluation value of the current frame image, the current exposure parameter and the target exposure value of the next frame image, and the target exposure value of the next frame image meets the range of the target evaluation value with normal exposure, when the exposure parameter for shooting the next frame image determined by the method is used for shooting, the obtained next frame image is not only normally exposed, but also the image quality is ensured.
In the practical application process, the exposure time and the exposure gain are generally not adjusted upwards or downwards all the time, so the invention sets the value ranges for both the exposure time and the exposure gain, for example, the value range of the exposure time is as follows: [ ETmin,ETmax](ii) a Wherein, ETminFor minimum exposure time, ETmaxIs the maximum exposure time; the value range of the exposure gain is as follows: [ G ]min,Gmax]Wherein G isminAt minimum exposure gain, GmaxIs the maximum exposure gain. Therefore, the exposure time and the exposure gain for taking the next frame image are determined based on the flow shown in fig. 3The determined exposure time ET also needs to be judgedn+1Whether or not in [ ETmin,ETmax]Within the range of values, the exposure gain G for capturing the next frame image is determined due to the process shown in FIG. 3n+1Is the current exposure gain GnAnd the current exposure gain GnIs the exposure parameter of the current frame image, so the current exposure gain GnThe value range of the exposure gain is as follows: [ G ]min,Gmax]In so doing, only the determined exposure time ET is determinedn+1Whether or not in [ ETmin,ETmax]The value range is within.
Preferably, if it is determined according to step S33 that the exposure time for capturing the next frame image is greater than the maximum exposure time, the exposure parameters for capturing the next frame image may be determined according to the flow shown in fig. 4, including the following steps:
s41, the maximum exposure time is determined as the exposure time for capturing the next frame image.
In this step, if ET determined in step S33 is determinedn+1>ETmaxIndicating that the exposure time for capturing the next frame image cannot be adjusted to ET determined in step S33n+1Therefore, the present invention proposes to adjust the maximum exposure time ETmaxThe exposure time determined for taking the next frame image is: ETn+1=ETmaxWhen the exposure time for shooting the next frame of image is a fixed value and corresponds to the proportional model 2, the proportional model 2 derived from the proportional model 1 and the formula (6) are used for determining the exposure gain G for shooting the next frame of imagen+1
And S42, determining a second ratio between the current exposure time and the maximum exposure time.
In this step, as can be seen from step S41, the maximum exposure time is the exposure time ET for capturing the next frame imagen+1=ETmaxBased on this, the expression for the second ratio can be found as:
Figure BDA0001678557420000151
and S43, determining the product of the first ratio, the second ratio and the current exposure gain as the exposure gain for shooting the next frame image.
Since the exposure time determined in step S41 for capturing the next frame image is the maximum exposure time, which is smaller than the exposure time determined in step S33, the exposure time determined in step S41 is reduced compared to the exposure time determined in step S33, so that compensation needs to be performed on the exposure gain, specifically: the exposure time for capturing the next frame image is determined as: ETn+1=ETmaxThen, based on the first ratio determined in step S32 and the second ratio determined in step S42, the exposure gain for capturing the next frame image can be determined by combining equation (6), that is:
Figure BDA0001678557420000152
when the exposure gain and the exposure time have value ranges, the process shown in fig. 4 is adopted, so that the determined exposure time for shooting the next frame of image is ensured to be within the corresponding value range, the exposure time and the exposure gain for shooting the next frame of image are also rapidly determined, and the image quality of the next frame of image shot by using the determined exposure parameters is ensured.
Preferably, if it is determined according to step S43 that the exposure gain for capturing the next frame image is greater than the maximum exposure gain, the maximum exposure gain is determined as the exposure gain for capturing the next frame image, and the exposure time for capturing the next frame image is the maximum exposure time.
In this step, since the exposure gain also has a value range, [ G ]min,Gmax]Therefore, the exposure gain G for capturing the next frame image is determined in step S42n+1Then, the determined G needs to be judgedn+1Whether it is in the value range [ G ] corresponding to the exposure gainmin,Gmax]If so, the exposure time and the exposure gain for shooting the next frame image are respectively as follows:
Figure BDA0001678557420000153
if determined Gn+1If the exposure gain is not within the value range, determining the maximum exposure gain as the exposure gain for shooting the next frame of image, wherein the determined exposure gain and exposure time for shooting the next frame of image are respectively as follows:
Figure BDA0001678557420000161
by executing the above process, the determined exposure time and exposure gain can be ensured to be in the respective corresponding value range, the exposure parameter for shooting the next frame of image can be quickly determined, and the image quality of the next frame of image shot by using the determined exposure parameter can be ensured.
In another embodiment, when the current frame image is overexposed, the exposure parameter for capturing the next frame image can be determined according to the method shown in fig. 5, which includes the following steps:
and S51, if the current frame image is determined to be overexposed according to the exposure evaluation value of the current frame image, determining the current exposure time as the exposure time for shooting the next frame image.
In this step, according to the agreed exposure strategy, when the frame image exposure state is overexposure, the exposure gain G should be preferentially reduced, and the exposure time is not adjusted, that is, the current exposure time ET isnDetermined as an exposure time ET for taking the next frame imagen+1And is recorded as: ETn+1=ETn
S52, determining a third ratio between the target exposure value of the next frame image and the exposure evaluation value of the current frame image.
In this step, since the flow shown in fig. 5 corresponds to the case where the current frame image is overexposed, the exposure evaluation value of the current frame image is different from the exposure evaluation value corresponding to the case where the current frame image is underexposed, although BnShown is an exposure evaluation value of the current frame image, but B in FIG. 5nAnd B in FIG. 3nThe values are not the same, the third ratio:
Figure BDA0001678557420000162
as opposed to the first ratio identified in fig. 3.
And S53, determining the product of the third ratio and the current exposure gain as the exposure gain for shooting the next frame image.
Specifically, since the exposure time ET for taking the next frame image has been determined in step S51n+1The target exposure value in the next frame image is BavgThen, the exposure gain G for capturing the next frame image may be determined based on the above equation (6) and the third ratio determined in step S52n+1It can be expressed as:
Figure BDA0001678557420000171
based on the flow shown in fig. 5, on the premise of not changing the agreed exposure strategy, the exposure time and exposure gain for shooting the next frame image can be quickly determined, and because the exposure parameter for shooting the next frame image is determined according to the exposure evaluation value of the current frame image, the current exposure parameter and the target exposure value of the next frame image, and the target exposure value of the next frame image meets the range of the target evaluation value with normal exposure, when the exposure parameter for shooting the next frame image determined by the method is used for shooting, the obtained next frame image is not only normally exposed, but also the image quality is ensured.
Preferably, if the exposure gain for capturing the next frame image determined according to step S53 is smaller than the minimum exposure gain, the exposure parameters for capturing the next frame image may be determined according to the flow shown in fig. 6, including the following steps:
s61, the minimum exposure gain is determined as the exposure gain for capturing the next frame image.
In practical application, the exposure time and the exposure gain have the same value range, and the value range of the exposure time is as follows: [ ETmin,ETmax](ii) a Wherein, ETminFor minimum exposure time, ETmaxIs the maximum exposure time; the value range of the exposure gain is as follows: [ G ]min,Gmax]Wherein G isminAt minimum exposure gain, GmaxFor the purpose of explaining the example of the maximum exposure gain, if the exposure gain G determined in step S53 is determinedn+1Less than minimum exposure gain GminIf it is determined that the exposure gain cannot be reduced to the exposure gain determined in step S53, the minimum exposure gain is determined as the exposure gain for capturing the next frame image, and is recorded as: gn+1=GminThat is, the exposure gain for capturing the next frame image is equal to a constant value corresponding to "proportional model 3", the exposure time ET for capturing the next frame image is determined by using "proportional model 3" and equation (6)n+1
And S62, determining a fourth ratio between the current exposure gain and the minimum exposure gain.
Based on step S61, the minimum exposure gain is an exposure gain for capturing the next frame image, that is: gn+1=GminBased on this, a fourth ratio can be obtained:
Figure BDA0001678557420000172
and S63, determining the product of the third ratio, the fourth ratio and the current exposure time as the exposure time for shooting the next frame image.
Since the exposure gain determined in step S61 for capturing the next frame image is the minimum exposure gain, which is greater than the exposure gain determined in step S53, the exposure gain determined in step S61 is increased compared to the exposure gain determined in step S53, and if the exposure state of the next frame image obtained by capturing the image using the exposure time in step S51 and the exposure gain in step S61 is likely to be overexposed, the exposure time needs to be adjusted, specifically: when an exposure gain for capturing an image of the next frame is determined as: gn+1=GminThen, the exposure gain determined at that time is used,Determining the exposure time for capturing the next frame image based on the third ratio determined in step S52, the fourth ratio determined in step S62, and equation (6), that is:
Figure BDA0001678557420000181
when the exposure gain and the exposure time have value ranges, the process shown in fig. 6 is adopted, so that the determined exposure gain for shooting the next frame of image is ensured to be within the corresponding value range, the exposure time and the exposure gain for shooting the next frame of image are also rapidly determined, and the image quality of the next frame of image shot by using the determined exposure parameters is ensured.
Preferably, if the exposure time for capturing the next frame image determined according to step S62 is less than the minimum exposure time, the minimum exposure time is determined as the exposure time for capturing the next frame image, and the exposure gain for capturing the next frame image is the minimum exposure gain at this time.
In this step, the exposure time also has a value range, [ ETmin,ETmax]Therefore, the exposure time ET for capturing the next frame image is determined in step S62n+1Then, the determined ET needs to be judgedn+1Whether the exposure time is within the corresponding value range [ ET ]min,ETmax]In the invention, since the exposure time is adjusted downward when the exposure gain cannot be adjusted under the condition of overexposure, the ET determined in step S62 only needs to be determinedn+1Whether the exposure time is less than the minimum exposure time or not, if not, the finally determined exposure time and exposure gain for shooting the next frame image are respectively as follows:
Figure BDA0001678557420000182
if determined ETn+1If the exposure time is less than the minimum exposure time, determining the minimum exposure time as the exposure time for shooting the next frame image, wherein the determined exposure gain and the determined exposure time for shooting the next frame image are respectively as follows:
Figure BDA0001678557420000183
by executing the above process, the determined exposure time and exposure gain can be ensured to be in the respective corresponding value range, the exposure parameter for shooting the next frame of image can be quickly determined, and the image quality of the next frame of image shot by using the determined exposure parameter can be ensured.
Preferably, in an example, the present invention may further pre-configure a model for determining an exposure parameter, where the model can implement the processes shown in fig. 2 to fig. 6, and the determined exposure evaluation value of the current frame image, the current exposure parameter and the target exposure value of the next frame image may be input into the model, and the model determines the exposure parameter of the next frame image according to the received exposure evaluation value of the current frame image, the current exposure parameter and the target exposure value of the next frame image, so as to implement fast determination of the exposure parameter of the next frame image.
According to the exposure parameter determining method provided by the invention, after the current frame image is obtained through shooting, the exposure evaluation value of the current frame image and the exposure parameter used for shooting the current frame image, namely the current exposure parameter, can be determined; and then determining the exposure parameter for shooting the next frame image according to the exposure evaluation value of the current frame image, the current exposure parameter and the target exposure value of the next frame image. In addition, since the target exposure value of the next frame image in the present invention is within the target evaluation value range which is a range corresponding to normal image exposure, the next frame image is captured using the exposure parameters for capturing the next frame image obtained based thereon, so that the image quality of the obtained next frame image is ensured.
Based on the same inventive concept, the embodiment of the present invention further provides an exposure parameter determination apparatus, and as the principle of the apparatus for solving the problem is similar to the exposure parameter determination method, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 7, a schematic structural diagram of an exposure parameter determining apparatus provided in an embodiment of the present invention includes:
a first determining unit 71, configured to determine an exposure evaluation value of the current frame image and a current exposure parameter, where the exposure evaluation value is obtained by performing exposure evaluation on the current frame image;
a second determining unit 72, configured to determine an exposure parameter for capturing an image of a next frame according to the exposure evaluation value, the current exposure parameter, and a target exposure value of the image of the next frame, where the target exposure value of the image of the next frame is within a target evaluation value range, and the target evaluation value range is a range corresponding to normal exposure of the image.
Preferably, the exposure parameters include exposure time and exposure gain.
Preferably, the second determining unit 72 is specifically configured to determine the current exposure gain as the exposure gain for capturing the next frame image if it is determined that the current frame image is underexposed according to the exposure evaluation value; and determining a first ratio between the target exposure value and the exposure evaluation value of the next frame image; and determining the product of the first ratio and the current exposure time as the exposure time for shooting the next frame of image.
Further, the second determining unit 72 is further configured to determine the maximum exposure time as the exposure time for capturing the next frame image if the determined exposure time for capturing the next frame image is greater than the maximum exposure time; determining a second ratio between the current exposure time and the maximum exposure time; and determining the product of the first ratio, the second ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
Further, the second determining unit 72 is further configured to determine the maximum exposure gain as the exposure gain for capturing the next frame image if the determined exposure gain for capturing the next frame image is greater than the maximum exposure gain.
Preferably, the second determining unit 72 is specifically configured to determine the current exposure time as the exposure time for capturing the next frame image if the overexposure of the current frame image is determined according to the exposure evaluation value; and determining a third ratio between the target exposure value of the next frame image and the exposure evaluation value; and determining the product of the third ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
Further, the second determining unit 72 is further configured to determine the minimum exposure gain as the exposure gain for capturing the next frame image if the determined exposure gain for capturing the next frame image is smaller than the minimum exposure gain; determining a fourth ratio between the current exposure gain and the minimum exposure gain; and determining the product of the third ratio, the fourth ratio and the current exposure time as the exposure time for shooting the next frame of image.
Further, the second determining unit 72 is further configured to determine the minimum exposure time as the exposure time for capturing the next frame image if the determined exposure time for capturing the next frame image is less than the minimum exposure time.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same or in multiple pieces of software or hardware in practicing the invention.
Having described the exposure parameter determination method, apparatus, and readable medium according to exemplary embodiments of the present invention, a computing apparatus according to another exemplary embodiment of the present invention is described next.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, a computing device according to the present invention may comprise at least one processing unit, and at least one memory unit. Wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform the steps in the exposure parameter determination method according to various exemplary embodiments of the present invention described above in this specification. For example, the processing unit may perform the exposure parameter determination method in steps S11 to S12 as shown in fig. 1.
The computing apparatus 81 according to this embodiment of the present invention is described below with reference to fig. 8. The computing device 81 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, the computing apparatus 81 is in the form of a general purpose computing device. Components of computing device 81 may include, but are not limited to: the at least one processing unit 811, the at least one memory unit 812, and a bus 813 that connects the various system components (including the memory unit 812 and the processing unit 111).
Bus 813 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 812 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)8121 and/or cache memory 8122, and may further include Read Only Memory (ROM) 8123.
Storage unit 812 may also include a program/utility 8125 having a set (at least one) of program modules 8124, such program modules 8124 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Computing device 81 may also communicate with one or more external devices 814 (e.g., keyboard, pointing device, etc.), and may also communicate with one or more devices that enable a user to interact with computing device 81, and/or with any devices that enable computing device 81 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 815. Also, computing device 81 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through network adapter 816. As shown, network adapter 816 communicates with other modules for computing device 81 over bus 813. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 81, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, various aspects of the exposure parameter determination method provided by the present invention may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the exposure parameter determination method according to various exemplary embodiments of the present invention described above in this specification when the program product is run on the computer device, for example, the computer device may perform the exposure parameter determination method in steps S11 to S12 shown in fig. 1.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for the exposure parameter determination method of the embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a computing device. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus 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 invention have been described, additional variations and modifications in those 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 preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (14)

1. An exposure parameter determination method, comprising:
determining an exposure evaluation value and a current exposure parameter of the current frame image, wherein the exposure evaluation value is obtained by performing exposure evaluation on the current frame image;
determining an exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and a target exposure value of the next frame image, wherein the target exposure value of the next frame image is within a target evaluation value range, and the target evaluation value range is a range corresponding to normal image exposure,
wherein the exposure parameters include an exposure time and an exposure gain,
wherein, determining the exposure parameter for shooting the next frame image according to the exposure evaluation value, the current exposure parameter and the target exposure value of the next frame image comprises:
if the current frame image is determined to be overexposed according to the exposure evaluation value, determining the current exposure time as the exposure time for shooting the next frame image;
determining a first ratio between a target exposure value of the next frame image and the exposure evaluation value;
and determining the product of the first ratio and the current exposure gain as the exposure gain for shooting the next frame image.
2. The method of claim 1, wherein determining an exposure parameter for capturing an image of a next frame based on the exposure evaluation value, the current exposure parameter, and a target exposure value of the image of the next frame, further comprises:
if the current frame image is determined to be underexposed according to the exposure evaluation value, determining the current exposure gain as the exposure gain for shooting the next frame image; and
determining a second ratio between the target exposure value and the exposure evaluation value of the next frame image; and are
And determining the product of the second ratio and the current exposure time as the exposure time for shooting the next frame of image.
3. The method of claim 2, further comprising:
if the determined exposure time for shooting the next frame of image is greater than the maximum exposure time, determining the maximum exposure time as the exposure time for shooting the next frame of image; and are
Determining a third ratio between a current exposure time and the maximum exposure time;
and determining the product of the second ratio, the third ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
4. The method of claim 3, further comprising:
and if the determined exposure gain for shooting the next frame image is larger than the maximum exposure gain, determining the maximum exposure gain as the exposure gain for shooting the next frame image.
5. The method of claim 1, further comprising:
if the determined exposure gain for shooting the next frame image is smaller than the minimum exposure gain, determining the minimum exposure gain as the exposure gain for shooting the next frame image; and are
Determining a fourth ratio between the current exposure gain and the minimum exposure gain;
and determining the product of the first ratio, the fourth ratio and the current exposure time as the exposure time for shooting the next frame of image.
6. The method of claim 5, further comprising:
and if the determined exposure time for shooting the next frame image is less than the minimum exposure time, determining the minimum exposure time as the exposure time for shooting the next frame image.
7. An exposure parameter determination apparatus, characterized by comprising:
the device comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining an exposure evaluation value and a current exposure parameter of a current frame image, and the exposure evaluation value is obtained by performing exposure evaluation on the current frame image;
a second determining unit configured to determine an exposure parameter for capturing an image of a next frame based on the exposure evaluation value, the current exposure parameter, and a target exposure value of the image of the next frame, the target exposure value of the image of the next frame being within a target evaluation value range, the target evaluation value range being a range corresponding to normal exposure of the image,
wherein the exposure parameters include an exposure time and an exposure gain,
the second determining unit is further used for determining the current exposure time as the exposure time for shooting the next frame image if the current frame image is determined to be overexposed according to the exposure evaluation value; and determining a first ratio between the target exposure value of the next frame image and the exposure evaluation value; and determining the product of the first ratio and the current exposure gain as the exposure gain for shooting the next frame image.
8. The apparatus of claim 7,
the second determining unit is further configured to determine a current exposure gain as an exposure gain for shooting a next frame image if it is determined that the current frame image is underexposed according to the exposure evaluation value; and determining a second ratio between the target exposure value of the next frame image and the exposure evaluation value; and determining the product of the second ratio and the current exposure time as the exposure time for shooting the next frame of image.
9. The apparatus of claim 8,
the second determining unit is further configured to determine, if the determined exposure time for capturing the next frame image is greater than a maximum exposure time, the maximum exposure time as the exposure time for capturing the next frame image; determining a third ratio between the current exposure time and the maximum exposure time; and determining the product of the second ratio, the third ratio and the current exposure gain as the exposure gain for shooting the next frame of image.
10. The apparatus of claim 9,
the second determining unit is further configured to determine the maximum exposure gain as the exposure gain for capturing the next frame image if the determined exposure gain for capturing the next frame image is greater than the maximum exposure gain.
11. The apparatus of claim 7,
the second determining unit is further configured to determine the minimum exposure gain as the exposure gain for capturing the next frame image if the determined exposure gain for capturing the next frame image is smaller than the minimum exposure gain; determining a fourth ratio between the current exposure gain and the minimum exposure gain; and determining the product of the first ratio, the fourth ratio and the current exposure time as the exposure time for shooting the next frame of image.
12. The apparatus of claim 11,
the second determining unit is further configured to determine the minimum exposure time as the exposure time for capturing the next frame image if the determined exposure time for capturing the next frame image is less than the minimum exposure time.
13. A computer-readable medium having stored thereon computer-executable instructions for performing the method of any one of claims 1 to 6.
14. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 6.
CN201810539956.7A 2018-05-30 2018-05-30 Exposure parameter determination method and device and readable medium Active CN108769542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810539956.7A CN108769542B (en) 2018-05-30 2018-05-30 Exposure parameter determination method and device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810539956.7A CN108769542B (en) 2018-05-30 2018-05-30 Exposure parameter determination method and device and readable medium

Publications (2)

Publication Number Publication Date
CN108769542A CN108769542A (en) 2018-11-06
CN108769542B true CN108769542B (en) 2021-06-01

Family

ID=64004301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810539956.7A Active CN108769542B (en) 2018-05-30 2018-05-30 Exposure parameter determination method and device and readable medium

Country Status (1)

Country Link
CN (1) CN108769542B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862269B (en) * 2019-02-18 2020-07-31 Oppo广东移动通信有限公司 Image acquisition method and device, electronic equipment and computer readable storage medium
CN110213498B (en) * 2019-05-29 2021-04-23 Oppo广东移动通信有限公司 Image generation method and device, electronic equipment and computer readable storage medium
CN110581958A (en) * 2019-10-25 2019-12-17 Oppo广东移动通信有限公司 control method, electronic device, and storage medium
CN110838149B (en) * 2019-11-25 2020-10-23 创新奇智(广州)科技有限公司 Camera light source automatic configuration method and system
CN110798626B (en) * 2019-12-02 2020-07-28 重庆紫光华山智安科技有限公司 Automatic exposure adjusting method, system and equipment
CN111327827B (en) * 2020-03-05 2023-12-26 瞬联软件科技(北京)有限公司 Shooting scene recognition control method and device and shooting equipment
CN111586312B (en) * 2020-05-14 2022-03-04 Oppo(重庆)智能科技有限公司 Automatic exposure control method and device, terminal and storage medium
CN113259600B (en) * 2021-05-11 2022-08-05 北京地平线机器人技术研发有限公司 Exposure parameter configuration method and device, electronic equipment and medium
CN113411510B (en) * 2021-06-21 2022-08-12 北京清影机器视觉技术有限公司 Camera automatic exposure algorithm based on image quality evaluation and red hot forging
CN113780090B (en) * 2021-08-12 2023-07-28 荣耀终端有限公司 Data processing method and device
CN113779588B (en) * 2021-08-12 2023-03-24 荣耀终端有限公司 Face recognition method and device
CN115035324A (en) * 2022-05-13 2022-09-09 电子科技大学 Self-adaption method of multi-azimuth algorithm model
CN115174820B (en) * 2022-09-06 2022-11-25 安徽科大擎天科技有限公司 Quick adjusting method for automatic exposure of camera

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394482A (en) * 2008-09-09 2009-03-25 任晓慧 CMOS image sensor and automatic exposure control method
CN101399919A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Method for automatic exposure and automatic gain regulation and method thereof
CN104954696A (en) * 2014-03-27 2015-09-30 南京理工大学 Automatic EMCCD gain adjusting method
CN105979162A (en) * 2016-07-21 2016-09-28 凌云光技术集团有限责任公司 Automatic exposure adjustment method and device for extensible dynamic range images
CN106303271A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 A kind of picture exposure method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015011320A (en) * 2013-07-02 2015-01-19 キヤノン株式会社 Imaging device and control method of the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399919A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Method for automatic exposure and automatic gain regulation and method thereof
CN101394482A (en) * 2008-09-09 2009-03-25 任晓慧 CMOS image sensor and automatic exposure control method
CN104954696A (en) * 2014-03-27 2015-09-30 南京理工大学 Automatic EMCCD gain adjusting method
CN105979162A (en) * 2016-07-21 2016-09-28 凌云光技术集团有限责任公司 Automatic exposure adjustment method and device for extensible dynamic range images
CN106303271A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 A kind of picture exposure method and terminal

Also Published As

Publication number Publication date
CN108769542A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108769542B (en) Exposure parameter determination method and device and readable medium
CN108419025B (en) Exposure parameter adjusting method and device and readable medium
CN111418201B (en) Shooting method and equipment
US9420166B2 (en) Method and apparatus for enhanced automatic adjustment of focus, exposure and white balance in digital photography
CN105578068B (en) A kind of generation method of high dynamic range images, device and mobile terminal
KR101275454B1 (en) System and method to estimate autoexposure control and auto white balance
JP4482037B2 (en) Digital imaging exposure
CN112118388B (en) Image processing method, image processing device, computer equipment and storage medium
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
US9380218B2 (en) Highlight exposure metric and its applications
JP2006025411A (en) Method and apparatus for correcting automatic exposure
EP3162048B1 (en) Exposure metering based on background pixels
JP2010157925A (en) Imaging apparatus, control method thereof and program
US11323632B2 (en) Electronic device and method for increasing exposure control performance of a camera by adjusting exposure parameter of the camera
CN111741228B (en) Exposure adjusting method and device for panoramic image
US20180167594A1 (en) Image pickup apparatus and method of controlling an image pickup apparatus
US20170094145A1 (en) Image capturing apparatus and image capturing method
CN108765346B (en) Auxiliary focusing method and device and readable medium
CN114785966B (en) Exposure control method, shooting processing method, device and medium
WO2024119626A1 (en) Exposure control method and apparatus for global rolling shutter, and electronic device
CN113422893B (en) Image acquisition method and device, storage medium and mobile terminal
CN115379128A (en) Exposure control method and device, computer readable medium and electronic equipment
CN113347352B (en) Shooting parameter adjusting method and device, electronic equipment and computer storage medium
JP2012004621A (en) Image processing device, image processing method and image capturing apparatus
KR101617553B1 (en) Method and Apparatus for Minimum shot auto exposure using noise-aware linear model

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
TA01 Transfer of patent application right

Effective date of registration: 20200311

Address after: 101300, No. two, 1 road, Shunyi Park, Zhongguancun science and Technology Park, Beijing, Shunyi District

Applicant after: Beijing Tucson wisdom Technology Co., Ltd.

Address before: 101300, No. two, 1 road, Shunyi Park, Zhongguancun science and Technology Park, Beijing, Shunyi District

Applicant before: TuSimple

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant