A wide dynamic range adjustment method, device, electronic device and storage medium

By acquiring and analyzing raw information and YUV information of the shooting device, dynamically adjusting the exposure parameters and brightening intensity, the problem of brightness adjustment in bright areas and dark areas in wide dynamic scenes is solved, and the image quality is improved, which is suitable for various scenes.

CN118660229BActive Publication Date: 2024-11-29ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411139900.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-29
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

The prior art is difficult to adjust the brightness of bright areas and dark areas simultaneously in wide dynamic scenarios, resulting in a decline in image quality, especially in extreme high dynamic range scenarios, which cannot be processed by small-area high-light overexposure, and brighten intensity under low dynamic range. Inadequate results in darkness of the picture.

Method used

By obtaining raw information and YUV information of the shooting device, high brightness, average brightness and low brightness are extracted, exposure parameters and brightness intensity are dynamically adjusted, and the multi-feedback mechanism is used to ensure that the brightness is within the threshold range and is suitable for various scenes.

Benefits of technology

The image quality in wide dynamic scenes is improved, the accuracy of exposure parameters and brightening intensity is ensured, and the problem of overexposure and darkness is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118660229B_ABST
    Figure CN118660229B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and in particular to a wide dynamic range adjustment method, device, electronic device and storage medium, which are used to improve the quality of images captured in wide dynamic range scenes. The method includes: obtaining raw information and YUV information of a current image of a shooting device; adjusting the exposure parameters of the shooting device based on the first highlight, first average brightness and first low brightness of the current image extracted from the raw information; and adjusting the brightening intensity parameters of the shooting device based on the second highlight, second average brightness and second low brightness of the current image extracted from the YUV information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Wide dynamic range technology refers to a technology that allows the entire image captured by the camera to be clear in complex lighting environments. When high-brightness areas under strong light sources and relatively low-brightness areas such as shadows and backlights exist in the image at the same time, the image captured by ordinary cameras will appear to have bright areas that are overexposed and dark areas that are black due to underexposure. Effective information cannot be obtained, which seriously affects the image quality. The camera has limitations in its performance of the brightest area and the darkest area in the same scene. This limitation is the dynamic range of the camera. In order to obtain images with appropriate brightness in both bright and dark areas in wide dynamic range scenes, wide dynamic range adjustment is required.

[0003] In the prior art, when performing wide dynamic adjustment, exposure adjustment is usually performed based on a weighted histogram exposure method, and a fixed brightening intensity is used to perform dynamic range compression.

[0004] However, in extreme high dynamic range scenes, overexposure of highlights in small areas cannot be handled by the weighted histogram exposure method; and with a fixed brightening intensity, in low dynamic range scenes, the picture will become hazy due to excessive brightening of dark areas, and in ultra-high dynamic range scenes, the picture will be dark due to insufficient brightening intensity. Summary of the invention

[0005] The embodiments of the present application provide a wide dynamic range adjustment method, device, electronic device and storage medium to improve the quality of images captured in wide dynamic range scenes.

[0006] The specific technical solutions provided by the embodiments of this application are as follows:

[0007] In a first aspect, a wide dynamic range adjustment method is provided, the method comprising:

[0008] Get the raw information and YUV information of the current image of the camera;

[0009] Adjusting exposure parameters of the photographing device based on a first highlight, a first average brightness, and a first low brightness of the current image extracted from the raw information;

[0010] Based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, the brightening intensity parameter of the shooting device is adjusted.

[0011] In a possible embodiment, adjusting the exposure parameters of the shooting device based on the first highlight, the first average brightness, and the first low brightness of the current image extracted from the raw information includes:

[0012] When the first average brightness is not within the preset first average brightness threshold interval, adjusting the exposure parameters of the photographing device so that the first average brightness is within the first average brightness threshold interval;

[0013] When the first average brightness is within a first average brightness threshold interval, an exposure parameter of the photographing device is adjusted based on the first high brightness and the first low brightness.

[0014] By using the above method, when the first average brightness is used as a limiter, the first high brightness and the first low brightness are used as exposure basis, and even a small area of ​​overexposure can be adjusted to not be overexposed. This method is suitable for various scenes and improves image quality.

[0015] In a possible embodiment, adjusting the exposure parameter of the shooting device based on the first high brightness and the first low brightness includes:

[0016] When the first highlight is not within the preset first highlight threshold interval, adjusting the exposure parameters of the photographing device so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval;

[0017] When the first highlight is within the first highlight threshold interval, adjust the exposure parameters of the shooting device so that the first low brightness is within the preset first low brightness threshold interval, the first highlight is within the first highlight threshold interval, and the first average brightness is within the first average brightness threshold interval.

[0018] Through the above method, since the adjustment of the exposure parameters is a global adjustment, it is necessary to ensure that after the exposure parameters are adjusted, the brightness that previously meets the threshold range is still within the threshold range to ensure the accuracy of the exposure parameter adjustment, thereby improving the image quality.

[0019] In a possible embodiment, adjusting a brightening intensity parameter of a shooting device based on a second highlight, a second average brightness, and a second low brightness of a current image extracted from YUV information includes:

[0020] When the second average brightness is not within the preset second average brightness threshold interval, adjusting the brightening intensity parameter of the photographing device so that the second average brightness is within the second average brightness threshold interval;

[0021] When the second average brightness is within the second average brightness threshold interval, the brightening intensity parameter of the photographing device is adjusted based on the second high brightness and the second low brightness.

[0022] By using the above method, when the second average brightness is used as a limiter, the second high brightness and the second low brightness are used as a basis for brightening intensity, thereby achieving brightening intensity in a small area and improving image quality.

[0023] In a possible embodiment, adjusting a brightening intensity parameter of a photographing device based on the second high brightness and the second low brightness includes:

[0024] When the second highlight is not within the preset second highlight threshold range, adjusting the brightening intensity parameter of the photographing device so that the second highlight is within the second highlight threshold range;

