Automatic exposure control method, device, storage medium and electronic device

By determining the target global gain value and control mode based on the brightness difference in the image acquisition device, and optimizing the exposure parameters, the problem of slow automatic exposure speed is solved and the capture effect is improved.

CN118574009BActive Publication Date: 2024-09-27CHENGDU POWER VIEW SCIENCE & TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411036121.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-09-27
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

During the automatic exposure process of the image acquisition equipment, the adjustment speed of the exposure time and signal gain is too slow and cannot be completed in a very short time, and it is easy to lose the captured object.

Method used

By obtaining the brightness difference value based on the current brightness value and the target brightness value, the target global gain value is determined, the control mode is selected based on the gain value, the exposure time and signal gain are adjusted to determine the target exposure parameters, and automatic exposure is achieved.

Benefits of technology

The completion speed of automatic exposure is improved, ensuring the capture effect, shortening the exposure time, and meeting the need for quick capture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574009B
    Figure CN118574009B
Patent Text Reader

Abstract

The present invention proposes an automatic exposure control method, device, storage medium and electronic device, which obtain a brightness difference value based on a current brightness value and a target brightness value; determine a target global gain value based on the brightness difference value; determine a current control mode according to the target global gain value, wherein the first control mode is an exposure control mode for adjusting exposure time and signal gain at the same time, and the second control mode is an exposure control mode for adjusting exposure time; determine a target exposure parameter based on the target global gain value and the current control mode, wherein the target exposure parameter includes a target exposure time and a target gain value in the first control mode, and includes a target exposure time in the second control mode; and perform automatic exposure based on the target exposure parameter. Determine the target global gain value based on the brightness difference value, and then accurately obtain the target exposure parameter, without the need for repeated dynamic adjustment, thereby improving the completion speed of automatic exposure and ensuring the capture effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of images, and in particular to an automatic exposure control method, device, storage medium and electronic equipment. Background Art

[0002] With the explosive growth of the surveillance industry, the requirements for image processing, video surveillance and other technologies are becoming increasingly higher, including the optimization of brightness. In order to optimize the brightness of the images captured by the image acquisition device, it is necessary to adjust the parameters of the image acquisition device during the image acquisition process. The factors affecting the brightness of the images captured by the image acquisition device include exposure time and signal gain.

[0003] During the automatic exposure process of the image acquisition device, the exposure time and / or signal gain needs to be adjusted. The adjustment process is often complicated and the adjustment speed is too slow. Automatic exposure cannot be completed in a very short time, and the captured object is easily lost. Summary of the invention

[0004] The object of the present invention is to provide an automatic exposure control method, device, storage medium and electronic device to at least partially improve the above-mentioned problem.

[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0006] In a first aspect, an embodiment of the present invention provides an automatic exposure control method, the method comprising:

[0007] Get the brightness difference based on the current brightness value and the target brightness value;

[0008] Determining a target global gain value based on the brightness difference value;

[0009] Determine the current control mode according to the target global gain value, wherein the current control mode is the first control mode or the second control mode, the first control mode is an exposure control mode for simultaneously adjusting the exposure time and the signal gain, and the second control mode is an exposure control mode for adjusting the exposure time, if the target global gain value is greater than the first equivalent gain value, then determine that the current control mode is the first control mode, if the target global gain value is less than or equal to the first equivalent gain value, then determine that the current control mode is the second control mode, and the first equivalent gain value is the equivalent gain value corresponding to the longest exposure time;

[0010] Determine a target exposure parameter based on the target global gain value and the current control mode, wherein the target exposure parameter includes a target exposure time and a target gain value in the first control mode, and the target exposure parameter includes a target exposure time in the second control mode;

[0011] Automatic exposure is performed based on the target exposure parameters.

[0012] In a second aspect, an embodiment of the present invention provides an automatic exposure control device, the device comprising:

[0013] A first processing unit, configured to obtain a brightness difference value based on a current brightness value and a target brightness value;

[0014] The first processing unit is further configured to determine a target global gain value based on the brightness difference value;

[0015] The first processing unit is further used to determine a current control mode according to the target global gain value, wherein the current control mode is a first control mode or a second control mode, the first control mode is an exposure control mode for simultaneously adjusting exposure time and signal gain, and the second control mode is an exposure control mode for adjusting exposure time, if the target global gain value is greater than a first equivalent gain value, then the current control mode is determined to be the first control mode, if the target global gain value is less than or equal to the first equivalent gain value, then the current control mode is determined to be the second control mode, and the first equivalent gain value is an equivalent gain value corresponding to the longest exposure time;

