Wide dynamic exposure control method, device, storage medium and electronic device

By counting the number of overflow pixels in long-frame images during image processing and adjusting the exposure parameters of short-frame images, the problem of content loss and noise in image synthesis is solved and the image quality is improved.

CN118660228BActive Publication Date: 2024-10-15CHENGDU POWER VIEW SCIENCE & TECHNOLOGY CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411132787.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-15
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

The existing technology has problems of image content loss and digital noise in image processing, especially during the image synthesis process under high dynamic range, resulting in a decrease in image quality.

Method used

By counting the number of pixels above the brightness overflow threshold when the long-frame image meets the target brightness requirements, and setting the exposure parameters of the short-frame image until the reference histogram in the short-frame image meets the target brightness requirements, the short-frame image is determined. Frame exposure parameters to reduce content loss and digital noise during image composition.

Benefits of technology

Effectively reduce the content loss of HDR synthesized images, reduce digital noise, improve image quality, and retain more effective information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118660228B_ABST
    Figure CN118660228B_ABST
Patent Text Reader

Abstract

The present invention proposes a wide dynamic exposure control method, device, storage medium and electronic device. When a long frame image meets the target brightness requirement, the short frame exposure parameters are set so that the brightness values ​​corresponding to the first N pixels in the short frame image meet the same target brightness requirement as the long frame image, that is, the content corresponding to the first N pixels in the short frame image can be clearly identified. When synthesizing a long frame image and a short frame image, the first N pixels in the short frame image are used to merge with the long frame image from which the first type of pixels are removed, and the brightness of the two is close to ensure that the exposure ratio is in a suitable range, so as to reduce the content loss of the HDR synthesized image, reduce digital noise, retain more effective information, and improve image quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a wide dynamic range exposure control method, device, storage medium and electronic device. Background Art

[0002] Usually, when a camera collects images of a target scene, if there is a strong light source (such as sunlight, lamps or reflections) in the target scene, it may cause high-brightness areas and low-brightness areas (such as shadows, backlights and other relatively low-brightness areas) to exist in the image at the same time, causing the bright areas in the image to become white due to overexposure, and the dark areas to become black due to underexposure, which seriously affects the image quality. In order to deal with the above problems, high dynamic range imaging (HDRI or HDR) technology can be used for image processing. Based on the image acquisition device, long-frame images and short-frame images under different exposure parameters are collected, and the long-frame images and short-frame images are synthesized to obtain a synthetic image, thereby reducing the impact of overexposure and underexposure.

[0003] However, currently, the synthesized image may still have the problem of image content loss and large digital noise. How to overcome the problem that the synthesized image may still have the problem of image content loss and large digital noise has become a difficult problem that those skilled in the art need to solve. Summary of the invention

[0004] An object of the present invention is to provide a wide dynamic range exposure control method, device, storage medium and electronic device to at least partially improve the above-mentioned problem.

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

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

[0007] When the long frame image meets the target brightness requirement, counting a first quantity, wherein the first quantity is the number of pixel points in the long frame image whose brightness is above an overflow threshold;

[0008] Setting the short frame exposure parameters of the short frame image until a reference histogram in the short frame image meets the target brightness requirement, and determining the current short frame exposure parameters as the short frame target exposure parameters;

[0009] The reference histogram includes the first N pixels in brightness order in the short frame image, where N represents the first number.

[0010] In a second aspect, an embodiment of the present invention provides a wide dynamic exposure control device, the device comprising:

[0011] A first processing unit is used to count a first quantity when the long frame image meets the target brightness requirement, wherein the first quantity is the number of pixel points in the long frame image whose brightness is above an overflow threshold;

[0012] A second processing unit is used to set a short frame exposure parameter of the short frame image until a reference histogram in the short frame image meets a target brightness requirement, and determine the current short frame exposure parameter as a short frame target exposure parameter;

[0013] The reference histogram includes the first N pixels in brightness order in the short frame image, where N represents the first number.

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

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