[0025] When the second highlight is within the second highlight threshold interval, the brightening intensity parameter of the photographing device is adjusted so that the second low light is within the preset second low light threshold interval.

[0026] Through the above method, the high, medium and low brightness of the YUV information is used to feedback and adjust the brightening intensity parameter to ensure the accuracy of the brightening intensity parameter adjustment, thereby improving the image quality.

[0027] In a possible embodiment, after adjusting the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, the method further includes:

[0028] Based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram, the contrast coefficient of the shooting device is adjusted.

[0029] Through the above method, the contrast attribute of the YUV information is used to feedback and adjust the contrast, thereby further improving the image quality.

[0030] In a possible embodiment, adjusting the contrast coefficient of the shooting device based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram includes:

[0031] Calculate a first difference between the number of pixels in the actual brightness histogram whose brightness is less than or equal to a third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is less than or equal to the third brightness threshold, wherein the third brightness threshold is a middle value of the second average brightness threshold interval;

[0032] Calculating a second difference between the number of pixels in the actual brightness histogram whose brightness is greater than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is greater than or equal to the third brightness threshold;

[0033] Based on the first difference and the second difference, a contrast factor of the photographing device is adjusted.

[0034] In a possible embodiment, adjusting the contrast coefficient of the shooting device based on the first difference and the second difference includes:

[0035] When the first difference is a negative number and the second difference is a negative number, increasing the contrast coefficient of the photographing device;

[0036] When the first difference is a positive number and the second difference is a positive number, the contrast coefficient of the photographing device is reduced.

[0037] In a second aspect, the present application provides a wide dynamic range adjustment device, the device comprising:

[0038] The acquisition module is used to obtain the raw information and YUV information of the current image of the shooting device;

[0039] A first adjustment module, used to adjust the exposure parameters of the shooting device based on the first highlight, the first average brightness and the first low brightness of the current image extracted from the raw information;

[0040] The second adjustment module is used to adjust the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness and the second low brightness of the current image extracted from the YUV information.

[0041] In a possible embodiment, when adjusting the exposure parameters of the shooting device based on the first highlight, the first average brightness, and the first low brightness of the current image extracted from the raw information, the first adjustment module is further used to:

[0042] When the first average brightness is not within the preset first average brightness threshold interval, adjusting the exposure parameters of the photographing device so that the first average brightness is within the first average brightness threshold interval;

[0043] When the first average brightness is within a first average brightness threshold interval, an exposure parameter of the photographing device is adjusted based on the first high brightness and the first low brightness.

[0044] In a possible embodiment, when adjusting the exposure parameter of the photographing device based on the first high brightness and the first low brightness, the first adjustment module is further used to:

[0045] When the first highlight is not within the preset first highlight threshold interval, adjusting the exposure parameters of the photographing device so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval;

[0046] When the first highlight is within the first highlight threshold interval, adjust the exposure parameters of the shooting device so that the first low brightness is within the preset first low brightness threshold interval, the first highlight is within the first highlight threshold interval, and the first average brightness is within the first average brightness threshold interval.

[0047] In a possible embodiment, when adjusting the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, the second adjustment module is further used to:

[0048] When the second average brightness is not within the preset second average brightness threshold interval, adjusting the brightening intensity parameter of the photographing device so that the second average brightness is within the second average brightness threshold interval;

[0049] When the second average brightness is within the second average brightness threshold interval, the brightening intensity parameter of the photographing device is adjusted based on the second high brightness and the second low brightness.

[0050] In a possible embodiment, when adjusting the brightening intensity parameter of the photographing device based on the second high light and the second low light, the second adjustment module is further used to:

[0051] When the second highlight is not within the preset second highlight threshold range, adjusting the brightening intensity parameter of the photographing device so that the second highlight is within the second highlight threshold range;

[0052] When the second highlight is within the second highlight threshold interval, the brightening intensity parameter of the photographing device is adjusted so that the second low light is within the preset second low light threshold interval.

[0053] In a possible embodiment, after adjusting the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, the apparatus further includes a third adjustment module, and the third adjustment module is used to:

[0054] Based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram, the contrast coefficient of the shooting device is adjusted.

[0055] In a possible embodiment, when adjusting the contrast coefficient of the shooting device based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram, the third adjustment module is further used to:

[0056] Calculate a first difference between the number of pixels in the actual brightness histogram whose brightness is less than or equal to a third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is less than or equal to the third brightness threshold, wherein the third brightness threshold is a middle value of the second average brightness threshold interval;

[0057] Calculating a second difference between the number of pixels in the actual brightness histogram whose brightness is greater than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is greater than or equal to the third brightness threshold;

[0058] Based on the first difference and the second difference, a contrast factor of the photographing device is adjusted.

[0059] In a possible embodiment, when adjusting the contrast coefficient of the photographing device based on the first difference and the second difference, the third adjustment module is further used to:

[0060] When the first difference is a negative number and the second difference is a negative number, increasing the contrast coefficient of the photographing device;

[0061] When the first difference is a positive number and the second difference is a positive number, the contrast coefficient of the photographing device is reduced.

[0062] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods described in the first aspect are implemented.

[0063] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.

[0064] In a fifth aspect, the present application provides a computer program product, comprising: a computer program code, when the computer program code is run on a computer, the computer executes any one of the methods described in the first aspect.

[0065] In the embodiment of the present application, the raw information and YUV information of the current image of the shooting device are obtained, and then the exposure parameters of the shooting device are adjusted based on the first highlight, the first average brightness and the first low brightness of the current image extracted from the raw information, and then the brightening intensity parameters of the shooting device are adjusted based on the second highlight, the second average brightness and the second low brightness of the current image extracted from the YUV information. In this way, by using the first highlight, the first average brightness and the first low brightness, as well as the second highlight, the second average brightness and the second low brightness, multiple feedbacks are used to adjust the exposure parameters and the brightening intensity parameters, and at the same time, the dynamic range and the picture brightness in the wide dynamic scene are improved, the quality of the image captured in the wide dynamic scene is improved, and various shooting scenes are adapted. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 A schematic diagram of possible application scenarios in the embodiments of the present application;

