CN112672071B - Automatic exposure method, device, electronic equipment and storage medium - Google Patents
Automatic exposure method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112672071B CN112672071B CN202110278251.6A CN202110278251A CN112672071B CN 112672071 B CN112672071 B CN 112672071B CN 202110278251 A CN202110278251 A CN 202110278251A CN 112672071 B CN112672071 B CN 112672071B
- Authority
- CN
- China
- Prior art keywords
- exposure
- value
- aperture value
- node
- gain
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
Abstract
The application relates to the field of image processing and discloses an automatic exposure method, an automatic exposure device, electronic equipment and a computer-readable storage medium. In the zooming process, the method adaptively adjusts the aperture by comparing the current aperture value with the maximum aperture value which ensures the image to be clear under the magnification in real time. After zooming is finished, the maximum aperture value under the current magnification is used as a reference, the corresponding exposure node is rapidly calculated, and the exposure time and the gain value are accurately adjusted to reach a preset brightness value. Therefore, whether the lens has defects on relative aperture parameters or not, the image clarity can be ensured in the zooming process and after the zooming is finished, and the problem that the image quality is reduced due to the defects of the lens is solved.
Description
Technical Field
The present application relates to the field of image processing, and in particular, to an automatic exposure method, an automatic exposure apparatus, an electronic device, and a computer-readable storage medium.
Background
The most important module for adjusting the overall brightness of an image in an imaging system is the auto-exposure module. The most commonly used automatic exposure module is an exposure node method, i.e. the exposure time, gain and aperture are respectively adjusted according to a given exposure route.
In an actual application scene, whether the setting of the exposure node is reasonable or not is often strongly related to the imaging element and the application scene, and the setting of the aperture is very important for the influence of the image effect. For example, a video conference often has a demand for close-up of characters, and some faces need to be magnified by optical zooming. However, due to the limitations of cost and process, the aperture shape of some lenses and the relative aperture parameters of the lenses are defective when the lenses tend to be in the telephoto end, which further causes the image quality to be degraded, and generally presents the problems of image definition degradation, blurring and the like.
Therefore, when the lens has defects in the relative aperture parameters and the like, how to control the diaphragm to realize high-quality automatic exposure becomes a still-to-be-solved technical problem.
Disclosure of Invention
The application provides an automatic exposure method, an automatic exposure device, an electronic device and a computer readable storage medium.
According to a first aspect of embodiments of the present application, there is provided an automatic exposure method, including: acquiring a first exposure time, a first gain value, a first aperture value, a first exposure node and a first exposure route of a zooming starting point; acquiring the current magnification and the maximum aperture value for ensuring the image clarity under the current magnification; determining whether the first aperture is larger than the maximum aperture, if so, setting the maximum aperture as a second aperture, and if not, setting the first aperture as the second aperture; keeping the second aperture value unchanged, and adjusting the exposure time and the gain according to the first exposure time, the first gain value, the first exposure node and the first exposure line to reach a preset brightness value.
According to an embodiment of the present application, acquiring a current magnification and a maximum aperture value for ensuring image clarity at the current magnification includes: acquiring the current multiplying power; and acquiring the maximum aperture value for ensuring the clearness of the image under the current magnification according to the current magnification and a mapping table of the predetermined magnification and the maximum aperture value.
According to an embodiment of the present application, the method further includes: determining at least two multiplying powers; determining a maximum aperture value for ensuring image clarity at each of at least two magnifications; and establishing a mapping table of the magnification and the maximum aperture value according to each magnification and the maximum aperture value for ensuring the image clearness under each magnification.
According to an embodiment of the present application, establishing a mapping table of magnification and a maximum aperture according to each magnification and a maximum aperture for ensuring image clarity at each magnification includes: according to each multiplying power and the maximum aperture value for ensuring the image clarity under each multiplying power, fitting a polynomial by using a least square method to obtain a first polynomial; and establishing a mapping table of the multiplying power and the maximum aperture value according to the first polynomial.
According to an embodiment of the present application, after adjusting the exposure time and the gain to reach the preset brightness value, the method further includes: acquiring the adjusted second exposure time, the adjusted second gain value and a second exposure node; determining a first exposure amount according to the second exposure time, the second gain value and the second aperture value; determining a second exposure line according to the current multiplying power, wherein the second exposure line comprises at least two exposure nodes; determining a third exposure node and a first exposure state position according to the first exposure amount and the second exposure line, wherein the exposure amount of the first exposure state position is equal to the first exposure amount, and the exposure amount of the third exposure node is smaller than the exposure amount of the first exposure state position; and adjusting the exposure time, the gain and the aperture to reach the first exposure amount according to the first exposure state position, the third exposure node, the second exposure line, the second exposure time, the second gain value and the second aperture.
According to an embodiment of the present application, determining the first exposure amount according to the second exposure time, the second gain value and the second aperture value includes: and determining the first exposure according to the second exposure time, the second gain value, the second aperture value and a mapping table of the predetermined exposure time, gain value, aperture value and brightness unit value.
According to an embodiment of the present application, the method further includes: keeping any two items of the exposure time, the gain value and the aperture value unchanged, and adjusting the other item to increase the brightness value, wherein the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value are recorded when a brightness unit value is increased; and establishing a mapping table of the exposure time, the gain value, the aperture value and the brightness unit value according to the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value.
According to an embodiment of the present application, determining the second exposure line according to the current magnification includes: and determining a complete exposure route according to the maximum aperture value of the clear image under the current magnification and the coefficient of 0-1 to obtain a second exposure route.
According to a second aspect of embodiments of the present application, there is provided an automatic exposure apparatus, the apparatus including: the initial value acquisition module is used for acquiring a first exposure time, a first gain value, a first aperture value, a first exposure node and a first exposure line of the zooming starting point; the maximum aperture value acquisition module is used for acquiring the current magnification and the maximum aperture value for ensuring the image clarity under the current magnification; the second aperture value determining module is used for determining whether the first aperture is larger than the maximum aperture value, if so, the maximum aperture value is set as the second aperture value, and if not, the first aperture value is set as the second aperture value; and the exposure time and gain adjusting module is used for keeping the second aperture value unchanged and adjusting the exposure time and the gain according to the first exposure time, the first gain value, the first exposure node and the first exposure line so as to reach a preset brightness value.
According to a third aspect of the embodiments of the present application, there is provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; a memory for storing a computer program; and a processor for implementing the method steps of any of the above-described automatic exposure methods when executing the program stored in the memory.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of any one of the above-described automatic exposure methods.
The embodiment of the application provides an automatic exposure method, an automatic exposure device, electronic equipment and a computer readable storage medium. In the zooming process, a target aperture value is determined by acquiring a maximum aperture value for ensuring the clearness of an image under the current magnification and taking the maximum aperture value as a reference, and then exposure time and a gain value are adjusted according to an exposure node method to reach a preset brightness value.
Then, according to the method, the current aperture value is continuously compared with the maximum aperture value which ensures the image clarity under the multiplying power in real time, the aperture is adjusted in a self-adaptive mode, and then the exposure time and the gain value are adjusted according to the exposure node method to reach the preset brightness value.
Therefore, whether the lens has defects on relative aperture parameters or not can ensure the image to be clear in the zooming process, thereby overcoming the problem that the image quality is reduced due to the defects of the lens.
It is to be understood that the implementation of the present application does not require all of the above-described advantages to be achieved, but rather that certain technical solutions may achieve certain technical effects, and that other embodiments of the present application may also achieve other advantages not mentioned above.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present application are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 is a schematic view of an implementation process of an embodiment of an automatic exposure method according to the present application;
FIG. 2 is a schematic view of another embodiment of an automatic exposure method according to the present application;
FIG. 3 is a schematic diagram of a curve showing that the maximum aperture value monotonically decreases with the magnification value according to another embodiment of the automatic exposure method of the present application;
fig. 4 is a schematic structural diagram of an automatic exposure apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Fig. 1 shows a schematic implementation flow diagram of an embodiment of the automatic exposure method of the present application. Referring to fig. 1, an embodiment of the present application provides an automatic exposure method, including: an operation 110 of acquiring a first exposure time, a first gain value, a first aperture value, a first exposure node, and a first exposure route of the zoom start point; operation 120, acquiring a current magnification and a maximum aperture value for ensuring the clearness of an image at the current magnification; an operation 130 of determining whether the first aperture is greater than the maximum aperture, if so, setting the maximum aperture to the second aperture, and if not, setting the first aperture to the second aperture; in operation 140, the exposure time and the gain are adjusted to reach the preset brightness value according to the first exposure time, the first gain value, the first exposure node and the first exposure line while keeping the second aperture value unchanged.
Wherein, the exposure node refers to a node on a predetermined exposure route. The exposure amount of each node is the product of the exposure time, the gain value, and the aperture value. On a given exposure route, the node exposure amount is monotonically increased, the exposure amount of the next node is greater than or equal to the exposure amount of the previous node, a component (one of exposure time, a gain value and an aperture value) between the two nodes is increased, the other components are fixed, and the increased component determines the distribution strategy of the route.
In operation 110, the magnification variation refers to adjusting and transforming the magnification of the magnification variation lens (Zoom), and the magnification variation starting point refers to a state before the adjustment and transformation.
In operation 120, the magnification refers to a magnification of a Zoom lens (Zoom), and the magnification refers to a ratio of a size of a subject to an image formed on a sensor when the Zoom lens is at a close-up end of the Zoom lens (i.e., a closest focus distance). The current magnification refers to the magnification at the current moment in the zooming process.
The iris means a device for controlling the amount of light that passes through the lens and enters the light sensing surface in the body. The aperture value is a scale value representing the light transmission capability of the lens corresponding to the aperture value. Generally, the smaller the aperture is, the better the spherical aberration, chromatic aberration and other aberrations can be, the depth of field can be increased, and the curvature of image surface is not obvious, so that higher picture quality can be obtained.
Due to the limitations of cost and process, some lenses limit the relative aperture supportable by the telephoto end (at a larger magnification) in order to ensure that the relative aperture supportable by the wide-angle end (at a smaller magnification) is enough, so that the maximum aperture value for ensuring the image clarity at different magnifications is different.
In the case of incremental conversion of the aperture value by the conventional node exposure method, the exposure time, the gain value, and the aperture value are adjusted incrementally only in accordance with the ambient brightness and the given exposure path, usually without regard to the magnification information. Therefore, in the process of incrementally adjusting the aperture value, the maximum aperture value for ensuring the image definition under the current magnification is possibly exceeded, and the problems of image definition reduction, blurring and the like are caused.
For this reason, in the automatic exposure method provided in the present application, the aperture value is not incrementally adjusted by using the conventional node exposure method, but the maximum aperture value that ensures the sharpness of the image at the current magnification is obtained through operation 120, and the aperture value is adjusted based on the maximum aperture value. Therefore, the aperture value can be controlled to be below the maximum aperture value for ensuring the image definition under the current magnification, and the problems of image definition reduction, frosting and the like caused by overlarge aperture value are avoided.
In operation 130, it is determined whether to adjust the aperture value by comparing the first aperture and the maximum aperture value that ensures clearness of the image at the current magnification in real time. If the first aperture is smaller than or equal to the maximum aperture value which ensures the clearness of the image under the current magnification, keeping the aperture value unchanged so as to avoid influencing the image quality after the aperture value is enlarged; and if the first aperture is larger than the maximum aperture value for ensuring the image clarity under the current magnification, the picture quality is not good, and the aperture value needs to be adjusted. At the moment, the aperture value is reduced and adjusted to be the maximum aperture value for ensuring the image clarity under the current multiplying power, so that the aperture value can not exceed the maximum aperture value for ensuring the image clarity under the current multiplying power in the automatic exposure process, and the problems of image clarity reduction, frosting and the like are avoided.
After the aperture value is determined, the exposure time and the gain value may be continuously adjusted to the preset brightness value according to the conventional node exposure method by operation 140. Therefore, the preset brightness value can be achieved, and the image quality can be ensured by controlling the aperture value.
Therefore, in the zooming process, the method firstly determines a target aperture value by acquiring the maximum aperture value for ensuring the clearness of an image under the current magnification and taking the maximum aperture value as a reference, and then adjusts the exposure time and the gain value according to the exposure node method to reach a preset brightness value. Therefore, no matter what the arrangement of the relative aperture of the lens when the lens tends to be at the long-focus end, the clear image can be ensured in the zooming process.
In addition, it should be noted that the aperture adjustment and the subsequent adjustment of the exposure time and gain are continuous processes of real-time adjustment and adaptation with the magnification change, and are not completed once, and the above method is repeated as long as the magnification is changed until the magnification is stabilized to a certain level. Therefore, through a gradual change process, the image adjustment is more stable, the image display is more stable and smooth, and no large-amplitude image jitter is generated.
It should be noted that the embodiment shown in fig. 1 is only one of the most basic embodiments of the automatic exposure method of the present application, and further refinements and extensions can be made by the implementer on the basis of the embodiment.
According to an embodiment of the present application, acquiring a current magnification and a maximum aperture value for ensuring image clarity at the current magnification includes: acquiring the current multiplying power; and acquiring the maximum aperture value for ensuring the clearness of the image under the current magnification according to the current magnification and a mapping table of the predetermined magnification and the maximum aperture value.
The maximum aperture value corresponding to the current magnification is obtained by searching the mapping table of the predetermined magnification and the maximum aperture value, so that the calculation time can be greatly saved, the automatic exposure adjustment is faster, the image blockage is avoided, and the visual experience of a user is better.
According to an embodiment of the present application, the method further includes: determining at least two multiplying powers; determining a maximum aperture value for ensuring image clarity at each of at least two magnifications; and establishing a mapping table of the magnification and the maximum aperture value according to each magnification and the maximum aperture value for ensuring the image clearness under each magnification.
The maximum aperture value for ensuring the image clarity under each magnification of at least two magnifications can be obtained by calculating various optical performance index values of the lens; the method can also be obtained by manually adjusting the aperture value on the premise of ensuring the image clarity.
Then, a mapping table of the magnification and the maximum aperture value can be established according to each magnification and the maximum aperture value for ensuring the image clarity under each magnification.
According to an embodiment of the present application, establishing a mapping table of magnification and a maximum aperture according to each magnification and a maximum aperture for ensuring image clarity at each magnification includes: according to each multiplying power and the maximum aperture value for ensuring the image clarity under each multiplying power, fitting a polynomial by using a least square method to obtain a first polynomial; and establishing a mapping table of the multiplying power and the maximum aperture value according to the first polynomial.
When determining at least two magnifications, how many magnifications to select and how to determine each magnification are also a big difficulty in balancing. Theoretically, the more the determined number of the multiplying factors is, the more accurate the determined number of the multiplying factors is, but the more the number of the multiplying factors is, the higher the calculation cost or the labor cost of the maximum aperture value for ensuring the image clarity under each multiplying factor is; if the number of magnifications is too small, the maximum aperture value which can ensure the image clarity may not be corresponding to some magnifications.
For this purpose, several typical magnifications can be determined according to expert experience; then, fitting a polynomial by using a least square method to obtain a first polynomial; and then establishing a mapping table of the multiplying power and the maximum aperture value according to the first polynomial. Therefore, the calculation amount or the labor cost can be reduced as much as possible, and the maximum aperture value corresponding to more multiplying power and capable of ensuring the image clearness can be fitted as accurately as possible.
According to an embodiment of the present application, after adjusting the exposure time and the gain to reach the preset brightness value, the method further includes: acquiring the adjusted second exposure time, the adjusted second gain value and a second exposure node; determining a first exposure amount according to the second exposure time, the second gain value and the second aperture value; determining a second exposure line according to the current multiplying power, wherein the second exposure line comprises at least two exposure nodes; determining a third exposure node and a first exposure state position according to the first exposure amount and the second exposure line, wherein the exposure amount of the first exposure state position is equal to the first exposure amount, and the exposure amount of the third exposure node is smaller than the exposure amount of the first exposure state position; and adjusting the exposure time, the gain and the aperture to reach the first exposure amount according to the first exposure state position, the third exposure node, the second exposure line, the second exposure time, the second gain value and the second aperture.
The automatic exposure method provided by the application has the advantages that the adjustment of the aperture value is single and jumping, namely, the aperture value is not adjusted or is adjusted to the target aperture value in one step. Thus, exposure adjustment may be too fast, without transitions, not smooth enough, and may also result in poor visual experience such as flickering.
For this reason, in the present embodiment, after the exposure time and the gain are adjusted to reach the preset luminance value, it is not so urgent to immediately process the image using the adjusted second exposure time, second gain value, and second aperture value, but to further smooth the second exposure time, second gain value, and second aperture value acquired after the adjustment.
During the smoothing process, a third exposure node with a critical exposure amount close to the first exposure amount is selected from the second exposure line according to a traditional exposure node method. The second exposure line is different from the first exposure line and is an exposure line temporarily determined according to the current magnification and the maximum aperture value corresponding to the current magnification.
And then, further fine adjustment is carried out on the exposure time, the gain and the aperture according to the third exposure node and the second exposure line so as to achieve the first exposure. In this way, the whole exposure process can be made smoother, thereby further improving the visual experience of the user.
According to an embodiment of the present application, determining the first exposure amount according to the second exposure time, the second gain value and the second aperture value includes: and determining the first exposure according to the second exposure time, the second gain value, the second aperture value and a mapping table of the predetermined exposure time, gain value, aperture value and brightness unit value.
The mapping table of the exposure time, the gain value, the aperture value and the brightness unit value which are determined in advance is used, the calculation time can be greatly saved, and the first exposure amount corresponding to the second exposure time, the second gain value and the second aperture value can be obtained as soon as possible, so that the automatic exposure adjustment is faster, the image blockage is avoided, and the visual experience of a user is better.
According to an embodiment of the present application, the method further includes: keeping any two items of the exposure time, the gain value and the aperture value unchanged, and adjusting the other item to increase the brightness value, wherein the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value are recorded when a brightness unit value is increased; and establishing a mapping table of the exposure time, the gain value, the aperture value and the brightness unit value according to the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value.
Thus, a mapping table of the exposure time, the gain value, the aperture value and the brightness unit value with finer precision can be obtained, different requirements under different conditions can be met, and the obtained brightness unit value corresponding to the exposure time, the gain value and the aperture value can be more accurate.
According to an embodiment of the present application, determining the second exposure line according to the current magnification includes: and determining a complete exposure line according to the maximum aperture value of the clear image under the current magnification and the coefficient of 0-1 to obtain a second exposure line.
Wherein each coefficient may be set according to an expert experience value. In addition, at least two exposure nodes may also be determined by setting the gain and the exposure time in a similar manner. In this way, all possible exposure nodes can be adaptively calculated for selection, so that a complete exposure line can be determined to obtain a second exposure line.
The above embodiments are exemplary illustrations of how to further refine and expand on the basis of the basic embodiment shown in fig. 1, and an implementer may combine various implementations in the above embodiments to form a new embodiment according to specific implementation conditions and needs, so as to achieve a more ideal implementation effect.
Fig. 2 shows another embodiment of the automatic exposure method of the present application, which combines the above embodiments to finally form another embodiment with better implementation effect.
This embodiment first completes the following two preparation works before the automatic exposure is realized:
1) calibrating the maximum aperture value H of the clear image under each magnification, wherein H is a curve which is monotonically decreased along with the magnification value (as shown in FIG. 3, the horizontal axis is the magnification of variable magnification, and the vertical axis is the maximum aperture value);
2) and calibrating the equivalent relation between the gain variation, the aperture variation and the exposure time variation and the image brightness.
The above operation is only completed once, and then, when the lens is zoomed each time, the automatic exposure can be realized through the following steps:
recording the state of the zoom starting point:,,,. s is an abbreviation for shut time, indicating exposure time; g is an abbreviation for gain, indicating gain; h is hall iris, indicating aperture. lines denotes an exposure node. Initialized aperture=
when reaching a certain multiplying power, if detecting thatH is less than or equal to H, then setting=H。
when the zooming is finished, the lens is still fixedFast adaptive adjustment of exposure, determination,And enabling the image to reach a preset brightness value, and recording the current exposure node.
after waiting for the exposure to stabilize and accumulating a certain number of frames, quantizing the frames at that time,,Converting all three values into brightness units, and accumulating to obtain exposureQuantity of light。
At step 2090, the exposure is filled to determine the final exposure node and each exposure value.
And acquiring the maximum aperture value under the magnification according to the current magnification, multiplying the maximum aperture value by a coefficient of 0-1, and assigning the coefficient to each exposure node respectively, wherein each coefficient can be specified according to an expert experience value. In addition, the exposure time and the gain value of each exposure node can be obtained in a similar way, so that a plurality of exposure nodes can be determined.
Then, the critical exposure of each exposure node is calculated. Comparing one by one to obtain the exposure less thanExpose the node to the maximum lines.
According to the exposure node, adjusting the variable quantity (one of exposure time, gain and aperture) in the node to complementMinusThe difference of (a). Two other parameters besides the variables in the node are validated at the same time.
The automatic exposure during zooming is realized through the steps, the image can be ensured to be clear in the zooming process, the process of smooth exposure adjustment is carried out after the zooming is finished, and each required quantized value can be quickly determined by searching a pre-established multiplying power and maximum aperture value mapping table and mapping tables of each exposure value (exposure time, gain value and aperture value) and brightness unit value, so that the quick adjustment of the exposure is realized, and the visual experience of a user can be greatly improved.
Since the above process takes into account the correspondence between the exposure value and the magnification, it is adaptable to any lens and various application scenarios.
It should be noted that the application shown in fig. 2 is only an exemplary illustration of the automatic exposure method of the present application and is not a limitation on the embodiment and application scenario of the automatic exposure method of the present application. The implementer can adopt any applicable implementation mode and be applied to any applicable application scene according to specific implementation conditions.
Further, according to an embodiment of the present application, there is provided an automatic exposure apparatus, as shown in fig. 4, the apparatus 40 includes: a starting value obtaining module 401, configured to obtain a first exposure time, a first gain value, a first aperture value, a first exposure node, and a first exposure line of a zoom starting point; a maximum aperture value obtaining module 402, configured to obtain a current magnification and a maximum aperture value for ensuring that an image is clear at the current magnification; a second aperture value determining module 403, configured to determine whether the first aperture is larger than the maximum aperture value, if so, set the maximum aperture value as the second aperture value, and if not, set the first aperture value as the second aperture value; and an exposure time and gain adjusting module 404, configured to keep the second aperture value unchanged, and adjust the exposure time and the gain according to the first exposure time, the first gain value, the first exposure node, and the first exposure line to reach a preset brightness value.
According to an embodiment of the present application, the maximum aperture value obtaining module 402 includes: the current multiplying power obtaining submodule is used for obtaining the current multiplying power; and the maximum aperture value acquisition sub-module is used for acquiring the maximum aperture value for ensuring the image clarity under the current magnification according to the current magnification and a predetermined mapping table of the magnification and the maximum aperture value.
According to an embodiment of the present application, the apparatus 40 further includes: the multiplying power determining module is used for determining at least two multiplying powers; the maximum aperture value determining module is used for determining the maximum aperture value which ensures the image to be clear under each magnification of at least two magnifications; and the mapping table establishing module is used for establishing a mapping table of the magnification and the maximum aperture value according to each magnification and the maximum aperture value for ensuring the image clearness under each magnification.
According to an embodiment of the present application, the mapping table establishing module for the magnification and the maximum aperture value includes: the polynomial fitting submodule is used for fitting a polynomial by using a least square method according to each multiplying power and the maximum aperture value for ensuring the image clarity under each multiplying power to obtain a first polynomial; and the mapping table establishing submodule of the multiplying power and the maximum aperture value is used for establishing a mapping table of the multiplying power and the maximum aperture value according to the first polynomial.
According to an embodiment of the present application, the apparatus 40 further includes: the exposure value obtaining module after zooming is used for obtaining the adjusted second exposure time, the second gain value and the second exposure node; the exposure calculation module is used for determining a first exposure according to the second exposure time, the second gain value and the second aperture value; the second exposure line determining module is used for determining a second exposure line according to the current multiplying power, and the second exposure line comprises at least two exposure nodes; the third exposure node determining module is used for determining a third exposure node and a first exposure state position according to the first exposure amount and the second exposure line, wherein the exposure amount of the first exposure state position is equal to the first exposure amount, and the exposure amount of the third exposure node is smaller than that of the first exposure state position; and the exposure amount supplementing module is used for adjusting the exposure time, the gain and the aperture according to the first exposure state position, the third exposure node, the second exposure line, the second exposure time, the second gain value and the second aperture so as to achieve the first exposure amount.
According to an embodiment of the present application, the exposure amount calculating module is specifically configured to determine the first exposure amount according to the second exposure time, the second gain value, the second aperture value, and a mapping table of predetermined exposure time, gain value, aperture value, and brightness unit value.
According to an embodiment of the present application, the apparatus 40 further includes: an exposure value and brightness value determining module for keeping any two items of the exposure time, the gain value and the aperture value unchanged, and adjusting the other item to increase the brightness value, wherein the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value are recorded when a brightness unit value is increased; and the mapping table establishing module is used for establishing a mapping table of the exposure time, the gain value, the aperture value and the brightness unit value according to the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value.
According to an embodiment of the present application, all the exposure node determining modules are specifically configured to determine a complete exposure route according to a maximum aperture value of a clear image at a current magnification and a coefficient of 0 to 1 to obtain a second exposure route.
According to a third aspect of the embodiments of the present application, there is provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; a memory for storing a computer program; a processor for implementing the method steps of any of the above-described automatic exposure methods when executing the program stored in the memory.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of any of the above-described automatic exposure methods.
Here, it should be noted that: the above description of an embodiment of an automatic exposure apparatus, the above description of an embodiment of an electronic device, and the above description of an embodiment of a computer-readable storage medium are similar to the description of the foregoing method embodiments, and have similar beneficial effects as the foregoing method embodiments, and therefore, are not repeated herein. For technical details that have not been disclosed in the description of the embodiment of the automatic exposure apparatus, the description of the embodiment of the electronic device, and the description of the embodiment of the computer-readable storage medium, please refer to the description of the foregoing method embodiments of the present application for understanding, and therefore, for brevity, will not be described again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another device, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage medium, a Read Only Memory (ROM), a magnetic disk, and an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a removable storage medium, a ROM, a magnetic disk, an optical disk, or the like, which can store the program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. An automatic exposure method, characterized in that the method comprises:
acquiring a first exposure time, a first gain value, a first aperture value, a first exposure node and a first exposure line of a zoom starting point, wherein the exposure node is a node on the exposure line, the exposure amount of each node is the product of the exposure time, the gain value and the aperture value, and the exposure amount of the node is monotonically increased on the exposure line;
acquiring a current multiplying power and a maximum aperture value for ensuring the image to be clear under the current multiplying power;
determining whether the first aperture is larger than the maximum aperture value, if so, setting the maximum aperture value as a second aperture value, and if not, setting the first aperture value as the second aperture value;
keeping the second aperture value unchanged, and adjusting the exposure time and the gain according to the first exposure time, the first gain value, the first exposure node and the first exposure line to reach a preset brightness value;
acquiring the adjusted second exposure time, the adjusted second gain value and a second exposure node;
determining a first exposure amount according to the second exposure time, the second gain value and the second aperture value;
determining a second exposure line according to the current multiplying power, wherein the second exposure line comprises at least two exposure nodes;
determining a third exposure node and a first exposure state position according to the first exposure amount and the second exposure line, wherein the exposure amount of the first exposure state position is equal to the first exposure amount, and the exposure amount of the third exposure node is smaller than the exposure amount of the first exposure state position;
and adjusting the exposure time, the gain and the aperture according to the first exposure state position, the third exposure node, the second exposure line, the second exposure time, the second gain value and the second aperture to reach the first exposure amount.
2. The method according to claim 1, wherein the obtaining of the current magnification and the maximum aperture value for ensuring the sharpness of the image at the current magnification comprises:
acquiring the current multiplying power;
and acquiring the maximum aperture value for ensuring the clearness of the image under the current magnification according to the current magnification and a mapping table of the predetermined magnification and the maximum aperture value.
3. The method of claim 2, further comprising:
determining at least two multiplying powers;
determining a maximum aperture value for ensuring image clarity at each of the at least two magnifications;
and establishing a mapping table of the magnification and the maximum aperture value according to each magnification and the maximum aperture value for ensuring the image clearness under each magnification.
4. The method according to claim 3, wherein the creating a mapping table of the magnification and the maximum aperture value according to each magnification and the maximum aperture value for ensuring the image clarity at each magnification comprises:
according to each multiplying power and the maximum aperture value for ensuring the image clarity under each multiplying power, fitting a polynomial by using a least square method to obtain a first polynomial;
and establishing a mapping table of the multiplying power and the maximum aperture value according to the first polynomial.
5. The method of claim 1, wherein determining a first exposure amount based on the second exposure time, the second gain value, and the second aperture value comprises:
and determining a first exposure amount according to the second exposure time, the second gain value, the second aperture value and a mapping table of the predetermined exposure time, gain value, aperture value and brightness unit value.
6. The method of claim 5, further comprising:
keeping any two items of exposure time, gain value and aperture value unchanged, and adjusting the other item to increase the brightness value, wherein, every time a brightness unit value is increased, the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value are recorded;
and establishing a mapping table of the exposure time, the gain value, the aperture value and the brightness unit value according to the brightness value and the exposure time, the gain value and the aperture value corresponding to the brightness value.
7. The method of claim 1, wherein said determining a second exposure line as a function of said current magnification comprises:
and determining a complete exposure line according to the maximum aperture value of the clear image under the current magnification and the coefficient of 0-1 to obtain a second exposure line.
8. An automatic exposure apparatus, characterized in that the apparatus comprises:
the system comprises a starting value acquisition module, a first gain value acquisition module, a first aperture value acquisition module and a first exposure circuit, wherein the starting value acquisition module is used for acquiring first exposure time, a first gain value, a first aperture value, a first exposure node and a first exposure circuit of a zoom starting point, the exposure node is a node on the exposure circuit, the exposure amount of each node is the product of the exposure time, the gain value and the aperture value, and the exposure amount of the node is monotonically increased on the exposure circuit;
the maximum aperture value acquisition module is used for acquiring the current magnification and the maximum aperture value for ensuring the image clarity under the current magnification;
the second aperture value determining module is used for determining whether the first aperture is larger than the maximum aperture value, if so, the maximum aperture value is set as a second aperture value, and if not, the first aperture value is set as the second aperture value;
the exposure time and gain adjusting module is used for keeping the second aperture value unchanged and adjusting the exposure time and the gain according to the first exposure time, the first gain value, the first exposure node and the first exposure line so as to reach a preset brightness value;
the exposure value obtaining module after zooming is used for obtaining the adjusted second exposure time, the second gain value and the second exposure node;
the exposure calculation module is used for determining a first exposure according to the second exposure time, the second gain value and the second aperture value;
the second exposure circuit determining module is used for determining a second exposure circuit according to the current multiplying power, and the second exposure circuit comprises at least two exposure nodes;
the third exposure node determining module is used for determining a third exposure node and a first exposure state position according to the first exposure amount and the second exposure line, wherein the exposure amount of the first exposure state position is equal to the first exposure amount, and the exposure amount of the third exposure node is smaller than that of the first exposure state position;
and the exposure amount supplementing module is used for adjusting the exposure time, the gain and the aperture according to the first exposure state position, the third exposure node, the second exposure line, the second exposure time, the second gain value and the second aperture so as to achieve the first exposure amount.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; a memory for storing a computer program; a processor for implementing the method steps of any one of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110278251.6A CN112672071B (en) | 2021-03-16 | 2021-03-16 | Automatic exposure method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110278251.6A CN112672071B (en) | 2021-03-16 | 2021-03-16 | Automatic exposure method, device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112672071A CN112672071A (en) | 2021-04-16 |
CN112672071B true CN112672071B (en) | 2021-06-15 |
Family
ID=75399326
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110278251.6A Active CN112672071B (en) | 2021-03-16 | 2021-03-16 | Automatic exposure method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112672071B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115484384B (en) * | 2021-09-13 | 2023-12-01 | 华为技术有限公司 | Method and device for controlling exposure and electronic equipment |
CN113766145B (en) * | 2021-09-29 | 2023-06-02 | 重庆紫光华山智安科技有限公司 | Camera adjusting method, device, electronic equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3840121B2 (en) * | 2002-02-20 | 2006-11-01 | 富士写真フイルム株式会社 | Digital camera |
JP2009055461A (en) * | 2007-08-28 | 2009-03-12 | Sony Corp | Exposure control device, exposure control method, program and imaging apparatus |
CN105450936B (en) * | 2014-05-30 | 2019-02-15 | 杭州海康威视数字技术股份有限公司 | Intelligent adjusting method and its device when video camera automatic exposure |
JP6501580B2 (en) * | 2015-03-26 | 2019-04-17 | オリンパス株式会社 | Imaging device, imaging method, and program |
CN105554408B (en) * | 2015-12-16 | 2019-03-19 | 天地伟业技术有限公司 | A kind of adaptive approach of machine core aperture |
JP6778340B2 (en) * | 2018-01-25 | 2020-10-28 | 富士フイルム株式会社 | Imaging device, imaging method, and program |
-
2021
- 2021-03-16 CN CN202110278251.6A patent/CN112672071B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112672071A (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112672071B (en) | Automatic exposure method, device, electronic equipment and storage medium | |
EP0742472B1 (en) | Camera apparatus | |
KR101812807B1 (en) | A method of adaptive auto exposure contol based upon adaptive region's weight | |
US6618091B1 (en) | Image pickup apparatus having image signal state adjusting means a response characteristic of which is controlled in accordance with image magnification rate | |
JP4912238B2 (en) | Imaging device and interchangeable lens device | |
US20080297648A1 (en) | Focus detection apparatus | |
JP5948788B2 (en) | OPERATION CONTROL DEVICE, OPERATION CONTROL METHOD, IMAGING DEVICE, AND PROGRAM | |
FI117265B (en) | An electronic device and a method for processing image data in an electronic device | |
JP6967673B2 (en) | Continuous hybrid zoom system with constant resolution | |
US9386262B2 (en) | Image processing method, image processing apparatus and image pickup apparatus | |
US20140218557A1 (en) | Image processing method, image processing apparatus, non-transitory computer-readable medium, and image-pickup apparatus | |
US20110242373A1 (en) | Image processing apparatus, image pickup apparatus, image processing method, and program for performing image restoration | |
CN107343155A (en) | Suppress method and device, the terminal device of AEC saltus steps | |
CN104205800B (en) | Picture pick-up device | |
US20160112646A1 (en) | Image processing apparatus, image pickup apparatus, and image processing method | |
EP0804021B1 (en) | Image signal processing | |
JP2012037574A (en) | Electronic imaging apparatus | |
JP7169773B2 (en) | IMAGING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM | |
WO2020107289A1 (en) | Photographing method and apparatus, and unmanned aerial vehicle | |
JP2011160255A (en) | Image processing apparatus, imaging apparatus, and image processing program | |
CN104601901A (en) | Terminal picture taking control method and terminal | |
WO2023077431A1 (en) | Image processing method and apparatus, and image collection device and storage medium | |
CN111614865B (en) | Multi-shot brightness synchronization method, equipment, device and storage medium | |
US20190306416A1 (en) | Image processing apparatus and image processing method for correcting deterioration in image quality due to characteristics of image optical system | |
CN111327798A (en) | Storage medium, lens apparatus, image pickup apparatus, and processing apparatus |
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 |