[0016] The first processing unit is further configured to determine a target exposure parameter based on the target global gain value and the current control mode, wherein the target exposure parameter includes a target exposure time and a target gain value in the first control mode, and the target exposure parameter includes a target exposure time in the second control mode;

[0017] The second processing unit is used to perform automatic exposure based on the target exposure parameter.

[0018] In a third aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, and the computer program implements the above method when executed by a processor.

[0019] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the memory is used to store one or more programs; when the one or more programs are executed by the processor, the above method is implemented.

[0020] Compared with the prior art, the automatic exposure control method, device, storage medium and electronic device provided by the embodiments of the present invention obtain a brightness difference value based on the current brightness value and the target brightness value; determine a target global gain value based on the brightness difference value; determine the current control mode according to the target global gain value, wherein the current control mode is the first control mode or the second control mode, the first control mode is an exposure control mode that simultaneously adjusts the exposure time and the signal gain, and the second control mode is an exposure control mode that adjusts the exposure time; determine the target exposure parameter based on the target global gain value and the current control mode, wherein in the first control mode, the target exposure parameter includes the target exposure time and the target gain value, and in the second control mode, the target exposure parameter includes the target exposure time; and perform automatic exposure based on the target exposure parameter. Determine the target global gain value based on the brightness difference value, and then accurately obtain the target exposure parameter, without the need for repeated dynamic adjustment, thereby improving the completion speed of automatic exposure and ensuring the capture effect.

[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 This is a schematic structural diagram of an electronic device provided by the present invention.

[0024] Figure 2 This is one of the flow charts of the automatic exposure control method provided by the present invention.

[0025] Figure 3 The second flowchart of the automatic exposure control method provided by the present invention.

[0026] Figure 4 A unit schematic diagram of the automatic exposure control device provided by the present invention.

[0027] In the figure: 10 - processor; 11 - memory; 12 - bus; 13 - communication interface; 201 - first processing unit; 202 - second processing unit. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0029] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0031] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0032] In the description of the present invention, it should be noted that the terms "upper", "lower", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, or are directions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.

[0033] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0034] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0035] Commonly used exposure algorithms include using the Proportion-Integral-Differential (PID) control algorithm to adjust the signal gain and exposure time separately to achieve the exposure effect. When adjusting different modules (signal gain module and exposure time module), different parameters correspond to each other. The specific processing steps are as follows: When the current brightness is less than the target brightness, the exposure time is adjusted first, and the signal-to-noise ratio is optimized while adjusting to the appropriate target brightness. If the exposure time is set to the maximum value and the target brightness has not been reached, the gain value is adjusted; when the current brightness is greater than the target brightness, the gain value is adjusted first, and the impact of noise on the image is reduced while adjusting to the appropriate target brightness. When the gain value is set to the minimum value and the target brightness has not been reached, the exposure time is adjusted.

[0036] When adjusting the exposure parameters, the adjustment unit of the gain value is DB, and the adjustment unit of the exposure time is us. The values ​​of the gain value and exposure time corresponding to the same brightness unit are inconsistent. The relationship between the brightness value and the gain value can be equivalent to a linear function relationship, while the brightness value and the exposure satisfy a specific special curve relationship. Therefore, when adjusting the gain value, the difference between the target brightness value and the current brightness value can be multiplied by a proportional coefficient to achieve the purpose of fast adjustment, but when adjusting the exposure time, the PID parameters must be dynamically adjusted according to the current exposure time in real time to achieve the purpose of adjusting the exposure time. However, when the exposure time is very small, the difference in exposure brightness for the unit adjustment is very large, so it will cause the adjustment to be very slow, resulting in a long exposure process. In some scenarios (such as license plate capture scenarios), automatic exposure needs to be completed in a very short time, otherwise it will be easy to lose the captured object.

[0037] In order to solve the problem of too slow automatic exposure time, an embodiment of the present invention provides an automatic exposure control method, which is applied to the electronic device described below to improve the completion speed of automatic exposure and ensure the capture effect.

[0038] An embodiment of the present invention provides an electronic device, which may be a main control unit of an image acquisition device, or an image acquisition device or a mobile device, a computer device, or a server device that is communicatively connected to the image acquisition device. Figure 1 , a schematic diagram of the structure of an electronic device. The electronic device includes a processor 10, a memory 11, and a bus 12. The processor 10 and the memory 11 are connected via the bus 12, and the processor 10 is used to execute an executable module stored in the memory 11, such as a computer program.