[0067] Figure 2 This is a flowchart of an implementation of a wide dynamic range adjustment method provided in an embodiment of the present application;

[0068] Figure 3 This is a schematic diagram of a process for adjusting exposure parameters in an embodiment of the present application;

[0069] Figure 4A schematic diagram of a process for adjusting a brightening intensity parameter in an embodiment of the present application;

[0070] Figure 5 A schematic diagram of a process for adjusting the contrast coefficient in an embodiment of the present application;

[0071] Figure 6 A schematic diagram of the structure of a wide dynamic range adjustment device provided in an embodiment of the present application;

[0072] Figure 7 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0074] Some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.

[0075] (1) YUV: YUV is a color coding method and is the color space used by the Phase Alternating Line (PAL) and Sequential Colour and Memory (SECAM) analog colour television systems. In modern colour television systems, a three-tube colour camera or a colour CCD camera is usually used to capture images. The colour image signals are then separated, amplified and corrected to obtain RGB. The luminance signal Y and two colour difference signals RY (i.e. U) and BY (i.e. V) are then obtained through a matrix conversion circuit. Finally, the transmitter encodes the three signals of luminance and colour difference separately and sends them out through the same channel. This method of colour representation is the YUV colour space representation, that is, its luminance signal Y and chrominance signal U and concentration signal V are separated, thus solving the compatibility problem between colour televisions and black and white televisions, allowing black and white televisions to receive colour television signals.

[0076] (2) Raw: It is the original data that the CMOS or CCD image sensor converts the captured light source signal into a digital signal.

[0077] The following is a brief introduction to the design concept of the embodiment of the present application:

[0078] Wide dynamic technology refers to a technology that allows the entire image captured by the camera to be clear in complex lighting environments. When high-brightness areas under strong light sources (such as sunlight, lamps or reflections) and relatively low-brightness areas such as shadows and backlights exist in the image at the same time, the image captured by ordinary cameras will appear to have bright areas that become white due to overexposure, and dark areas that become black due to underexposure. Effective information cannot be obtained, which seriously affects the image quality. The camera has limitations in its performance of the brightest area and the darkest area in the same scene. This limitation is the dynamic range of the camera. In order to obtain images with appropriate brightness in both bright and dark areas in wide dynamic scenes, wide dynamic adjustment is required.

[0079] In the prior art, when performing wide dynamic adjustment, exposure adjustment is usually performed based on a weighted histogram exposure method, and a fixed brightening intensity is used to perform dynamic range compression.

[0080] However, in extreme high dynamic range scenes, overexposure of highlights in small areas cannot be handled by the weighted histogram exposure method; and with a fixed brightening intensity, in low dynamic range scenes, the picture will become hazy due to excessive brightening of dark areas, and in ultra-high dynamic range scenes, the picture will be dark due to insufficient brightening intensity.

[0081] In view of this, in an embodiment of the present application, a wide dynamic adjustment method, device, electronic device and storage medium are provided to obtain the raw information and YUV information of the current image of the shooting device, and then adjust the exposure parameters of the shooting device based on the first highlight, the first average brightness and the first low brightness of the current image extracted from the raw information, and then adjust the brightening intensity parameters of the shooting device based on the second highlight, the second average brightness and the second low brightness of the current image extracted from the YUV information. In this way, by using the first highlight, the first average brightness and the first low brightness, as well as the second highlight, the second average brightness and the second low brightness, multiple feedbacks are used to adjust the exposure parameters and the brightening intensity parameters, and at the same time, the dynamic range and the picture brightness in the wide dynamic scene are improved, the quality of the image captured in the wide dynamic scene is improved, and it is suitable for various shooting scenes.

[0082] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments of the present application and the features in the embodiments may be combined with each other if there is no conflict.

[0083] See also Figure 1 , which is a schematic diagram of possible application scenarios in the embodiment of the present application. The application scenario diagram includes a server 110 and a shooting device 120.

[0084] The server 110 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal device 120 and the server 110 may be directly or indirectly connected via wired or wireless communications, which is not limited in this application.

[0085] It should be noted that Figure 1 The figure is only an example. In fact, the number of shooting devices 120 and servers 110 is not limited and is not specifically limited in the embodiments of the present application.

[0086] The following describes the wide dynamic adjustment method provided by the exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this regard.

[0087] See also Figure 2 FIG. 1 is a flowchart of an implementation of a wide dynamic range adjustment method provided in an embodiment of the present application. The specific implementation process of the method is as follows:

[0088] Step 20: Get the raw information and YUV information of the current image of the shooting device.

[0089] In an embodiment of the present application, raw information and YUV information of a current image captured by a capturing device are obtained.

[0090] Step 21: Based on the first highlight, the first average brightness, and the first low brightness of the current image extracted from the raw information, adjust the exposure parameters of the shooting device.

[0091] In an embodiment of the present application, the first highlight, the first average brightness, and the first low brightness of the raw information of the current image are extracted, and then the exposure parameters of the shooting device are adjusted based on the first highlight, the first average brightness, and the first low brightness, so that the shooting device uses the adjusted exposure parameters to shoot the next image.

[0092] Optionally, in an embodiment of the present application, the brightness values ​​of each pixel contained in the raw information can be sorted to determine the first highlight and the first low brightness, and the brightness values ​​of each pixel can be averaged to determine the first average brightness.

[0093] In the embodiment of the present application, when adjusting the exposure parameters of the shooting device based on the first highlight, the first average brightness, and the first low brightness, the following operations are specifically performed:

[0094] Step 210: Determine whether the first average brightness is not within a preset first average brightness threshold interval, if so, execute step 211, otherwise, execute step 212.

[0095] Among them, the first average brightness threshold interval is related to the dynamic range compression algorithm and hardware performance. When the dynamic range compression algorithm and hardware performance are related to provide a greater YUV brightening capability, the starting value of the first average brightness threshold interval can be set smaller, and the ending value of the first average brightness threshold interval can be determined by debugging and matching.

[0096] Step 211: adjusting the exposure parameters of the photographing device so that the first average brightness is within a first average brightness threshold interval.

[0097] In an embodiment of the present application, if the first average brightness is not within the preset first average brightness threshold interval, the exposure parameters of the shooting device are adjusted so that the first average brightness is within the first average brightness threshold interval, that is, the first average brightness is adjusted to within the first average brightness threshold interval by adjusting the exposure parameters.

[0098] For example, if the first average brightness yAvgRaw is not within the first average brightness threshold interval [avgRawLLim, avgRawHLim], the first highlight yHigRaw is not considered, and the exposure parameters of the shooting device are adjusted so that the first average brightness yAvgRaw is within the first average brightness threshold interval [avgRawLLim, avgRawHLim].

[0099] Optionally, in an embodiment of the present application, after adjusting the exposure parameters of the shooting device so that the first average brightness is within the first average brightness threshold interval, it can also be determined whether to further adjust the exposure parameters based on the adjusted first average brightness.

[0100] In an embodiment of the present application, if the distance between the adjusted first average brightness and the boundary value (starting value or ending value) of the first average brightness threshold interval meets the preset first average distance condition, the exposure parameter adjustment process is terminated; if the distance between the adjusted first average brightness and the boundary value of the first average brightness threshold interval does not meet the preset first average distance condition, the exposure parameters of the shooting device are further adjusted based on the first highlight and the first low brightness.

[0101] The fact that the distance between the adjusted first average brightness and the boundary value of the first average brightness threshold interval satisfies a preset first average distance condition indicates that the adjusted first average brightness is close to the boundary value of the first average brightness threshold interval.

[0102] Step 212: Based on the first high light and the first low light, adjust the exposure parameters of the shooting device.

[0103] In the embodiment of the present application, if the first average brightness is within the first average brightness threshold interval, the exposure parameters of the shooting device are adjusted based on the first high brightness and the first low brightness.

[0104] Specifically, in the embodiment of the present application, when adjusting the exposure parameters of the shooting device based on the first high brightness and the first low brightness, the following operations are specifically performed:

[0105] Step 2120: Determine whether the first highlight is not within the preset first highlight threshold interval, if so, execute step 2121, otherwise, execute step 2122.

[0106] Step 2121: Adjust the exposure parameters of the photographing device so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval.

[0107] In an embodiment of the present application, if the first average brightness is within the first average brightness threshold interval and the first highlight is not within the preset first highlight threshold interval, the exposure parameters of the shooting device are adjusted so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval.

[0108] For example, if the first average brightness yAvgRaw is within the first average brightness threshold interval [avgRawLLim, avgRawHLim], and the first highlight yHigRaw is not within the preset first highlight threshold interval [higRawLLim, higRawHLim], the exposure parameters of the shooting device are adjusted to make the first highlight yHigRaw within the preset first highlight threshold interval [higRawLLim, higRawHLim], and after ensuring that the exposure parameters are adjusted, the first average brightness yAvgRaw is still within the first average brightness threshold interval [avgRawLLim, avgRawHLim].

[0109] In this way, when the first average brightness is used as a limiter and the first highlight is used as the basis for exposure, even a small area of ​​overexposure can be adjusted to not be overexposed. When the average brightness is within a certain range, only the brightness of the highlight part can be considered. Even if the area of ​​the highlight area only occupies one thousandth of the entire picture, as long as the average brightness is still within the preset range, highlight suppression will be performed (suppressing or controlling the brightness of the bright area in the image to prevent overexposure. By reducing the brightness of the highlight part, more details and dynamic range can be retained). It is suitable for various scenes and improves image quality.

[0110] Optionally, in an embodiment of the present application, after adjusting the exposure parameters of the shooting device so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval, it can also be determined whether to further adjust the exposure parameters based on the adjusted first highlight.

[0111] In an embodiment of the present application, if the distance between the adjusted first highlight and the boundary value of the first highlight threshold interval meets the preset first highlight distance condition, the exposure parameter adjustment process is terminated; if the distance between the adjusted first highlight and the boundary value of the first highlight threshold interval does not meet the preset first highlight distance condition, the exposure parameters of the shooting device are further adjusted based on the first low light.

[0112] The fact that the distance between the adjusted first highlight and the boundary value of the first highlight threshold interval satisfies a preset first highlight distance condition indicates that the adjusted first highlight is close to the boundary value of the first highlight threshold interval.

[0113] Step 2122: Adjust the exposure parameters of the shooting device so that the first low brightness is within a preset first low brightness threshold interval, the first high brightness is within a first high brightness threshold interval, and the first average brightness is within a first average brightness threshold interval.

[0114] In the embodiment of the present application, if the first average brightness is within the first average brightness threshold interval, and the first highlight is within the first highlight threshold interval, and the first low brightness is not within the preset first low brightness threshold interval, then the exposure parameters of the shooting device are adjusted so that the first low brightness is within the preset first low brightness threshold interval, and the first highlight is within the first highlight threshold interval, and the first average brightness is within the first average brightness threshold interval. If the first average brightness is within the first average brightness threshold interval, and the first highlight is within the first highlight threshold interval, and the first low brightness is within the preset first low brightness threshold interval, then the exposure parameters are not adjusted.

[0115] For example, if the first average brightness yAvgRaw is within the first average brightness threshold interval [avgRawLLim, avgRawHLim], the first highlight yHigRaw is within the preset first highlight threshold interval [higRawLLim, higRawHLim], and the first low brightness yLowRaw is not within the preset first low brightness threshold interval [lowRawLLim, lowRawHLim], then the exposure parameters of the shooting device are adjusted to make the first low brightness yLowRaw within the preset first low brightness threshold interval [lowRawLLim, lowRawHLim], and after ensuring that the exposure parameters are adjusted, the first highlight yHigRaw is still within the first highlight threshold interval [higRawLLim, higRawHLim], and the first average brightness yAvgRaw is still within the first average brightness threshold interval [avgRawLLim, avgRawHLim].

[0116] In this way, since the adjustment of the exposure parameters is a global adjustment, it is necessary to ensure that after the exposure parameters are adjusted, the first average brightness is still within the first average brightness threshold range, and the first highlight is still within the first highlight threshold range, so as to ensure the accuracy of the exposure parameter adjustment and thus improve the image quality.

[0117] Step 22: Based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, adjust the brightening intensity parameter of the shooting device.

[0118] In an embodiment of the present application, the second highlight, second average brightness, and second low brightness of the YUV information of the current image are extracted, and then the brightening intensity parameters of the shooting device are adjusted based on the second highlight, second average brightness, and second low brightness, so that the shooting device uses the adjusted brightening intensity parameters to shoot the next image.

[0119] The brightening intensity parameter of the shooting device is the brightening intensity of the dynamic range compression algorithm corresponding to the shooting device.

[0120] Optionally, in an embodiment of the present application, the brightness values ​​of each pixel contained in the YUV information can be sorted to determine the second high brightness and the second low brightness, and the brightness values ​​of each pixel can be averaged to determine the second average brightness.

[0121] In the embodiment of the present application, when adjusting the brightening intensity parameter of the shooting device based on the second high brightness, the second average brightness, and the second low brightness, the following operations are specifically performed:

[0122] Step 220: Determine whether the second average brightness is not within a preset second average brightness threshold interval, if so, execute step 221, otherwise, execute step 222.

[0123] Step 221: Adjust the brightening intensity parameter of the photographing device so that the second average brightness is within the second average brightness threshold range.

[0124] In an embodiment of the present application, if the second average brightness is not within the preset second average brightness threshold range, the brightening intensity parameter of the shooting device is adjusted so that the second average brightness is within the second average brightness threshold range, that is, the second average brightness is adjusted to within the second average brightness threshold range by adjusting the brightening intensity.

[0125] For example, if the second average brightness yAvgYuv is not within the second average brightness threshold interval [avgYuvLLim, avgYuvHLim], the second highlight yHigYuv is not considered, and the brightening intensity parameter of the shooting device is adjusted so that the second average brightness yAvgYuv is within the second average brightness threshold interval [avgYuvLLim, avgYuvHLim].

[0126] Optionally, in an embodiment of the present application, after adjusting the brightening intensity parameter of the shooting device so that the second average brightness is within the second average brightness threshold interval, it can also be determined whether to further adjust the brightening intensity parameter based on the adjusted second average brightness.

[0127] In an embodiment of the present application, if the distance between the adjusted second average brightness and the boundary value of the second average brightness threshold interval satisfies the preset second average distance condition, the process of adjusting the brightening intensity parameter is terminated; if the distance between the adjusted second average brightness and the boundary value of the second average brightness threshold interval does not satisfy the preset second average distance condition, the brightening intensity parameter of the shooting device is further adjusted based on the second high brightness and the second low brightness.

[0128] The fact that the distance between the adjusted second average brightness and the boundary value of the second average brightness threshold interval satisfies a preset second average distance condition indicates that the adjusted second average brightness is close to the boundary value of the second average brightness threshold interval.

[0129] Step 222: Based on the second high light and the second low light, adjust the brightening intensity parameter of the shooting device.

[0130] In the embodiment of the present application, if the second average brightness is within the second average brightness threshold interval, the brightening intensity parameter of the shooting device is adjusted based on the second high brightness and the second low brightness.

[0131] Specifically, in the embodiment of the present application, when adjusting the brightening intensity parameter of the shooting device based on the second high brightness and the second low brightness, the following operations are specifically performed:

[0132] Step 2220: Determine whether the second highlight is not within the preset second highlight threshold range, if so, execute step 2221, otherwise, execute step 2222.

[0133] Step 2221: Adjust the brightening intensity parameter of the shooting device so that the second highlight is within the second highlight threshold range.

[0134] In an embodiment of the present application, if the second average brightness is within the second average brightness threshold interval and the second highlight is not within the preset second highlight threshold interval, the brightening intensity parameter of the shooting device is adjusted so that the second highlight is within the second highlight threshold interval.

[0135] For example, if the second average brightness yAvgYuv is within the second average brightness threshold interval [avgYuvLLim, avgYuvHLim], and the second highlight yHigYuv is not within the preset second highlight threshold interval [higYuvLLim, higYuvHLim], the brightening intensity parameter of the shooting device is adjusted so that the second highlight yHigYuv is within the preset second highlight threshold interval [higYuvLLim, higYuvHLim].

[0136] In this way, when the second average brightness is used as a limiter, the second highlight is used as a basis for brightening intensity, thereby achieving brightening intensity in a small area and improving image quality.

[0137] Optionally, in an embodiment of the present application, after adjusting the brightening intensity parameter of the shooting device so that the second highlight is within the second highlight threshold interval, it can also be determined whether to further adjust the brightening intensity parameter based on the adjusted second highlight.

[0138] In an embodiment of the present application, if the distance between the adjusted second highlight and the boundary value of the second highlight threshold interval meets the preset second highlight distance condition, the process of adjusting the brightening intensity parameter is terminated; if the distance between the adjusted second highlight and the boundary value of the second highlight threshold interval does not meet the preset second highlight distance condition, the brightening intensity parameter of the shooting device is further adjusted based on the second low light.

[0139] The fact that the distance between the adjusted second highlight and the boundary value of the second highlight threshold interval satisfies a preset second highlight distance condition indicates that the adjusted second highlight is close to the boundary value of the second highlight threshold interval.