[0016] Compared with the prior art, the wide dynamic exposure control method, device, storage medium and electronic device provided by the embodiments of the present invention include: when the long frame image meets the target brightness requirement, counting a first number, wherein the first number is the number of pixels in the long frame image whose brightness is above the overflow threshold; setting the short frame exposure parameters of the short frame image until the reference histogram in the short frame image meets the target brightness requirement, and determining the current short frame exposure parameters as the short frame target exposure parameters; wherein the reference histogram includes the first N pixels in the brightness order in the short frame image, and N represents the first number. In the wide dynamic exposure control method provided by the embodiments of the present invention, by setting the short frame exposure parameters, the brightness values ​​corresponding to the first N pixels in the brightness order (reference histogram) in the short frame image meet the same target brightness requirement as the long frame image, that is, the contents corresponding to the first N pixels in the short frame image can be clearly identified. When synthesizing long-frame images and short-frame images, the first N pixels in the short-frame image (and their surrounding areas) are used to merge with the long-frame image from which the first type of pixels have been removed. The brightness of the two is close to ensure that the exposure ratio is in an appropriate range, thereby reducing content loss in the HDR synthesized image, reducing digital noise, retaining more effective information, and improving image quality.

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

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

[0019] Figure 1 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0020] Figure 2 This is a flow chart of a wide dynamic exposure control method provided by an embodiment of the present invention.

[0021] Figure 3 The second flowchart of the wide dynamic exposure control method provided by the embodiment of the present invention.

[0022] Figure 4 A schematic diagram of units of a wide dynamic exposure control device provided by an embodiment of the present invention.

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

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

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

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

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

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

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

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

[0031] With the explosive development of the monitoring industry, the rapid development of technologies such as image processing and video monitoring has led to more and more scenes requiring high dynamic range. Due to the limited resources of the image acquisition device (image sensor, sensor) itself, the dynamic range of the output image cannot meet the user's needs, which requires the image signal processor (Image Signal Processing, referred to as ISP) to perform relevant processing to achieve high dynamic range. ISP can use High Dynamic Range Imaging (HDRI or HDR) technology for image processing. Based on the image acquisition device, long-frame images and short-frame images under different exposure parameters are collected, and the long-frame images and short-frame images are synthesized to obtain a synthesized image, thereby reducing the effects of overexposure and underexposure. Among them, the long-frame image is used as a reference image, including a highlight area and a normal area. By setting the exposure parameters corresponding to the short-frame image, the brightness of the first area in the short-frame image is moderate, and the brightness of the second area is too dark. Among them, the first area is the area corresponding to the highlight area of ​​the long-frame image, and the second area is the area outside the first area in the short-frame image.

[0032] Currently, due to the limited resources of the device itself, the exposure time of the short frame is very short, which means that the long frame can be exposed normally in a high dynamic range environment, but the adjustable exposure time of the short frame is very short, resulting in a large ratio of the long frame exposure time to the short frame exposure time (the smaller the exposure ratio, the more matched the long frame and the short frame), causing the composite part of the image content to be lost and having a lot of digital noise.

[0033] The formula for exposure ratio is: , where R is the exposure ratio, LT is the long frame exposure time, and ST is the short frame exposure time.

[0034] An embodiment of the present invention provides a wide dynamic exposure control method, which is applied to the electronic device described below. The short frame exposure time can be reasonably set to ensure that the exposure ratio is within a suitable range. When the short frame exposure time is insufficient, the equivalent exposure time of the short frame image can be increased by adjusting the signal gain, thereby compensating for the problem of short short frame exposure time and reducing the exposure ratio to reduce content loss of HDR composite images, reduce digital noise, retain more effective information, and improve image quality.

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

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

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

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

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

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

[0041] The image acquisition device in the embodiment of the present invention is provided with a first gain register, a first exposure time register, a second gain register and a second exposure time register. Among them, the first gain register and the first exposure time register are used to store the exposure parameters corresponding to the long frame image, including the long frame gain value and the long frame exposure time; the second gain register and the second exposure time register are used to store the exposure parameters corresponding to the short frame image, including the short frame gain value and the short frame exposure time. In the image acquisition device, the exposure parameters corresponding to the long frame image and the exposure parameters corresponding to the short frame image are controlled separately. It should be noted that the image acquisition device can also switch modes, including but not limited to switching to a single exposure mode, such as acquiring only a long frame image.

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

[0043] A wide dynamic exposure control method provided by an embodiment of the present invention can be applied to, but not limited to, Figure 1 For detailed procedures, please refer to the electronic equipment shown in Figure 2 , the wide dynamic exposure control method includes: S400 and S500, which are specifically described as follows.

[0044] S400: When the long frame image meets the target brightness requirement, count a first quantity.

[0045] The first number is the number of pixels (also referred to as first-category pixels) in the long-frame image whose brightness is above an overflow threshold (which may be but is not limited to 120).

[0046] When the difference between the brightness value of the pixel point exceeding the first threshold (which may be but is not limited to 50%) in the long frame image and the target brightness value is within a preset range or the difference between the brightness average value of the long frame image and the target brightness value is within a preset range, it can be considered that the long frame image meets the target brightness requirement.

[0047] It should be noted that the target brightness value can be set by the user or automatically determined by the device based on the current ambient light.

[0048] S500, setting short frame exposure parameters of the short frame image until a reference histogram in the short frame image meets a target brightness requirement, and determining the current short frame exposure parameters as short frame target exposure parameters.

[0049] The reference histogram includes the first N pixel points in brightness order in the short frame image, where N represents a first number.

[0050] It should be noted that, under the same environment, although the long-frame exposure parameters of the long-frame image are different from the short-frame exposure parameters of the short-frame image. However, the brightness ordering of the pixels in the long-frame image and the short-frame image should be the same or close. That is, the brightness ordering of the pixels in the i-th row and j-th column in the long-frame image should be the same or close to the brightness ordering of the pixels in the i-th row and j-th column in the short-frame image. The lost content of the long-frame image is the content corresponding to the first type of pixels (pixels in the long-frame image whose brightness is above the overflow threshold). The first type of pixels are ranked in the first N brightness in the long-frame image. In the wide dynamic exposure control method provided in an embodiment of the present invention, by setting the short-frame exposure parameters, the brightness values ​​corresponding to the first N pixels in the brightness order in the short-frame image (reference histogram) meet the same target brightness requirements as the long-frame image, that is, the content corresponding to the first N pixels in the short-frame image can be clearly identified. When synthesizing long-frame images and short-frame images, the first N pixels in the short-frame image (and their surrounding areas) are used to merge with the long-frame image from which the first type of pixels have been removed. The brightness of the two is close to ensure that the exposure ratio is in an appropriate range, thereby reducing content loss in the HDR synthesized image, reducing digital noise, retaining more effective information, and improving image quality.

[0051] When it is determined that the reference histogram in the short frame image meets the target brightness requirement, it means that the current short frame exposure parameter is suitable as the short frame target exposure parameter, and the values ​​in the second gain register and the second exposure time register are kept unchanged.

[0052] exist Figure 2 On the basis of how to perform long frame exposure setting so that the long frame image meets the target brightness requirement, the embodiment of the present invention also provides an optional implementation method, please refer to Figure 3 In S400, when the long frame image meets the target brightness requirement, before counting the first quantity, the wide dynamic exposure control method further includes: S100, S200 and S300, which are specifically described as follows.

[0053] S100, setting long frame exposure parameters of the long frame image.

[0054] It should be noted that when the target brightness requirement changes, for example, when the target brightness value is updated, S100 needs to be executed to make the long frame image meet the new target brightness requirement. After the long frame image meets the target brightness requirement and the target brightness requirement does not change (for example, the target brightness value does not change), the image acquisition device can also continue to obtain the brightness information of the long frame image to determine whether it meets the target brightness requirement. If it does not meet the target brightness requirement, S100 needs to be executed to make the long frame image meet the target brightness requirement.

[0055] Optionally, the long frame exposure parameters include a long frame exposure time and a long frame gain value. Regarding how to set the long frame exposure parameters, the embodiment of the present invention also provides an optional implementation method, please refer to the following, S100, the step of setting the long frame exposure parameters of the long frame image includes: S110, which is specifically described as follows.

[0056] S110, setting the long frame gain value to 0, and adjusting the long frame exposure time.

