CN113259600B - Exposure parameter configuration method and device, electronic equipment and medium - Google Patents
Exposure parameter configuration method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN113259600B CN113259600B CN202110512351.0A CN202110512351A CN113259600B CN 113259600 B CN113259600 B CN 113259600B CN 202110512351 A CN202110512351 A CN 202110512351A CN 113259600 B CN113259600 B CN 113259600B
- Authority
- CN
- China
- Prior art keywords
- exposure
- target value
- current
- value
- 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
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 9
- 230000002028 premature Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000010223 real-time analysis Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Disclosed are an exposure parameter configuration method, an exposure parameter configuration device, an electronic device and a medium, wherein the method comprises the following steps: determining a preset corresponding relation between exposure gain and line number; acquiring a plurality of exposure amounts to be configured, and an adjustment threshold value for configuring the plurality of exposure amounts; and acquiring an exposure gain target value and a line number target value corresponding to each exposure amount from the initial value of the exposure amount based on the preset corresponding relation, the adjustment threshold and a preset parameter configuration rule. Therefore, the exposure parameter configuration efficiency and the user-defined degree of freedom can be improved, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of exposure control technologies, and in particular, to a method and an apparatus for configuring exposure parameters, an electronic device, and a medium.
Background
In the exposure control process of the existing image acquisition device, the exposure quantity needs to be known, and after the exposure quantity is calculated by the existing algorithm, the exposure quantity needs to be decomposed into exposure time, exposure gain and aperture size. In a scene with a fixed aperture, the image acquisition device performs parameter configuration of exposure time and exposure gain according to an exposure table, and indexes specific exposure time and exposure gain according to the size of the exposure amount required by an image, wherein the exposure time can be measured by using a line number.
In order to prevent sudden change, the exposure parameter configuration process is required to be a gradual transition process, so that the exposure parameters cannot be adjusted in a spanning manner, in the traditional exposure table generation process, the exposure gain and the number of lines (namely the number of exposure lines, which is hereinafter referred to as the number of lines) generally increase alternately and gradually reach a target value, and the alternate increasing mode needs to be defined by a user, requires the user to have certain experience and fill in a table, is low in efficiency, inconvenient and inconvenient, and cannot visually analyze the influence of performance parameters such as frame rate, noise and the like; traditional exposure parameter configuration still can make exposure gain and line number increase under fixed proportion, guarantees promptly that the ratio of exposure gain and line number is a definite value, and the user can't self-define the increase proportion of exposure gain and line number, and the flexibility ratio is low, and the configuration is inefficient, and user experience is poor.
Disclosure of Invention
The present disclosure is proposed to solve the above technical problems. The embodiment of the disclosure provides an exposure parameter configuration method and device, an electronic device and a medium, which adjust exposure parameters based on preset parameter corresponding relations, adjustment thresholds and parameter configuration rules, improve exposure parameter configuration efficiency and user-defined freedom, and improve user experience.
According to an aspect of the present disclosure, there is provided an exposure parameter configuration method including:
determining a preset corresponding relation between exposure gain and line number;
acquiring a plurality of exposure amounts to be configured, and an adjustment threshold value for configuring the plurality of exposure amounts;
and acquiring an exposure gain target value and a line number target value corresponding to each exposure amount from the initial value of the exposure amount based on the preset corresponding relation, the adjustment threshold and a preset parameter configuration rule.
According to another aspect of the present disclosure, there is provided an exposure parameter configuration apparatus including:
the corresponding relation determining module is used for determining a preset corresponding relation between the exposure gain and the line number;
a parameter acquisition module for acquiring a plurality of exposure amounts to be configured and an adjustment threshold value for configuring the plurality of exposure amounts;
and the exposure parameter configuration module is used for acquiring an exposure gain target value and a line number target value corresponding to each exposure quantity from the initial value of the exposure quantity based on the preset corresponding relation, the adjustment threshold value and a preset parameter configuration rule.
According to still another aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing the processor-executable instructions; the processor is used for reading the executable instructions from the memory and executing the executable instructions to realize the exposure parameter configuration method.
According to still another aspect of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the exposure parameter configuration method.
Compared with the prior art, the exposure parameter configuration method, the exposure parameter configuration device, the electronic equipment and the medium, which are provided by the embodiment of the disclosure, can determine the preset corresponding relationship between the exposure gain and the line number; acquiring a plurality of exposure amounts to be configured, and an adjustment threshold value for configuring the plurality of exposure amounts; and acquiring an exposure gain target value and a line number target value corresponding to each exposure amount from the initial value of the exposure amount based on the preset corresponding relation, the adjustment threshold and a preset parameter configuration rule. Therefore, the exposure parameters are adjusted based on the preset parameter corresponding relation, the adjustment threshold value and the parameter configuration rule, the exposure parameter configuration efficiency and the user-defined freedom degree are improved, and the user experience is improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in more detail embodiments of the present disclosure with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the principles of the disclosure and not to limit the disclosure. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 is a schematic view of an application scenario of an exposure parameter configuration method according to an embodiment of the disclosure;
FIG. 2 is a flowchart illustrating an exposure parameter configuration method according to an embodiment of the disclosure;
FIG. 3 is a schematic diagram illustrating curve control of an exposure parameter configuration method according to an embodiment of the disclosure;
FIG. 4(a) is a diagram illustrating prior art exposure parameter configuration with a prior art priority for increasing the number of rows;
FIG. 4(b) is a diagram illustrating prior art exposure parameter configuration with preferential increase in exposure gain;
FIG. 4(c) is a diagram illustrating exposure parameters configuring exposure gain and row number fixed scale growth for a prior art exposure parameter;
FIG. 4(d) is a schematic diagram of exposure parameter configuration custom exposure gain and row number scaling increase according to an embodiment of the present disclosure;
FIG. 5 is a block diagram of an exposure parameter configuration apparatus according to an embodiment of the disclosure;
FIG. 6 is a schematic diagram of a parameter acquisition module according to an embodiment of the disclosure;
fig. 7 is a schematic diagram of an exposure parameter configuration module according to an embodiment of the disclosure:
FIG. 8 is a schematic diagram of an exposure parameter configuration unit according to an embodiment of the disclosure;
FIG. 9 is a schematic diagram of an exposure parameter determining unit according to an embodiment of the disclosure;
fig. 10 is a schematic diagram of an exposure parameter configuration unit according to another embodiment of the disclosure:
FIG. 11 is a block diagram of an exposure parameter configuration apparatus including an exposure time target determination module according to an embodiment of the disclosure;
fig. 12 is a block diagram of an electronic device according to an embodiment of the disclosure.
[ description of main symbols ]
50: exposure parameter configuration device 51: corresponding relation determining module
52: the parameter acquisition module 53: exposure parameter configuration module
Detailed Description
Hereinafter, example embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some of the embodiments of the present disclosure, and not all of the embodiments of the present disclosure, and it is to be understood that the present disclosure is not limited by the example embodiments described herein.
Summary of the application
As described above, the conventional exposure parameter configuration technology gradually reaches a target value by controlling the exposure gain and the number of lines to alternately increase, for example, a maximum exposure gain and the number of lines may be given, and a user manually inputs a required corner coordinate to generate an exposure parameter table, or a limited number of corners are provided to allow the user to drag the corners to adjust the exposure parameters. In the existing exposure adjustment technology, exposure gain and line number generally increase alternately and gradually reach a target value, and the alternate increasing mode needs to be defined by a user, requires the user to have certain experience and fill in a form, is low in efficiency, inconvenient and quick, has small adjustment freedom, cannot visually analyze the influence of performance parameters, and is poor in user experience, wherein the performance parameters comprise frame rate, noise and the like. In addition, traditional exposure parameter configuration still can make exposure gain and line number increase under the fixed proportion, guarantees promptly that the ratio of exposure gain and line number is a definite value, and the user can't self-define the increase proportion of exposure gain and line number, and the flexibility ratio is low, and the configuration is inefficient, and user experience is poor.
In view of the above technical problems, the basic concept of the present disclosure is to adjust exposure parameters based on preset parameter correspondence, adjustment thresholds, and parameter configuration rules, thereby improving exposure parameter configuration efficiency and user-defined freedom, improving user experience, and realizing real-time analysis of the influence of performance parameters.
Having described the general principles of the present disclosure, various non-limiting embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings.
Exemplary System
Fig. 1 is a schematic view of an application scenario of an exposure parameter configuration method according to an embodiment of the present disclosure.
Generally, the image brightness satisfies the following formula:
Luminance=light*exposure=light*gain*line (1)
where luminance is the resulting image brightness, usually a constant 128, light is the ambient light intensity, exposure is the exposure, gain is the exposure gain, and line is the number of lines.
The exposure time and the number of lines satisfy the following relationship:
Time=1/fps*line/vsize (2)
where Time is the exposure Time, fps is the frame rate, and vsize is the height of the image.
How to adjust the exposure gain and the number of rows for a given exposure can be done by configuring the exposure parameters to obtain an exposure table. In the process of configuring exposure parameters, the values of exposure gain and line number cannot be too large, a large line number can cause the frame rate to be reduced, and a large exposure gain can increase image noise and influence the imaging quality. Therefore, the corresponding exposure gain and the corresponding number of rows under the known exposure quantity need to be reasonably configured to generate the corresponding exposure table so as to realize the exposure control of the image acquisition device (such as a camera).
Next, how to configure the corresponding exposure gain and the number of exposure lines at a known exposure amount will be described.
Exemplary method
Fig. 2 is a schematic flowchart of an exposure parameter configuration method according to an exemplary embodiment of the disclosure, where the embodiment is applicable to an electronic device, and as shown in fig. 2, the method includes the following steps:
and step S1, determining a preset corresponding relation between the exposure gain and the line number.
Wherein the number of rows is used to measure the exposure time. The preset corresponding relationship between the exposure gain and the line number refers to a mapping relationship between the preset exposure gain and the line number value, but it can be understood that the exposure amount is equal to the product of the exposure gain and the line number corresponding to the exposure amount, and therefore, in the preset mapping relationship between the exposure gain and the line number value, the change rule of the exposure gain and/or the line number is in accordance with the change rule of the exposure amount. As an example, a monotonously increasing reference curve passing through the origin may be specifically established in a rectangular coordinate system, the row number represents an abscissa, and the exposure gain represents an ordinate, and the reference curve may determine a preset correspondence relationship between the exposure gain and the row number. Based on the preset corresponding relationship between the exposure gain and the number of lines, the corresponding value of the number of lines can be obtained when the value of the exposure gain is known, and correspondingly, the corresponding value of the exposure gain can be obtained when the value of the number of lines is known. However, it is understood that the values of the exposure gain and the line number in the preset corresponding relationship between the exposure gain and the line number are random, and therefore, the rationality is poor, and the present disclosure aims to configure the reasonable exposure gain and the line number corresponding to the known exposure amount, that is, to configure the reasonable exposure gain target value and the line number target value corresponding to the known exposure amount based on the preset corresponding relationship between the exposure gain and the line number, the known exposure amount, and the like.
Step S2, acquiring a plurality of exposure amounts to be configured, and adjustment thresholds for configuring the plurality of exposure amounts.
The exposure amount is equal to the product of the exposure gain and the number of rows corresponding to the exposure amount, the threshold value is adjusted to be a reference parameter in the exposure parameter configuration process, and the threshold value can be set according to the specific configuration requirements of the exposure parameters. It should be noted that, in the subsequent steps of the present disclosure, comparison calculation is performed based on the variation relationship between a plurality of exposure amounts, the preset corresponding relationship between the exposure gain and the number of lines, and the adjustment threshold, so that an exposure gain target value and a number of lines target value corresponding to each exposure amount can be obtained.
Step S3, based on the preset corresponding relationship, the adjustment threshold and the preset parameter configuration rule, obtaining an exposure gain target value and a line number target value corresponding to each exposure amount from the initial value of the exposure amount.
Based on the preset corresponding relationship, the corresponding line number value can be obtained when the exposure gain value is known, or the corresponding exposure gain value can be obtained when the line number value is known. Based on an exposure gain initial value and a line number initial value corresponding to the exposure amount initial value and an exposure gain and line number value obtained based on a preset corresponding relation, and based on an adjustment threshold value and a preset parameter configuration rule, an exposure gain target value and a line number target value corresponding to each exposure amount can be determined one by one. This more specific example is presented later in the expanded description of step S3.
The method of the embodiment of the disclosure adjusts the exposure parameters based on the preset parameter corresponding relation, the adjustment threshold and the parameter configuration rule to determine the variation rule of the exposure gain and the line number under the exposure quantity, and determines the corresponding exposure gain target value and the line number target value based on the variation rule and the current exposure gain target value or the current line number standard value, thereby improving the exposure parameter configuration efficiency and the user-defined degree of freedom, and improving the user experience.
On the basis of the embodiment shown in fig. 2, the acquisition of the plurality of exposure amounts to be configured in step S2 may include the steps of:
step S21, acquiring an initial value and a relative increment of the exposure amount, the relative increment being greater than 1.
As an embodiment, the initial value of the exposure amount may be 1, as an example, the exposure increment may be 1.03, it is understood that the exposure increment is 1.03 only as an example, and a specific numerical value may be set according to a user requirement, so as to improve the degree of freedom defined by the user.
And step S22, starting from the initial value of the exposure amount, and multiplying the current exposure amount by the relative increment to obtain the next exposure amount, thereby obtaining the plurality of exposure amounts to be configured.
Based on the fact that the plurality of exposure amounts can be quickly configured in steps S21 and S22, it is understood that the target value of the number of lines and the target value of the gain corresponding to each exposure amount are acquired on the basis of the subsequent calculation of these known exposure amounts.
On the basis of the embodiment shown in fig. 2, step S3 may include the following steps:
step S31, acquiring the configured current exposure amount and the corresponding current line number target value and current exposure gain target value.
Still taking the exposure initial value as 1 as an example, correspondingly, the exposure gain target value initial value is 1.0 (the exposure gain is a floating-point type number), the line number target value initial value is 1 (the line number is an integer number), and the line number target value and the exposure gain target value corresponding to the next exposure can be sequentially obtained based on the method of the present disclosure from the initial values, so as to implement the configuration of the exposure parameters.
And step S32, obtaining the current exposure gain corresponding to the target value of the current line number based on the preset corresponding relationship.
(the detailed description is also added below step S1 here)
It can be understood that, since the preset corresponding relationship has set the mapping relationship between the exposure gain and the row number value, when the exposure gain value is known, the corresponding row number value can be obtained, and correspondingly, when the row number value is known, the corresponding exposure gain value can be obtained.
And step S33, determining the target value of the line number and the target value of the exposure gain corresponding to the next exposure amount based on the current exposure gain, the target value of the current line number, the target value of the current exposure gain and the adjustment threshold value.
Wherein, according to the rule from step S32 to step S33, the target value of the number of lines and the target value of the exposure gain corresponding to each exposure are sequentially obtained until the target values of the number of lines and the exposure gain corresponding to all the exposures are obtained. Based on an exposure gain initial value and a line number initial value corresponding to the initial value of the exposure amount, and based on exposure gain and line number values obtained based on a preset corresponding relation, and based on an adjustment threshold value and a preset parameter configuration rule, an exposure gain target value and a line number target value corresponding to each exposure amount can be determined one by one
. As an example, step S33 may include the following steps:
step S331, determining a current first reference value based on the current exposure gain and the current line number target value.
The abscissa is represented by the row number, the exposure gain is represented by the ordinate, a preset corresponding relationship between the exposure gain and the row number is represented by a monotonically increasing reference curve which passes through the origin in a rectangular coordinate system, for example, the current ordinate corresponding to the target value of the current row number is obtained based on the abscissa and the ordinate of the reference curve, and the current ordinate is divided by the standard value of the current row number to obtain a current first reference value.
Step S332, determining a current second reference value based on the current exposure gain target value and the current line number target value.
Based on the corresponding specific embodiment in step S331, the current exposure gain target value is divided by the current line number index value to obtain the current second reference value.
And step S333, determining a target value of the line number and a target value of the exposure gain corresponding to the next exposure amount based on the current first reference value, the current second reference value, the adjustment threshold, the target value of the current line number and the target value of the current exposure gain.
Based on the comparison of the first reference value and the current second reference value with the adjustment threshold, a line number target value or an exposure gain target value corresponding to the next exposure amount can be determined, and based on the determined line number target value or the exposure gain target value, a corresponding exposure gain target value and line number target value can be determined. Then, based on the logic from step S331 to step S332, the target value of the number of lines or the target value of the exposure gain corresponding to the next exposure amount can be determined until the target values of the number of lines and the exposure gain corresponding to all the exposure amounts are determined.
Based on steps S331 to S332, the target value of the number of lines and the target value of the exposure gain for each exposure amount can be determined quickly and accurately.
As an example, step S333 may further include the steps of:
step S3331, comparing the ratio of the current first reference value to the current second reference value with the adjustment threshold.
And dividing the current first reference value by the current second reference value to obtain the ratio of the current first reference value to the current second reference value.
Step S3332, if the ratio is greater than the adjustment threshold, setting the target value of the next line number equal to the target value of the current line number, and setting the target value of the next exposure gain equal to the next exposure divided by the standard value of the next line number; otherwise, setting the next exposure gain target value equal to the current exposure gain target value, dividing the next exposure by the next exposure gain target value to be rounded, and comparing with the current line number standard value to obtain a larger value as the next line number standard value.
Step S3331 to step S3332 can determine whether to increase the exposure gain preferentially or to increase the number of lines preferentially at the current time based on the relationship between the ratio of the current first reference value to the current second reference value and the adjustment threshold, which can effectively avoid premature decrease or premature increase of the frame rate, equalize the frame rate and noise, and improve the accuracy and efficiency of exposure parameter configuration.
The method of the present disclosure may obtain a series of target values of line number and target values of exposure gain, but there is a maximum value for both exposure gain and line number, so that the overflow truncation operation may be performed, and as an example, the step S33 may further include the following steps:
step 334, setting the maximum value of the exposure gain and the maximum value of the line number based on the maximum value of the exposure gain and the maximum value of the line number input by the user;
the maximum value of the exposure gain and the maximum value of the line number can be set by receiving the maximum value of the exposure gain and the maximum value of the line number input by a user according to the user requirement, and the degree of freedom of user control is increased.
And step S335, determining a target value of the number of lines and a target value of the exposure gain corresponding to the next exposure amount based on the maximum value of the exposure gain and the maximum value of the number of lines.
Based on the set maximum value of the exposure gain and the maximum value of the line number, the values of the target value of the line number and the target value of the exposure gain may be further determined, and specifically, step S335 may further include the following steps:
and S3351, comparing the next row number index value with the maximum value of the row number, and if the next row number index value is larger than the maximum value of the row number, setting the next row number index value as the maximum value of the row number.
It should be noted that, each target value of the number of rows cannot be greater than the maximum value of the number of rows, and therefore, when the next scalar value of the number of rows is greater than the maximum value of the number of rows, the next scalar value of the number of rows needs to be set to the maximum value of the number of rows, and the actual calculated value cannot be obtained.
Step S3352, comparing the next exposure gain target value with the maximum exposure gain value, and if so, setting the next exposure gain target value as the maximum exposure gain value.
It should be noted that each exposure gain target value cannot be larger than the exposure gain maximum value, and therefore, when the next exposure gain target value is larger than the exposure gain maximum value, the next exposure gain target value needs to be set to the exposure gain maximum value, and cannot be actually calculated.
Through steps S3351-S3352, the target value of the logarithmic target and the target value of the exposure gain can be calibrated, and the accuracy and the reliability of the exposure parameter configuration can be improved.
On the basis of the embodiment shown in fig. 2, the method further comprises the following steps:
step S4, determining the target value of the current exposure time corresponding to the current exposure amount by formula (2) based on the index value of the current line number, the frame rate and the height of the image, wherein the frame rate and the height of the image are known quantities.
In step S4, an exposure time target value corresponding to each line number target value may be acquired, a correspondence between the exposure time target value and the exposure gain target value may be acquired based on a correspondence between the line number target value and the exposure gain target value, an exposure table may be generated based on a correspondence between the exposure gain target value and the exposure time target value that are generated for each exposure amount, and the exposure table may be introduced into the image capturing apparatus, which may implement exposure control based on the exposure treasure.
As a specific example, as shown in fig. 3, in step S1, a monotonically increasing reference curve passing through the origin may be established in a rectangular coordinate system, the row number represents an abscissa, and the exposure gain represents an ordinate, and the reference curve may determine a preset correspondence between the exposure gain and the row number. One or more curve control points can be arranged on the reference curve, and the shape of the reference curve is adjusted by controlling the curve control points, so that the corresponding relation between the exposure gain and the number of rows is controlled. The curve control point is a point that must be set up to control the shape of the curve in the curve control measurement. Correspondingly, in step S2, a first boundary curve and a second boundary curve may be established in the orthogonal coordinate system based on the reference curve, each exposure is located between the first boundary curve and the second boundary curve, and an adjustment threshold is represented by THR, where, under any same abscissa, a slope of the first boundary curve is THR times a slope of the reference curve, and a slope of the second boundary curve is 1/THR times the slope of the reference curve. It should be noted that, in this example, the configuration of the exposure parameters is based on the reference curve, the exposures to be configured are located between the first boundary curve and the second boundary curve, and are increased in a zigzag manner (zigzag), and the exposure parameter configuration is completed by acquiring the exposure gain target value and the line number target value corresponding to each exposure through step S3.
The exposure parameter can be configured based on the reference curve, different curve shapes correspond to different exposure parameter configuration results, a user can control the shape through controlling the curve control points according to requirements, and the value of the adjustment threshold value is set, so that the exposure parameter can be configured by the user in a self-defined mode. It should be noted that curve control is only an example, and other exposure parameter adjustment strategies that follow the configuration method described in the present disclosure may be suitable for this purpose.
As shown in fig. 4(a) - (d), the prior art has certain disadvantages whether the prior art increases the number of rows or the exposure gain preferentially, fig. 4(a) increases the number of rows to cause a premature frame rate decrease, fig. 4(b) increases the exposure gain to cause a premature noise increase, and fig. 4(c) increases the exposure gain and the number of rows in a fixed ratio, balancing the exposure gain and the number of rows, but not allowing the user to customize their ratio. The method of the embodiment of the present disclosure may make the ratio of the exposure gain to the number of lines equal to the slope of the reference curve (i.e., the preset corresponding relationship), as shown in fig. 4(d), provide the user with a curve to define the user, allow the user to determine the balance relationship between the exposure gain and the number of lines, and adjust the exposure parameter based on the preset parameter corresponding relationship, the adjustment threshold, and the parameter configuration rule, thereby improving the exposure parameter configuration efficiency and the user-defined degree of freedom, improving the user experience, and realizing the real-time analysis of the influence of the performance parameter.
Exemplary devices
Fig. 5 is a block diagram of an exposure parameter configuration apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, an exposure parameter configuration apparatus 50 of the embodiment of the present disclosure includes: a correspondence determining module 51, configured to determine a preset correspondence between the exposure gain and the number of lines, where the number of lines is used for measuring the exposure time. The parameter acquiring module 52 is configured to acquire a plurality of exposure amounts to be configured, and an adjustment threshold value for configuring the plurality of exposure amounts, where the exposure amount is equal to a product of an exposure gain and a number of rows corresponding to the exposure amount, and the adjustment threshold value is a reference parameter in an exposure parameter configuration process and can be set according to a specific configuration requirement of an exposure parameter. An exposure parameter configuration module 53, configured to obtain, based on the preset correspondence, an adjustment threshold, and a preset parameter configuration rule, an exposure gain target value and a line number target value corresponding to each exposure amount from an initial value of the exposure amount. The device of the embodiment of the disclosure adjusts the exposure parameters based on the preset parameter corresponding relation, the adjustment threshold and the parameter configuration rule, so that the exposure parameter configuration efficiency and the user-defined freedom degree are improved, and the user experience is improved.
As an example, as shown in fig. 6, the parameter acquiring module 52 includes an exposure amount acquiring unit 521, configured to acquire an initial value and a relative increment of the exposure amount based on a preset initial value and a relative increment of the exposure amount, where the initial value of the exposure amount is 1 and the corresponding initial value of the exposure gain target value is 1.0 (the exposure gain is a floating-point type number) and the initial value of the number of lines target value is 1 (the number of lines is an integer number), and as an example, the exposure increment may be set to 1.03, and it is understood that 1.03 is only an example, and a specific value may be set by a user according to a requirement to raise a degree of freedom defined by the user. And taking a value from the initial value of the exposure amount, and multiplying the current exposure amount by the relative increment to obtain the next exposure amount so as to obtain the plurality of exposure amounts to be configured.
As an example, as shown in fig. 7, the exposure parameter configuration module 53 includes: the first exposure parameter obtaining unit 531 is configured to obtain the configured current exposure amount, and the current line number target value and the current exposure gain target value corresponding to the current exposure amount, where as can be understood, an initial value of the exposure gain target value is 1.0, and an initial value of the line number target value is 1, and the line number target value and the exposure gain target value corresponding to the next exposure amount can be sequentially obtained from the initial values based on the apparatus of the present disclosure, so as to implement configuration of the exposure parameters. A second exposure parameter obtaining unit 532, configured to obtain a current exposure gain corresponding to the current line number target value based on the preset corresponding relationship; the exposure parameter configuration unit 533 is configured to determine a target value of the line number and a target value of the exposure gain corresponding to the next exposure amount based on the current exposure gain, the target value of the current line number, the target value of the current exposure gain, and the adjustment threshold.
As an example, as shown in fig. 8, the exposure parameter configuration unit 533 includes: a first reference value determining unit 5331 configured to determine a current first reference value based on the current exposure gain and the current line number target value; a second reference value determining unit 5332 configured to determine a current second reference value based on a current exposure gain target value and the current line number target value; and an exposure parameter determining unit 5333 configured to determine a target value of the number of lines and a target value of the exposure gain corresponding to the next exposure amount based on the current first reference value, the current second reference value, the adjustment threshold, the target value of the current number of lines, and the target value of the current exposure gain.
As an example, as shown in fig. 9, the exposure parameter determination unit 5333 includes: a parameter comparing unit 53331, configured to compare a ratio of the current first reference value to the current second reference value with the adjustment threshold: a first target value determining unit 53332 for setting the next line number target value equal to the current line number target value and setting the next exposure gain target value equal to the next exposure amount divided by the next line number target value when the ratio is larger than the adjustment threshold; a second target value determining unit 53333, when the ratio is equal to or less than the adjustment threshold, for setting the next exposure gain target value equal to the current exposure gain target value, dividing the next exposure amount by the next exposure gain target value by a whole, and then comparing with the current line number standard value, and taking the larger value as the next line number standard value.
The apparatus of the present disclosure may obtain a series of target values of line number and target values of exposure gain, but there is a maximum value for both exposure gain and line number, so that an overflow truncation operation may be performed, as shown in fig. 10, and the exposure parameter configuration unit 533 further includes: the maximum value setting unit 5334 is used for setting the maximum value of the exposure gain and the maximum value of the line number, wherein the maximum values of the exposure gain and the line number can be set by a user according to requirements, and the degree of freedom of user control is increased. An overflow truncation unit 5335 configured to determine a target value of the number of lines and a target value of the exposure gain corresponding to the next exposure amount based on the maximum value of the exposure gain and the maximum value of the number of lines.
As an example, the overflow truncation unit 5335 is specifically configured to: comparing the next row number index value with the maximum value of the row number, and if the next row number index value is larger than the maximum value of the row number, setting the next row number index value as the maximum value of the row number; and comparing the next exposure gain target value with the exposure gain maximum value, and if the next exposure gain target value is larger than the exposure gain maximum value, setting the next exposure gain target value as the exposure gain maximum value.
As shown in fig. 11, the apparatus further includes an exposure time target value determining module 54, configured to determine a current exposure time target value corresponding to the current exposure amount according to formula (2) based on the current line number index value, the frame rate, and the height of the image, wherein the frame rate and the height of the image are known amounts.
And generating an exposure table based on the target exposure gain and the target exposure time corresponding to each generated exposure amount, and importing the exposure table into the image acquisition device to realize exposure control of the image acquisition device. The device of the embodiment of the disclosure adjusts the exposure parameters based on the preset parameter corresponding relation, the adjustment threshold value and the parameter configuration rule, improves the exposure parameter configuration efficiency and the user-defined degree of freedom, improves the user experience, and can realize the real-time analysis of the influence of the performance parameters.
It should be noted that, the embodiment of the exposure parameter configuration apparatus may be configured to execute the embodiment of the exposure parameter configuration method, and the technical principle, the solved technical problems, and the generated technical effects are similar, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific implementation process and the related description of the exposure parameter configuration described above may refer to the corresponding process in the embodiment of the exposure parameter configuration method, and are not described herein again.
Exemplary electronic device
Next, an electronic apparatus according to an embodiment of the present disclosure is described with reference to fig. 12.
FIG. 12 is a block diagram illustrating an electronic device according to an embodiment of the disclosure.
As shown in fig. 12, the electronic device 10 includes one or more processors 11 and a memory 12.
The processor 11 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
In one example, the electronic device 10 may further include: an input device 13 and an output device 14, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 13 may also include, for example, a keyboard, a mouse, and the like.
The output device 14 may output various information including the determined distance information, direction information, and the like to the outside. The output devices 14 may include, for example, a display, speakers, a printer, and a communication network and its connected remote output devices, among others.
Of course, for simplicity, only some of the components of the electronic device 10 relevant to the present disclosure are shown in fig. 6, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device 10 may include any other suitable components depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in a content of interest push method according to various embodiments of the present disclosure described in the "exemplary methods" section of this specification above.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure 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.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in a content of interest push method according to various embodiments of the present disclosure described in the "exemplary methods" section above in this specification.
The computer-readable storage medium may take 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 include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 basic principles of the present disclosure have been described above in connection with specific embodiments, but it should be noted that advantages, effects, and the like, mentioned in the present disclosure are only examples and not limitations, and should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by one skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It is also noted that in the devices, apparatuses, and methods of the present disclosure, each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (9)
1. An exposure parameter configuration method includes:
determining a preset corresponding relation between exposure gain and line number;
acquiring a plurality of exposure amounts to be configured, and an adjustment threshold value for configuring the plurality of exposure amounts;
based on the preset corresponding relation, the adjustment threshold and the preset parameter configuration rule, the method for acquiring the exposure gain target value and the line number target value corresponding to each exposure amount from the initial value of the exposure amount comprises the following steps: acquiring the configured current exposure and a current line number target value and a current exposure gain target value corresponding to the current exposure; obtaining the current exposure gain corresponding to the target value of the current line number based on the preset corresponding relation; and determining the target value of the line number and the target value of the exposure gain corresponding to the next exposure amount based on the current exposure gain, the target value of the current line number, the target value of the current exposure gain and the adjustment threshold.
2. The exposure parameter configuration method according to claim 1,
the acquiring a plurality of exposures to be configured includes:
acquiring an initial value and a relative increment of the exposure, wherein the relative increment is more than 1;
and taking a value from the initial value of the exposure amount, and multiplying the current exposure amount by the relative increment to obtain the next exposure amount so as to obtain the plurality of exposure amounts to be configured.
3. The exposure parameter configuration method according to claim 1,
the determining the target value of the number of lines and the target value of the exposure gain corresponding to the next exposure amount based on the current exposure gain, the target value of the number of lines, the target value of the current exposure gain and the adjustment threshold value comprises:
determining a current first reference value based on the current exposure gain and the current row number target value;
determining a current second reference value based on the current exposure gain target value and the current line number target value;
and determining a line number target value and an exposure gain target value corresponding to the next exposure amount based on the current first reference value, the current second reference value, the adjustment threshold, the current line number target value and the current exposure gain target value.
4. The exposure parameter configuration method according to claim 3,
determining a line number target value and an exposure gain target value corresponding to the next exposure amount based on the current first reference value, the current second reference value, the adjustment threshold, the current line number target value and the current exposure gain target, including:
comparing the ratio of the current first reference value to the current second reference value to the adjustment threshold:
if the ratio is larger than the adjustment threshold, setting the line number target value corresponding to the next exposure amount to be equal to the current line number target value, and setting the exposure gain target value corresponding to the next exposure amount to be equal to the next exposure amount divided by the line number target value corresponding to the next exposure amount;
otherwise, setting the next exposure gain target value equal to the current exposure gain target value, dividing the next exposure by the exposure gain target value corresponding to the next exposure to obtain an integer, and comparing the integer with the current line number standard value to obtain a larger value as the line number target value corresponding to the next exposure.
5. The exposure parameter configuration method according to any one of claims 1 to 4,
the determining the target value of the number of lines and the target value of the exposure gain corresponding to the next exposure amount based on the current exposure gain, the target value of the number of lines, the target value of the current exposure gain and the adjustment threshold value comprises:
setting the maximum value of exposure gain and the maximum value of the number of rows;
and determining a target value of the line number and a target value of the exposure gain corresponding to the next exposure amount based on the maximum value of the exposure gain and the maximum value of the line number.
6. The exposure parameter configuration method according to claim 5,
determining a target value of the number of lines and a target value of the exposure gain corresponding to the next exposure amount based on the maximum value of the exposure gain and the maximum value of the number of lines, including:
comparing the target value of the number of lines corresponding to the next exposure amount with the maximum value of the number of lines, and if the target value of the number of lines corresponding to the next exposure amount is larger than the maximum value of the number of lines, setting the target value of the number of lines corresponding to the next exposure amount as the maximum value of the number of lines;
and comparing the exposure gain target value corresponding to the next exposure amount with the exposure gain maximum value, and if the exposure gain target value corresponding to the next exposure amount is larger than the exposure gain maximum value, setting the exposure gain target value corresponding to the next exposure amount as the exposure gain maximum value.
7. An exposure parameter configuration apparatus comprising:
a corresponding relation determining module for determining a preset corresponding relation between the exposure gain and the line number;
a parameter acquisition module for acquiring a plurality of exposure amounts to be configured and an adjustment threshold value for configuring the plurality of exposure amounts;
an exposure parameter configuration module, configured to obtain, based on the preset correspondence, an adjustment threshold, and a preset parameter configuration rule, an exposure gain target value and a line number target value corresponding to each exposure amount from an initial value of the exposure amount, including: acquiring the configured current exposure and a current line number target value and a current exposure gain target value corresponding to the current exposure; obtaining the current exposure gain corresponding to the target value of the current line number based on the preset corresponding relation; and determining the target value of the line number and the target value of the exposure gain corresponding to the next exposure amount based on the current exposure gain, the target value of the current line number, the target value of the current exposure gain and the adjustment threshold.
8. An electronic device, comprising:
a processor; and
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the exposure parameter configuration method of any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program for executing the exposure parameter configuration method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110512351.0A CN113259600B (en) | 2021-05-11 | 2021-05-11 | Exposure parameter configuration method and device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110512351.0A CN113259600B (en) | 2021-05-11 | 2021-05-11 | Exposure parameter configuration method and device, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113259600A CN113259600A (en) | 2021-08-13 |
CN113259600B true CN113259600B (en) | 2022-08-05 |
Family
ID=77222738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110512351.0A Active CN113259600B (en) | 2021-05-11 | 2021-05-11 | Exposure parameter configuration method and device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113259600B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546732A (en) * | 2013-10-18 | 2014-01-29 | 广州市浩云安防科技股份有限公司 | Image processing method and system |
CN104754240A (en) * | 2015-04-15 | 2015-07-01 | 中国电子科技集团公司第四十四研究所 | Automatic exposure method and device for CMOS (complementary metal oxide semiconductor) image sensor |
CN106686319A (en) * | 2016-12-27 | 2017-05-17 | 浙江大华技术股份有限公司 | Control method and device of image exposure |
CN108419025A (en) * | 2018-05-30 | 2018-08-17 | 北京图森未来科技有限公司 | A kind of exposure parameter method of adjustment, device and readable medium |
CN108769542A (en) * | 2018-05-30 | 2018-11-06 | 北京图森未来科技有限公司 | A kind of exposure parameter determines method, apparatus and readable medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7605852B2 (en) * | 2004-05-17 | 2009-10-20 | Micron Technology, Inc. | Real-time exposure control for automatic light control |
-
2021
- 2021-05-11 CN CN202110512351.0A patent/CN113259600B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546732A (en) * | 2013-10-18 | 2014-01-29 | 广州市浩云安防科技股份有限公司 | Image processing method and system |
CN104754240A (en) * | 2015-04-15 | 2015-07-01 | 中国电子科技集团公司第四十四研究所 | Automatic exposure method and device for CMOS (complementary metal oxide semiconductor) image sensor |
CN106686319A (en) * | 2016-12-27 | 2017-05-17 | 浙江大华技术股份有限公司 | Control method and device of image exposure |
CN108419025A (en) * | 2018-05-30 | 2018-08-17 | 北京图森未来科技有限公司 | A kind of exposure parameter method of adjustment, device and readable medium |
CN108769542A (en) * | 2018-05-30 | 2018-11-06 | 北京图森未来科技有限公司 | A kind of exposure parameter determines method, apparatus and readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN113259600A (en) | 2021-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9483372B2 (en) | Continuous power leveling of a system under test | |
WO2017128988A1 (en) | Method for measuring ambient brightness value and photographing device | |
JP2014106104A (en) | Subcriticality measuring method and device | |
TW201824068A (en) | Exposure Time Determination Method of Image Sensing | |
US11381754B2 (en) | Information processing apparatus, information processing method and computer readable medium to generate a luminance distribution of a photographed target area | |
CN111473887B (en) | Shell temperature acquisition method and device, storage medium and electronic equipment | |
US20200265299A1 (en) | Data processing method, device and related products | |
CN113259600B (en) | Exposure parameter configuration method and device, electronic equipment and medium | |
CN116167932A (en) | Image quality optimization method, device, equipment and storage medium | |
US8804029B2 (en) | Variable flash control for improved image detection | |
CN116312331B (en) | Image quality adjustment control method and related device for display | |
CN112584057B (en) | Illuminance detection method and device | |
CN109426599A (en) | power estimation method and power estimation device | |
CN109357754B (en) | Tunnel hole internal and external brightness instrument calibration method and system based on deep learning | |
CN110830003A (en) | Filtering method based on α - β filter | |
CN111915000B (en) | Network model adjusting method and device for medical image | |
CN112532889B (en) | Method and device for determining aperture value of image acquisition equipment | |
CN113392857A (en) | Target detection method, device and equipment terminal based on yolo network | |
CN112991418A (en) | Image depth prediction and neural network training method and device, medium and equipment | |
JP4388446B2 (en) | Subcriticality evaluation apparatus, subcriticality evaluation method, and subcriticality evaluation program | |
TWI568270B (en) | Image calibration system and its method | |
CN109324797B (en) | Desktop icon generation method, computer readable storage medium and terminal equipment | |
CN116643394B (en) | Light flux adjusting method, device, apparatus, storage medium, and program product | |
CN116123993A (en) | Automatic correction method, system and platform for light source brightness based on secondary element measurement | |
CN116033285A (en) | Debug parameter determination method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |