Image exposure method and apparatus, and electronic device and storage medium
By constructing a mapping relationship and adaptively converging to adjust the exposure parameters, the problems of unstable exposure and motion blur in low-power image acquisition devices during rapid start-up imaging are solved, achieving efficient image exposure results.
Patent Information
- Application Number
- PCT/CN2025/080543
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-22
- Filing Date
- 2025-03-04
- Publication Date
- 2025-10-30
AI Technical Summary
Low-power image acquisition devices cannot quickly achieve proper exposure convergence when starting imaging rapidly, and the first few frames are unstable under changes in ambient brightness, resulting in motion blur.
The initial exposure parameters are determined by establishing a mapping relationship. The exposure and gain values are adjusted based on the current image brightness and frame rate. Through adaptive convergence and maximum exposure limit processing, the image acquisition device can quickly achieve the appropriate exposure effect in different environments.
It improves image exposure efficiency, reduces development time, is compatible with exposure effects in different environments, and reduces motion blur while maintaining image clarity.
Smart Images

Figure CN2025080543_30102025_PF_FP_ABST
Abstract
Description
Image exposure methods, apparatus, electronic devices, and storage media Technical Field
[0001] This application relates to the field of image processing, and in particular to an image exposure method, apparatus, electronic device, and storage medium. Background Technology
[0002] Image exposure refers to the process by which the image sensor of an image acquisition device receives external light and forms an image. Currently, the traditional image exposure method is to adjust the brightness information in real time. For low-power image acquisition devices, the image acquisition device is usually in a sleep state when not in use. When the image acquisition device needs to capture a moving target, it changes from a sleep state to a working state. At this time, the image acquisition device needs to start imaging quickly, and the image exposure needs to converge quickly in order to capture the moving target.
[0003] However, low-power image acquisition using traditional image exposure methods cannot achieve proper exposure convergence in a short time, nor can it solve the problem of unstable images in the first few frames due to changes in ambient brightness. Furthermore, when switching to a normal frame rate, there is also the problem of motion blur for moving targets. Summary of the Invention
[0004] In order to be compatible with the exposure of image acquisition devices in different environments, and to reduce the negative impact of motion blur while maintaining image clarity and improving the efficiency of image exposure, this application provides an image exposure method, apparatus, electronic device and storage medium.
[0005] This application provides an image exposure method, which adopts the following technical solution:
[0006] An image exposure method includes: determining initial exposure parameters of a target image based on a constructed mapping relationship; determining the number of convergence frames of the target image based on the current image brightness value; adjusting the initial exposure parameters based on the current image brightness value and the number of convergence frames to determine a first exposure value and a first gain value; performing frame rate switching and maximum exposure limiting processing on the first exposure value and the first gain value based on the high frame rate and low frame rate corresponding to the target image to determine a second exposure value and a second gain value; and controlling an image acquisition device to output a final image based on the second exposure value and the second gain value.
[0007] According to some embodiments, the construction of the mapping relationship includes: obtaining the photosensitivity values corresponding to different brightness environments and the initial frame rate of the target image, wherein the initial frame rate is the maximum frame rate of the image sensor; determining the maximum exposure value, minimum exposure value, maximum gain value, and minimum gain value of the image sensor based on the initial frame rate; determining the maximum ambient exposure value corresponding to the maximum photosensitivity value based on the maximum exposure value and the maximum gain value; determining the minimum ambient exposure value corresponding to the minimum photosensitivity value based on the minimum exposure value and the minimum gain value; and constructing a mapping relationship between each photosensitivity value and its corresponding ambient exposure value.
[0008] According to some embodiments, the initial exposure parameters include an initial exposure value and an analog gain value. The mapping relationship includes the maximum photosensitivity value, the maximum ambient exposure value, and the minimum ambient exposure value. Determining the initial exposure parameters of the target image based on the constructed mapping relationship includes: obtaining the current photosensitivity value corresponding to the initial frame rate; determining the current ambient exposure value based on the current photosensitivity value, the maximum photosensitivity value, the maximum ambient exposure value, and the minimum ambient exposure value; determining the current ambient exposure value as the initial exposure value when the current ambient exposure value is not greater than the maximum exposure value, and determining the analog gain value as a preset value; wherein, the maximum exposure value is the maximum exposure value of the image sensor included in the image acquisition device; and determining the current ambient exposure value as the maximum exposure value when the current ambient exposure value is greater than the maximum exposure value, and determining the analog gain value as the ratio of the current ambient exposure value to the maximum exposure value.
[0009] According to some embodiments, frame rate switching is performed on a first exposure value and a first gain value based on the high frame rate and low frame rate corresponding to the target image, including: when the first gain value is a preset gain value, defining the first gain value as a preset gain value and keeping the first exposure value unchanged; when the first gain value is less than the ratio of the high frame rate to the low frame rate, defining the first gain value as a preset gain value and using the product of the first exposure value and the first gain value as the first exposure value after frame rate switching; when the first gain value is not a preset gain value and is not less than the ratio of the high frame rate to the low frame rate, defining the ratio of the product of the first gain value and the low frame rate to the high frame rate as the first gain value after frame rate switching, and the first exposure value after frame rate switching is the maximum exposure value of the image sensor included in the image acquisition device.
[0010] According to some embodiments, the maximum exposure limiting processing of the first exposure value and the first gain value includes: determining the ambient exposure value based on the mapping relationship, the first exposure value after frame rate switching, and the first gain value after frame rate switching; determining the ratio of the ambient exposure value to the maximum ambient exposure value contained in the mapping relationship to obtain ratio information; and performing maximum exposure limiting processing on the first exposure value after frame rate switching and the first gain value after frame rate switching based on the ambient exposure value and the ratio information.
[0011] According to some embodiments, adjusting the initial exposure parameters based on the current image brightness value and the number of converged frames to determine the first exposure value and the first gain value includes: acquiring a first frame of the image to be tested based on the initial exposure parameters, calculating the brightness value corresponding to the first frame of the image to be tested, and obtaining the image exposure adjustment range based on the brightness value and a preset target brightness value; if the image exposure adjustment range is not a preset range value, calculating the adjustment step size based on the image exposure adjustment range and a preset exposure convergence speed, adjusting the initial exposure parameters based on the adjustment step size and the adjustment range, calculating the third exposure value and the third gain value, and controlling the image acquisition device to output a second frame of the image to be tested based on the third exposure value and the third gain value; repeating the above steps with the second frame of the image to be tested as the first frame of the image to be tested until the current image brightness value corresponding to a certain frame of the target image satisfies a preset relationship with the preset target brightness value, and defining the third exposure value and the third gain value corresponding to a certain frame of the image to be tested as the first exposure value and the first gain value; wherein, the number of frames corresponding to a certain frame of the image to be tested is not greater than the number of converged frames.
[0012] According to some embodiments, determining the number of converged frames of a target image based on the current image brightness value includes: determining the absolute difference between the current image brightness value and a preset target brightness value; setting a brightness value range, wherein the brightness value range includes at least two sub-brightness value ranges; setting the number of converged frames corresponding to each sub-brightness range; and defining the number of converged frames of the target image as the number of converged frames corresponding to a certain sub-brightness value range when the absolute difference is located in one of the at least two sub-brightness value ranges.
[0013] This application provides an image exposure device, which adopts the following technical solution;
[0014] An image exposure device includes: an exposure parameter determination module, a convergence frame number determination module, an exposure gain determination module, and an image acquisition module. The exposure parameter determination module determines initial exposure parameters of a target image based on a constructed mapping relationship. The convergence frame number determination module determines the convergence frame number of the target image based on the current image brightness value. The exposure gain determination module adjusts the initial exposure parameters based on the current image brightness value and the convergence frame number to determine a first exposure value and a first gain value. The image acquisition module performs frame rate switching and maximum exposure limit processing on the first exposure value and the first gain value based on the high frame rate and low frame rate corresponding to the target image to determine a second exposure value and a second gain value, and controls the image acquisition device to output the final image based on the second exposure value and the second gain value.
[0015] According to some embodiments, the exposure parameter determination module is further configured to: obtain the photosensitivity values corresponding to different brightness environments and the initial frame rate of the target image, wherein the initial frame rate is the maximum frame rate of the image sensor; determine the maximum exposure value, minimum exposure value, maximum gain value, and minimum gain value of the image sensor based on the initial frame rate; determine the maximum ambient exposure value corresponding to the maximum photosensitivity value based on the maximum exposure value and the maximum gain value; determine the minimum ambient exposure value corresponding to the minimum photosensitivity value based on the minimum exposure value and the minimum gain value; and establish a mapping relationship between each photosensitivity value and its corresponding ambient exposure value.
[0016] According to some embodiments, the initial exposure parameters include an initial exposure value and an analog gain value, and the mapping relationship includes the maximum photosensitive value, the maximum ambient exposure value, and the minimum ambient exposure value. The exposure parameter determination module is further configured to: obtain the current photosensitive value corresponding to the initial frame rate; determine the current ambient exposure value based on the current photosensitive value, the maximum photosensitive value, the maximum ambient exposure value, and the minimum ambient exposure value; if the current ambient exposure value is not greater than the maximum exposure value, determine the current ambient exposure value as the initial exposure value and determine the analog gain value as a preset value; if the current ambient exposure value is greater than the maximum exposure value, determine the current ambient exposure value as the maximum exposure value and determine the analog gain value as the ratio of the current ambient exposure value to the maximum exposure value.
[0017] According to some embodiments, the image acquisition module is further configured to: define the first gain value as a preset gain value when the first gain value is a preset gain value, and keep the first exposure value unchanged; define the first gain value as a preset gain value when the first gain value is less than the ratio of the high frame rate to the low frame rate, and use the product of the first exposure value and the first gain value as the first exposure value after frame rate switching; define the ratio of the product of the first gain value and the low frame rate to the high frame rate as the first gain value after frame rate switching when the first gain value is not a preset gain value and is not less than the ratio of the high frame rate to the low frame rate, and use the first exposure value after frame rate switching as the maximum exposure value that the image sensor can set.
[0018] According to some embodiments, the image acquisition module is further configured to: determine the ambient exposure value based on the mapping relationship, the first exposure value after frame rate switching, and the first gain value after frame rate switching; determine the ratio of the ambient exposure value to the maximum ambient exposure value contained in the mapping relationship, and obtain ratio information; and perform maximum exposure limiting processing on the first exposure value after frame rate switching and the first gain value after frame rate switching based on the ambient exposure value and the ratio information.
[0019] According to some embodiments, the exposure gain determination module is further configured to: acquire a first frame of the image to be tested based on initial exposure parameters, calculate the brightness value corresponding to the first frame of the image to be tested, and obtain the image exposure adjustment range based on the brightness value and a preset target brightness value; if the image exposure adjustment range is not a preset range value, calculate the adjustment step size based on the image exposure adjustment range and a preset exposure convergence speed, adjust the initial exposure parameters based on the adjustment step size and the adjustment range, calculate the third exposure value and the third gain value, and control the image acquisition device to output a second frame of the image to be tested based on the third exposure value and the third gain value; repeat the above steps with the second frame of the image to be tested as the first frame of the image to be tested until the current image brightness value corresponding to a certain frame of the target image satisfies a preset relationship with the preset target brightness value, and define the third exposure value and the third gain value corresponding to a certain frame of the image to be tested as the first exposure value and the first gain value; wherein, the number of frames corresponding to a certain frame of the image to be tested is not greater than the number of convergence frames.
[0020] According to some embodiments, the convergence frame number determination module is further configured to: determine the absolute difference between the current image brightness value and the preset target brightness value; set a brightness value range, wherein the brightness value range includes at least two sub-brightness value ranges; set the convergence frame number corresponding to each sub-brightness range; and define the convergence frame number of the target image as the convergence frame number corresponding to a certain sub-brightness value range when the absolute difference is located in one of the at least two sub-brightness value ranges.
[0021] This application provides an electronic device that adopts the following technical solution:
[0022] An electronic device comprising:
[0023] processor;
[0024] The memory stores a computer program, which, when executed by the processor, causes the processor to perform the image exposure method described above.
[0025] This application provides a computer-readable storage medium, which adopts the following technical solution:
[0026] A computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed in a computer, it causes the computer to execute an image exposure method.
[0027] In summary, this application includes the following beneficial technical effects:
[0028] 1. Construct a relationship between the photosensitive values corresponding to extremely low illumination and extremely high outdoor illumination, and the maximum and minimum ambient exposure values of the sensor. After the device is powered on, directly call this mapping relationship to determine the initial exposure parameters of the target image, including the initial exposure value and the analog gain value. Compared with the traditional method of constructing an exposure table through calibration, this method can reduce or even eliminate the calibration process, reduce development time, and further improve the efficiency of image exposure.
[0029] 2. Determine the appropriate number of convergence frames for the target image based on the current brightness of the target image. Perform adaptive convergence on the target image based on this number of convergence frames. That is, converge the target image frame by frame within this number of convergence frames. This will enable the target image to quickly reach the appropriate brightness and ensure that the exposure effect is compatible with the exposure in different environments.
[0030] 3. Limit the maximum exposure of the target image by the ambient exposure value to eliminate the problem of motion blur while ensuring image sharpness.
[0031] 4. By constructing a mapping relationship based on the relevant configuration information of the image sensor, the mapping relationship can be directly called during image exposure, thereby reducing development time and improving image exposure efficiency. Attached Figure Description
[0032] Figure 1 is a block diagram of the image exposure method according to an embodiment of this application;
[0033] Figure 2 is a block diagram of an image exposure apparatus according to an embodiment of this application;
[0034] Figure 3 is a schematic diagram of an electronic device according to an embodiment of this application.
[0035] Explanation of reference numerals in the attached figures: 201: Exposure parameter determination module; 202: Convergence frame number determination module; 203: Exposure gain determination module; 204: Image acquisition module; 30: Electronic device; 301: Processor; 302: Bus; 303: Memory; 304: Transceiver. Detailed Implementation
[0036] The present application will be further described in detail below with reference to Figures 1-3.
[0037] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0038] This application provides an image exposure method that can be executed by an electronic device, which can be a server or a terminal device. The server can be an independent physical server, a server cluster composed of multiple physical servers, or a distributed device, or a cloud server that provides cloud computing services. The terminal device can be a smartphone, a computer, etc., but is not limited to these. The terminal device and the server can be directly or indirectly connected through wired or wireless communication, and this application does not impose any restrictions on this.
[0039] Referring to Figure 1, an image exposure method includes steps S101, S102, S103, and S104, wherein,
[0040] S101, determine the initial exposure parameters of the target image based on the constructed mapping relationship.
[0041] In some embodiments, the mapping relationship is the relationship between the photosensitivity value and the ambient exposure value of the sensor under different environments; the initial exposure parameters include the initial exposure value and the analog gain value. After the image acquisition device is powered on, the electronic device obtains the relevant configuration information corresponding to the image sensor in the image acquisition device at a specific frame rate, and reads the photosensitivity value of the image sensor in the current environment contained in the configuration information. At the same time, the electronic device calls the photosensitivity value and its corresponding ambient exposure parameters in the mapping relationship, and calculates the ambient exposure value of the image sensor in the current environment, i.e., the initial ambient exposure value, by using the photosensitivity value corresponding to the current environment and the photosensitivity value and ambient exposure parameters in the mapping relationship. Subsequently, based on the initial ambient exposure value, the electronic device determines the initial exposure value and the analog gain value of the first frame image acquired by the image acquisition device.
[0042] S102, determine the number of convergence frames of the target image based on the current image brightness value of the target image.
[0043] In some embodiments, the convergence frame number of the target image is the number of frames for frame-by-frame image convergence of the target image. Since the ambient exposure value is linearly mapped, the image exposure brightness needs to converge rapidly towards the target brightness to a normal exposure brightness. Therefore, given the initial exposure value and simulated exposure value corresponding to the first frame of the target image, multi-frame image convergence processing is performed on the target image. First, the electronic device obtains the current image brightness value of the target image, determines the difference between the current target image and the target brightness based on the current image brightness value, and determines the number of frames for frame-by-frame image convergence of the target image based on the current image brightness value and the difference. Subsequently, the electronic device performs frame-by-frame image convergence of the target image within the convergence frame number.
[0044] S103, adjust the initial exposure parameters based on the current image brightness value and the number of converged frames to determine the first exposure value and the first gain value; the current image brightness value is the brightness value of the first frame of the target image.
[0045] In some embodiments, after determining the number of convergence frames corresponding to the target image, the electronic device begins frame-by-frame image convergence processing of the target image. For the exposure convergence process of each frame of the target image, the electronic device first determines the brightness value of each frame image. The brightness value is calculated based on the current brightness value, the brightness of multiple regions contained in the corresponding frame image, and the weight corresponding to each region image. After determining the brightness value of the corresponding frame image, the electronic device calculates the image exposure adjustment range of the corresponding frame image and determines how to adjust the exposure parameters of the corresponding frame image based on the image exposure adjustment range. Based on the adjusted exposure parameters, the next frame image is acquired until the current image brightness value of a certain frame image of the target image satisfies a preset relationship with the preset target brightness value. The determined exposure value and gain value of the certain frame image are the first exposure value and gain value. At this time, the image convergence work for the target image is completed.
[0046] S104, based on the high frame rate and low frame rate corresponding to the target image, the first exposure value and the first gain value are subjected to frame rate switching and maximum exposure limit processing to determine the second exposure value and the second gain value, and the image acquisition device is controlled to output the final image based on the second exposure value and the second gain value.
[0047] In some embodiments, the high frame rate is the maximum frame rate set by the image sensor corresponding to the target image; the low frame rate is the frame rate used for image exposure during normal IPC streaming preview, and both the high and low frame rates are preset values. Because a high frame rate is used for exposure during image convergence of the target image, while a low frequency is used during normal IPC streaming preview, it is necessary to switch the frame rate of the image corresponding to the determined first exposure value and first gain value. Furthermore, since there may be moving targets in the target image, the movement of these targets during exposure can cause motion blur. Therefore, to reduce motion blur during exposure, a maximum exposure limit is applied after frame rate switching to minimize motion blur.
[0048] In some embodiments, during the frame rate switching process of the image corresponding to the first exposure value and the first gain value, the electronic device can first obtain the high frequency of the current target image and the low frequency that needs to be reached after the switch, and use the high frequency, low frequency and the first gain value as conditional parameters for determining how the image of the first exposure value and the first gain value should be frame rate switched, and calculate the first exposure value and the first gain value after the frame rate switch through the relevant frame rate switching formula.
[0049] In some embodiments, the electronic device limits the maximum exposure of a first exposure value and a first gain value after frame rate switching based on the current ambient exposure value corresponding to the target image. The current ambient exposure value can be determined using the first exposure value and the first gain value after frame rate switching. The electronic device invokes a mapping relationship to determine the ratio of the current exposure value to the maximum exposure value based on the current ambient exposure value and the mapping relationship. Then, the electronic device limits the maximum exposure based on this ratio. The electronic device presets a first threshold and a second threshold, and compares the ratio of the current exposure value to the maximum exposure value with the first and second thresholds. Based on the comparison result, it uses corresponding... The calculation formula completes the maximum exposure limit; after the maximum exposure limit of the electronic device is completed, the final exposure value and the final gain value after the maximum exposure limit is completed are calculated, namely the second exposure value and the second gain value. The electronic device sends the second exposure value and the second gain value to the image sensor of the image acquisition device. The image acquisition device completes the final target image capture based on the second exposure value and the second gain value, and obtains the final target image; by determining the appropriate convergence frame number of the target image, adaptive frame rate convergence of the target image is performed within the convergence frame number range, which can be compatible with the exposure effect of the image acquisition device in different environments, improves the exposure efficiency, and reduces the negative impact of motion blur while maintaining image clarity.
[0050] This application provides an image exposure method. An electronic device pre-sets a mapping relationship. After the image acquisition device is powered on, the electronic device uses the mapping relationship to determine the initial exposure parameters of the target image. Then, the electronic device acquires the current image brightness value and determines the number of convergence frames for image convergence of the target image based on the current brightness value. Within the number of frames, the electronic device performs frame-by-frame adaptive frame rate convergence of the target image to make the brightness of the target image approach the required brightness. Considering that the frame rate convergence of the target image uses a high frame rate for exposure, which cannot meet the requirements of normal IPC streaming preview, the image with the first exposure value and first gain value determined after frame rate convergence needs to undergo frame rate switching. During the frame rate switching process, based on the acquired... The system determines the frame rate switching based on high frame rate, low frame rate, and a first gain value, and completes the frame rate switching through relevant switching calculations. Then, to address the issue of motion blur in the target image due to the presence of moving targets, the electronic device uses the determined current ambient exposure value, the ratio of the current ambient exposure value to the maximum ambient exposure value, a first threshold, and a second threshold to limit the maximum exposure. After the maximum exposure limit is completed, a second exposure value and a second gain value are determined. Based on the second exposure value and the second gain value, the electronic device controls the image acquisition device to output the final target image, thereby enabling compatibility with the exposure effects of the image acquisition device in different environments, improving exposure efficiency, and reducing the negative impact of motion blur while maintaining image clarity.
[0051] In step S101, the mapping relationship construction process includes: obtaining the photosensitivity values corresponding to different brightness environments and the initial frame rate of the target image, wherein the initial frame rate is the maximum frame rate of the image sensor; determining the maximum exposure value, minimum exposure value, maximum gain value, and minimum gain value of the image sensor based on the initial frame rate; determining the maximum ambient exposure value corresponding to the maximum photosensitivity value based on the maximum exposure value and the maximum gain value; determining the minimum ambient exposure value corresponding to the minimum photosensitivity value based on the minimum exposure value and the minimum gain value; and constructing a mapping relationship between each photosensitivity value and its corresponding ambient exposure value.
[0052] In some embodiments, the electronic device acquires photosensitivity values corresponding to different brightness environments, such as photosensitivity values under extremely low illumination and outdoor extremely high illumination. Simultaneously, it acquires the maximum frame rate of the image sensor in the image acquisition device. The electronic device can then obtain the maximum and minimum exposure values and the maximum and minimum analog gain values of the image sensor corresponding to the maximum frame rate. Subsequently, the electronic device determines the maximum and minimum environmental exposure values using the maximum and minimum exposure values and the maximum and minimum analog gain values. The calculation formulas for the maximum environmental exposure value EE_max and the minimum environmental exposure value EE_min are as follows: EE_max = Expose_max * Again_max EE_min = Expose_min * Again_min
[0053] Where Expose_max and Expose_min are the maximum and minimum exposure values of the image sensor, in exposure lines, and Again_max and Again_min are the maximum and minimum analog gain of the image sensor, in multiples. The electronic device then establishes a one-to-one mapping relationship between the determined maximum ambient exposure value, minimum ambient exposure value, photosensitivity value in extremely low light conditions, and photosensitivity value in extremely high outdoor light conditions, as shown in the table below:
[0054] Note: adc_max is the maximum photosensitive value, and 0 is the minimum exposure value.
[0055] Therefore, there is no need to calibrate the exposure meter; the results can be obtained directly from the sensor's relevant parameter information, reducing the time required for the calibration process and further improving the efficiency of subsequent target image exposure.
[0056] In some embodiments, step S101, determining the initial exposure parameters of the target image based on the mapping relationship, includes: obtaining the current photosensitive value corresponding to the initial frame rate; determining the current environmental exposure value based on the current photosensitive value, the maximum photosensitive value, the maximum environmental exposure value, and the minimum environmental exposure value; determining the current environmental exposure value as the initial exposure value when the current environmental exposure value is not greater than the maximum exposure value, and determining the analog gain value as a preset value; determining the current environmental exposure value as the maximum exposure value when the current environmental exposure value is greater than the maximum exposure value, and determining the analog gain value as the ratio of the current environmental exposure value to the maximum exposure value.
[0057] In some embodiments, after the image acquisition device is powered on, it begins to capture images. At this time, the electronic device acquires configuration information including the maximum frame rate of the image sensor. By reading the relevant configuration information, it obtains the current photosensitivity value corresponding to the environment in which the image acquisition device is located. Then, the electronic device determines the current environmental exposure value based on the current photosensitivity value, the maximum photosensitivity value, the maximum environmental exposure value, and the minimum environmental exposure value in the mapping relationship by calling the mapping relationship. The current environmental exposure value is EE. ori The calculation formula is as follows:
[0058] EE ori (adc ori / adc max )*(EE max -EE min )+EE m in
[0059] Among them, adc ori This refers to the current photosensitivity value read by the device after power-on; EE ori This refers to the environmental exposure value calculated after power-on.
[0060] The electronic device then compares the ambient exposure value with the maximum exposure value. If the current ambient exposure value is not greater than the maximum exposure value, the current ambient exposure value is determined to be the initial exposure value, and the analog gain is determined to be the preset value. If the current ambient exposure value is greater than the maximum exposure value, the current ambient exposure value is determined to be the maximum exposure value, and the analog gain is determined to be the ratio of the current ambient exposure value to the maximum exposure value.
[0061] In some implementations, the initial exposure value Expose of the first frame of the target image is calculated. ori and analog gain value Again ori The calculation formula is as follows:
[0062] Among them, EE curr 1 represents the current environmental exposure value, and 1 represents the preset value.
[0063] The electronic device then sends the determined initial exposure value and analog gain value to the image sensor for parameter updates, which are used for the acquisition of other frames of the target image in the future.
[0064] In step S102, determining the number of converged frames of the target image based on the current image brightness value includes: determining the absolute difference between the current image brightness value and the preset target brightness value; setting a brightness value range, wherein the brightness value range includes at least two sub-brightness value ranges; setting the number of converged frames corresponding to each sub-brightness range; and defining the number of converged frames of the target image as the number of converged frames corresponding to a certain sub-brightness value range when the absolute difference is located in one of the at least two sub-brightness value ranges.
[0065] In some embodiments, in order to normalize the exposure brightness of the target image, the brightness of the target image after frame rate convergence needs to be close to the target brightness. Furthermore, the number of convergence frames is proportional to the image brightness. Therefore, it is necessary to achieve a suitable brightness for the target image in the shortest possible time, i.e., determine the appropriate number of convergence frames for the target image, and perform convergence within this range. The determination of the number of convergence frames for the target image can be based on the current image brightness value. First, the electronic device acquires the target brightness value, which is the brightness value the target image needs to achieve after convergence. Then, the electronic device calculates the absolute difference between the current image brightness value and the target brightness value. The formula for calculating the absolute difference is as follows:
[0066] l uma diff =abs(luma ari -Luma target )
[0067] Among them, Luma target It is the preset target brightness value, which can be set according to different brightness preferences, generally between 60 and 100. abs represents absolute value calculation.
[0068] In addition, the electronic device sets a brightness value range containing four sub-brightness value ranges, and sets each sub-brightness range to correspond to a number of convergence frames; for example, the four sub-brightness ranges are 0-9, 10-19, 20-39, and 40 and above; the number of frames corresponding to the four sub-brightness ranges are 5, 10, 15, and 20 respectively; then, the electronic device compares the determined absolute difference with the four sub-brightness ranges respectively, and if the absolute difference is within one of the four sub-brightness ranges, the number of convergence frames of the target image is defined as the number of convergence frames corresponding to that sub-brightness value range.
[0069] In some embodiments, the number of convergence frames of the target image is [frame number missing]. count The calculation formula is as follows:
[0070] Among them, luma diff This is the absolute difference.
[0071] After determining the number of convergence frames corresponding to the target image, adaptive frame convergence of the target image can be performed within the number of convergence frames, which can quickly and efficiently bring the brightness of the target image to a suitable target brightness, thus improving the efficiency of image exposure.
[0072] In step S103, the initial exposure parameters are adjusted based on the current image brightness value and the number of converged frames to determine the first exposure value and the first gain value. This includes: acquiring the first frame of the image to be tested based on the initial exposure parameters, calculating the brightness value corresponding to the first frame of the image to be tested, and obtaining the image exposure adjustment range based on the brightness value and the preset target brightness value; if the image exposure adjustment range is not the preset range value, calculating the adjustment step size based on the image exposure adjustment range and the preset exposure convergence speed, and adjusting the initial exposure parameters based on the adjustment step size and the adjustment range to calculate the third exposure value and the third gain value; controlling the image acquisition device to output the second frame of the image to be tested based on the third exposure value and the third gain value; repeating the above steps with the second frame of the image to be tested as the first frame of the image to be tested until the current image brightness value corresponding to a certain frame of the target image satisfies the preset relationship with the preset target brightness value, and defining the third exposure value and the third gain value corresponding to a certain frame of the image to be tested as the first exposure value and the first gain value; wherein, the number of frames corresponding to a certain frame of the image to be tested is not greater than the number of converged frames.
[0073] In some embodiments, after the electronic device determines the number of convergence frames for the target image, it performs convergence processing on each frame of the target image within that number of convergence frames. First, the electronic device calculates multiple average brightness values for the first frame of the target image collected using initial exposure parameters. The electronic device then determines the current brightness value corresponding to the first frame of the target image based on these average brightness values. Simultaneously, the electronic device retrieves a preset target brightness value and determines the image exposure adjustment range based on the current brightness value and the preset target brightness value. The image exposure adjustment range AE is... ratio The calculation formula is as follows:
[0074] Among them, Luma curr Luma is the current average brightness value. target The target brightness value.
[0075] In some embodiments, when the image exposure adjustment range is greater than a preset range value, an adjustment step size is calculated based on a preset exposure convergence speed and the image exposure adjustment range. If the initial exposure value has not reached the maximum exposure value, the adjustment step size is multiplied by the initial exposure value to obtain a third exposure value. If the initial exposure value has reached the maximum exposure value, the adjustment factor required for the initial analog gain value is calculated based on the adjustment step size until the initial analog gain value reaches the maximum gain value. The adjustment step size is AE.step The calculation formula is as follows:
[0076] Among them, AE ratio To adjust the amplitude, AE speed Exposure convergence speed
[0077] In some embodiments, when the image exposure adjustment range is less than a preset range value, an adjustment step size is calculated based on the preset exposure convergence range and the image exposure adjustment range, and the initial analog gain value is reduced by adjusting the step size; when the initial analog gain value reaches the minimum analog value, the initial exposure value is reduced. The adjustment step size AE is... step The calculation formula is as follows:
[0078] Where AEratio is the adjustment range and AEspeed is the exposure convergence speed.
[0079] In some embodiments, when the image exposure adjustment range is a preset range value, the exposure value and gain value corresponding to the current frame image to be tested are respectively used as the first exposure value and the first gain value.
[0080] In some embodiments, the initial exposure value and analog gain value corresponding to the first frame of the target image are adjusted as the third exposure value and the third gain value. The third exposure value and the third gain value of the second frame of the target image are adjusted according to the adjusted third exposure value and the third gain value corresponding to the initial frame of the target image. This process continues until the absolute difference between the current image brightness value of a certain frame of the target image and the preset target brightness value meets the preset range. Then, the third exposure value and the third gain value corresponding to that certain frame of the target image are used as the first exposure value and the first gain value.
[0081] In some embodiments, when calculating multiple average brightness values for each frame of the image under test, the image under test is first divided into multiple image blocks, and each image block is assigned a corresponding weight. The image blocks in the central region of the image under test are assigned a higher weight than the surrounding image blocks. Furthermore, the number of image blocks varies depending on the chip's support capability; generally, the number of image blocks is set between 25 and 64, as shown in the figure below.
[0082] Subsequently, the average pixel brightness within different image blocks is calculated, and the average value is obtained by summing the corresponding image blocks by weight and then taking the mean. The formula for calculating the brightness value of the current image is as follows:
[0083] Where n represents the number of blocks, weight represents the weight of the corresponding block, and light represents the average brightness value of the corresponding block.
[0084] In step S104, based on the high frame rate and low frame rate corresponding to the target image, the frame rate is switched between the first exposure value and the first gain value, including: when the first gain value is a preset gain value, the first gain value is defined as a preset gain value, and the first exposure value remains unchanged; when the first gain value is less than the ratio of the high frame rate to the low frame rate, the first gain value is defined as a preset gain value, and the product of the first exposure value and the first gain value is used as the first exposure value after the frame rate switch; when the first gain value is not a preset gain value and is not less than the ratio of the high frame rate to the low frame rate, the ratio of the product of the first gain value and the low frame rate to the high frame rate is defined as the first gain value after the frame rate switch, and the first exposure value after the frame rate switch is the maximum exposure value of the image sensor included in the image acquisition device.
[0085] In some implementations, the electronic device acquires the high frame rate fps_h corresponding to the current target image and the low frame rate fps_l to which it needs to switch. Then, the electronic device compares a first gain value with a preset gain value, the ratio between the high frame rate, and the low frame rate. Based on the comparison results, it determines the result after switching the frame rate using the first exposure value and the first gain value. Specifically, the first exposure value... curr and the first gain value Again curr The formula for switching frame rates is as follows:
[0086] Among them, Expose lfps The first exposure value after the frame rate switch, Again lfps The first gain value after frame rate switching, Expose max This represents the maximum environmental exposure value.
[0087] In step S104, the first exposure value and the first gain value are subjected to maximum exposure limiting processing, including: determining the ambient exposure value based on the mapping relationship, the first exposure value after frame rate switching, and the first gain value after frame rate switching; determining the ratio of the ambient exposure value to the maximum ambient exposure value contained in the mapping relationship, and obtaining ratio information; and performing maximum exposure limiting processing on the first exposure value after frame rate switching and the first gain value after frame rate switching based on the ambient exposure value and the ratio information.
[0088] In some embodiments, to reduce the occurrence of motion blur during the exposure of the target image due to the presence of a moving target in the target image, after the frame rate switching of the first exposure value and the first gain value is completed, the first exposure value and the first gain value after the frame rate switching are subjected to maximum exposure limitation processing. First, the electronic device calls the maximum exposure value in the mapping relationship, and determines the ambient exposure value based on the maximum exposure value, the first exposure value after the frame rate switching, and the first gain value after the frame rate switching. Then, it determines the ratio of the ambient exposure value to the maximum exposure value to obtain ratio information. The electronic device calls the pre-preset first threshold and second threshold, and compares the ambient exposure value with the first threshold and the second threshold to determine the maximum exposure limitation calculation and adjustment method of the first exposure value and the first gain value. The second exposure value and the second gain value are obtained through calculation.
[0089] In some embodiments, the environmental exposure value (EE) curr The calculation formula is as follows:
[0090] EE curr =Expose lfps *Again lfps
[0091] Among them, Expose lfps The first exposure value after the frame rate switch, Again lfps This is the first gain value after the frame rate switch.
[0092] Ratio Information EE ratio The calculation formula is as follows:
[0093] EE ratio =(EE) curr -EE min ) / (EE max -EE m in
[0094] Among them, EE max EE represents the maximum ambient exposure value contained in the mapping relationship. min This represents the minimum environmental exposure value included in the mapping relationship.
[0095] The formulas for calculating the maximum exposure limit for the first exposure value and the first gain value are as follows:
[0096] Where fps1 is the frame rate, thre1 is the first threshold, thre2 is the second threshold, and expose... maxThe maximum exposure value of the image sensor is used; the first threshold and the second threshold can be set according to different images and determined based on the trade-off between motion blur and noise. If the image noise is not a concern, the first threshold and the second threshold can be set to the maximum value of the ratio information, i.e., 1; if the image noise is more a concern, the first threshold can be set to 1 / 3 and the second threshold can be set to 2 / 3. In this implementation, the maximum exposure time is constrained according to different environmental exposure values, and the problem of motion blur of moving targets is eliminated while reducing image noise.
[0097] After obtaining the first exposure value after reaching the maximum exposure limit, the second exposure value (Expose) is obtained using the following formula. final :
[0098] Simultaneously, the second gain value Again is obtained based on the second exposure value and the ratio information. final The calculation formula is as follows:
[0099] Again final =EE curr / Expose final
[0100] Among them, EE curr For ratio information, Expose final This is the second exposure value.
[0101] This application provides an image exposure device, which adopts the following technical solution;
[0102] Referring to Figure 2, an image exposure device 20 includes: an exposure parameter determination module 201, a convergence frame number determination module 202, an exposure gain determination module 203, and an image acquisition module 204, wherein...
[0103] The exposure parameter determination module 201 is used to determine the initial exposure parameters of the target image based on the constructed mapping relationship; the convergence frame number determination module 202 is used to determine the convergence frame number of the target image based on the current image brightness value of the target image; the exposure gain determination module 203 is used to adjust the initial exposure parameters based on the current image brightness value and the convergence frame number to determine the first exposure value and the first gain value; the image acquisition module 204 is used to perform frame rate switching and maximum exposure limit processing on the first exposure value and the first gain value based on the high frame rate and low frame rate corresponding to the target image to determine the second exposure value and the second gain value, and control the image acquisition device to output the final image based on the second exposure value and the second gain value.
[0104] In some embodiments, the exposure parameter determination module 201 is further configured to: obtain the photosensitivity values corresponding to different brightness environments and the initial frame rate of the target image, wherein the initial frame rate is the maximum frame rate of the image sensor; determine the maximum exposure value, minimum exposure value, maximum gain value, and minimum gain value of the image sensor based on the initial frame rate; determine the maximum ambient exposure value corresponding to the maximum photosensitivity value based on the maximum exposure value and the maximum gain value; determine the minimum ambient exposure value corresponding to the minimum photosensitivity value based on the minimum exposure value and the minimum gain value; and establish a mapping relationship between each photosensitivity value and its corresponding ambient exposure value.
[0105] In some embodiments, the initial exposure parameters include an initial exposure value and an analog gain value, and the mapping relationship includes the maximum photosensitivity value, the maximum ambient exposure value, and the minimum ambient exposure value; the exposure parameter determination module 201 is further configured to: obtain the current photosensitivity value corresponding to the initial frame rate; determine the current ambient exposure value based on the current photosensitivity value, the maximum photosensitivity value, the maximum ambient exposure value, and the minimum ambient exposure value; if the current ambient exposure value is not greater than the maximum exposure value, determine the current ambient exposure value as the initial exposure value, and determine the analog gain value as a preset value; wherein, the maximum exposure value is the maximum exposure value of the image sensor included in the image acquisition device; if the current ambient exposure value is greater than the maximum exposure value, determine the current ambient exposure value as the maximum exposure value, and determine the analog gain value as the ratio of the current ambient exposure value to the maximum exposure value.
[0106] In some embodiments, the image acquisition module 204 is further configured to: define the first gain value as a preset gain value when the first gain value is a preset gain value, and keep the first exposure value unchanged; define the first gain value as a preset gain value when the first gain value is less than the ratio of the high frame rate to the low frame rate, and use the product of the first exposure value and the first gain value as the first exposure value after frame rate switching; define the ratio of the product of the first gain value and the low frame rate to the high frame rate as the first gain value after frame rate switching when the first gain value is not a preset gain value and is not less than the ratio of the high frame rate to the low frame rate, and the first exposure value after frame rate switching is the maximum exposure value of the image sensor included in the image acquisition device.
[0107] In some embodiments, the image acquisition module 204 is further configured to: determine the ambient exposure value based on the mapping relationship, the first exposure value after frame rate switching, and the first gain value after frame rate switching; determine the ratio of the ambient exposure value to the maximum ambient exposure value contained in the mapping relationship, and obtain ratio information; and perform maximum exposure limiting processing on the first exposure value after frame rate switching and the first gain value after frame rate switching based on the ambient exposure value and the ratio information.
[0108] In some embodiments, the exposure gain determination module 203 is further configured to: acquire a first frame of the image to be tested based on initial exposure parameters, calculate the brightness value corresponding to the first frame of the image to be tested, and obtain the image exposure adjustment range based on the brightness value and a preset target brightness value; if the image exposure adjustment range is not a preset range value, calculate the adjustment step size based on the image exposure adjustment range and a preset exposure convergence speed, adjust the initial exposure parameters based on the adjustment step size and the adjustment range, calculate the third exposure value and the third gain value, and control the image acquisition device to output a second frame of the image to be tested based on the third exposure value and the third gain value; repeat the above steps with the second frame of the image to be tested as the first frame of the image to be tested until the current image brightness value corresponding to a certain frame of the target image satisfies a preset relationship with the preset target brightness value, and define the third exposure value and the third gain value corresponding to a certain frame of the image to be tested as the first exposure value and the first gain value; wherein, the number of frames corresponding to the certain frame of the image to be tested is not greater than the number of convergence frames.
[0109] In some embodiments, the convergence frame number determination module 202 is further configured to: determine the absolute difference between the current image brightness value and the preset target brightness value; set a brightness value range, wherein the brightness value range includes at least two sub-brightness value ranges; set the convergence frame number corresponding to each sub-brightness range; and define the convergence frame number of the target image as the convergence frame number corresponding to a certain sub-brightness value range when the absolute difference is located in one of the at least two sub-brightness value ranges.
[0110] In some embodiments, the exposure parameter determination module 201 may include logic circuits or be implemented by a central processing unit, digital signal processor, or field-programmable gate array (FPGA) included in an electronic device; the coverage determination module 202 may include logic circuits or be implemented by a central processing unit, digital signal processor, or FPGA included in an electronic device; the exposure gain determination module 203 may include logic circuits or be implemented by a central processing unit, digital signal processor, or FPGA included in an electronic device; and the image acquisition module 204 may include logic circuits or be implemented by a central processing unit, digital signal processor, or FPGA included in an electronic device.
[0111] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0112] This invention also describes an electronic device from the perspective of a physical apparatus, as shown in FIG3. The electronic device 30 shown in FIG3 includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, via a bus 302. Optionally, the electronic device 30 may further include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 30 does not constitute a limitation on the embodiments of this invention.
[0113] Processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in this disclosure. Processor 301 may also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0114] Bus 302 may include a pathway for transmitting information between the aforementioned components. Bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 302 may be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in Figure 3, but this does not indicate that there is only one bus or one type of bus.
[0115] The memory 303 may be a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, or it may be an EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disk storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory 303 is used to store application code that executes the scheme of the present invention, and its execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the foregoing method embodiments. The electronic device shown in FIG3 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0116] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps. The above are only some embodiments of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. An image exposure method, characterized in that, include: The initial exposure parameters of the target image are determined based on the constructed mapping relationship; The convergence frame number of the target image is determined based on the current image brightness value of the target image; The initial exposure parameters are adjusted based on the current image brightness value and the number of converged frames to determine the first exposure value and the first gain value; Based on the high frame rate and low frame rate corresponding to the target image, the first exposure value and the first gain value are subjected to frame rate switching and maximum exposure limit processing to determine the second exposure value and the second gain value, and the image acquisition device is controlled to output the final image based on the second exposure value and the second gain value.
2. The method according to claim 1, characterized in that, The construction of the mapping relationship includes: The photosensitivity values and the initial frame rate of the target image are obtained under different brightness environments, wherein the initial frame rate is the maximum frame rate of the image sensor; The maximum exposure value, minimum exposure value, maximum gain value, and minimum gain value of the image sensor are determined based on the initial frame rate. Determine the maximum ambient exposure value corresponding to the maximum photosensitivity value based on the maximum exposure value and the maximum gain value; Determine the minimum ambient exposure value corresponding to the minimum photosensitivity value based on the minimum exposure value and the minimum gain value; A mapping relationship is established between each photosensitivity value and its corresponding ambient exposure value.
3. The method according to claim 1, characterized in that, The initial exposure parameters include the initial exposure value and the simulated gain value, and the mapping relationship includes the maximum photosensitivity value, the maximum ambient exposure value, and the minimum ambient exposure value. The initial exposure parameters of the target image are determined based on the constructed mapping relationship, including: Obtain the current photosensitive value corresponding to the initial frame rate; The current ambient exposure value is determined based on the current photosensitivity value, the maximum photosensitivity value, the maximum ambient exposure value, and the minimum ambient exposure value. If the current ambient exposure value is not greater than the maximum exposure value, the current ambient exposure value is determined to be the initial exposure value, and the analog gain value is determined to be a preset value; wherein, the maximum exposure value is the maximum exposure value of the image sensor included in the image acquisition device; If the current ambient exposure value is greater than the maximum exposure value, the current ambient exposure value is determined to be the maximum exposure value, and the analog gain value is determined to be the ratio of the current ambient exposure value to the maximum exposure value.
4. The method according to claim 1, characterized in that, Based on the high frame rate and low frame rate corresponding to the target image, the frame rate is switched between the first exposure value and the first gain value, including: When the first gain value is a preset gain value, the first gain value is defined as the preset gain value, and the first exposure value remains unchanged; If the first gain value is less than the ratio of the high frame rate to the low frame rate, the first gain value is defined as a preset gain value, and the product of the first exposure value and the first gain value is used as the first exposure value after the frame rate switch. If the first gain value is not a preset gain value and is not less than the ratio of the high frame rate to the low frame rate, the ratio of the product of the first gain value and the low frame rate to the high frame rate is defined as the first gain value after frame rate switching, and the first exposure value after frame rate switching is the maximum exposure value of the image sensor included in the image acquisition device.
5. The method according to claim 4, characterized in that, Maximum exposure limiting processing is applied to the first exposure value and the first gain value, including: The ambient exposure value is determined based on the mapping relationship, the first exposure value after the frame rate switch, and the first gain value after the frame rate switch. Determine the proportion of the environmental exposure value to the maximum environmental exposure value included in the mapping relationship to obtain ratio information; Based on the environmental exposure value and the ratio information, the first exposure value after the frame rate switch and the first gain value after the frame rate switch are subjected to maximum exposure limitation processing.
6. The method according to claim 1, characterized in that, The step of adjusting the initial exposure parameters based on the current image brightness value and the number of converged frames to determine the first exposure value and the first gain value includes: The first frame of the image to be tested is acquired based on the initial exposure parameters, the brightness value corresponding to the first frame of the image to be tested is calculated, and the image exposure adjustment range is obtained based on the brightness value and the preset target brightness value. When the image exposure adjustment range is not a preset range value, the adjustment step size is calculated based on the image exposure adjustment range and the preset exposure convergence speed, and the initial exposure parameters are adjusted based on the adjustment step size and the adjustment range to calculate the third exposure value and the third gain value. Based on the third exposure value and the third gain value, the image acquisition device is controlled to output the second frame of the image to be tested. Using the second frame of the image to be tested as the first frame of the image to be tested, repeat the above steps until the current image brightness value corresponding to a certain frame of the target image satisfies a preset relationship with the preset target brightness value. Then, define the third exposure value and the third gain value corresponding to the certain frame of the image to be tested as the first exposure value and the first gain value. The number of frames corresponding to the certain frame of the image to be tested is not greater than the number of converged frames.
7. The method according to any one of claims 1-6, characterized in that, Determining the convergence frame number of the target image based on the current image brightness value of the target image includes: Determine the absolute difference between the current image brightness value and the preset target brightness value; A brightness value range is defined, wherein the brightness value range includes at least two sub-brightness value ranges; Set the number of convergence frames corresponding to each sub-brightness range; When the absolute difference is located within one of the at least two sub-brightness value ranges, the convergence frame number of the target image is defined as the convergence frame number corresponding to that sub-brightness value range.
8. An image exposure apparatus, characterized in that, include: The exposure parameter determination module is used to determine the initial exposure parameters of the target image based on the constructed mapping relationship; A convergence frame number determination module is used to determine the convergence frame number of the target image based on the current image brightness value of the target image; An exposure gain determination module is used to adjust the initial exposure parameters based on the current image brightness value and the number of converged frames to determine a first exposure value and a first gain value. The image acquisition module is used to perform frame rate switching and maximum exposure limit processing on the first exposure value and the first gain value based on the high frame rate and low frame rate corresponding to the target image, determine the second exposure value and the second gain value, and control the image acquisition device to output the final image based on the second exposure value and the second gain value.
9. An electronic device, characterized in that, include: processor; A memory storing a computer program that, when executed by the processor, causes the processor to perform the image exposure method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed in a computer, it causes the computer to perform the image exposure method according to any one of claims 1-7.
Citation Information
Patent Citations
Terminal control method, terminal control device and terminal
CN105611037A
Frame-lowering photographing method, mobile terminal and storage medium
CN107864341A
Automatic exposure method and system
CN109819172A
Image processing method and device
CN115967861A
Image exposure method and device, electronic equipment and storage medium
CN118075617A
Cited By
Exposure control method and device, camera, equipment, medium and product
CN121262472A