[0057] Optionally, the initial value of the long frame exposure time is also set to 0, and the long frame exposure time is increased according to the third preset step size. The third preset step size may be a fixed value, or the third preset step size is related to the difference between the average brightness value of the long frame image and the target brightness value. When the difference between the average brightness value of the long frame image and the target brightness value is less than the second threshold, the third preset step size is reduced by a preset amplitude based on the original value to avoid over-adjustment, and the second threshold is specifically set according to user requirements.

[0058] It should be noted that when the long frame exposure time has reached the maximum long frame exposure time, if the long frame image still does not meet the target brightness requirement, the long frame gain value can be adjusted.

[0059] S200, obtaining the brightness value of each pixel in the long-frame image after the exposure parameters are set.

[0060] S300, based on the brightness value of each pixel in the long frame image, determine whether the long frame image meets the target brightness requirement. If yes, execute S400; if not, repeat S100 to reset the long frame exposure parameters of the long frame image.

[0061] When the frame image meets the target brightness requirement, the current long frame exposure parameter is determined as the long frame target exposure parameter, and the values ​​in the first gain register and the first exposure time register are kept unchanged.

[0062] exist Figure 3Based on the content in S300, the embodiment of the present invention also provides an optional implementation, please refer to the following. S300, based on the brightness value of each pixel in the long frame image, determines whether the long frame image meets the target brightness requirement, including: S311, S312, S313 and S314, which are specifically described as follows.

[0063] S311, determining a brightness average value of the long frame image based on the brightness value of each pixel in the long frame image.

[0064] S312, determining whether the difference between the average brightness value of the long frame image and the target brightness value is within a preset range. If yes, executing S313; if no, executing S314.

[0065] The target brightness value is the brightness value corresponding to the target brightness requirement.

[0066] S313, the long frame image meets the target brightness requirement.

[0067] S314, the long frame image does not meet the target brightness requirement.

[0068] exist Figure 3 Based on the content in S300, the embodiment of the present invention also provides an optional implementation, please refer to the following. S300, based on the brightness value of each pixel in the long frame image, determines whether the long frame image meets the target brightness requirement, including: S321, S322, S323 and S324, which are specifically described as follows.

[0069] S321, filtering out the second type of pixel points in the long frame image based on the brightness value of each pixel point in the long frame image.

[0070] The second type of pixel points are pixel points whose brightness value in the long frame image differs from the target brightness value within a preset range.

[0071] S322, determine whether the proportion of the second type of pixels in the long frame image is greater than a first threshold. If yes, execute S323; if no, execute S324.

[0072] S323, the long frame image meets the target brightness requirement.

[0073] S324, the long frame image does not meet the target brightness requirement.

[0074] In an optional implementation, the short frame exposure parameters include a short frame gain value and a short frame exposure time. Figure 2The content of S500 in the embodiment of the present invention also provides an optional implementation, please refer to the following. S500, the step of setting the short frame exposure parameters of the short frame image until the reference histogram in the short frame image meets the target brightness requirement and determining the current short frame exposure parameters as the short frame target exposure parameters includes: S510, S511, S512, S513, S514 and S515, which are specifically described as follows.

[0075] S510, setting the short frame gain value to 0, setting the short frame exposure time to the longest short frame exposure time, and acquiring a reference histogram in the short frame image.

[0076] S511, determine whether the reference histogram meets the target brightness requirement. If the reference histogram meets the target brightness requirement, execute S512, if the reference histogram does not meet the target brightness requirement, execute S513.

[0077] S512: Determine the current short frame exposure parameter as the short frame target exposure parameter.

[0078] S513, determine whether the average brightness value of the reference histogram is greater than the target brightness value. If the average brightness value of the reference histogram is greater than the target brightness value, execute S514; if the average brightness value of the reference histogram is less than the target brightness value, execute S515.

[0079] S514, gradually reducing the short frame exposure time according to the first preset step length until the reference histogram meets the target brightness requirement, and determining the current short frame exposure parameter as the short frame target exposure parameter.

[0080] After each reduction of the short frame exposure time, it is repeatedly determined whether the brightness average value of the reference histogram is greater than the target brightness value until the reference histogram meets the target brightness requirement, and the current short frame exposure parameter is determined as the short frame target exposure parameter.

