CN108419025B - Exposure parameter adjusting method and device and readable medium - Google Patents

Exposure parameter adjusting method and device and readable medium Download PDF

Info

Publication number
CN108419025B
CN108419025B CN201810540390.XA CN201810540390A CN108419025B CN 108419025 B CN108419025 B CN 108419025B CN 201810540390 A CN201810540390 A CN 201810540390A CN 108419025 B CN108419025 B CN 108419025B
Authority
CN
China
Prior art keywords
exposure
current
frame image
gain
adjustment
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
CN201810540390.XA
Other languages
Chinese (zh)
Other versions
CN108419025A (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 Future Technology Co Ltd
Original Assignee
Beijing Tusimple Future 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 Future Technology Co Ltd filed Critical Beijing Tusimple Future Technology Co Ltd
Priority to CN201810540390.XA priority Critical patent/CN108419025B/en
Publication of CN108419025A publication Critical patent/CN108419025A/en
Application granted granted Critical
Publication of CN108419025B publication Critical patent/CN108419025B/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

Landscapes

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

Abstract

The invention discloses an exposure parameter adjusting method, an exposure parameter adjusting device and a readable medium, which belong to the technical field of image processing, wherein in the method and the device provided by the invention, an exposure evaluation value of a current frame image is determined, and an exposure state of the current frame image is determined according to the exposure evaluation value; acquiring the exposure state of the previous frame of image, and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame of image; determining the adjustment type of exposure parameters according to the exposure state of the current frame image and the exposure state of the previous frame image; and adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame of image. Compared with the prior art that the exposure parameter is adjusted only through the exposure state of the current frame image, the method for adjusting the current exposure parameter effectively prevents the oscillation phenomenon and ensures the image quality.

Description

Exposure parameter adjusting 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 adjusting exposure parameters, 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 the image quality, and the conventional AE exposure parameter adjustment method directly adjusts the exposure parameters according to the exposure evaluation value of the current frame image, but the oscillation phenomenon of repeated brightness and darkness changes of the image occurs.
Therefore, when the imaging device adopts the auto-exposure algorithm, how to prevent the oscillation phenomenon is one of the technical problems to be solved.
Disclosure of Invention
The embodiment of the invention provides an exposure parameter adjusting method, an exposure parameter adjusting device and a readable medium, which are used for preventing oscillation phenomenon and ensuring the quality of an output image when an imaging device adopts an automatic exposure algorithm.
In a first aspect, an embodiment of the present invention provides an exposure parameter adjusting method, including:
determining an exposure evaluation value of the current frame image, and determining the exposure state of the current frame image according to the exposure evaluation value; and
acquiring the exposure state of the previous frame of image, and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame of image; and are
Determining an exposure parameter adjustment type according to the exposure state of the current frame image and the exposure state of the previous frame image; and are
And adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame of image.
Therefore, compared with the prior art that the exposure state of the current frame image is adopted to adjust the exposure parameters, the method can not only effectively prevent the oscillation phenomenon, but also ensure the image quality of the frame image obtained by adopting the method.
Preferably, determining the exposure state of the current frame image according to the exposure evaluation value specifically includes:
if the exposure evaluation value is smaller than a preset exposure lower limit value, determining that the exposure state of the current frame image is underexposed; and
and if the exposure evaluation value is larger than the preset exposure upper limit value, determining that the exposure state of the current frame image is overexposure.
The exposure state of the current frame image can be determined quickly by introducing the exposure upper and lower limit values.
Preferably, the exposure parameters include exposure time and exposure gain; the exposure parameter adjustment type comprises an insufficient and excessive class and an excessive and insufficient class, wherein the insufficient and excessive class is used for representing that the exposure state of the current frame image is overexposed and the exposure state of the previous frame image is underexposed; the overexposure class is used for representing that the exposure state of the current frame image is underexposure and the exposure state of the previous frame image is overexposure.
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.
Further, if the determined exposure parameter adjustment type is an insufficient and excessive type, adjusting the current exposure parameter according to the exposure parameter adjustment type, the exposure parameter adjusted based on the exposure state of the previous frame of image, and the adjustment direction, specifically including:
if the adjusted exposure parameter is determined to be exposure gain and the adjustment direction is adjusted to be larger, reducing the current exposure time;
if the adjusted exposure parameter is determined to be the exposure time and the adjustment direction is adjusted to be larger, judging whether the current exposure gain is the minimum exposure gain or not; if not, reducing the current exposure gain; if so, reducing the adjustment step length of the exposure time, and reducing the current exposure time by using the reduced adjustment step length.
When the previous frame image is underexposed and the current frame image is overexposed, the method can effectively prevent the oscillation phenomenon from occurring, and simultaneously can not influence the appointed exposure strategy to the maximum extent.
Preferably, if the determined exposure parameter adjustment type is an over-insufficient type, adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame image, specifically including:
if the adjusted exposure parameter is determined to be exposure time and the adjustment direction is adjusted to be small, increasing the current exposure gain;
if the adjusted exposure parameter is determined to be exposure gain and the adjustment direction is adjusted to be small, judging whether the current exposure time is the maximum exposure time; if not, increasing the current exposure time; if so, reducing the adjustment step length of the exposure gain, and increasing the current exposure gain by using the reduced adjustment step length.
Under the conditions of overexposure of the previous frame image and underexposure of the current frame image, the method can effectively prevent the oscillation phenomenon and can not influence the agreed exposure strategy to the maximum extent.
Optionally, the exposure parameter adjustment type further includes an over class, where the over class is used to represent that the exposure states of the current frame image and the previous frame image are both over exposure; and the method, further comprising:
if the determined exposure parameter adjustment type is an excessive type, judging whether the current exposure gain is the minimum exposure gain or not; if not, reducing the current exposure gain; and if so, reducing the current exposure time.
Under the condition that both the current frame image and the previous frame image are overexposed, the method can effectively prevent the oscillation phenomenon from occurring, and can not influence the appointed exposure strategy to the maximum extent.
Optionally, the exposure parameter adjustment type further includes an insufficiency class, and the insufficiency class is used for representing that the exposure states of the current frame image and the previous frame image are both under-exposure; and the method, further comprising:
if the determined exposure parameter adjustment type is not sufficient, judging whether the current exposure time is the maximum exposure time; if not, increasing the current exposure time; if yes, the current exposure gain is increased.
Under the condition that the current frame and the previous frame of images are both underexposed, the method can effectively prevent the oscillation phenomenon and can not influence the appointed exposure strategy to the maximum extent.
In a second aspect, an embodiment of the present invention provides an exposure parameter adjusting apparatus, including:
the first determining unit is used for determining an exposure evaluation value of the current frame image and determining the exposure state of the current frame image according to the exposure evaluation value;
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring the exposure state of the previous frame image, and the exposure parameter and the adjustment direction which are adjusted based on the exposure state of the previous frame image;
the second determining unit is used for determining the adjustment type of the exposure parameter according to the exposure state of the current frame image and the exposure state of the previous frame image;
and the adjusting unit is used for adjusting the current exposure parameter according to the exposure parameter adjusting type and the exposure parameter and adjusting direction adjusted based on the exposure state of the previous frame image.
Preferably, the first determining unit is specifically configured to determine that the exposure state of the current frame image is underexposed if it is determined that the exposure evaluation value is smaller than a preset exposure lower limit value; and if the exposure evaluation value is determined to be larger than a preset exposure upper limit value, determining that the exposure state of the current frame image is overexposure.
Preferably, the exposure parameters include exposure time and exposure gain; the exposure parameter adjustment type comprises an insufficient and excessive class and an excessive and insufficient class, wherein the insufficient and excessive class is used for representing that the exposure state of the current frame image is overexposed and the exposure state of the previous frame image is underexposed; the overexposure class is used for representing that the exposure state of the current frame image is underexposure and the exposure state of the previous frame image is overexposure.
Further, the adjusting unit is specifically configured to, if the exposure parameter adjustment type determined by the second determining unit is an insufficient and excessive type, decrease the current exposure time if the adjusted exposure parameter is determined to be an exposure gain and the adjustment direction is increased; if the adjusted exposure parameter is determined to be the exposure time and the adjustment direction is adjusted to be larger, judging whether the current exposure gain is the minimum exposure gain or not; if not, reducing the current exposure gain; if so, reducing the adjustment step length of the exposure time, and reducing the current exposure time by using the reduced adjustment step length.
Preferably, the adjusting unit is specifically configured to, if the exposure parameter adjustment type determined by the second determining unit is an excessive underclass, increase the current exposure gain if the adjusted exposure parameter is determined to be the exposure time and the adjustment direction is turned down; if the adjusted exposure parameter is determined to be exposure gain and the adjustment direction is adjusted to be small, judging whether the current exposure time is the maximum exposure time; if not, increasing the current exposure time; if so, reducing the adjustment step length of the exposure gain, and increasing the current exposure gain by using the reduced adjustment step length.
Preferably, the exposure parameter adjustment type further includes an over-class, where the over-class is used to represent that the exposure states of the current frame image and the previous frame image are both over-exposure; and
the adjusting unit is further configured to determine whether the current exposure gain is the minimum exposure gain if the exposure parameter adjustment type determined by the second determining unit is an excessive type; if not, reducing the current exposure gain; and if so, reducing the current exposure time.
Optionally, the exposure parameter adjustment type further includes an insufficiency class, and the insufficiency class is used for representing that the exposure states of the current frame image and the previous frame image are both under-exposure; and
the adjusting unit is further configured to determine whether the current exposure time is the maximum exposure time if the exposure parameter adjustment type determined by the second determining unit is an underfoot; if not, increasing the current exposure time; if yes, the current exposure gain is increased.
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 adjustment method provided in this 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 adjustment methods provided herein.
The invention has the beneficial effects that:
the exposure parameter adjusting method, the device and the readable medium provided by the embodiment of the invention determine the exposure evaluation value of the current frame image, and determine the exposure state of the current frame image according to the exposure evaluation value; acquiring the exposure state of the previous frame of image, and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame of image; determining the adjustment type of exposure parameters according to the exposure state of the current frame image and the exposure state of the previous frame image; and adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame image. The exposure state of the previous frame image, the exposure parameter and the adjustment direction adjusted based on the previous frame image and the exposure state of the current frame image are used for adjusting the current exposure parameter, and compared with the prior art that the exposure parameter is adjusted only through the exposure state of the current frame image, the shock phenomenon is effectively prevented.
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 diagram of a model of a concussion phenomenon in the prior art;
FIG. 2 is a schematic flow chart illustrating an exposure parameter adjusting method according to an embodiment of the present invention;
FIG. 3 is a schematic flowchart illustrating a process of determining an exposure status of a current frame image according to the exposure evaluation value according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating adjustment of a current exposure parameter under the insufficient and excessive conditions according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart illustrating adjustment of a current exposure parameter under an excessive and insufficient condition according to an embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating adjustment of a current exposure parameter under the excessive condition according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart illustrating adjustment of a current exposure parameter under the condition of the deficiency provided by the embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an exposure parameter adjusting apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a computing device for implementing an exposure parameter adjustment method according to an embodiment of the present invention.
Detailed Description
The exposure parameter adjusting method, the exposure parameter adjusting device and the readable medium provided by the embodiment of the invention are used for preventing oscillation phenomenon when the imaging equipment adopts an automatic exposure algorithm, and ensuring the quality of an output image.
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), refers to the Time interval between the shutter being opened and closed in order to project light onto the photosensitive surface of the photographic photosensitive material. 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. The exposure gain in the present invention includes an analog exposure gain and a digital exposure gain.
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.
The general flow of the existing automatic exposure algorithm is as follows: and calculating an exposure evaluation value of the current frame image, and if the exposure evaluation value is not in a reasonable exposure range, adjusting the exposure parameters. The conventional AE exposure parameter adjusting method generally judges based on an exposure evaluation value of a current frame, and then adjusts an exposure parameter according to a judgment result to ensure that ideal exposure parameters are adopted for shooting. In the adjusting process of the exposure parameter of the AE, in order to meet the requirement of a high-speed video stream, the adjustment step length of the exposure parameter needs to be increased to realize rapid adjustment of the exposure parameter, so that a phenomenon that a shot image is repeatedly bright and dark is caused, which is called a shaking phenomenon.
In order to better understand the exposure parameter adjustment method provided by the present invention, a model of the oscillation phenomenon in the prior art is first introduced with reference to fig. 1: the exposure states defined in the prior art are: 1) the exposure is normal, also referred to as "normal state", that is, the exposure evaluation value of the frame image is within an ideal range: [ lower limit value, upper limit value ]; 2) underexposure, also referred to as an "underexposed state", i.e., the exposure evaluation value of the frame image is lower than the lower limit value of the ideal range; 3) overexposure, also referred to as an "overexposed state", is that the exposure evaluation value of the frame image is higher than the upper limit value of the ideal range.
The oscillation model shown in fig. 1 first analyzes the cause of the oscillation phenomenon: assuming that the current frame image is in an "insufficient state", representing that the current frame image is too dark, it can be determined that the exposure evaluation value of the current frame image is smaller than the lower limit value, which indicates that the currently adopted exposure parameter is unreasonable, and the exposure parameter values (exposure time ET and exposure gain G) need to be preferentially adjusted according to the agreed exposure strategy, and the adjustment process is as follows:
if the current exposure time is less than the maximum exposure time, ET < ETmaxAnd the current exposure gain is the minimum exposure gain, i.e., G ═ GminIf the current exposure time is increased, the exposure state of the next frame image will enter the "transition state" shown in fig. 1, and the adjustment step length ET of the exposure time ET will be describedstepToo large. After entering the "excessive state", according to the agreed exposure strategy, in order to ensure the image quality of the next frame, the current exposure parameter value needs to be reduced, i.e. the exposure gain G is preferentially reduced, but because the exposure gain G is G at this timeminTherefore, the exposure time ET needs to be reduced, and the next frame of image obtained enters an "insufficient state", and the oscillation phenomenon occurs in such a cycle.
If the current exposure time is the maximum exposure time, i.e. ET ═ ETmaxAnd the current exposure gain is less than the maximum exposure gain, i.e. G < GmaxIf the exposure gain is increased, the next frame image will enter the "transition state" shown in FIG. 1, indicating that the exposure gain G is adjusted by the step length GstepToo large. After the next frame image enters into the "transition state", according to the agreed exposure strategy, in order to ensure the image quality of the next frame image obtained, the exposure parameter needs to be reduced, i.e. the exposure gain G is preferentially reduced, but due to the adjustment step length G of the exposure gain G, the exposure gain G is adjustedstepToo large, which causes the next frame of image to enter the "insufficient state" again, and the oscillation phenomenon occurs in such a cycle.
In order to solve the problem that an exposure parameter adjusting method adopted in the prior art is easy to generate oscillation phenomenon, the embodiment of the invention provides a solution, the exposure parameter adjusting method provided by the invention is applied to an automatic algorithm of imaging equipment, the imaging equipment is taken as an example for explanation, and the camera can determine an exposure evaluation value of a current frame image in an automatic exposure mode and determine an exposure state of the current frame image according to the exposure evaluation value; acquiring the exposure state of the previous frame of image, and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame of image; determining the adjustment type of exposure parameters according to the exposure state of the current frame image and the exposure state of the previous frame image; and adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame of image, so that the next frame of image is shot by using the adjusted exposure parameter, the oscillation phenomenon is prevented, and the image quality of the obtained next frame of image is ensured.
It should be noted that the exposure parameter adjusting method provided by the present invention can also be applied to other devices with a shooting function, such as a mobile terminal, and the like, where the mobile terminal can be a mobile phone, a tablet, a notebook computer, and the like.
As shown in fig. 2, a schematic flow chart of an exposure parameter adjusting method according to an embodiment of the present invention may include the following steps:
s11, determining the exposure evaluation value of the current frame image, and determining the exposure state of the current frame image according to the exposure evaluation value.
Specifically, the exposure evaluation value of each frame image may be determined based on the image brightness mean value, the distribution of the image brightness histogram, the image target entropy, and the like, for example, the brightness mean value of the current frame image is determined as the exposure evaluation value of the current frame image.
Preferably, the determination of the exposure state of the current frame image according to the exposure evaluation value may be performed according to the flow shown in fig. 3, 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 of image, the current exposure parameters need to be adjusted.
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.
And S12, acquiring the exposure state of the previous frame image and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame image.
Specifically, the exposure state of the previous frame image may also be determined according to the flow shown in fig. 3, and after determining the exposure state of the previous frame image according to the exposure evaluation value of the previous frame image according to the flow shown in fig. 3, the exposure state of the previous frame image is recorded. When the exposure state of the previous frame image is determined, in order to ensure the image quality of the next frame image, namely the current frame image, the method provided by the invention is also adopted to adjust the exposure parameters, and the adjusted exposure parameters, the adjustment direction and the like can be recorded on the basis. In this way, the exposure state of the previous frame image and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame image can be acquired.
And S13, determining the adjustment type of the exposure parameter according to the exposure state of the current frame image and the exposure state of the previous frame image.
Preferably, the exposure parameter adjustment types in the present invention include an underexposure class and an overexposure class, where the underexposure class is used to represent that the exposure state of the current frame image is overexposure and the exposure state of the previous frame image is underexposure; the overexposure class is used for representing that the exposure state of the current frame image is underexposure and the exposure state of the previous frame image is overexposure.
And S14, adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame image.
Specifically, when the exposure parameter adjustment types are different, the adjustment strategy for adjusting the current exposure parameter value is also different, which is described in detail below:
if the exposure parameter adjustment type is an insufficient and excessive type, that is, the current frame image is in an "excessive state", and the previous frame image is in an "insufficient state", which may also be referred to as an "insufficient and excessive state", because the current frame image is overexposed, the exposure parameter needs to be reduced according to an agreed exposure strategy, but in order to prevent the occurrence of the oscillation phenomenon, the reason for changing from the "insufficient state" to the "excessive state" may be analyzed by the present invention, and then the current exposure parameter is adjusted according to the analysis result, and specifically, the flow shown in fig. 4 may be executed to adjust the current exposure parameter, which includes the following steps:
s31, judging whether the exposure parameter adjusted based on the exposure state of the previous frame image is exposure gain or exposure time; if it is determined that the adjusted exposure parameter is the exposure gain, performing step S36; if it is determined that the adjusted exposure parameter is the exposure time, step S32 is executed.
Specifically, when the automatic exposure algorithm is adopted, the exposure parameter is adjusted before each frame of image is shot, so that the exposure parameter after the previous frame of image is obtained, that is, the exposure parameter adjusted based on the exposure state of the previous frame of image is also adjusted before the current frame of image is obtained according to the exposure state of the previous frame of image, the exposure parameter adjusted based on the exposure state of the previous frame of image, and therefore, in order to adjust the exposure parameter after the current frame of image is shot, whether the obtained exposure parameter adjusted based on the exposure state of the previous frame of image is the exposure gain or the exposure time can be judged.
S32, if the adjusting direction of the adjusted exposure time is increasing, judging whether the current exposure gain is the minimum exposure gain, if not, executing the step S33; if yes, go to step S34.
When it is determined in step S31 that the exposure parameter adjusted based on the exposure state of the previous frame image is the exposure time and the adjustment direction is increased, it indicates that the overexposure phenomenon occurs in the current frame image obtained due to the fact that the exposure time is increased by the adjustment step with the larger exposure time after the previous frame image is obtained. Because the current frame image is over-exposed, the exposure gain should be preferentially reduced according to the agreed exposure strategy, but before that, it is necessary to judge whether the current exposure gain is GminSince only the current exposure gain is not GminThe current exposure gain G can be reduced.
And S33, reducing the current exposure gain.
This step is performed to indicate that the current exposure gain is not GminAt this time, the current exposure gain is adjusted to be smaller according to the agreed exposure strategy and preferably according to the adjustment step length of the current exposure gain, so that the agreed exposure strategy design principle is not influenced to the maximum extent, and because the complexity of an automatic exposure algorithm is increased by modifying the agreed exposure strategy, the state confusion and the unstable automatic exposure effect can be caused.
And S34, reducing the adjustment step length of the exposure time.
This step is performed to indicate that the current exposure gain has reached GminIf the exposure time cannot be adjusted downward, the exposure time should be adjusted, but in order to prevent oscillation caused by decreasing the exposure time according to the current adjustment step length of the exposure time, the invention proposes to first decrease the adjustment step length ET of the exposure timestepThen, step S35 is executed again.
And S35, reducing the current exposure time by using the reduced adjustment step size.
Specifically, the current exposure time is adjusted to be smaller by using the adjustment step length of the reduced exposure time, so that the exposure evaluation value of the next frame image obtained when the next frame image is shot by using the adjusted exposure time is ensured to be closer to the evaluation value range and not directly enter an insufficient state, and the oscillation phenomenon is effectively prevented.
S36, if the adjustment direction of the adjusted exposure gain is adjusted to be larger, the current exposure time is decreased.
In this step, if it is determined in step S31 that the exposure parameter adjusted based on the previous frame image is the exposure gain and the adjustment direction is the adjustment direction, it can be analyzed that the overexposure phenomenon occurs in the current frame image obtained after the previous frame image is obtained because the exposure gain is adjusted by using the adjustment step length of the larger exposure gain, and if the current exposure gain is preferentially adjusted according to the agreed exposure policy at this time, it is likely that the underexposure condition occurs in the next frame image after the next frame image is shot by using the adjusted exposure gain, that is, the oscillation phenomenon occurs. In order to avoid the problem, the invention provides that the current exposure time is reduced according to the adjustment step length of the current exposure time under the condition, so that the exposure evaluation value of the next frame image shot by using the adjusted exposure time is ensured to be closer to the evaluation value range and does not directly enter an insufficient state, and the image quality of the next frame image is greatly improved while oscillation is effectively avoided.
Under the condition that the exposure parameter adjustment type is insufficient and excessive, the oscillation phenomenon can be effectively prevented by adopting the process shown in fig. 4, and the agreed exposure strategy can not be influenced to the greatest extent.
Preferably, if the type of the exposure parameter adjustment is over-underage, that is, the current frame image is in an "underage state", and the previous frame image is in an "over-state", it may be recorded as an "over-underage state", because the current frame image is under-exposed, if the exposure parameter should be adjusted according to the agreed exposure strategy, but in order to prevent the occurrence of the ringing, the present invention also analyzes the reason from the "over-state" of the previous frame image to the "under-state" of the current frame image, which is caused by adjusting which exposure parameter, and then adjusts the current exposure parameter according to the analysis result, thereby ensuring that the next frame image obtained by using the adjusted exposure parameter is normally exposed, and avoiding the ringing. Specifically, the current exposure parameter may be adjusted according to the flow shown in fig. 5, which includes the following steps:
s41, judging whether the exposure parameter adjusted based on the exposure state of the previous frame image is exposure time or exposure gain; if it is determined that the adjusted exposure parameter is the exposure time, performing step S46; if it is determined that the adjusted exposure parameter is the exposure gain, step S42 is executed.
Specifically, when the camera adopts automatic exposure, in order to ensure the image quality of the shot frame images, the exposure parameters are automatically adjusted before each frame image is shot, and therefore, the exposure parameters and the adjustment direction of each adjustment are recorded. Therefore, in order to avoid the oscillation phenomenon, the current exposure parameter can be adjusted by judging the exposure parameter adjusted based on the exposure state of the previous frame image, and the exposure parameter can be adjusted according to the exposure state of the current frame image, so that the oscillation phenomenon can be effectively prevented.
S42, if the adjusting direction of the adjusted exposure gain is small, judging whether the current exposure time is the maximum exposure time; if not, executing step S43; if yes, go to step S44.
In step S41, it is determined that the adjusted exposure parameter is exposure gain and the adjustment direction is adjusted to be smaller, which indicates that the current frame image has an underexposure phenomenon due to the fact that the exposure gain is adjusted to be smaller by using the adjustment step with a larger exposure gain after the previous frame image is obtained, and since the current frame image is underexposed, the exposure time should be preferentially increased according to the agreed exposure policy, but before that, it needs to be determined whether the current exposure time is ETmaxBecause it is smaller than ET only during the exposure timemaxThen, the exposure time ET can be continuously increased.
And S43, increasing the current exposure time.
The step is executed to show that the current exposure time does not reach ETmaxAt this time, the current exposure time ET is increased according to the agreed exposure strategy and preferably according to the adjustment step length of the current exposure time, and the agreed exposure strategy design principle is not affected to the maximum extent.
And S44, reducing the adjustment step size of the exposure gain.
This step is performed to indicate that the current exposure time has reached ETmaxIf the exposure time cannot be increased, the exposure gain should be adjusted, but in order to prevent oscillation caused by increasing the exposure gain according to the current adjustment step length of the exposure gain, the invention proposes to first reduce the adjustment step length G of the exposure gainstepThen, step S45 is executed again.
And S45, increasing the current exposure gain by using the reduced adjustment step size.
Specifically, the current exposure gain is increased by the adjustment step size of the exposure gain after the reduction, so that even the increased exposure gain is not particularly large, and thus the exposure evaluation value of the next frame image captured based on the exposure gain after the adjustment is closer to the evaluation value range and does not directly enter the "excessive state", so that the occurrence of the hunting phenomenon can be effectively prevented.
S46, if the adjustment direction of the adjusted exposure time is turned down, the current exposure gain is increased.
Specifically, if it is determined in step S41 that the exposure parameter adjusted based on the previous frame image is the exposure time and the adjustment direction is the adjustment direction, it may be analyzed that the underexposure phenomenon occurs in the current frame image obtained due to the fact that the exposure time is adjusted to be smaller by using the adjustment step length with a larger exposure time after the previous frame image is obtained, and if the current exposure time is preferentially adjusted according to the agreed exposure policy at this time, it is likely that the situation that the next frame image obtained after the next frame image is shot by using the adjusted exposure time is overexposed, that is, the oscillation phenomenon occurs. In order to avoid the problem, the invention provides that the current exposure gain is increased according to the adjustment step length of the current exposure gain under the condition, so that the exposure evaluation value of the next frame image shot by using the adjusted exposure gain is ensured to be closer to the evaluation value range and does not directly enter an 'excessive state', and the obtained next frame image is clearer while oscillation is effectively avoided.
Under the condition that the exposure parameter adjustment type is excessive and insufficient, the process shown in fig. 5 is adopted, so that the oscillation phenomenon can be effectively prevented, and the agreed exposure strategy can be not influenced to the greatest extent.
Preferably, the exposure parameter adjustment type further includes an excess class, and the excess class characterizes: the exposure states of the current frame image and the previous frame image are overexposure.
If the exposure parameter adjustment type is determined to be in an excessive type, that is, the current frame image and the previous frame image are both in an "excessive state", and the exposure parameter can be adjusted downward according to an agreed exposure strategy because the exposure parameter is in the "excessive state", specifically, the current exposure parameter can be adjusted according to the flow shown in fig. 6, which includes the following steps:
s51, judging whether the current exposure gain is the minimum exposure gain; if not, executing step S52; if yes, go to step S53.
In this step, since the exposure states of the current frame and the previous frame are both overexposed, the exposure gain is preferably decreased only by adjusting according to the agreed exposure strategy, but it is necessary to determine whether the current exposure gain is G or notminSince only the current exposure gain is not GminThe current exposure gain G can be reduced.
And S52, reducing the current exposure gain.
This step is performed to indicate that the current exposure gain is not GminThen, the current exposure gain G can be reduced according to the adjustment step size of the current exposure gain, thereby realizing the exposure strategy that does not affect the convention to the maximum extentAnd (5) designing principles.
And S53, reducing the current exposure time.
This step was performed to show that the current exposure gain reached GminAt this time, the current exposure time can be reduced according to the adjustment step length of the current exposure time, so that the exposure state of the next frame of image obtained by shooting with the adjusted exposure time can be improved, and the oscillation phenomenon is effectively prevented.
Under the condition that the current frame and the previous frame are both in an "excessive state", the process shown in fig. 6 is adopted, so that the oscillation phenomenon can be effectively prevented, and the agreed exposure strategy can be not influenced to the greatest extent.
Preferably, if the exposure parameter adjustment type further includes an insufficiency, the insufficiency is characterized by: the exposure states of the current frame image and the previous frame image are both under-exposure.
If it is determined that the exposure parameter adjustment type is insufficient, that is, the current frame image and the previous frame image are both in an "insufficient state", the current exposure parameter may be adjusted according to the flow shown in fig. 7, including the following steps:
s61, judging whether the current exposure time is the maximum exposure time; if not, go to step S62; if yes, go to step S63.
In this step, since the exposure states of the current frame and the previous frame are both under-exposed, the exposure time is preferably increased only by adjusting according to the agreed exposure strategy, but it is necessary to determine whether the current exposure time is E or notmaxSince E is not reached only at the current exposure timemaxThe current exposure time ET can be increased.
And S62, increasing the current exposure time.
This step is performed to show that the current exposure time does not reach EmaxAnd the current exposure time can be increased according to the adjustment step of the current exposure time according to the appointed exposure strategy, so that the design principle of the appointed exposure strategy is not influenced to the maximum extent.
And S63, increasing the current exposure gain.
This step is performed to indicate that the current exposure time has reached EmaxAt this time, the current exposure gain can be increased according to the adjustment step length of the current exposure gain to avoid the oscillation phenomenon, and the exposure state of the next frame of image obtained by shooting with the adjusted exposure gain can be ensured to be improved, and the oscillation phenomenon is effectively prevented.
Under the condition that the current frame and the previous frame are both in an insufficient state, the process shown in fig. 7 is adopted, so that the oscillation phenomenon can be effectively prevented, and the agreed exposure strategy can be not influenced to the greatest extent.
Preferably, the exposure parameter adjustment types further include a normal class, and the normal class represents: the exposure states of the current frame image and the previous frame image are both normal exposure. And if the exposure parameter adjustment type is determined to be a normal type, not adjusting the current exposure parameter.
The exposure parameter adjusting method provided by the invention determines the exposure evaluation value of the current frame image and determines the exposure state of the current frame image according to the exposure evaluation value; acquiring the exposure state of the previous frame of image, and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame of image; determining the adjustment type of exposure parameters according to the exposure state of the current frame image and the exposure state of the previous frame image; and adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame image. The exposure state of the previous frame image, the exposure parameter and the adjustment direction adjusted based on the previous frame image and the exposure state of the current frame image are used for adjusting the current exposure parameter, and compared with the prior art that the exposure parameter is adjusted only through the exposure state of the current frame image, the shock phenomenon is effectively prevented.
Based on the same inventive concept, the embodiment of the present invention further provides an exposure parameter adjusting apparatus, and since the principle of the apparatus for solving the problem is similar to that of the exposure parameter adjusting method, the implementation of the apparatus can refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 8, a schematic structural diagram of an exposure parameter adjusting apparatus according to an embodiment of the present invention includes:
a first determining unit 71 for determining an exposure evaluation value of the current frame image and determining an exposure state of the current frame image based on the exposure evaluation value;
an acquiring unit 72, configured to acquire an exposure state of a previous frame image and an exposure parameter and an adjustment direction that are adjusted based on the exposure state of the previous frame image;
a second determining unit 73, configured to determine an exposure parameter adjustment type according to an exposure state of the current frame image and an exposure state of the previous frame image;
and an adjusting unit 74, configured to adjust the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame of image.
Preferably, the first determining unit 71 is specifically configured to determine that the exposure state of the current frame image is under-exposure if it is determined that the exposure evaluation value is smaller than a preset exposure lower limit value; and if the exposure evaluation value is determined to be larger than a preset exposure upper limit value, determining that the exposure state of the current frame image is overexposure.
Preferably, the exposure parameters include exposure time and exposure gain; the exposure parameter adjustment type comprises an insufficient and excessive class and an excessive and insufficient class, wherein the insufficient and excessive class is used for representing that the exposure state of the current frame image is overexposed and the exposure state of the previous frame image is underexposed; the overexposure class is used for representing that the exposure state of the current frame image is underexposure and the exposure state of the previous frame image is overexposure.
Preferably, the adjusting unit 74 is specifically configured to, if the exposure parameter adjustment type determined by the second determining unit 73 is an insufficient and excessive type, determine that the adjusted exposure parameter is an exposure gain and the adjustment direction is an increase, decrease the current exposure time; if the adjusted exposure parameter is determined to be the exposure time and the adjustment direction is adjusted to be larger, judging whether the current exposure gain is the minimum exposure gain or not; if not, reducing the current exposure gain; if so, reducing the adjustment step length of the exposure time, and reducing the current exposure time by using the reduced adjustment step length.
Preferably, the adjusting unit 74 is specifically configured to, if the exposure parameter adjustment type determined by the second determining unit 73 is an overdose or underfoot type, increase the current exposure gain if the adjusted exposure parameter is determined to be the exposure time and the adjustment direction is turned down; if the adjusted exposure parameter is determined to be exposure gain and the adjustment direction is adjusted to be small, judging whether the current exposure time is the maximum exposure time; if not, increasing the current exposure time; if so, reducing the adjustment step length of the exposure gain, and increasing the current exposure gain by using the reduced adjustment step length.
Optionally, the exposure parameter adjustment type further includes an over class, where the over class is used to represent that the exposure states of the current frame image and the previous frame image are both over exposure; and
the adjusting unit 74 is further configured to determine whether the current exposure gain is the minimum exposure gain if the exposure parameter adjustment type determined by the second determining unit 73 is an excessive type; if not, reducing the current exposure gain; and if so, reducing the current exposure time.
Optionally, the exposure parameter adjustment type further includes an insufficiency class, and the insufficiency class is used for representing that the exposure states of the current frame image and the previous frame image are both under-exposure; and
the adjusting unit 74 is further configured to determine whether the current exposure time is the maximum exposure time if the exposure parameter adjustment type determined by the second determining unit 73 is an underfoot; if not, increasing the current exposure time; if yes, the current exposure gain is increased.
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 adjustment 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 adjustment method according to various exemplary embodiments of the present invention described above in this specification. For example, the processing unit may execute the exposure parameter adjustment method in steps S11 to S14 as shown in fig. 2.
The computing apparatus 81 according to this embodiment of the present invention is described below with reference to fig. 9. The computing device 81 shown in fig. 9 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. 9, the computing apparatus 81 is represented 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 adjustment 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 adjustment 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 adjustment method in steps S11 to S14 shown in fig. 2.
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 adjustment method of the embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, 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 (12)

