Automatic exposure method and device, electronic equipment and computer readable storage medium

The event camera collects light intensity change data to calculate the target exposure and adjust automatic exposure parameters, which solves the problem of long and inaccurate automatic exposure in the existing technology, achieves fast and accurate automatic exposure, and improves imaging quality.

CN118632131APending Publication Date: 2024-09-10HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310253894.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing imaging equipment has an unstable automatic exposure process when starting the camera, making it difficult for the image brightness value to reach the target, affecting imaging quality, and iteratively predicting exposure takes a long time and is inaccurate.

Method used

The event camera collects light intensity change data in a specific area within unit time, calculates the target exposure, and adjusts the automatic exposure parameters of the optical camera based on the data to achieve fast and accurate automatic exposure.

Benefits of technology

The automatic exposure time is reduced, the accuracy of exposure parameters is improved, the imaging quality is significantly improved, and the optical camera is close to zero-latency automatic exposure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632131A
    Figure CN118632131A
Patent Text Reader

Abstract

The invention provides an automatic exposure method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of shooting processing.The automatic exposure method comprises the steps that event data used for representing the light intensity change of a specific area in unit time is obtained, and the event data is collected through an event camera; calculating target exposure according to the event data; and adjusting an automatic exposure parameter of the optical camera according to the target exposure so as to enable the optical camera to perform automatic exposure based on the adjusted automatic exposure parameter. According to the invention, the imaging quality can be improved while the automatic exposure time is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of photographing and processing technology, and in particular to an automatic exposure method, device, electronic device and computer-readable storage medium. Background Art

[0002] Automatic exposure of imaging devices refers to automatically setting shutter value and aperture value according to the acquired exposure value, including brightness gain value and exposure light value, so as to adjust the sensor gain and exposure time of the camera to achieve the exposure required for video recording. Existing imaging devices, especially mobile phones with camera functions, cannot effectively take pictures because the imaging interface will have an unstable process when the camera is started. Therefore, automatic exposure is required to make the brightness value of the captured image reach the target brightness value to make the imaging interface stable.

[0003] In the related art, the optical camera can finally accurately expose by continuously iterating and approaching the target exposure. Since the target exposure is gradually predicted during the iteration process, it takes a long time to obtain the target exposure. If the iteration step is too large, the prediction error of the target exposure will be large, which will lead to poor imaging quality of the optical camera. Summary of the invention

[0004] In view of this, the present application provides an automatic exposure method, which can improve imaging quality while reducing automatic exposure time.

[0005] A first aspect of the present application provides an automatic exposure method, comprising: acquiring event data for characterizing changes in light intensity in a specific area per unit time, wherein the event data is collected by an event camera and a target exposure is calculated based on the event data; and adjusting automatic exposure parameters of an optical camera according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.

[0006] Compared with the related art, the embodiments of the present application have at least the following advantages: event data is collected by an event camera. Since the event data can characterize the change in light intensity in the shooting area of ​​the optical camera per unit time, on the one hand, the target exposure can be calculated at the moment of the light intensity change, and the automatic exposure parameters of the optical camera can be adjusted according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters, which can reduce the automatic exposure time and achieve automatic exposure of the optical camera with close to zero delay; on the other hand, the target exposure is directly calculated according to the event data, rather than using the iterative method in the related art to predict, which can improve the accuracy of the target exposure, thereby improving the accuracy of the automatic exposure parameters, and further improving the imaging quality of the optical camera.

[0007] In some possible implementations, calculating the target exposure according to the event data includes: determining a first proportional relationship between the event data and the target exposure according to a first preset characteristic value; and calculating the target exposure according to the first proportional relationship and the event data.

[0008] By adopting this technical solution, a method of calculating a target exposure amount according to event data can be realized.

[0009] In some possible implementations, the first preset characteristic value is: C / kln2; wherein C is a preset threshold value of light intensity change in the logarithmic domain, and k is an electrical constant of the event camera.

[0010] By adopting this technical solution, the event camera can measure the relative light intensity, so that the target exposure can be calculated according to the relative light intensity.

[0011] In some possible implementations, calculating the target exposure based on the event data includes: calculating the event generation rate based on the event data and the unit time; determining a second proportional relationship between the event generation rate and the target exposure based on a second preset characteristic value; and calculating the target exposure based on the second proportional relationship and the event generation rate.