[0081] The first preset step size may be a fixed value, or the first preset step size is related to the difference between the brightness average value of the reference histogram and the target brightness value. When the difference between the brightness average value of the reference histogram and the target brightness value is less than the second threshold, the first preset step size is reduced by a preset amplitude based on the original value to avoid over-adjustment, and the second threshold is specifically set according to user requirements.

[0082] S515, gradually increasing the short frame gain value according to the second preset step length until the reference histogram meets the target brightness requirement, and determining the current short frame exposure parameter as the short frame target exposure parameter.

[0083] After each increase in the short frame gain value, it is repeatedly determined whether the brightness average value of the reference histogram is greater than the target brightness value until the reference histogram meets the target brightness requirement, and the current short frame exposure parameter is determined as the short frame target exposure parameter.

[0084] The second preset step size may be a fixed value, or the second preset step size is related to the difference between the brightness average value of the reference histogram and the target brightness value. When the difference between the brightness average value of the reference histogram and the target brightness value is less than the second threshold, the second preset step size is reduced by a preset amplitude based on the original value to avoid over-adjustment. The second threshold is specifically set according to user requirements.

[0085] In an optional implementation, the short frame exposure parameters include a short frame gain value and a short frame exposure time. Figure 2 The content of S500 in the embodiment of the present invention also provides an optional implementation, please refer to the following. S500, the step of setting the short frame exposure parameters of the short frame image until the reference histogram in the short frame image meets the target brightness requirement, and determining the current short frame exposure parameters as the short frame target exposure parameters includes: S520, S521, S522, S523, S524 and S525, which are specifically described as follows.

[0086] S520: Set the short frame gain value to 0.

[0087] S521, increasing the short frame exposure time according to a first preset step length to obtain a reference histogram in the short frame image.

[0088] S522, determine whether the reference histogram meets the target brightness requirement; if the reference histogram meets the target brightness requirement, execute S523; if the reference histogram does not meet the target brightness requirement, execute S524.

[0089] S523: Determine the current short frame exposure parameter as the short frame target exposure parameter.

[0090] S524, determine whether the short frame exposure time is less than the longest short frame exposure time. If less than, repeat S521 to increase the short frame exposure time according to the first preset step length to obtain a reference histogram in the short frame image. If equal, execute S525.

[0091] S525, gradually increase the short frame gain value according to the second preset step length until the reference histogram meets the target brightness requirement, and determine the current short frame exposure parameter as the short frame target exposure parameter.

[0092] Similarly, after each increase in the short frame gain value, it is repeatedly determined whether the brightness average value of the reference histogram is greater than the target brightness value until the reference histogram meets the target brightness requirement, and the current short frame exposure parameter is determined as the short frame target exposure parameter.

[0093] On the basis of the foregoing, regarding how to determine whether the reference histogram meets the target brightness requirement, the embodiment of the present invention also provides an optional implementation method, please refer to the following. The step of determining whether the reference histogram meets the target brightness requirement includes: obtaining the average brightness value of the reference histogram; determining whether the difference between the brightness average value of the reference histogram and the target brightness value is within a preset range; if so, the reference histogram meets the target brightness requirement; if not, the reference histogram does not meet the target brightness requirement.

[0094] A wide dynamic exposure control method provided by an embodiment of the present invention can increase the equivalent exposure time of a short frame image by adjusting the signal gain when the short frame exposure time is insufficient, thereby compensating for the problem of short frame exposure time, reducing the exposure ratio, reducing content loss of HDR composite images, reducing digital noise, retaining more effective information, and improving image quality.

[0095] According to the numerical relationship between the collected brightness value (denoted as L) and the exposure time (denoted as T), the curve characteristics of the two satisfying the following formula are obtained, that is, the two satisfy the formula: The relationship between the brightness value L and the gain value G satisfies a linear relationship, that is, the two satisfy the formula: L = aG + b, where a and b are constants.

[0096] It can be deduced that: .

[0097] Set the short frame gain value Substituting into the above formula, the current short frame gain value can be calculated The corresponding equivalent exposure time (denoted as ), the formula for equivalent exposure time is:

[0098] .