[0039] The processor 10 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the automatic exposure control method may be completed by an integrated logic circuit of hardware in the processor 10 or by instructions in the form of software. The above-mentioned processor 10 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components.

[0040] The memory 11 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.

[0041] The bus 12 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. Figure 1 Although only one bidirectional arrow is used in the figure, it does not mean that there is only one bus 12 or only one type of bus 12 .

[0042] The memory 11 is used to store programs, such as programs corresponding to the automatic exposure control device. The automatic exposure control device includes at least one software function module that can be stored in the memory 11 in the form of software or firmware or fixed in the operating system (OS) of the electronic device. After receiving the execution instruction, the processor 10 executes the program to implement the automatic exposure control method.

[0043] Possibly, the electronic device provided by the embodiment of the present invention further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus.

[0044] It should be understood that Figure 1 The structure shown is only a schematic diagram of a portion of the electronic device. The electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0045] An automatic exposure control method provided by an embodiment of the present invention can be applied to, but is not limited to, Figure 1 For detailed procedures, please refer to the electronic equipment shown in Figure 2 The automatic exposure control method includes: S110, S120, S130, S140 and S150, which are described in detail as follows.

[0046] S110, obtaining a brightness difference value based on the current brightness value and the target brightness value.

[0047] Optionally, the formula for calculating the brightness difference is:

[0048]

[0049] in, Indicates the current brightness value. Indicates the target brightness value, Indicates the brightness difference.

[0050] Of course, the brightness difference value may also be the target brightness value minus the current brightness value. The operation symbols in the following formula are adaptively adjusted and will not be elaborated here.

[0051] In an optional implementation, brightness recognition can be performed based on the current image to obtain the current brightness value. The target brightness value can be configured by a host computer or a user input instruction.

[0052] S120: Determine a target global gain value based on the brightness difference value.

[0053] The target global gain value is the expected gain sum of the image acquisition device, which can be determined by the current global gain value and the gain adjustment amplitude. The expected gain sum is the sum of the equivalent gain values ​​corresponding to the target gain value and the target exposure time.

[0054] S130: Determine a current control mode according to the target global gain value.

[0055] Among them, the current control mode is the first control mode or the second control mode, the first control mode is an exposure control mode that simultaneously adjusts the exposure time and the signal gain, and the second control mode is an exposure control mode that adjusts the exposure time. If the target global gain value is greater than the first equivalent gain value, the current control mode is determined to be the first control mode; if the target global gain value is less than or equal to the first equivalent gain value, the current control mode is determined to be the second control mode, and the first equivalent gain value is the equivalent gain value corresponding to the longest exposure time.

[0056] S140, determining a target exposure parameter based on the target global gain value and the current control mode.

[0057] Wherein, in the first control mode, the target exposure parameters include the target exposure time and the target gain value, and in the second control mode, the target exposure parameters include the target exposure time.

[0058] S150: Perform automatic exposure based on the target exposure parameter.

[0059] Optionally, the target exposure parameters are written into corresponding registers in the image acquisition device, including writing the target exposure time into the exposure time register and writing the target gain value into the gain register. After the target exposure parameters are written into the corresponding registers, the image acquisition device executes the target exposure parameters stored in the registers, thereby completing automatic exposure based on the target exposure parameters.

[0060] In the automatic exposure control method provided in the embodiment of the present invention, the target global gain value can be determined according to the brightness difference value, and then the target exposure parameters can be accurately obtained without repeated dynamic adjustment, thereby improving the completion speed of automatic exposure and ensuring the capture effect.

[0061] exist Figure 2 On the basis of the content in S120, the embodiment of the present invention also provides an optional implementation method, please refer to the following, S120, the step of determining the target global gain value based on the brightness difference value, includes: S121 and S122, which are specifically described as follows.

[0062] S121, determining a gain adjustment amplitude based on the brightness difference.

[0063] Optionally, the formula for the gain adjustment amplitude is:

[0064]

[0065] in, Indicates the gain adjustment amplitude, Represents the brightness difference, Indicates the first preset coefficient.

[0066] S122, determining a target global gain value based on the gain adjustment amplitude, the current gain value, and a second equivalent gain value, wherein the second equivalent gain value is an equivalent gain value corresponding to the current exposure time.

[0067] Optionally, the target global gain value is calculated as:

[0068]

[0069] in, Indicates the current brightness value. Indicates the target brightness value, Indicates the current gain value, represents the second equivalent gain value, represents the target global gain value;