[0140] Step 2222: Adjust the brightening intensity parameter of the shooting device so that the second low brightness is within a preset second low brightness threshold range.

[0141] In an embodiment of the present application, if the second average brightness is within the second average brightness threshold interval, and the second highlight is within the second highlight threshold interval, and the second low brightness is not within the preset second low brightness threshold interval, the brightening intensity parameter of the shooting device is adjusted so that the second low brightness is within the preset second low brightness threshold interval; if the second average brightness is within the second average brightness threshold interval, and the second highlight is within the second highlight threshold interval, and the second low brightness is within the preset second low brightness threshold interval, the brightening intensity parameter is not adjusted.

[0142] For example, if the second average brightness yAvgYuv is within the second average brightness threshold interval [avgYuvLLim, avgYuvHLim], the second highlight yHigYuv is within the preset second highlight threshold interval [higYuvLLim, higYuvHLim], and the second low brightness yLowYuv is not within the preset second low brightness threshold interval [lowYuvLLim, lowYuvHLim], then adjust the brightening intensity parameter of the shooting device so that the second low brightness yLowYuv is within the preset second low brightness threshold interval [lowYuvLLim, lowYuvHLim].

[0143] In this way, the high, medium and low brightness of the YUV information are used to feedback and adjust the brightening intensity parameter to ensure the accuracy of the brightening intensity parameter adjustment, thereby improving the image quality.

[0144] Furthermore, after adjusting the brightening intensity parameters of the shooting device based on the second highlight, second average brightness, and second low brightness of the current image extracted from the YUV information, in an embodiment of the present application, the contrast coefficient of the shooting device can also be adjusted based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram.

[0145] Among them, the actual brightness histogram of YUV information counts the number of pixels of each brightness value.

[0146] In this way, the contrast attribute of the YUV information is used to feedback and adjust the contrast, avoiding the use of a fixed contrast coefficient, which causes the overall brightness of dark areas in high dynamic range scenes to become hazy after being increased, thereby further improving the image quality.

[0147] Specifically, in the embodiment of the present application, when adjusting the contrast coefficient of the shooting device based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram, the following operations are specifically performed:

[0148] Step 230: Calculate a first difference between the number of pixels in the actual brightness histogram whose brightness is less than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is less than or equal to the third brightness threshold.

[0149] The third brightness threshold is the middle value of the second average brightness threshold interval, and the first difference represents that the number of dark pixels in the actual brightness histogram is more or less than that in the standard brightness histogram.

[0150] For example, the middle value of the second average brightness threshold interval [avgYuvLLim, avgYuvHLim] is calculated as avgYuvLimMid, avgYuvLimMid is used as the third brightness threshold, and the first difference between the number of pixels in the actual brightness histogram whose brightness belongs to [0, avgYuvLimMid] and the number of pixels in the standard brightness histogram whose brightness belongs to [0, avgYuvLimMid] is calculated.

[0151] Step 231: Calculate a second difference between the number of pixels in the actual brightness histogram whose brightness is greater than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is greater than or equal to the third brightness threshold.

[0152] The second difference represents that the number of bright pixels in the actual brightness histogram is more or less than that in the standard brightness histogram.

[0153] For example, the middle value of the second average brightness threshold interval [avgYuvLLim, avgYuvHLim] is calculated as avgYuvLimMid, avgYuvLimMid is used as the third brightness threshold, and the second difference between the number of pixels in the actual brightness histogram whose brightness belongs to [avgYuvLimMid, 255] and the number of pixels in the standard brightness histogram whose brightness belongs to [avgYuvLimMid, 255] is calculated.

[0154] Step 232: Based on the first difference and the second difference, adjust the contrast coefficient of the photographing device.

[0155] Specifically, in the embodiment of the present application, when adjusting the contrast coefficient of the shooting device based on the first difference and the second difference, there are two cases:

[0156] Case 1: When the first difference is a negative number and the second difference is a negative number, the contrast coefficient of the shooting device is increased.

[0157] In the embodiment of the present application, the first difference is a negative number, and the second difference is a negative number, indicating that there are fewer pixels in the dark area of ​​the picture and fewer pixels in the bright area. At this time, the contrast coefficient needs to be slowly increased to expand the number of pixels at both ends of the actual brightness histogram.

[0158] Case 2: When the first difference is a positive number and the second difference is a positive number, the contrast coefficient of the shooting device is reduced.

[0159] In the embodiment of the present application, the first difference is a positive number, and the second difference is a positive number, indicating that there are more pixels in the dark part of the picture and more pixels in the bright part. At this time, the contrast coefficient needs to be lowered to reduce the number of pixels at both ends of the actual brightness histogram.

[0160] Based on the above embodiments, see Figure 3 FIG. 1 is a schematic diagram of a process for adjusting exposure parameters in an embodiment of the present application, which specifically includes:

[0161] Step 30: extract the first highlight, the first average brightness and the first low brightness of the raw information of the current image.

[0162] Step 31: determine whether the first average brightness is not within a preset first average brightness threshold interval, if so, execute step 32, otherwise, execute step 33.

[0163] Step 32: Adjust the exposure parameters of the photographing device so that the first average brightness is within a first average brightness threshold interval.

[0164] Step 33: Determine whether the first highlight is not within a preset first highlight threshold interval, if so, execute step 34, otherwise, execute step 35.

[0165] Step 34: Adjust the exposure parameters of the photographing device so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval.

[0166] Step 35: Determine whether the first low brightness is not within a preset first low brightness threshold interval, if so, execute step 36, otherwise, execute step 37.

[0167] Step 36: Adjust the exposure parameters of the shooting device so that the first low brightness is within a preset first low brightness threshold interval, the first high brightness is within a first high brightness threshold interval, and the first average brightness is within a first average brightness threshold interval.

[0168] Step 37: Do not adjust the exposure parameters of the shooting device.

[0169] Based on the above embodiments, see Figure 4 FIG. 1 is a flow chart of adjusting the brightening intensity parameters in an embodiment of the present application, which specifically includes:

[0170] Step 40: Extract the second highlight, the second average brightness, and the second low brightness of the YUV information of the current image.

[0171] Step 41: determine whether the second average brightness is not within a preset second average brightness threshold interval, if so, execute step 42, otherwise, execute step 43.

[0172] Step 42: Adjust the brightening intensity parameter of the photographing device so that the second average brightness is within the second average brightness threshold range.

[0173] Step 43: Determine whether the second highlight is not within a preset second highlight threshold range, if so, execute step 44, otherwise, execute step 45.

[0174] Step 44: Adjust the brightening intensity parameter of the photographing device so that the second highlight is within the second highlight threshold range.

[0175] Step 45: Determine whether the second low brightness is not within a preset second low brightness threshold interval, if so, execute step 46, otherwise, execute step 47.

[0176] Step 46: Adjust the brightening intensity parameter of the shooting device so that the second low brightness is within a preset second low brightness threshold range.

[0177] Step 47: Do not adjust the brightening intensity parameters of the camera.

[0178] Based on the above embodiments, see Figure 5 FIG. 1 is a schematic diagram of a process for adjusting the contrast coefficient in an embodiment of the present application, which specifically includes:

[0179] Step 50: Calculate the middle value of the second average brightness threshold interval and use it as the third brightness threshold.

[0180] Step 51: Calculate a first difference between the number of pixels with brightness less than or equal to a third brightness threshold in an actual brightness histogram corresponding to the YUV information and the number of pixels with brightness less than or equal to the third brightness threshold in a preset standard brightness histogram.

[0181] Step 52: Calculate a second difference between the number of pixels in the actual brightness histogram whose brightness is greater than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is greater than or equal to the third brightness threshold.

[0182] Step 53: Determine whether the first difference is greater than 0 and whether the second difference is greater than 0. If so, execute step 54; otherwise, execute step 55.

[0183] Step 54: Reduce the contrast factor of the camera.

[0184] Step 55: Determine whether the first difference is less than 0 and whether the second difference is less than 0. If so, execute step 56; otherwise, execute step 57.

[0185] Step 56: Increase the contrast factor of the camera.

[0186] Step 57: Do not adjust the contrast factor of the photographic device.

[0187] Based on the same inventive concept, the present application embodiment provides a wide dynamic adjustment device, please refer to Figure 6 , the device comprises:

[0188] The acquisition module 601 is used to acquire the raw information and YUV information of the current image of the shooting device;

[0189] A first adjustment module 602, configured to adjust exposure parameters of a photographing device based on a first highlight, a first average brightness, and a first low brightness of a current image extracted from raw information;

[0190] The second adjustment module 603 is used to adjust the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness and the second low brightness of the current image extracted from the YUV information.

[0191] In a possible embodiment, when adjusting the exposure parameters of the shooting device based on the first highlight, the first average brightness, and the first low brightness of the current image extracted from the raw information, the first adjustment module 602 is further used to:

[0192] When the first average brightness is not within the preset first average brightness threshold interval, adjusting the exposure parameters of the photographing device so that the first average brightness is within the first average brightness threshold interval;

[0193] When the first average brightness is within a first average brightness threshold interval, an exposure parameter of the photographing device is adjusted based on the first high brightness and the first low brightness.

[0194] In a possible embodiment, when adjusting the exposure parameter of the photographing device based on the first high brightness and the first low brightness, the first adjustment module 602 is further configured to:

[0195] When the first highlight is not within the preset first highlight threshold interval, adjusting the exposure parameters of the photographing device so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval;

[0196] When the first highlight is within the first highlight threshold interval, adjust the exposure parameters of the shooting device so that the first low brightness is within the preset first low brightness threshold interval, the first highlight is within the first highlight threshold interval, and the first average brightness is within the first average brightness threshold interval.

[0197] In a possible embodiment, when adjusting the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, the second adjustment module 603 is further used to:

[0198] When the second average brightness is not within the preset second average brightness threshold interval, adjusting the brightening intensity parameter of the photographing device so that the second average brightness is within the second average brightness threshold interval;

[0199] When the second average brightness is within the second average brightness threshold interval, the brightening intensity parameter of the photographing device is adjusted based on the second high brightness and the second low brightness.

[0200] In a possible embodiment, when adjusting the brightening intensity parameter of the photographing device based on the second high light and the second low light, the second adjusting module 603 is further used to:

[0201] When the second highlight is not within the preset second highlight threshold range, adjusting the brightening intensity parameter of the photographing device so that the second highlight is within the second highlight threshold range;

[0202] When the second highlight is within the second highlight threshold interval, the brightening intensity parameter of the photographing device is adjusted so that the second low light is within the preset second low light threshold interval.

[0203] In a possible embodiment, after adjusting the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, the apparatus further includes a third adjustment module 604, which is used to:

[0204] Based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram, the contrast coefficient of the shooting device is adjusted.

[0205] In a possible embodiment, when adjusting the contrast coefficient of the shooting device based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram, the third adjustment module 604 is further used to:

[0206] Calculate a first difference between the number of pixels in the actual brightness histogram whose brightness is less than or equal to a third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is less than or equal to the third brightness threshold, wherein the third brightness threshold is a middle value of the second average brightness threshold interval;

[0207] Calculating a second difference between the number of pixels in the actual brightness histogram whose brightness is greater than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is greater than or equal to the third brightness threshold;

[0208] Based on the first difference and the second difference, a contrast factor of the photographing device is adjusted.

[0209] In a possible embodiment, when adjusting the contrast coefficient of the photographing device based on the first difference and the second difference, the third adjustment module 604 is further configured to:

[0210] When the first difference is a negative number and the second difference is a negative number, increasing the contrast coefficient of the photographing device;