[0099] The total exposure time of the short frame can be obtained as + , Indicates the current short frame exposure time. The equivalent exposure time is obtained by using the short frame gain value. , which in turn increases the short frame exposure time.

[0100] It should be noted that the image acquisition device (which may be the image signal processor therein) can synthesize the long-frame image and the short-frame image, and the synthesis method will not be described in detail here.

[0101] See also Figure 4 , Figure 4 An embodiment of the present invention provides a wide dynamic exposure control device. Optionally, the wide dynamic exposure control device is applied to the electronic device described above.

[0102] The wide dynamic exposure control device includes: a first processing unit 1001 and a second processing unit 1002 .

[0103] The first processing unit 1001 is used to count a first quantity when the long frame image meets the target brightness requirement, wherein the first quantity is the number of pixel points in the long frame image whose brightness is above the overflow threshold;

[0104] The second processing unit 1002 is used to set the short frame exposure parameters of the short frame image until the reference histogram in the short frame image meets the target brightness requirement, and determine the current short frame exposure parameters as the short frame target exposure parameters;

[0105] The reference histogram includes the first N pixel points in brightness order in the short frame image, where N represents a first number.

[0106] Optionally, the first processing unit 1001 may execute the above-mentioned S100, S200, S300, S400, and the second processing unit 1002 may execute the above-mentioned S500.

[0107] It should be noted that the wide dynamic exposure control device provided in this embodiment can execute the method flow shown in the above method flow embodiment to achieve the corresponding technical effect. For the sake of brief description, for parts not mentioned in this embodiment, please refer to the corresponding content in the above embodiment.

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

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

[0110] In summary, the embodiments of the present invention provide a wide dynamic exposure control method, device, storage medium and electronic device, including: when a long frame image meets the target brightness requirement, counting a first number, wherein the first number is the number of pixels in the long frame image whose brightness is above the overflow threshold; setting the short frame exposure parameters of the short frame image until the reference histogram in the short frame image meets the target brightness requirement, and determining the current short frame exposure parameters as the short frame target exposure parameters; wherein the reference histogram includes the first N pixels in the brightness order in the short frame image, and N represents the first number. In the wide dynamic exposure control method provided by the embodiments of the present invention, by setting the short frame exposure parameters, the brightness values ​​corresponding to the first N pixels in the brightness order (reference histogram) in the short frame image meet the same target brightness requirement as the long frame image, that is, the content corresponding to the first N pixels in the short frame image can be clearly identified. When synthesizing long-frame images and short-frame images, the first N pixels in the short-frame image (and their surrounding areas) are used to merge with the long-frame image from which the first type of pixels have been removed. The brightness of the two is close to ensure that the exposure ratio is in an appropriate range, thereby reducing content loss in the HDR synthesized image, reducing digital noise, retaining more effective information, and improving image quality.

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

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

Claims

1. A wide dynamic exposure control method, It is characterized in that The method comprises: When the long frame image meets the target brightness requirement, counting a first quantity, wherein the first quantity is the number of pixel points in the long frame image whose brightness is above an overflow threshold; Setting the short frame exposure parameters of the short frame image until the reference histogram in the short frame image meets the target brightness requirement, and determining the current short frame exposure parameters as the short frame target exposure parameters; The reference histogram includes the first N pixels in brightness order in the short frame image, where N represents the first number.

2. The wide dynamic exposure control method according to claim 1, It is characterized in that The method comprises: Set the long frame exposure parameters of the long frame image; Obtaining the brightness value of each pixel in the long frame image after the exposure parameters are set; Determining whether the long frame image meets a target brightness requirement based on a brightness value of each pixel in the long frame image; If satisfied, count the first quantity; If not satisfied, the long frame exposure parameters of the long frame image are repeatedly set.

3. The wide dynamic exposure control method according to claim 2, It is characterized in that The step of determining whether the long frame image meets the target brightness requirement based on the brightness value of each pixel in the long frame image comprises: Determining a brightness average value of the long frame image based on the brightness value of each pixel in the long frame image; Determine whether the difference between the average brightness value of the long frame image and the target brightness value is within a preset range; If yes, the long frame image meets the target brightness requirement; If not, the long frame image does not meet the target brightness requirement.

4. The wide dynamic exposure control method according to claim 2, It is characterized in that The step of determining whether the long frame image meets the target brightness requirement based on the brightness value of each pixel in the long frame image comprises: Filtering out second-category pixels in the long-frame image based on the brightness value of each pixel in the long-frame image, wherein the second-category pixels are pixels in the long-frame image whose brightness value differs from a target brightness value within a preset range; Determine whether the proportion of the second type of pixels in the long frame image is greater than a first threshold; If yes, the long frame image meets the target brightness requirement; If not, the long frame image does not meet the target brightness requirement.

5. The wide dynamic exposure control method according to claim 1, It is characterized in that The short frame exposure parameters include a short frame gain value and a short frame exposure time. The short frame exposure parameters of the short frame image are set until a reference histogram in the short frame image meets a target brightness requirement, and the step of determining the current short frame exposure parameters as the short frame target exposure parameters includes: The short frame gain value is set to 0, the short frame exposure time is set to the longest short frame exposure time, and a reference histogram in the short frame image is obtained; Determining whether the reference histogram meets the target brightness requirement; If the reference histogram meets the target brightness requirement, the current short frame exposure parameter is determined as the short frame target exposure parameter; If the reference histogram does not meet the target brightness requirement, determining whether the brightness average value of the reference histogram is greater than the target brightness value; If the brightness average value of the reference histogram is greater than the target brightness value, the short frame exposure time is gradually reduced according to a first preset step length until the reference histogram meets the target brightness requirement, and the current short frame exposure parameter is determined as the short frame target exposure parameter; If the brightness average value of the reference histogram is less than the target brightness value, the short frame gain value is gradually increased according to the second preset step size until the reference histogram meets the target brightness requirement, and the current short frame exposure parameter is determined as the short frame target exposure parameter.

6. The wide dynamic exposure control method according to claim 1, It is characterized in that The short frame exposure parameters include a short frame gain value and a short frame exposure time. The short frame exposure parameters of the short frame image are set until a reference histogram in the short frame image meets a target brightness requirement, and the step of determining the current short frame exposure parameters as the short frame target exposure parameters includes: Increasing the short frame exposure time according to a first preset step length to obtain a reference histogram in the short frame image; Determining whether the reference histogram meets the target brightness requirement; If the reference histogram meets the target brightness requirement, the current short frame exposure parameter is determined as the short frame target exposure parameter; If the reference histogram does not meet the target brightness requirement, determining whether the short frame exposure time is less than the longest short frame exposure time; If it is less than, repeatedly increasing the short frame exposure time according to the first preset step length to obtain a reference histogram in the short frame image; If they are equal, the short frame gain value is gradually increased according to a second preset step size until the reference histogram meets the target brightness requirement, and the current short frame exposure parameter is determined as the short frame target exposure parameter.

7. The wide dynamic exposure control method according to claim 5 or 6, It is characterized in that The step of determining whether the reference histogram meets the target brightness requirement comprises: Obtaining an average brightness value of the reference histogram; Determine whether the difference between the brightness average value of the reference histogram and the target brightness value is within a preset range; If yes, the reference histogram meets the target brightness requirement; If not, the reference histogram does not meet the target brightness requirement.

8. A wide dynamic exposure control device, It is characterized in that The device comprises: A first processing unit is used to count a first quantity when the long frame image meets the target brightness requirement, wherein the first quantity is the number of pixel points in the long frame image whose brightness is above an overflow threshold; A second processing unit is used to set a short frame exposure parameter of the short frame image until a reference histogram in the short frame image meets the target brightness requirement, and determine the current short frame exposure parameter as the short frame target exposure parameter; The reference histogram includes the first N pixels in brightness order in the short frame image, where N represents the first number.

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

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

Citation Information

Patent Citations

  • Imaging apparatus and imaging mode control method

    CN101674417A

  • Exposure ratio automatic adjustment method and device

    CN110830727A

  • Camera wide dynamic imaging exposure adjusting method and device

    CN111654638A

  • Exposure control method and device, electronic equipment and readable storage medium

    CN112653845A

  • High dynamic range image generation method and device

    CN113132644A