Automatic exposure method and apparatus, electronic device, 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 problems of unstable interface and long exposure time when the imaging device is started, achieves fast and accurate automatic exposure, and improves imaging quality.
Patent Information
- Application Number
- PCT/CN2023/136450
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-08
- Filing Date
- 2023-12-05
- Publication Date
- 2024-09-12
AI Technical Summary
Existing imaging equipment cannot effectively realize automatic exposure due to unstable imaging interface when starting the camera, making it difficult for the image brightness value to reach the target, thus affecting the imaging quality, and iteratively predicting the target exposure takes a long time and is inaccurate.
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.
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 delayed exposure.
Smart Images

Figure CN2023136450_12092024_PF_FP_ABST
Abstract
Description
Automatic exposure method, device, electronic device and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 8, 2023, with application number 202310253894.4 and application name “Automatic exposure method, device, electronic device and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of shooting and processing technology, and in particular to an automatic exposure method, device, electronic device, and computer-readable storage medium. Background Art
[0003] Automatic exposure in imaging devices refers to automatically setting the shutter speed and aperture value based on acquired exposure values, including brightness gain and exposure light values, to adjust the camera's sensor gain and exposure time to achieve the desired exposure. Existing imaging devices, particularly mobile phones with camera functions, experience an unstable imaging interface when the camera is activated, preventing effective capture. Therefore, automatic exposure is required to ensure that the captured image brightness reaches the target brightness value, ensuring a stable imaging interface.
[0004] In related technologies, optical cameras achieve accurate exposure by iteratively approaching a target exposure. Because the target exposure is gradually predicted during the iterative process, it takes a long time to arrive at the target exposure. Furthermore, if the iterative step size is too large, the target exposure prediction error can be large, leading to poor imaging quality.
[0005] Summary of the Invention
[0006] In view of this, the present application provides an automatic exposure method that can improve imaging quality while reducing automatic exposure time.
[0007] 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 calculating a target exposure 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.
[0008] 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 represent the light intensity change 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 are 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 for prediction, 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.
[0009] In some possible implementations, calculating the target exposure based on the event data includes: determining a first proportional relationship between the event data and the target exposure based on a first preset characteristic value; and calculating the target exposure based on the first proportional relationship and the event data.
[0010] By adopting this technical solution, a method of calculating target exposure based on event data can be realized.
[0011] 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.
[0012] By adopting this technical solution, the event camera can measure the relative light intensity, so that the target exposure can be calculated based on the relative light intensity.
[0013] 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.
[0014] By adopting this technical solution, another method of calculating the target exposure amount based on event data can be realized.
[0015] 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 the preset threshold value of light intensity change in the logarithmic domain.
[0016] 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.
[0017] In some possible implementations, before obtaining the event data collected by the event camera, the method further includes: determining an area of interest within the photographable area of the event camera; and obtaining the event data collected by the event camera includes: obtaining the event data within the area of interest collected by the event camera.
[0018] 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.
[0019] In some possible implementations, the automatic exposure parameter includes one of the following or any combination thereof: exposure time, aperture value, and sensitivity.
[0020] By adopting this technical solution, the imaging quality of the optical camera can be further improved.
[0021] In a second aspect, 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 configured to collect event data, the event data being used to characterize changes in light intensity in a specific area per unit time; the acquisition module is configured to acquire the event data and send the event data to the exposure calculation module; the exposure calculation module is configured to calculate a target exposure based on the event data and send the target exposure to the parameter adjustment module; the parameter adjustment module is configured to adjust the automatic exposure parameters of the optical camera based on the target exposure, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.
[0022] A third aspect of the present application discloses a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned automatic exposure method.
[0023] In a fourth aspect, 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.
[0024] 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 of the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] FIG1 is a flow chart of an automatic exposure method provided by an embodiment of the present application;
[0026] FIG2 is a timing diagram of the operation of an event camera and an optical camera when external light intensity changes according to an embodiment of the present application;
[0027] FIG3 is a flow chart of an automatic exposure method provided by an embodiment of the present application;
[0028] FIG4 is a diagram showing the relationship between the relative exposure value in the logarithmic domain and the number of events provided by an embodiment of the present application;
[0029] FIG5 is a flow chart of an automatic exposure method provided by an embodiment of the present application;
[0030] FIG6 is a diagram 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 by an embodiment of the present application;
[0031] FIG7 is a diagram 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) according to an embodiment of the present application;
[0032] FIG8 is a schematic diagram of functional modules of an automatic exposure device provided in one embodiment of the present application;
[0033] FIG9 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;
[0034] FIG10 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features therein can be combined with each other in the absence of conflict.
[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0037] 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 pertains. 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.
[0038] It should be further noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0039] 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.
[0040] In the embodiments of this 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 this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0041] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given for reference.
[0042] Terminal devices may include, but are 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 (UMPCs), netbooks, personal digital assistants (PDAs), 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.
[0043] Optical cameras, also known as 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, thus being able to capture color images.
[0044] Event cameras, also known as neuromorphic cameras or dynamic vision sensors (DVS), are novel image sensors designed based on the dynamic vision of the human eye. Instead of directly recording light intensity linearly, their pixels mimic the human eye's photoreceptors, generating asynchronous pulse signals in response to logarithmic changes in light intensity. Consequently, event cameras offer advantages over traditional RGB cameras, such as high dynamic range, low latency, and sparse image processing.
[0045] Please refer to Figure 1, which is a flow chart of the automatic exposure method provided in an embodiment of the present application. This embodiment is applied to a terminal device having both an event camera and an optical camera, as shown in Figure 1, and includes the following steps:
[0046] Step 101: Acquire event data for characterizing changes in light intensity in a specific area within a unit time.
[0047] In some embodiments, event data is the number of events captured by an event camera. Specifically, when the light intensity in a specific area changes, the event camera detects the event, counts the number of events occurring per unit time, and sends this number to a module in the terminal device that calculates the automatic exposure level. It will be appreciated that the specific area must be within the field of view of the event camera.
[0048] To facilitate understanding, the following is a detailed explanation of how an event camera collects the number of events: Assuming the initial light intensity in a specific area is 10 lux, and the light intensity in that specific area changes to 100 lux within a 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 within a unit time. Furthermore, it should be noted that events include positive events and negative events. When the light intensity increases, the event camera collects the number of positive events; when the light intensity decreases, the event camera collects the number of negative events. For example, in the example above, if the light intensity in the specific area changes from 10 lux to 100 lux within a unit time, the number of positive events collected by the event camera is 10.
[0049] In some embodiments, the specific region is a region of interest (ROI). Before acquiring event data captured by the event camera, the method further includes: determining the region of interest within the captureable area of the event camera; and acquiring event data captured by the event camera includes: acquiring event data within the region of interest captured by the event camera. Specifically, the region of interest can be the area where a human face is located or the motion area of a moving object. By acquiring event data of the region of interest by the event camera, the image generated by the optical camera corresponding to the region of interest can be of superior quality, such as highlighting human faces and moving objects, thereby improving the user experience.
[0050] Step 102: Calculate target exposure according to event data.
[0051] How to calculate the target exposure amount based on the number of events is described in detail in the following embodiments, and will not be described again here to avoid repetition.
[0052] Step 103: adjusting the automatic exposure parameters of the optical camera according to the target exposure value, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.
[0053] In some embodiments, the automatic exposure parameters include one or any combination of the following: 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.
[0054] For ease of understanding, the automatic exposure method of this embodiment is specifically described below with reference to FIG2 :
[0055] Please refer to Figure 2, which is a timing diagram of the operation 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 collects the number of events in its next frame Em+1 and sends the number of events to the module of the terminal device that calculates 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 a picture in its next frame FrameN+1. As can be seen from Figure 2, the time interval between adjacent frames of the event camera is much smaller than the time interval between adjacent frames of the optical camera. Therefore, the event camera can collect the number of events at the moment the light intensity changes, allowing the optical camera to achieve automatic exposure with near-zero delay.
[0056] 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 represent the light intensity change 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 are 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 for prediction, 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.
[0057] Please refer to Figure 3, which is a flowchart of the automatic exposure method provided in an embodiment of the present application. This embodiment is a specific description of the aforementioned embodiment, mainly illustrating: a method of calculating a target exposure amount based on event data.
[0058] This embodiment is applied to a terminal device having an event camera and an optical camera, as shown in FIG3 , and includes the following steps:
[0059] Step 201: Acquire event data for characterizing changes in light intensity in a specific area within a unit time.
[0060] Step 202: Determine a first proportional relationship between event data and target exposure according to a first preset characteristic value.
[0061] 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.
[0062] 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) A2 / t=BS / K, where A is the aperture value of the event camera, B is the external light intensity change value, 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) can obtain formula (2): log2(A2)+log2(1 / t)=log2(B / NK)+log2(NS).
[0063] That is, it can be expressed as: Av+Tv=Bv+Sv, where Av=log2(A2), Tv=log2(1 / t), Bv=log2(B / NK), and Sv=log2(NS); thus, formula (3) is obtained: ΔBv=ΔAv+ΔTv-ΔSv;
[0064] 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.
[0065] Furthermore, due to 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.
[0066] Combining formula (6) and formula (4), we can obtain formula (7): ΔBv=C / kln2*Ne.
[0067] Step 203: Calculate the target exposure according to the first proportional relationship and the event data.
[0068] From the above formula, we can know 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, which is the value of the automatic exposure in the logarithmic domain.
[0069] For ease of understanding, the following specifically describes how to calculate the value of the relative exposure in the logarithmic domain in this embodiment with reference to FIG4 :
[0070] Please refer to Figure 4, which shows 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 per unit time, Ne, and calculates the value of the automatic exposure in the logarithmic domain using the above formula (7).
[0071] Step 204: Adjusting the automatic exposure parameters of the optical camera according to the target exposure value, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.
[0072] Step 201 and step 204 of this embodiment are similar to step 101 and step 103 of the above embodiment, and will not be described again here to avoid repetition.
[0073] 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 represent the light intensity change 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 are 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 for prediction, 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.
[0074] Please refer to Figure 5, which is a flowchart of the automatic exposure method provided in an embodiment of the present application. This embodiment is a specific description of the aforementioned embodiment, mainly illustrating: another method of calculating the target exposure amount based on event data.
[0075] This embodiment is applied to a terminal device having an event camera and an optical camera, as shown in FIG5 , and includes the following steps:
[0076] Step 301: Acquire event data for characterizing changes in light intensity in a specific area within a unit time.
[0077] Step 302: Calculate the event generation rate based on the event data and unit time.
[0078] Step 303: Calculate the target exposure according to the second proportional relationship and the event data.
[0079] Step 304: Determine a second proportional relationship between the event generation rate and the target exposure amount according to the second preset characteristic value.
[0080] Regarding steps 302 to 304, specifically, this embodiment is used to measure absolute light intensity. 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), where 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.
[0081] Step 305: Calculate the target exposure according to the second proportional relationship and the event generation rate.
[0082] From the above formula, we can see that the second proportional relationship is formula (8). Since τ, C, k, Ne, k, and k0 are all known quantities, we can directly calculate B2log2(B2 / B1). According to the formula τ = k0 / B2, we can calculate B2, and then we can find the value of B1. 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 determined, the external light intensity change can be accurately determined, thereby improving the reliability of the automatic exposure method.
[0083] For ease of understanding, the following specifically describes how to calculate the value of the relative exposure in the logarithmic domain in this embodiment with reference to FIG6 and FIG7 :
[0084] Please refer to Figure 6, which shows the relationship between the event rate and the absolute light intensity before the increase (B1) and after the increase (B2). The event rate shown in Figure 6 is the rate of positive events, where B2 is greater than B1. When the external light intensity increases, the event camera is triggered to capture events. The event camera counts the number of events per unit time, Ne, and the time τ required for the event change to calculate the event rate. The absolute light intensity after the increase is calculated based on the event rate, which is the logarithmic value of the relative exposure.
[0085] Please refer to Figure 7, which shows the relationship between the event rate and the absolute light intensity before the light intensity decreases (B1) and the absolute light intensity after the decrease (B2). The event rate shown in Figure 7 is the rate of negative events, where B1 is greater than B2. When the external light intensity decreases, the event camera is triggered to capture events. The event camera counts the number of events per unit time, Ne, and the time τ required for the event change to calculate the event rate. The absolute light intensity after the decrease is calculated based on the event rate, which is the logarithmic value of the relative exposure.
[0086] Step 306 : Adjusting the automatic exposure parameters of the optical camera according to the target exposure value, so that the optical camera performs automatic exposure based on the adjusted automatic exposure parameters.
[0087] Step 301 and step 306 of this embodiment are similar to step 101 and step 103 of the above embodiment, and will not be described again here to avoid repetition.
[0088] 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 represent the light intensity change 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 are 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 for prediction, 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.
[0089] Please refer to Figure 8, which is a schematic diagram of the functional modules of the 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 modules referred to in the embodiments of the present application can be program segments that perform a specific function, and are more suitable for describing the execution process of software in a processor than programs. The one or more modules can be stored in a memory and configured to be executed by one or more processors.
[0090] The event camera 401 is used to collect event data, which 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 based on 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.
[0091] In some embodiments, the parameter adjustment module 405 may be disposed within the optical camera 402 , or the parameter adjustment module 405 and the optical camera 402 may be two independent modules.
[0092] In some embodiments, the event camera 401 and the optical camera 402 may share a common viewpoint or a non-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.
[0093] For ease of understanding, the following describes in detail how the automatic exposure device 400 of this embodiment implements automatic exposure in conjunction with FIG. 9 :
[0094] Please refer to Figure 9, which shows the automatic exposure architecture when the event camera 401 and the optical camera 402 share a common viewpoint. First, the alignment of the event camera 401 and the optical camera 402 is checked. After the event camera 401 and the optical camera 402 are aligned, when the external light intensity changes, the event camera 401 collects the number of events per unit time. The exposure calculation module 404 calculates the relative light intensity or absolute light intensity based on the number of events, and calculates the automatic exposure value in the logarithmic domain based on the relative light intensity or absolute light intensity. The parameter adjustment module 405 adjusts the automatic exposure parameters based on the automatic exposure value 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.
[0095] Please refer to Figure 10, which is a schematic diagram of the hardware structure of an electronic device 1000 provided in an embodiment of the present application. As shown in Figure 10, 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, which can be used to implement the above-mentioned automatic exposure method in the electronic device 1000.
[0096] It is understood 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.
[0097] 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). Different processing units may be independent devices or integrated into one or more processors.
[0098] Processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 1001 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 1001. If processor 1001 needs to use the same instruction or data again, it can directly access it from this memory. This avoids duplicate accesses, reduces the waiting time of processor 1001, and thus improves system efficiency.
[0099] In some embodiments, the processor 1001 may include one or more interfaces. The interfaces 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.
[0100] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, 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 device.
[0101] This embodiment further provides a computer-readable storage medium, which stores computer instructions. 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.
[0102] 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.
[0103] 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.
[0104] In the several embodiments provided in this 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. In actual implementation, there may be other division methods, 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.
[0105] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0106] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0107] 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 and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0108] The above description is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements 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 specific area. Changes in light intensity 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.
Citation Information
Patent Citations
Photographing method and electronic equipment
CN112153301A
Identification method and electronic equipment
CN114967907A
Micro-saccadic actuation for an event camera
US20190014258A1
Determining exposure parameters for imaging
WO2022167098A1
Cited By
Industrial camera acquisition processing method
CN118972701A
A processing method for industrial camera acquisition
CN118972701B