[0070]

[0071] in, represents the second preset coefficient (can be but not limited to 1000), represents the third preset coefficient (which can be but is not limited to 0.2), Indicates the current exposure time.

[0072] The formula for the current global gain value is: ;

[0073] in, Indicates the current global gain value.

[0074] exist Figure 2 On the basis of the content in S130, the embodiment of the present invention also provides an optional implementation method, please refer to the following, S130, the step of determining the current control mode according to the target global gain value, including: S131, S132 and S133, which are specifically described as follows.

[0075] S131, determine whether the target global gain value is greater than the first equivalent gain value. If yes, execute S132; if no, execute S133.

[0076] The first equivalent gain value is an equivalent gain value corresponding to the longest exposure time.

[0077] Optionally, the formula for the first equivalent gain value is:

[0078]

[0079] in, represents the first equivalent gain value, Indicates the maximum exposure time.

[0080] in, , that is, the maximum exposure time is 1 second (1000000us) divided by the frame rate of the image acquisition device.

[0081] If the target global gain value Greater than the first equivalent gain value , it means that the expected total gain of the image acquisition device cannot be met by adjusting the exposure time alone, and it is necessary to adjust the exposure time and the signal gain at the same time, that is, enter the first control mode. On the contrary, the expected total gain of the image acquisition device can be met by adjusting the exposure time, and there is no need to adjust the gain value to avoid introducing other errors.

[0082] S132, determining that the current control mode is the first control mode.

[0083] S133, determining that the current control mode is the second control mode.

[0084] In an optional implementation, the current control mode may also be determined based on the current global gain value. When the current global gain value is greater than the first equivalent gain value, the current control mode is determined to be the first control mode; otherwise, the current control mode is determined to be the second control mode.

[0085] When the current control mode is the first control mode, Figure 2 The content of S140 in the embodiment of the present invention also provides an optional implementation method, please refer to the following, S140, the step of determining the target exposure parameter based on the target global gain value and the current control mode includes: S141 and S142, which are specifically described as follows.

[0086] S141, taking the longest exposure time as the target exposure time.

[0087] Optionally, let ,in, Indicates the target exposure time.

[0088] S142: Determine a target gain value based on the target global gain value and a first equivalent gain value, wherein the first equivalent gain value is an equivalent gain value corresponding to the longest exposure time.

[0089] Optionally, the target gain value is calculated as:

[0090]

[0091] in, represents the target gain value, represents the target global gain value, represents the first equivalent gain value, Indicates the current gain value, represents the second equivalent gain value, Indicates the gain adjustment amplitude.

[0092] When the current control mode is the second control mode, Figure 2 The content of S140 in the embodiment of the present invention also provides an optional implementation method, please refer to the following, S140, the step of determining the target exposure parameter based on the target global gain value and the current control mode includes: S143, specifically described as.

[0093] S143, determining a target exposure time based on the target global gain value.

[0094] Optionally, the target exposure time is calculated as:

[0095]

[0096] in, represents the target global gain value, represents the second preset coefficient, represents the third preset coefficient, Indicates the target exposure time.

[0097] exist Figure 2 On the basis of, in order to further ensure the exposure effect, the embodiment of the present invention also provides an optional implementation method, please refer to Figure 3 After automatic exposure is performed based on the target exposure parameters, the automatic exposure control method further includes: S160 and S170, which are described in detail as follows.

[0098] S160: Obtain a new brightness difference value.

[0099] A new current image is obtained by automatically performing exposure based on the target exposure parameter, a new current brightness value is obtained based on the new current image, and then a new brightness difference value is obtained.

[0100] S170, determining whether the new brightness difference value is within the brightness difference threshold range. If yes, then end; if no, then repeat S120.

[0101] When the new brightness difference value is not within the brightness difference threshold range, repeatedly determine the target global gain value based on the brightness difference value, determine the current control mode according to the target global gain value, determine the target exposure parameters based on the target global gain value and the current control mode, and perform automatic exposure based on the target exposure parameters until the new brightness difference value is within the brightness difference threshold range.

[0102] It should be noted that the brightness difference threshold range can be specifically set by the user. The brightness difference threshold range is used to determine whether the exposure effect meets the requirements of the target brightness value. After multiple iterations, the brightness can meet the user's requirements.

[0103] The automatic exposure control method provided by the embodiment of the present invention can quickly complete automatic exposure. Through actual tests, it is found that the current algorithm exposure convergence speed can be 10 frames, that is, 400ms, which is 80% shorter than the time based on PID dynamic adjustment, and meets most applications such as snapshot, fast focusing and other usage scenarios.