[0012] By adopting this technical solution, another method of calculating the target exposure amount based on event data can be realized.

[0013] In some possible implementations, the second preset characteristic value is: kln2 / k0C; wherein k is the first electrical constant of the event camera, k0 is the second electrical constant of the event camera, and C is a preset threshold value of light intensity change in the logarithmic domain.

[0014] By adopting this technical solution, the event camera can measure the absolute light intensity, so that the target exposure can be calculated based on the absolute light intensity.

[0015] In some possible implementations, before acquiring the event data collected by the event camera, it also includes: determining an area of ​​interest within the photographable area of ​​the event camera; and acquiring the event data collected by the event camera includes: acquiring the event data within the area of ​​interest collected by the event camera.

[0016] By adopting this technical solution, an event camera can be used to perform exposure measurement of a region of interest, thereby improving the diversity of functions of the automatic exposure method.

[0017] In some possible implementations, the automatic exposure parameter includes one of the following or any combination thereof: exposure time, aperture value, and sensitivity.

[0018] By adopting this technical solution, the imaging quality of the optical camera can be further improved.

[0019] The second aspect of the present application discloses an automatic exposure device, comprising: an event camera, an optical camera, an acquisition module, an exposure calculation module and a parameter adjustment module; the event camera is used to collect event data, and the event data is used to characterize the light intensity change of a specific area within a unit time; the acquisition module is used to acquire the event data and send the event data to the exposure calculation module; the exposure calculation module is used to calculate a target exposure according to the event data, and send the target exposure to the parameter adjustment module; the parameter adjustment module is used to adjust the automatic exposure parameters of the optical camera according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.

[0020] The third aspect of the present application discloses a computer-readable storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned automatic exposure method.

[0021] A fourth aspect of the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned automatic exposure method.

[0022] It can be understood that the automatic exposure device of the second aspect, the computer-readable storage medium of the third aspect, and the electronic device of the fourth aspect provided above all correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of an automatic exposure method provided by an embodiment of the present application;

[0024] Figure 2 A timing diagram of the operation of an event camera and an optical camera when the external light intensity changes according to an embodiment of the present application;

[0025] Figure 3 A flowchart of an automatic exposure method provided by an embodiment of the present application;

[0026] Figure 4 A graph showing the relationship between the value of the relative exposure in the logarithmic domain and the number of events provided in an embodiment of the present application;

[0027] Figure 5 A flowchart of an automatic exposure method provided by an embodiment of the present application;

[0028] Figure 6 A graph showing the relationship between the event occurrence rate and the absolute light intensity before the light intensity increases (B1) and the absolute light intensity after the light intensity increases (B2) provided in an embodiment of the present application;

[0029] Figure 7 A graph showing the relationship between the event occurrence rate and the absolute light intensity before the light intensity decreases (B1) and the absolute light intensity after the light intensity decreases (B2) provided in one embodiment of the present application;

[0030] Figure 8 A schematic diagram of the functional modules of an automatic exposure device provided in one embodiment of the present application;

[0031] Fig. 9 This is a diagram of an automatic exposure architecture when an event camera and an optical camera share a common viewpoint according to an embodiment of the present application;

[0032] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.

[0034] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0036] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0037] In this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0038] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0039] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given by way of example for reference.

[0040] The terminal device may include but is not limited to mobile phones, smart TVs, smart speakers, wearable devices, tablet computers, desktop computers, all-in-one computers, handheld computers, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), laptop computers, mobile computers, augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, vehicle-mounted devices, and any other terminal devices or portable terminal devices.

[0041] Optical cameras, also called RGB cameras, use three different cables to provide three basic color components. Optical cameras usually use three independent CCD sensors to obtain the three color signals, so that they can capture color images.

[0042] Event cameras, also known as neuromorphic cameras or dynamic vision sensors (DVS), are new image sensors designed based on the dynamic vision of the human eye. The pixels of event cameras do not directly record light intensity linearly, but imitate the photoreceptors of the human eye to generate asynchronous pulse signals after the logarithmic light intensity changes. Therefore, event cameras have the characteristics of high dynamic range, low latency, and sparseness compared to traditional RGB cameras.

[0043] Please refer to Figure 1 , is a flow chart of the automatic exposure method provided in the embodiment of the present application. This embodiment is applied to a terminal device having both an event camera and an optical camera, such as Figure 1 As shown, the following steps are included:

[0044] Step 101: Acquire event data for characterizing changes in light intensity in a specific area per unit time.

[0045] In some embodiments, the event data is the number of events collected by the event camera. Specifically, when the light intensity in a specific area changes, the event camera detects the event, counts the number of events that occur per unit time, and sends the number of events to a module in the terminal device that can calculate the automatic exposure. It is understandable that the specific area needs to be within the field of view of the event camera.

[0046] For ease of understanding, the following is a specific explanation of how the event camera collects the number of events: Assuming that the initial light intensity in a specific area is 10 lux, and the light intensity in the specific area changes to 100 lux per unit time, the light intensity increases 10 times, and the number of events collected by the event camera is 10. In other words, the number of events is related to the multiple of the light intensity change per unit time. In addition, it should be noted that events include positive events and negative events. If the light intensity increases, the event camera collects the number of positive events; if the light intensity decreases, the event camera collects the number of negative events. For example, in the above example, the light intensity in the specific area changes from 10 lux to 100 lux per unit time, and the number of positive events collected by the event camera is 10.

[0047] In some embodiments, the specific area is a region of interest (ROI), and before acquiring the event data collected by the event camera, it also includes: determining the region of interest within the photographable area of ​​the event camera; and acquiring the event data collected by the event camera includes: acquiring the event data within the region of interest collected by the event camera. Specifically, the region of interest can be the area where a face is located, or the moving area of ​​a moving object. By acquiring the event data of the region of interest by the event camera, the quality of the area corresponding to the region of interest in the image generated by the optical camera can be superior, such as highlighting the face and moving objects, thereby improving the user experience.

[0048] Step 102: Calculate target exposure according to event data.

[0049] How to calculate the target exposure amount according to the number of events is described in detail in the following embodiments, and will not be described again here to avoid repetition.

[0050] Step 103: adjusting the automatic exposure parameters of the optical camera according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.

[0051] In some embodiments, the automatic exposure parameters include one of the following or any combination thereof: exposure time, aperture value, and sensitivity. By adjusting the above parameters, it is possible to ensure that the image quality captured by the optical camera is excellent.

[0052] For ease of understanding, the following Figure 2 The automatic exposure method of this embodiment is specifically described by an example:

[0053] See also Figure 2 , is the working sequence diagram of the event camera and the optical camera when the external light intensity changes. At the moment when the external light intensity increases, the event camera in its next frame E m+1 The number of events is collected and sent to the module of the terminal device for calculating the target exposure. After the module calculates the target exposure, the terminal device adjusts the automatic exposure parameters of the optical camera according to the target exposure, so that the optical camera automatically exposes and takes pictures in its next frame FrameN+1. Figure 2 It can be seen that the time interval between adjacent frames of the event camera is much smaller than that of the optical camera. Therefore, the event camera can collect the number of events at the moment when the light intensity changes, allowing the optical camera to achieve automatic exposure with close to zero delay.

[0054] Compared with the related art, the embodiments of the present application have at least the following advantages: event data is collected by an event camera. Since the event data can characterize the change in light intensity in the shooting area of ​​the optical camera per unit time, on the one hand, the target exposure can be calculated at the moment of the light intensity change, and the automatic exposure parameters of the optical camera can be adjusted according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters, which can reduce the automatic exposure time and achieve automatic exposure of the optical camera with close to zero delay; on the other hand, the target exposure is directly calculated according to the event data, rather than using the iterative method in the related art to predict, which can improve the accuracy of the target exposure, thereby improving the accuracy of the automatic exposure parameters, and further improving the imaging quality of the optical camera.

[0055] Please refer to Figure 3 , which is a flow chart of an automatic exposure method provided in one embodiment of the present application. This embodiment is a specific description of the aforementioned embodiment, and mainly describes: a method for calculating a target exposure amount based on event data.

[0056] This embodiment is applied to a terminal device having an event camera and an optical camera, such as Figure 3 As shown, the following steps are included:

[0057] Step 201: Acquire event data for characterizing changes in light intensity in a specific area per unit time.