1. An exposure parameter adjustment method, comprising:
determining an exposure evaluation value of the current frame image, and determining the exposure state of the current frame image according to the exposure evaluation value; and
acquiring the exposure state of the previous frame of image, and the exposure parameter and the adjustment direction adjusted based on the exposure state of the previous frame of image; and are
Determining an exposure parameter adjustment type according to the exposure state of the current frame image and the exposure state of the previous frame image; and are
Adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame image;
wherein the exposure parameter adjustment types comprise an insufficient and excessive class and an excessive and insufficient class; the underexposure class is used for representing that the exposure state of the current frame image is overexposure and the exposure state of the previous frame image is underexposure; the over-exposure class is used for representing that the exposure state of the current frame image is under-exposure and the exposure state of the previous frame image is over-exposure;
the method further comprises the following steps:
if the determined exposure parameter adjustment type is an insufficient and excessive type, adjusting the current exposure parameter according to the exposure parameter adjustment type, the exposure parameter adjusted based on the exposure state of the previous frame of image and the adjustment direction, specifically comprising:
and if the adjusted exposure parameter is determined to be the exposure gain and the adjustment direction is adjusted to be larger, reducing the current exposure time.
2. The method of claim 1, wherein if the determined exposure parameter adjustment type is an insufficient-excessive type, adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame image, further comprising:
if the adjusted exposure parameter is determined to be the exposure time and the adjustment direction is adjusted to be larger, judging whether the current exposure gain is the minimum exposure gain or not; if not, reducing the current exposure gain; if so, reducing the adjustment step length of the exposure time, and reducing the current exposure time by using the reduced adjustment step length.
3. The method according to claim 1, wherein if the determined exposure parameter adjustment type is an over-insufficient type, adjusting the current exposure parameter according to the exposure parameter adjustment type and the exposure parameter and adjustment direction adjusted based on the exposure state of the previous frame image, specifically comprising:
if the adjusted exposure parameter is determined to be exposure time and the adjustment direction is adjusted to be small, increasing the current exposure gain;
if the adjusted exposure parameter is determined to be exposure gain and the adjustment direction is adjusted to be small, judging whether the current exposure time is the maximum exposure time; if not, increasing the current exposure time; if so, reducing the adjustment step length of the exposure gain, and increasing the current exposure gain by using the reduced adjustment step length.
4. The method of claim 1, wherein the exposure parameter adjustment types further include an over class, and the over class is used for representing that the exposure states of the current frame image and the previous frame image are both over-exposure; and the method, further comprising:
if the determined exposure parameter adjustment type is an excessive type, judging whether the current exposure gain is the minimum exposure gain or not; if not, reducing the current exposure gain; and if so, reducing the current exposure time.
5. The method of claim 1, wherein the exposure parameter adjustment types further include an underexposure class, and the underexposure class is used for representing that the exposure states of the current frame image and the previous frame image are both underexposure; and the method, further comprising:
if the determined exposure parameter adjustment type is not sufficient, judging whether the current exposure time is the maximum exposure time; if not, increasing the current exposure time; if yes, the current exposure gain is increased.
6. An exposure parameter adjustment device, comprising:
the first determining unit is used for determining an exposure evaluation value of the current frame image and determining the exposure state of the current frame image according to the exposure evaluation value;
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring the exposure state of the previous frame image, and the exposure parameter and the adjustment direction which are adjusted based on the exposure state of the previous frame image;
the second determining unit is used for determining the adjustment type of the exposure parameter according to the exposure state of the current frame image and the exposure state of the previous frame image;
the adjusting unit is used for adjusting the current exposure parameter according to the exposure parameter adjusting type and the exposure parameter and adjusting direction adjusted based on the exposure state of the previous frame image;
wherein the exposure parameter adjustment types comprise an insufficient and excessive class and an excessive and insufficient class; the underexposure class is used for representing that the exposure state of the current frame image is overexposure and the exposure state of the previous frame image is underexposure; the over-exposure class is used for representing that the exposure state of the current frame image is under-exposure and the exposure state of the previous frame image is over-exposure;
the adjusting unit is specifically configured to, if the exposure parameter adjustment type determined by the second determining unit is an insufficient and excessive type, decrease the current exposure time if the adjusted exposure parameter is determined to be an exposure gain and the adjustment direction is increased.
7. The apparatus of claim 6,
the adjusting unit is further configured to, if the exposure parameter adjustment type determined by the second determining unit is an insufficient and excessive type, determine that the adjusted exposure parameter is exposure time and the adjustment direction is increased, determine whether the current exposure gain is the minimum exposure gain; if not, reducing the current exposure gain; if so, reducing the adjustment step length of the exposure time, and reducing the current exposure time by using the reduced adjustment step length.
8. The apparatus of claim 6,
the adjusting unit is further configured to, if the exposure parameter adjustment type determined by the second determining unit is an over-insufficient type, increase the current exposure gain if the adjusted exposure parameter is determined to be the exposure time and the adjustment direction is turned down; if the adjusted exposure parameter is determined to be exposure gain and the adjustment direction is adjusted to be small, judging whether the current exposure time is the maximum exposure time; if not, increasing the current exposure time; if so, reducing the adjustment step length of the exposure gain, and increasing the current exposure gain by using the reduced adjustment step length.
9. The apparatus of claim 6, wherein the exposure parameter adjustment types further include an over class, and the over class is used for representing that the exposure states of the current frame image and the previous frame image are both over-exposed; and
the adjusting unit is further configured to determine whether the current exposure gain is the minimum exposure gain if the exposure parameter adjustment type determined by the second determining unit is an excessive type; if not, reducing the current exposure gain; and if so, reducing the current exposure time.
10. The apparatus of claim 6, wherein the exposure parameter adjustment types further include an underexposure class, the underexposure class being used to characterize exposure states of the current frame image and the previous frame image; and
the adjusting unit is further configured to determine whether the current exposure time is the maximum exposure time if the exposure parameter adjustment type determined by the second determining unit is an underfoot; if not, increasing the current exposure time; if yes, the current exposure gain is increased.
11. A computer-readable medium having stored thereon computer-executable instructions, which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 5.
12. 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 5.
CN201810540390.XA 2018-05-30 2018-05-30 Exposure parameter adjusting method and device and readable medium Active CN108419025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810540390.XA CN108419025B (en) 2018-05-30 2018-05-30 Exposure parameter adjusting method and device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810540390.XA CN108419025B (en) 2018-05-30 2018-05-30 Exposure parameter adjusting method and device and readable medium

Publications (2)

Publication Number Publication Date
CN108419025A CN108419025A (en) 2018-08-17
CN108419025B true CN108419025B (en) 2020-01-07

Family

ID=63140930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810540390.XA Active CN108419025B (en) 2018-05-30 2018-05-30 Exposure parameter adjusting method and device and readable medium

Country Status (1)

Country Link
CN (1) CN108419025B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900782B (en) * 2018-08-22 2020-01-24 Oppo广东移动通信有限公司 Exposure control method, exposure control device and electronic equipment
JP7150147B2 (en) 2018-09-07 2022-10-07 ドルビー ラボラトリーズ ライセンシング コーポレイション Spatial Multiplexing Exposure Automatic Exposure of High Dynamic Range Image Sensors
JP7150979B2 (en) * 2018-09-07 2022-10-11 ドルビー ラボラトリーズ ライセンシング コーポレイション Automatic exposure of image sensors based on entropy dispersion
CN111093039B (en) * 2018-10-24 2021-07-16 北京图森智途科技有限公司 Exposure evaluation value calculation method, exposure parameter adjustment method and imaging equipment
CN111355895B (en) * 2018-12-05 2021-07-16 北京图森智途科技有限公司 Image exposure and gain adjustment method, imaging device and vehicle
CN110708473B (en) * 2019-11-14 2022-04-15 深圳市道通智能航空技术股份有限公司 High dynamic range image exposure control method, aerial camera and unmanned aerial vehicle
CN114390211B (en) * 2020-10-20 2024-03-22 北京小米移动软件有限公司 Exposure convergence method, device, electronic equipment and storage medium
CN113329188B (en) * 2021-05-07 2022-11-22 浙江大华技术股份有限公司 Exposure control method and device, electronic equipment and storage medium
CN113259600B (en) * 2021-05-11 2022-08-05 北京地平线机器人技术研发有限公司 Exposure parameter configuration method and device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972385A (en) * 2006-12-07 2007-05-30 北京中星微电子有限公司 A method of image processing and camera device
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
CN103391404A (en) * 2012-05-08 2013-11-13 展讯通信(上海)有限公司 Automatic exposure method, device, camera device and mobile terminal
CN105939451A (en) * 2016-06-23 2016-09-14 安翰光电技术(武汉)有限公司 Image exposure processing system and method for capsule endoscope system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979162B (en) * 2016-07-21 2019-03-29 凌云光技术集团有限责任公司 A kind of the automatic exposure method of adjustment and device of expansible dynamic image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972385A (en) * 2006-12-07 2007-05-30 北京中星微电子有限公司 A method of image processing and camera device
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
CN103391404A (en) * 2012-05-08 2013-11-13 展讯通信(上海)有限公司 Automatic exposure method, device, camera device and mobile terminal
CN105939451A (en) * 2016-06-23 2016-09-14 安翰光电技术(武汉)有限公司 Image exposure processing system and method for capsule endoscope system