[0104] In the embodiment of the present invention, the unit corresponding to the gain value is DB, and the unit corresponding to the exposure time is us.

[0105] Regarding the first preset coefficient, the second preset coefficient and the third preset coefficient, the embodiment of the present invention also provides an optional implementation, please refer to the following.

[0106] Firstly, without introducing other exposure parameters, the gain value (single variable) is adjusted, the image brightness values ​​corresponding to different gain values ​​are sampled, and linear fitting is performed based on the arrays corresponding to the gain values ​​and the image brightness values, so as to determine the first preset coefficient.

[0107] Among them, the linear formula corresponding to the image brightness value and the gain value is:

[0108]

[0109] in, represents the gain value pair, Represents the image brightness value, Indicates the first preset coefficient.

[0110] Secondly, without introducing other exposure parameters, by adjusting the exposure time (single variable), sampling the image brightness values ​​corresponding to different exposure times, and performing linear fitting based on the arrays corresponding to the exposure time and the image brightness values, the second preset coefficient and the third preset coefficient are determined.

[0111] Among them, the formula corresponding to the image brightness value and exposure time is:

[0112]

[0113] in, represents the second preset coefficient, represents the third preset coefficient, Represents the image brightness value, Indicates exposure time.

[0114] It should be noted that based on the above two formulas, the formula corresponding to the exposure time and the gain value can be converted, which will not be elaborated here.

[0115] See also Figure 4 , Figure 4 An automatic exposure control device is provided in an embodiment of the present invention. Optionally, the automatic exposure control device is applied to the electronic device described above.

[0116] The automatic exposure control device includes: a first processing unit 201 and a second processing unit 202 .

[0117] A first processing unit 201 is used to obtain a brightness difference value based on a current brightness value and a target brightness value;

[0118] The first processing unit 201 is also used to determine a target global gain value based on the brightness difference value;

[0119] The first processing unit 201 is further used to determine the current control mode according to the target global gain value, wherein the current control mode is the first control mode or the second control mode, the first control mode is an exposure control mode for simultaneously adjusting the exposure time and the signal gain, and the second control mode is an exposure control mode for adjusting the exposure time. If the target global gain value is greater than the first equivalent gain value, the current control mode is determined to be the first control mode; if the target global gain value is less than or equal to the first equivalent gain value, the current control mode is determined to be the second control mode, and the first equivalent gain value is the equivalent gain value corresponding to the longest exposure time;

[0120] The first processing unit 201 is further configured to determine a target exposure parameter based on the target global gain value and the current control mode, wherein the target exposure parameter includes a target exposure time and a target gain value in the first control mode, and includes a target exposure time in the second control mode;

[0121] The second processing unit 202 is configured to perform automatic exposure based on target exposure parameters.

[0122] Optionally, the first processing unit 201 may execute the above-mentioned S110 , S120 , S130 , S140 , S160 , and S170 , and the second processing unit 202 may execute the above-mentioned S150 .

[0123] It should be noted that the automatic exposure control device provided in this embodiment can execute the method flow shown in the above method flow embodiment to achieve the corresponding technical effect. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiment.

[0124] The embodiment of the present invention further provides a storage medium, which stores computer instructions and programs, and when the computer instructions and programs are read and run, the automatic exposure control method of the above embodiment is executed. The storage medium may include a memory, a flash memory, a register, or a combination thereof.

[0125] The following provides an electronic device, which may be a main control unit of an image acquisition device, or an image acquisition device or a mobile device, a computer device, and a server device that are connected to the image acquisition device for communication. Figure 1 As shown, the above automatic exposure control method can be implemented; specifically, the electronic device includes: a processor 10, a memory 11, and a bus 12. The processor 10 can be a CPU. The memory 11 is used to store one or more programs. When the one or more programs are executed by the processor 10, the automatic exposure control method of the above embodiment is executed.

[0126] In summary, an automatic exposure control method, device, storage medium and electronic device provided by an embodiment of the present invention obtains a brightness difference value based on a current brightness value and a target brightness value; determines a target global gain value based on the brightness difference value; determines a current control mode according to the target global gain value, wherein the current control mode is a first control mode or a second control mode, the first control mode is an exposure control mode that simultaneously adjusts exposure time and signal gain, and the second control mode is an exposure control mode that adjusts exposure time; determines a target exposure parameter based on the target global gain value and the current control mode, wherein in the first control mode, the target exposure parameter includes a target exposure time and a target gain value, and in the second control mode, the target exposure parameter includes a target exposure time; and performs automatic exposure based on the target exposure parameter. The target global gain value is determined based on the brightness difference value, and then the target exposure parameter is accurately obtained, and repeated dynamic adjustment is not required, thereby improving the completion speed of automatic exposure and ensuring the capture effect.