[0058] Step 202: Determine a first proportional relationship between event data and target exposure according to a first preset characteristic value.

[0059] In some embodiments, the first preset characteristic value is: C / kln2; wherein C is a preset threshold value of light intensity change in the logarithmic domain, k is an electrical constant of the event camera, and ln2 is a logarithm of 2 with e as the base.

[0060] Specifically, this embodiment is used to measure relative light intensity, and the first preset characteristic value can be derived according to the following formula: (1) A 2 / t=BS / K, where A is the aperture value of the event camera, B is the change value of the external light intensity, t is the exposure time, S is the sensitivity of the event camera, and K is the electrical constant of the event camera. Taking the logarithm of formula (1), we can get formula (2): log2(A 2 )+log2(1 / t)=log2(B / NK)+log2(NS).

[0061] That is, it can be expressed as: Av+Tv=Bv+Sv, where Av=log2(A 2 ), Tv=log2(1 / t), Bv=log2(B / NK), Sv=log2(NS); then we can get formula (3): ΔBv=ΔAv+ΔTv-ΔSv;

[0062] Combining formula (3) with formula (2) yields formula (4): ΔBv=log2(B2 / NK)+log2(B1 / NK)=log2(B2 / B1), where B2 is the light intensity after the change and B1 is the initial light intensity.

[0063] Since formula (5): L = k*lnB, where L is the light intensity in the logarithmic domain; formula (5) and formula (4) are combined to obtain formula (6): ΔL = L2-L1 = k*ln(B2 / B1) = Ne*C, where L2 is the value of the light intensity after the change in the logarithmic domain, L1 is the value of the initial light intensity in the logarithmic domain, Ne is the number of events collected by the event camera, C is the threshold value of the light intensity change in the logarithmic domain, and C is a constant.

[0064] Combining formula (6) and formula (4), we can obtain formula (7): ΔBv=C / kln2*Ne.

[0065] Step 203: Calculate the target exposure according to the first proportional relationship and the event data.

[0066] From the above formula, it can be known that the first proportional relationship is formula (7). Since C, k, and Ne are all known quantities, ΔBv can be directly calculated. ΔBv is the relative light intensity, that is, the value of the automatic exposure in the logarithmic domain.

[0067] For ease of understanding, the following Figure 4 How to calculate the value of the relative exposure in the logarithmic domain in this embodiment is specifically described:

[0068] Please refer to Figure 4 , is the relationship between the relative exposure value in the logarithmic domain and the number of events. When the external light intensity changes, the event camera is triggered to collect events. The event camera counts the number of events Ne per unit time, and calculates the value of the automatic exposure in the logarithmic domain through the above formula (7).

[0069] Step 204: adjusting the automatic exposure parameters of the optical camera according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.

[0070] Step 201 and step 204 of this embodiment are similar to step 101 and step 103 of the above-mentioned embodiment, and will not be described again here to avoid repetition.

[0071] Compared with the related art, the embodiments of the present application have at least the following advantages: event data is collected by an event camera. Since the event data can characterize the change in light intensity in the shooting area of ​​the optical camera per unit time, on the one hand, the target exposure can be calculated at the moment of the light intensity change, and the automatic exposure parameters of the optical camera can be adjusted according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters, which can reduce the automatic exposure time and achieve automatic exposure of the optical camera with close to zero delay; on the other hand, the target exposure is directly calculated according to the event data, rather than using the iterative method in the related art to predict, which can improve the accuracy of the target exposure, thereby improving the accuracy of the automatic exposure parameters, and further improving the imaging quality of the optical camera.

[0072] Please refer to Figure 5 , which is a flow chart of an automatic exposure method provided in an embodiment of the present application. This embodiment is a specific description of the aforementioned embodiment, and mainly describes: another method of calculating the target exposure amount based on event data.

[0073] This embodiment is applied to a terminal device having an event camera and an optical camera, such as Figure 5 As shown, the following steps are included:

[0074] Step 301: Acquire event data for characterizing changes in light intensity in a specific area per unit time.

[0075] Step 302: Calculate the event generation rate according to the event data and unit time.

[0076] Step 303: Calculate the target exposure according to the second proportional relationship and the event data.

[0077] Step 304: Determine a second proportional relationship between the event generation rate and the target exposure amount according to the second preset characteristic value.

[0078] Regarding steps 302 to 304, specifically, this embodiment is used to measure absolute light intensity, and the response time of the event camera (i.e., the unit time mentioned above) τ=k0 / B2. Combining the above formula (7), formula (8) can be obtained: Ne / τ=kln2 / k0C*B2log2(B2 / B1), wherein Ne / τ is the event generation rate, k is the first electrical constant of the event camera, and k0 is the second electrical constant of the event camera.

[0079] Step 305: Calculate the target exposure according to the second proportional relationship and the event generation rate.

[0080] From the above formula, it can be known that the second proportional relationship is formula (8). Since τ, C, k, Ne, k, and k0 are all known quantities, B2log2(B2 / B1) can be directly calculated. According to the formula τ=k0 / B2, B2 can be calculated, and the value of B1 can be obtained. The difference between B2 and B1 is the absolute light intensity. In this way, when the current optical camera exposure is unstable, that is, when the initial light intensity cannot be accurately known, the change of the external light intensity can be accurately known, thereby improving the reliability of the automatic exposure method.

[0081] For ease of understanding, the following Figure 6 and Figure 7 How to calculate the value of the relative exposure in the logarithmic domain in this embodiment is specifically described:

[0082] Please refer to Figure 6 , which is a graph showing the relationship between the event rate and the absolute light intensity before the light intensity increases (B1) and the absolute light intensity after the light intensity increases (B2). Figure 6 The event occurrence rate shown is the event occurrence rate of positive events. A positive event is when B2 is greater than B1. When the external light intensity increases, the event camera is triggered to collect events. The event camera counts the number of events Ne per unit time and the time τ required for the event change, and calculates the event occurrence rate. The absolute light intensity after the light intensity increases is calculated based on the event occurrence rate, which is the value of the relative exposure in the logarithmic domain.

[0083] Please refer to Figure 7 , which is a graph showing the relationship between the event rate and the absolute light intensity before the light intensity decreases (B1) and the absolute light intensity after the light intensity decreases (B2). Figure 7The event rate shown is the event rate of negative events. Negative events mean that B1 is greater than B2. When the external light intensity decreases, the event camera is triggered to collect events. The event camera counts the number of events Ne per unit time and the time τ required for the event change, and calculates the event rate. The absolute light intensity after the light intensity decreases is calculated based on the event rate, which is the value of the relative exposure in the logarithmic domain.

[0084] Step 306: adjusting the automatic exposure parameters of the optical camera according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.

[0085] Step 301 and step 306 of this embodiment are similar to step 101 and step 103 of the above-mentioned embodiment, and will not be described again here to avoid repetition.

[0086] Compared with the related art, the embodiments of the present application have at least the following advantages: event data is collected by an event camera. Since the event data can characterize the change in light intensity in the shooting area of ​​the optical camera per unit time, on the one hand, the target exposure can be calculated at the moment of the light intensity change, and the automatic exposure parameters of the optical camera can be adjusted according to the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters, which can reduce the automatic exposure time and achieve automatic exposure of the optical camera with close to zero delay; on the other hand, the target exposure is directly calculated according to the event data, rather than using the iterative method in the related art to predict, which can improve the accuracy of the target exposure, thereby improving the accuracy of the automatic exposure parameters, and further improving the imaging quality of the optical camera.

[0087] Please refer to Figure 8 , is a functional module diagram of an automatic exposure device provided in an embodiment of the present application. The automatic exposure device 400 includes: an event camera 401, an optical camera 402, an acquisition module 403, an exposure calculation module 404, and a parameter adjustment module 405. The module referred to in the embodiment of the present application may be a program segment that performs a specific function, which is more suitable for describing the execution process of software in a processor than a program. The one or more modules may be stored in a memory and configured to be executed by one or more processors.

[0088] The event camera 401 is used to collect event data, and the event data is used to characterize the change in light intensity in a specific area per unit time; the acquisition module 403 is used to acquire the event data and send the event data to the exposure calculation module 404; the exposure calculation module 404 is used to calculate the target exposure according to the event data, and send the target exposure to the parameter adjustment module 405; the parameter adjustment module 405 is used to adjust the automatic exposure parameters of the optical camera 402 according to the target exposure, so that the optical camera 402 performs automatic exposure based on the adjusted automatic exposure parameters.