Also Published As

Publication number Publication date
CN108419025A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN108419025B (en) Exposure parameter adjusting method and device and readable medium
CN108769542B (en) Exposure parameter determination method and device and readable medium
JP3938833B2 (en) Exposure control device
US8106965B2 (en) Image capturing device which corrects a target luminance, based on which an exposure condition is determined
US9584733B2 (en) High dynamic range transition
CN110493539B (en) Automatic exposure processing method, processing device and electronic equipment
CN105578068A (en) High-dynamic-range image generation method, device and mobile terminal
US9380218B2 (en) Highlight exposure metric and its applications
JP2010157925A (en) Imaging apparatus, control method thereof and program
EP3162048B1 (en) Exposure metering based on background pixels
CN104052933A (en) Method for determining dynamic range mode, and image obtaining apparatus
CN112217999B (en) Wide dynamic mode adjusting method and device, electronic equipment and storage medium
CN101169573A (en) Imaging device, imaging device controlling method, and computer program
CN109639991A (en) A kind of photographic method, device, terminal and storage medium
CN112653845B (en) Exposure control method, exposure control device, electronic equipment and readable storage medium
CN111741228A (en) Exposure adjusting method and device for panoramic image
CN108765346B (en) Auxiliary focusing method and device and readable medium
JP2011119944A (en) Imaging apparatus and method of controlling the same
WO2024119626A1 (en) Exposure control method and apparatus for global rolling shutter, and electronic device
CN114785966B (en) Exposure control method, shooting processing method, device and medium
CN114302068B (en) Image shooting method and device
CN113422893B (en) Image acquisition method and device, storage medium and mobile terminal
CN113747062A (en) HDR scene detection method and device, terminal and readable storage medium
CN111754410B (en) Image processing method and device, electronic equipment and readable storage medium
JP5473582B2 (en) Image processing apparatus, method, and program

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