[0127] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0128] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. An automatic exposure control method, characterized in that: The method comprises: Get the brightness difference based on the current brightness value and the target brightness value; Determining a target global gain value based on the brightness difference value; Determine the current control mode according to the target global gain value, wherein the current control mode is the first control mode or the second control mode, the first control mode is an exposure control mode for simultaneously adjusting the exposure time and the signal gain, and the second control mode is an exposure control mode for adjusting the exposure time, if the target global gain value is greater than the first equivalent gain value, then determine that the current control mode is the first control mode, if the target global gain value is less than or equal to the first equivalent gain value, then determine that the current control mode is the second control mode, and the first equivalent gain value is the equivalent gain value corresponding to the longest exposure time; Determine a target exposure parameter based on the target global gain value and the current control mode, wherein the target exposure parameter includes a target exposure time and a target gain value in the first control mode, and the target exposure parameter includes a target exposure time in the second control mode; Performing automatic exposure based on the target exposure parameters; The step of determining a target global gain value based on the brightness difference value comprises: Determining a gain adjustment amplitude based on the brightness difference; Determine the target global gain value based on the gain adjustment amplitude, the current gain value and the second equivalent gain value, wherein the second equivalent gain value is an equivalent gain value corresponding to the current exposure time; The formula for the gain adjustment amplitude is: in, represents the gain adjustment amplitude, represents the brightness difference value, Indicates the first preset coefficient.

2. The automatic exposure control method according to claim 1, wherein: When the current control mode is the first control mode, the step of determining a target exposure parameter based on the target global gain value and the current control mode includes: Taking the longest exposure time as the target exposure time; The target gain value is determined based on the target global gain value and a first equivalent gain value, wherein the first equivalent gain value is an equivalent gain value corresponding to the longest exposure time.

3. The automatic exposure control method according to claim 1, wherein: When the current control mode is the second control mode, the step of determining a target exposure parameter based on the target global gain value and the current control mode includes: The target exposure time is determined based on the target global gain value.

4. The automatic exposure control method according to claim 1, wherein: After performing automatic exposure based on the target exposure parameter, the method further includes: Obtain a new brightness difference value, and determine whether the new brightness difference value is within a brightness difference threshold range; If not, repeatedly determine the target global gain value based on the brightness difference value, determine the current control mode according to the target global gain value, determine the target exposure parameters based on the target global gain value and the current control mode, and perform automatic exposure based on the target exposure parameters until the new brightness difference value is within the brightness difference threshold range.

5. An automatic exposure control device, characterized in that: The device comprises: A first processing unit, configured to obtain a brightness difference value based on a current brightness value and a target brightness value; The first processing unit is further configured to determine a target global gain value based on the brightness difference value; The first processing unit is further used to determine a current control mode according to the target global gain value, wherein the current control mode is a first control mode or a second control mode, the first control mode is an exposure control mode for simultaneously adjusting exposure time and signal gain, and the second control mode is an exposure control mode for adjusting exposure time, if the target global gain value is greater than a first equivalent gain value, then the current control mode is determined to be the first control mode, if the target global gain value is less than or equal to the first equivalent gain value, then the current control mode is determined to be the second control mode, and the first equivalent gain value is an equivalent gain value corresponding to the longest exposure time; The first processing unit is further configured to determine a target exposure parameter based on the target global gain value and the current control mode, wherein the target exposure parameter includes a target exposure time and a target gain value in the first control mode, and the target exposure parameter includes a target exposure time in the second control mode; A second processing unit, configured to perform automatic exposure based on the target exposure parameter; The determining of the target global gain value based on the brightness difference value includes: determining a gain adjustment amplitude based on the brightness difference value; determining the target global gain value based on the gain adjustment amplitude, a current gain value, and a second equivalent gain value, wherein the second equivalent gain value is an equivalent gain value corresponding to a current exposure time; The formula for the gain adjustment amplitude is: in, represents the gain adjustment amplitude, represents the brightness difference value, Indicates the first preset coefficient.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

7. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store one or more programs; When the one or more programs are executed by the processor, the method according to any one of claims 1 to 4 is implemented.