[0211] When the first difference is a positive number and the second difference is a positive number, the contrast coefficient of the photographing device is reduced.

[0212] Based on the above embodiments, see Figure 7 Shown is a schematic diagram of the structure of an electronic device in an embodiment of the present application.

[0213] An embodiment of the present application provides an electronic device, which may include a processor 710 (Center Processing Unit, CPU), a memory 720, an input device 730 and an output device 740, etc. The input device 730 may include a keyboard, a mouse, a touch screen, etc., and the output device 740 may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.

[0214] The memory 720 may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor 710 with program instructions and data stored in the memory 720. In the embodiment of the present application, the memory 720 may be used to store the program of any wide dynamic adjustment method in the embodiment of the present application.

[0215] The processor 710 calls the program instructions stored in the memory 720, and the processor 710 is used to execute any wide dynamic adjustment method in the embodiments of the present application according to the obtained program instructions.

[0216] Based on the above embodiments, in an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the wide dynamic adjustment method in any of the above method embodiments is implemented.

[0217] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0218] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0219] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0220] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0221] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A wide dynamic adjustment method, It is characterized in that include: Get the raw information and YUV information of the current image of the camera; Adjusting exposure parameters of the photographing device based on a first highlight, a first average brightness, and a first low brightness of the current image extracted from the raw information; Based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information, adjusting a brightening intensity parameter of the photographing device, wherein the brightening intensity parameter is used to brighten a dark portion of the image; Adjusting the contrast coefficient of the shooting device based on a difference between an actual brightness histogram corresponding to the YUV information and a preset standard brightness histogram; The step of adjusting the contrast coefficient of the shooting device based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram includes: Calculate a first difference between the number of pixels in the actual brightness histogram whose brightness is less than or equal to a third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is less than or equal to the third brightness threshold, wherein the third brightness threshold is a middle value of the second average brightness threshold interval; Calculating a second difference between the number of pixels in the actual brightness histogram whose brightness is greater than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is greater than or equal to the third brightness threshold; Based on the first difference and the second difference, a contrast coefficient of the photographing device is adjusted.

2. The method according to claim 1, It is characterized in that The adjusting the exposure parameters of the shooting device based on the first highlight, the first average brightness, and the first low brightness of the current image extracted from the raw information includes: When the first average brightness is not within a preset first average brightness threshold interval, adjusting the exposure parameter of the photographing device so that the first average brightness is within the first average brightness threshold interval; When the first average brightness is within the first average brightness threshold interval, the exposure parameter of the photographing device is adjusted based on the first highlight and the first low brightness.

3. The method according to claim 2, It is characterized in that The adjusting the exposure parameter of the shooting device based on the first highlight and the first low highlight includes: When the first highlight is not within a preset first highlight threshold interval, adjusting the exposure parameter of the photographing device so that the first highlight is within the first highlight threshold interval and the first average brightness is within the first average brightness threshold interval; When the first highlight is within the first highlight threshold interval, adjust the exposure parameters of the shooting device so that the first low light is within the preset first low light threshold interval, the first highlight is within the first highlight threshold interval, and the first average brightness is within the first average brightness threshold interval.

4. The method according to claim 1, It is characterized in that The adjusting the brightening intensity parameter of the shooting device based on the second highlight, the second average brightness, and the second low brightness of the current image extracted from the YUV information includes: When the second average brightness is not within the second average brightness threshold interval, adjusting the brightening intensity parameter of the photographing device so that the second average brightness is within the second average brightness threshold interval; When the second average brightness is within the second average brightness threshold interval, a brightening intensity parameter of the photographing device is adjusted based on the second high brightness and the second low brightness.

5. The method according to claim 4, It is characterized in that The adjusting the brightening intensity parameter of the photographing device based on the second highlight and the second low highlight includes: When the second highlight is not within the preset second highlight threshold range, adjusting the brightening intensity parameter of the photographing device so that the second highlight is within the second highlight threshold range; When the second highlight is within the second highlight threshold interval, the brightening intensity parameter of the photographing device is adjusted so that the second low light is within the preset second low light threshold interval.

6. The method according to claim 1, It is characterized in that The adjusting the contrast coefficient of the photographing device based on the first difference and the second difference includes: When the first difference is a negative number and the second difference is a negative number, increasing the contrast coefficient of the photographing device; When the first difference is a positive number and the second difference is a positive number, the contrast coefficient of the photographing device is reduced.

7. A wide dynamic adjustment device, It is characterized in that include: The acquisition module is used to obtain the raw information and YUV information of the current image of the shooting device; A first adjustment module, configured to adjust the exposure parameters of the shooting device based on the first highlight, the first average brightness, and the first low brightness of the current image extracted from the raw information; A second adjustment module, configured to adjust a brightening intensity parameter of the photographing device based on a second highlight, a second average brightness, and a second low brightness of the current image extracted from the YUV information, wherein the brightening intensity parameter is used to brighten a dark portion of the image; A third adjustment module, configured to adjust a contrast coefficient of the shooting device based on a difference between an actual brightness histogram corresponding to the YUV information and a preset standard brightness histogram; Wherein, when adjusting the contrast coefficient of the shooting device based on the difference between the actual brightness histogram corresponding to the YUV information and the preset standard brightness histogram, the third adjustment module is specifically used for: Calculate a first difference between the number of pixels in the actual brightness histogram whose brightness is less than or equal to a third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is less than or equal to the third brightness threshold, wherein the third brightness threshold is a middle value of the second average brightness threshold interval; Calculating a second difference between the number of pixels in the actual brightness histogram whose brightness is greater than or equal to the third brightness threshold and the number of pixels in the standard brightness histogram whose brightness is greater than or equal to the third brightness threshold; Based on the first difference and the second difference, a contrast coefficient of the photographing device is adjusted.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Image processing system

    JP2020048139A

  • Image capture method and device

    WO2019183813A1