[0089] In some embodiments, the parameter adjustment module 405 may be disposed in the optical camera 402 , or the parameter adjustment module 405 and the optical camera 402 may be two independent modules.

[0090] In some embodiments, the event camera 401 and the optical camera 402 may share a common viewpoint or may not share a common viewpoint. When the event camera 401 and the optical camera 402 do not share a common viewpoint, the event camera 401 and the optical camera 402 may be firstly aligned with each other.

[0091] For ease of understanding, the following Fig. 9 How the automatic exposure device 400 of this embodiment realizes automatic exposure is specifically described:

[0092] Please refer to Fig. 9 , which is an automatic exposure architecture diagram when the event camera 401 and the optical camera 402 share a common viewpoint in the embodiment of the present application. First, it is detected whether the event camera 401 and the optical camera 402 are aligned. After the event camera 401 and the optical camera 402 are configured, when the external light intensity changes, the event camera 401 collects the number of events per unit time, the exposure amount calculation module 404 calculates the relative light intensity or the absolute light intensity according to the number of events, and calculates the automatic exposure amount in the logarithmic domain according to the relative light intensity or the absolute light intensity, the parameter adjustment module 405 adjusts the automatic exposure parameters according to the automatic exposure amount, and sends the automatic exposure parameters to the optical camera 402, so that the optical camera 402 performs automatic exposure based on the automatic exposure parameters.

[0093] Please refer to Fig.10 , is a schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Fig.10 As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above automatic exposure method in the electronic device 1000.

[0094] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.

[0095] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0096] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.

[0097] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0098] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0099] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the automatic exposure method in the above-mentioned embodiment.

[0100] Among them, the electronic device and computer storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0101] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0102] In several embodiments provided in the present application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0103] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0106] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. An automatic exposure method, characterized in that: include: Acquire event data for characterizing changes in light intensity in a specific area per unit time, wherein the event data is collected by an event camera; Calculating a target exposure amount according to the event data; The automatic exposure parameters of the optical camera are adjusted according to the target exposure amount, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.

2. The automatic exposure method according to claim 1, wherein: The calculating the target exposure amount according to the event data comprises: Determining a first proportional relationship between the event data and the target exposure amount according to a first preset characteristic value; The target exposure is calculated according to the first proportional relationship and the event data.

3. The automatic exposure method according to claim 2, wherein: The first preset characteristic value is: C / kln2; wherein, C is the preset threshold value of light intensity change in the logarithmic domain, and k is the electrical constant of the event camera.

4. The automatic exposure method according to claim 1, wherein: The calculating the target exposure amount according to the event data comprises: Calculate an event generation rate according to the event data and the unit time; Determining a second proportional relationship between the event generation rate and the target exposure amount according to a second preset characteristic value; The target exposure is calculated according to the second proportional relationship and the event generation rate.

5. The automatic exposure method according to claim 4, characterized in that: The second preset characteristic value is: kln2 / k0C; wherein k is the first electrical constant of the event camera, k0 is the second electrical constant of the event camera, and C is a preset threshold value of light intensity change in the logarithmic domain.

6. The automatic exposure method according to claim 1, wherein: The specific area is an area of ​​interest; before acquiring the event data collected by the event camera, the method further includes: Determine the region of interest within the photographable area of ​​the event camera; The acquiring of the event data collected by the event camera comprises: Event data within the region of interest collected by the event camera is acquired.

7. The automatic exposure method according to claim 1, wherein: The automatic exposure parameters include one of the following or any combination thereof: Exposure time, aperture value, and sensitivity.

8. An automatic exposure device, characterized in that: include: Event camera, optical camera, acquisition module, exposure calculation module and parameter adjustment module; The event camera is used to collect event data, and the event data is used to characterize the change of light intensity in a specific area per unit time; The acquisition module is used to acquire the event data and send the event data to the exposure calculation module; The exposure calculation module is used to calculate the target exposure according to the event data, and send the target exposure to the parameter adjustment module; The parameter adjustment module is used to adjust the automatic exposure parameters of the optical camera according to the target exposure amount, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.

9. A computer-readable storage medium, characterized in that: The invention comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the automatic exposure method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the automatic exposure method according to any one of claims 1 to 7.