Backlight adjusting method, apparatus and device
By determining the reference brightness value of the multi-level pixel quantity threshold based on the brightness value of the image pixels, and adjusting the backlight parameters, the energy waste problem caused by the backlight settings in the existing technology is solved, and a more energy-efficient display effect is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HEFEI ESWIN IC TECH CO LTD
- Filing Date
- 2023-11-10
- Publication Date
- 2026-07-24
AI Technical Summary
The existing display panel backlighting method results in high energy consumption and poor performance.
Based on the brightness values of each pixel in the image to be displayed, a reference brightness value corresponding to the pixel number threshold is determined, and the backlight parameters are adjusted through a preset mapping relationship.
While maintaining image quality, a more energy-efficient backlight adjustment effect was achieved.
Smart Images

Figure CN117672145B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image display technology, and in particular to a backlight adjustment method, apparatus and device. Background Technology
[0002] Backlighting (BL) is a form of lighting used in the electronics industry, commonly applied to displays. Backlighting refers to illumination from the side or back, and can be used to increase the brightness of the display screen in low-light environments.
[0003] Currently, in LCD panels (Open Cell, OC), the backlight settings are all at their maximum values. For example, in a Full HD scenario where the Pulse Width Modulation (PWM) is 10 bits, the backlight parameter PWM is set to 1023.
[0004] However, this backlighting method consumes a lot of energy and is not energy-efficient. Summary of the Invention
[0005] This application provides a backlight adjustment method, apparatus, and device to solve the problem that current display panel backlight settings consume a lot of energy and have poor performance.
[0006] In a first aspect, this application provides a backlight adjustment method, the method comprising: Based on the brightness value of each pixel in the image to be displayed, determine the number of pixels included under each brightness value in the image to be displayed; Based on the number of pixels included under each brightness value, a reference brightness value corresponding to each of the preset multiple pixel number thresholds is determined. For any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is the brightness value when the number of pixels in the image to be displayed is greater than the pixel number threshold. The target backlight parameters of the image to be displayed are determined based on the reference brightness values corresponding to the multiple pixel number thresholds and the preset mapping relationship between the brightness values and the backlight parameters. Adjust the backlight of the image to be displayed according to the target backlight parameters.
[0007] In one possible implementation, determining the target backlight parameters of the image to be displayed based on the reference brightness values corresponding to each of the plurality of pixel number thresholds, and a preset mapping relationship between the brightness values and backlight parameters, includes: The target reference brightness value of the image to be displayed is determined based on the reference brightness values corresponding to the multiple pixel number thresholds. The target backlight parameters are determined based on the target reference brightness value and the preset mapping relationship.
[0008] In one possible implementation, determining the target reference brightness value of the image to be displayed based on the reference brightness values corresponding to each of the plurality of pixel number thresholds includes: Among the reference brightness values corresponding to the plurality of pixel number thresholds, determine the reference brightness value corresponding to the minimum pixel number threshold; If the reference brightness value corresponding to the minimum pixel number threshold is less than or equal to the first brightness threshold, the reference brightness value corresponding to the minimum pixel number threshold shall be determined as the target reference brightness value. If the reference brightness value corresponding to the minimum pixel number threshold is greater than the first brightness threshold, the reference brightness difference between two adjacent pixel number thresholds among the multiple pixel number thresholds sorted by size is determined according to the reference brightness values corresponding to each of the multiple pixel number thresholds; the target reference brightness value is determined according to the reference brightness difference between two adjacent pixel number thresholds.
[0009] In one possible implementation, determining the target reference brightness value based on the reference brightness difference between two adjacent pixel number thresholds includes: Based on the reference brightness difference between the two adjacent pixel number thresholds, a first candidate brightness value and a second candidate brightness value are determined from the reference brightness values corresponding to each of the plurality of pixel number thresholds. Determine the candidate brightness difference between the first candidate brightness value and the second candidate brightness value; Based on the candidate brightness difference, the target reference brightness value is determined from the first candidate brightness value and the second candidate brightness value.
[0010] In one possible implementation, determining a first candidate brightness value and a second candidate brightness value from the reference brightness values corresponding to each of the plurality of pixel number thresholds based on the reference brightness difference between the two adjacent pixel number thresholds includes: The reference brightness value corresponding to the minimum pixel count threshold is determined as the first candidate brightness value; Determine whether there exists a target reference brightness difference greater than or equal to the second brightness threshold among the reference brightness differences between the number of adjacent pixels in each pair; If the target reference brightness difference exists among the reference brightness differences between the number of adjacent pixels in each pair, the second candidate brightness value is determined from the reference brightness values corresponding to the target reference brightness difference. If the target reference brightness difference does not exist among the reference brightness differences between any two adjacent pixel number thresholds, the reference brightness value corresponding to the maximum pixel number threshold among the plurality of pixel number thresholds is determined as the second candidate brightness value.
[0011] In one possible implementation, determining the target reference brightness value among the first candidate brightness value and the second candidate brightness value based on the candidate brightness difference includes: If the candidate brightness difference is greater than or equal to the third brightness threshold, the first candidate brightness value is determined as the target reference brightness value; If the difference between the candidate brightness values is less than the third brightness threshold, the second candidate brightness value is determined as the target reference brightness value.
[0012] In one possible implementation, determining the reference brightness value corresponding to each of the preset multiple pixel number thresholds based on the number of pixels included in each brightness value includes: For any pixel count threshold, based on the number of pixels included under each brightness value, determine at least one brightness value in which the number of corresponding pixels is greater than or equal to the pixel count threshold. The maximum value among the at least one brightness value is determined as the reference brightness value corresponding to the pixel number threshold.
[0013] Secondly, this application provides a backlight adjustment device, the device comprising: The first determining module is used to determine the number of pixels included under each brightness value in the image to be displayed based on the brightness value of each pixel in the image to be displayed; The second determining module is used to determine the reference brightness value corresponding to each of the preset multiple pixel number thresholds based on the number of pixels included under each brightness value. For any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is the brightness value where the number of pixels in the image to be displayed is greater than the pixel number threshold. The processing module is used to determine the target backlight parameters of the image to be displayed based on the reference brightness values corresponding to the multiple pixel number thresholds and the preset mapping relationship between the brightness values and the backlight parameters. An adjustment module is used to adjust the backlight of the image to be displayed according to the target backlight parameters.
[0014] In one possible implementation, the processing module is specifically used for: The target reference brightness value of the image to be displayed is determined based on the reference brightness values corresponding to the multiple pixel number thresholds. The target backlight parameters are determined based on the target reference brightness value and the preset mapping relationship.
[0015] In one possible implementation, the processing module is specifically used for: Among the reference brightness values corresponding to the plurality of pixel number thresholds, determine the reference brightness value corresponding to the minimum pixel number threshold; If the reference brightness value corresponding to the minimum pixel number threshold is less than or equal to the first brightness threshold, the reference brightness value corresponding to the minimum pixel number threshold shall be determined as the target reference brightness value. If the reference brightness value corresponding to the minimum pixel number threshold is greater than the first brightness threshold, the reference brightness difference between two adjacent pixel number thresholds among the multiple pixel number thresholds sorted by size is determined according to the reference brightness values corresponding to each of the multiple pixel number thresholds; the target reference brightness value is determined according to the reference brightness difference between two adjacent pixel number thresholds.
[0016] In one possible implementation, the processing module is specifically used for: Based on the reference brightness difference between the two adjacent pixel number thresholds, a first candidate brightness value and a second candidate brightness value are determined from the reference brightness values corresponding to each of the plurality of pixel number thresholds. Determine the candidate brightness difference between the first candidate brightness value and the second candidate brightness value; Based on the candidate brightness difference, the target reference brightness value is determined from the first candidate brightness value and the second candidate brightness value.
[0017] In one possible implementation, the processing module is specifically used for: The reference brightness value corresponding to the minimum pixel count threshold is determined as the first candidate brightness value; Determine whether there exists a target reference brightness difference greater than or equal to the second brightness threshold among the reference brightness differences between the number of adjacent pixels in each pair; If the target reference brightness difference exists among the reference brightness differences between the number of adjacent pixels in each pair, the second candidate brightness value is determined from the reference brightness values corresponding to the target reference brightness difference. If the target reference brightness difference does not exist among the reference brightness differences between any two adjacent pixel number thresholds, the reference brightness value corresponding to the maximum pixel number threshold among the plurality of pixel number thresholds is determined as the second candidate brightness value.
[0018] In one possible implementation, the processing module is specifically used for: If the candidate brightness difference is greater than or equal to the third brightness threshold, the first candidate brightness value is determined as the target reference brightness value; If the difference between the candidate brightness values is less than the third brightness threshold, the second candidate brightness value is determined as the target reference brightness value.
[0019] In one possible implementation, the second determining module is specifically used for: For any pixel count threshold, based on the number of pixels included under each brightness value, determine at least one brightness value in which the number of corresponding pixels is greater than or equal to the pixel count threshold. The maximum value among the at least one brightness value is determined as the reference brightness value corresponding to the pixel number threshold.
[0020] Thirdly, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the backlight adjustment method as described in any of the first aspects.
[0021] Fourthly, this application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the backlight adjustment method as described in any of the first aspects.
[0022] The backlight adjustment method, apparatus, and device provided in this application first determine the number of pixels included under each brightness value in the image to be displayed based on the brightness value of each pixel. Then, based on the number of pixels included under each brightness value, they determine the reference brightness value corresponding to each of the preset pixel number thresholds. For any pixel number threshold, the number of pixels in the image to be displayed whose brightness value is greater than or equal to the reference brightness value corresponding to that pixel number threshold is greater than or equal to that pixel number threshold. After determining the reference brightness values corresponding to each of the multiple pixel number thresholds, the target backlight parameters of the image to be displayed can be determined based on the reference brightness values corresponding to each of the multiple pixel number thresholds and the preset mapping relationship between brightness values and backlight parameters. Therefore, the backlight of the image to be displayed is adjusted according to the target backlight parameters. The solution of this application, for the image to be displayed, can obtain reference brightness values for multiple levels of different pixel number thresholds based on the brightness values of the pixels in the image to be displayed, thereby realizing backlight adjustment under multiple levels of pixel number thresholds. This achieves better energy saving and display effect while ensuring image quality. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0024] Figure 1 This is a schematic diagram of an image to be displayed. Figure 2 This is the histogram of the image to be displayed. Figure 3 This is a schematic diagram of a lookup table between brightness values and backlight parameters; Figure 4 This is a comparison illustration of images adjusted based on the third backlight adjustment method. Figure 1 ; Figure 5 This is a comparison illustration of images adjusted based on the third backlight adjustment method. Figure 2 ; Figure 6 A schematic flowchart illustrating the backlight adjustment method provided in an embodiment of this application; Figure 7 This is a schematic diagram of the process for determining the target reference brightness value provided in an embodiment of this application; Figure 8 This is a schematic diagram of the process for determining the target reference brightness value provided in an embodiment of this application; Figure 9 This is a schematic diagram of the backlight adjustment device provided in the embodiments of this application; Figure 10 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] Backlighting is a form of illumination used in the electronics industry, commonly applied to displays. Backlighting refers to illumination from the side or back, used to increase lighting in low-light environments and to enhance the brightness of the display screen. Currently, there are various methods for adjusting backlighting, which will be described below.
[0027] The first type of backlight adjustment refers to setting the maximum backlight level in traditional LCD panels regardless of the displayed image content. For example, in a full HD scene with 10-bit PWM, the maximum PWM value can be set to 1023, and the backlight of traditional LCD panels is always adjusted to PWM=1023.
[0028] While this backlighting method can increase the brightness of the displayed image, it is less energy-efficient. For some images that are already bright, such a high backlight level is unnecessary.
[0029] Therefore, a second backlight adjustment method was proposed, which is based on an algorithm that accumulates the pixel values of image frames for backlight adjustment. This method involves finding the maximum brightness value among all pixels in the image to be displayed, and then using a lookup table between brightness values and backlight parameters to find the backlight parameter corresponding to the maximum brightness value, which is then used as the backlight parameter for displaying the image.
[0030] The second backlight adjustment method can adjust the backlight based on different images, and it is also more energy-efficient to some extent compared to the first method. However, it also has its own drawbacks, which can be discussed in detail below. Figure 1 and Figure 2 To understand.
[0031] Figure 1 This is a schematic diagram of an image to be displayed, such as... Figure 1 As shown, the image to be displayed, 10, is an image with a relatively low overall brightness value, containing only a few pixels with relatively high brightness values, such as... Figure 1 As shown in region 11.
[0032] Figure 2 For the histogram of the image to be displayed, such as Figure 2 The example shown is a histogram of image 10, where the horizontal axis represents the brightness value. Taking 10 bits to represent the brightness value as an example, the range of the brightness value is 0-1023. Figure 2 For ease of illustration, the horizontal axis ranges from 0 to 1200 (in reality, the maximum brightness value is 1023), and the vertical axis represents the number of pixels.
[0033] exist Figure 2 The example illustrates how many corresponding pixels are included in image 10 for different brightness values. Taking a horizontal axis value of 200 and a corresponding vertical axis value of 3000 as an example, this means that there are 3000 pixels in image 10 with a brightness value of 200. Other values are similar and will not be elaborated upon here.
[0034] For image 10, the pixel with the maximum brightness value is located within region 11, based on Figure 2This allows us to determine the number of pixels in image 10 at different brightness values. See also... Figure 2 The maximum brightness value in image 10 is 1021, and there is only one such value. The brightness values of the other pixels in image 10 are all below 540.
[0035] Based on the second backlight adjustment method, since the maximum brightness value in image 10 is 1021, the backlight parameter PWM is set to 1021. Compared to the first backlight adjustment method, for image 10, the second backlight adjustment method only reduces the backlight parameter PWM from 1023 to 1021, which is a relatively small decrease and has poor energy-saving effect. Moreover, for an image like image 10, where the brightness values of most pixels are not high, such a high backlight parameter is not necessary.
[0036] Therefore, the second method of backlight adjustment is less energy-efficient for images like image 10, where some individual pixels have high brightness values while most pixels have low brightness values.
[0037] To improve the effect of the second backlight adjustment method, a third backlight adjustment method was proposed.
[0038] The third method of backlight adjustment is based on a fixed threshold method. Specifically, a fixed threshold, denoted as `threshold`, is set for the pixel frequency of the image to be displayed. The `threshold` is typically set empirically and is related to the image size and power efficiency.
[0039] After setting the threshold, for the image's histogram, find the first brightness value greater than the threshold in the direction from the maximum brightness value to the minimum brightness value as the target brightness value. Then, based on the target brightness value and the lookup table between the brightness value and the backlight parameters, find the backlight parameters corresponding to the target brightness value as the backlight parameters for displaying the image.
[0040] by Figure 1 Taking image 10 as an example, in Figure 2 In the middle, set threshold=2000, such as Figure 2 The dashed lines in the image illustrate this. The bars above the dashed lines represent brightness values in image 10 where the number of corresponding pixels is greater than or equal to 2000. Starting from the maximum brightness value and moving towards the minimum brightness value, the first brightness value greater than the threshold is selected as the target brightness value (i.e., ...). Figure 2 (Using the horizontal axis from right to left, find the first bar that intersects the dashed line and its corresponding horizontal axis as the target brightness value). Figure 2 In the image, the target brightness value is 540.
[0041] After determining the target brightness value to be 540, the corresponding backlight parameters for 540 are found using a lookup table between brightness values and backlight parameters.
[0042] Figure 3 This is a schematic diagram of a lookup table between brightness values and backlight parameters, such as... Figure 3 As shown, the horizontal axis represents the brightness value, the vertical axis represents the PWM value, and the curve represents the mapping relationship between the brightness value and the PWM. The brightness value is given based on... Figure 3 The example lookup table can be used to obtain the corresponding PWM. For instance, when the target brightness value is 540, based on... Figure 3 The example lookup table shows that the corresponding PWM is 850. Therefore, the backlight parameter of image 10 can be set to PWM=850.
[0043] The third backlight adjustment method, compared to the first backlight adjustment method, reduces the PWM of image 10 from 1023 to 850, which can save about 16.9% ((1023-850) / 1023) of power consumption. For images like image 10, where the brightness values of individual pixels are high and the brightness values of most pixels are low, the backlight adjustment has a better energy-saving effect.
[0044] However, the third backlight adjustment method also has some drawbacks. Because it uses the same pixel frequency threshold for all image types, it degrades image quality and loses detail in dark images, while its energy-saving effect is poor in bright images. See [link to relevant documentation] for details. Figure 4 and Figure 5 To understand.
[0045] Figure 4 This is a comparison illustration of images adjusted based on the third backlight adjustment method. Figure 1 The example demonstrates the backlight adjustment effect on a dark image at different thresholds. Figure 4 As shown, Figure 4 Example 1 shows the backlight adjustment effect of a dark image at threshold=500. Figure 4 Example b shows the backlight adjustment effect on a dark image with threshold=2000. It can be seen that the image quality is the same when threshold=500 as when the backlight is fully on, while the image quality is worse when threshold=2000. Therefore, the third backlight adjustment method will reduce image quality and lose details when adjusting the backlight of a dark image.
[0046] Figure 5 This is a comparison illustration of images adjusted based on the third backlight adjustment method. Figure 2The example demonstrates the backlight adjustment effect of a bright image at different thresholds. Figure 5 As shown, Figure 5 Example 1 shows the backlight adjustment effect of a bright image at threshold=2000, which can save about 23.9% energy compared to the first backlight adjustment method; Figure 5 Example b shows the backlight adjustment effect of a bright image at threshold=4000, which saves approximately 41.4% energy compared to the first backlight adjustment method. It can be seen that the image quality is almost the same under the two different thresholds, but using threshold=4000 is more energy-efficient. Therefore, the third backlight adjustment method is less flexible.
[0047] Based on this, embodiments of this application provide a backlight adjustment method that adaptively adjusts the backlight of an image by setting multi-level thresholds, thereby achieving better energy-saving effects while ensuring image quality. The solutions of embodiments of this application will be described below with reference to the accompanying drawings.
[0048] Figure 6 This is a schematic flowchart of the backlight adjustment method provided in the embodiments of this application, as shown below. Figure 6 As shown, the method includes: S61, based on the brightness value of each pixel in the image to be displayed, determine the number of pixels included under each brightness value in the image to be displayed.
[0049] The execution subject of this application embodiment can be a client, electronic device, terminal device, or other device with a display panel or display screen. In the following embodiments, for ease of description, a terminal device will be used as an example.
[0050] The image to be displayed is the image that needs to be displayed on the display panel of the terminal device after adjusting the backlight. After acquiring the image to be displayed, the terminal device can obtain the brightness value of each pixel in the image. The range of brightness values for each pixel varies depending on the size of the parameter representing the brightness value. For example, using 8 bits to represent the brightness value results in a value range of 0-255; using 10 bits results in a value range of 0-1023. In the following embodiments, the 10-bit brightness value representation is used as an example; the implementation method for using 8 bits is similar. After obtaining the brightness value of each pixel in the image to be displayed, the number of pixels included under each brightness value can be obtained.
[0051] In one possible implementation, a histogram of the image to be displayed can be generated based on the brightness values of each pixel. The histogram of the image to be displayed can be referenced... Figure 2The histogram style of the example image 10 shows that the horizontal axis of the histogram of the image to be displayed represents the brightness value, which increases from left to right. The vertical axis represents the number of pixels. The value of the vertical axis corresponding to each brightness value represents the number of pixels in the image to be displayed that belong to that brightness value.
[0052] S62, based on the number of pixels included under each brightness value, determine the reference brightness value corresponding to each of the preset multiple pixel number thresholds, wherein, for any pixel number threshold, the number of pixels in the image to be displayed whose brightness value is the reference brightness value corresponding to the pixel number threshold is greater than or equal to the pixel number threshold.
[0053] In this embodiment, multiple pixel number thresholds are preset. The number of these thresholds can be set as needed, for example, 5, 7, 8, or 11 pixel number thresholds can be set. Under the same conditions, the larger the number of pixel number thresholds, the better the backlight adjustment effect, but the greater the computational resource consumption. Therefore, the number of pixel number thresholds needs to be determined comprehensively based on the desired backlight adjustment effect and the computational resource consumption.
[0054] After obtaining multiple pixel count thresholds, the terminal device determines the reference brightness value corresponding to each of the multiple pixel count thresholds based on the number of pixels included at each brightness value in the image to be displayed. For any pixel count threshold, the reference brightness value corresponding to that threshold is the brightness value in the image to be displayed where the number of pixels is greater than that pixel count threshold.
[0055] Taking a pixel count threshold of 500 as an example, the reference brightness value corresponding to this pixel count threshold must meet the condition that the number of pixels in the image to be displayed whose brightness value is the reference brightness value is greater than or equal to 500.
[0056] Optionally, if the number of pixels corresponding to multiple brightness values in the image to be displayed is greater than or equal to a pixel number threshold, then any one of these brightness values can be selected as the reference brightness value corresponding to the pixel number threshold. For example, the minimum or maximum brightness value among these multiple brightness values can be used as the reference brightness value corresponding to the pixel number threshold, or a certain intermediate brightness value among the multiple brightness values can be used as the reference brightness value corresponding to the pixel number threshold, and so on.
[0057] For example, if the brightness values of the pixels in the image to be displayed include 50, 60, and 80, and the number of pixels with a brightness value of 50 is 300, the number of pixels with a brightness value of 60 is 900, and the number of pixels with a brightness value of 80 is 800, then for a pixel number threshold of 500, the number of pixels with brightness values of 60 and 80 both exceed 500. Therefore, 60 can be used as the reference brightness value corresponding to the pixel number threshold of 500, or 80 can be used as the reference brightness value corresponding to the pixel number threshold of 500.
[0058] In one possible implementation, for any pixel count threshold, based on the number of pixels included at each brightness value in the image to be displayed, at least one brightness value is determined where the number of pixels is greater than or equal to the pixel count threshold. Then, the maximum value among these at least one brightness value is determined as the reference brightness value corresponding to the pixel count threshold. In this implementation, for any pixel count threshold, the maximum value among the at least one brightness value where the number of pixels is greater than or equal to the pixel count threshold is used as the reference brightness value corresponding to that pixel count threshold.
[0059] Taking the histogram of the image to be displayed as an example, for any threshold number of pixels, please refer to [link to relevant documentation]. Figure 2 Based on the pixel count threshold, the corresponding dashed line parallel to the X-axis can be determined. Then, from right to left, the first intersection point with the dashed line is determined. The brightness value corresponding to the intersection point is the reference brightness value corresponding to the pixel count threshold.
[0060] S63, based on the reference brightness values corresponding to each of the multiple pixel quantity thresholds, and the preset mapping relationship between the brightness values and the backlight parameters, determine the target backlight parameters of the image to be displayed.
[0061] After obtaining the reference brightness values corresponding to each of the multiple pixel quantity thresholds, the terminal device determines the target reference brightness value of the image to be displayed based on these reference brightness values. Specifically, the terminal device can determine one of the reference brightness values corresponding to each of the multiple pixel quantity thresholds as the target reference brightness value, or it can perform weighted processing on the reference brightness values corresponding to each of the multiple pixel quantity thresholds to obtain the target reference brightness value, or it can determine the target reference brightness value based on the magnitude of each of the reference brightness values corresponding to each of the multiple pixel quantity thresholds. This application embodiment does not limit this approach.
[0062] After obtaining the target reference brightness value, the terminal device determines the target backlight parameters of the image to be displayed based on the target reference brightness value and the preset mapping relationship between the brightness value and the backlight parameters. The preset mapping relationship between the brightness value and the backlight parameters is usually determined based on the corresponding display panel, and it remains unchanged for the same display panel. The preset mapping relationship can be represented in, for example, as follows: Figure 3 The example lookup table illustrates the mapping relationship between brightness values and backlight parameters (PWM). Based on the lookup table, the target backlight parameter corresponding to the target reference brightness value can be found. The implementation method for generating the preset mapping relationship can be found in the relevant implementation method for generating lookup tables, which will not be elaborated here.
[0063] S64, adjust the backlight of the image to be displayed according to the target backlight parameters.
[0064] After determining the target backlight parameters, the terminal device can adjust the backlight of the image to be displayed based on the target backlight parameters. For example, taking the backlight parameter as PWM, if the target backlight parameter is PWM=850, then the process of the terminal device adjusting the backlight of the image to be displayed based on the target backlight parameter is that when the display panel of the terminal device displays the image to be displayed, the backlight parameter is adjusted to PWM=850.
[0065] The following section, with reference to the accompanying diagram, explains how to determine the target reference brightness value for the image to be displayed.
[0066] Specifically, the terminal device first determines the reference brightness value corresponding to the minimum pixel number threshold from the reference brightness values corresponding to the multiple pixel number thresholds. The minimum pixel number threshold is the minimum value among the multiple pixel number thresholds.
[0067] Let there be n pixel count thresholds, and let the n pixel count thresholds be ordered from smallest to largest as follows: , ,..., For the threshold number of the i-th pixel For (i=1,2,...,n), the corresponding reference brightness value is denoted as Then, among these n pixel count thresholds, the minimum pixel count threshold is: The reference brightness value corresponding to the minimum pixel count threshold is .
[0068] Then, determine the reference brightness value corresponding to the minimum pixel count threshold. The size between the first brightness threshold TH1 and the value between the two.
[0069] Reference brightness value corresponding to the minimum pixel count threshold If the value is less than or equal to the first brightness threshold TH1, the reference brightness value corresponding to the minimum number of pixels threshold is used. This value is determined as the target reference brightness value.
[0070] Reference brightness value corresponding to the minimum pixel count threshold When the brightness exceeds the first brightness threshold TH1, the terminal device determines the reference brightness difference between any two adjacent pixel quantity thresholds among the multiple pixel quantity thresholds sorted by size, based on the reference brightness values corresponding to each of the multiple pixel quantity thresholds. Taking the above-mentioned n pixel quantity thresholds arranged in ascending order as an example, the reference brightness difference between any two adjacent pixel quantity thresholds is the difference between the reference brightness values corresponding to these two pixel quantity thresholds. Taking the reference brightness difference between the i-th pixel count threshold and the (i-1)-th pixel count threshold as an example, then... The reference brightness values corresponding to each of the n pixel quantity thresholds can be used to obtain n-1 reference brightness differences.
[0071] After obtaining the reference brightness difference between the number of adjacent pixels in each pair of adjacent pixel thresholds, the target reference brightness value can be determined based on the reference brightness difference between the number of adjacent pixels in each pair of adjacent pixel thresholds. The following section combines... Figure 7 This process will be described.
[0072] Figure 7 This is a schematic diagram of the process for determining the target reference brightness value provided in an embodiment of this application, such as... Figure 7 As shown, it includes: S71, based on the reference brightness difference between two adjacent pixel number thresholds, determine the first candidate brightness value and the second candidate brightness value from the reference brightness values corresponding to each of the multiple pixel number thresholds.
[0073] The first candidate brightness value and the second candidate brightness value are two different candidate brightness values, and the target reference brightness value belongs to one of the first candidate brightness value and the second candidate brightness value.
[0074] In one possible implementation, the reference brightness value corresponding to the minimum pixel count threshold can be determined as the first candidate brightness value. Let the first candidate brightness value be... ,but , That is, the minimum number of pixels threshold. The corresponding reference brightness value.
[0075] Regarding the second candidate brightness value This needs to be determined based on the reference brightness difference between the number of adjacent pixels. Specifically, for n pixel number thresholds, n-1 reference brightness differences can be obtained, i.e. , ,..., ,..., .
[0076] The terminal device determines whether there is a target reference brightness difference greater than or equal to the second brightness threshold TH2 among these multiple reference brightness differences. If there is a target reference brightness difference greater than or equal to the second brightness threshold TH2 among the reference brightness differences between any two adjacent pixel number thresholds, the terminal device determines a second candidate brightness value from the reference brightness values corresponding to the target reference brightness difference.
[0077] The target reference brightness difference includes the reference brightness values corresponding to two adjacent pixel quantity thresholds, and the difference between these two adjacent pixel quantity threshold reference brightness values is the target reference brightness difference. Let any target reference brightness difference be the (i-1)th reference brightness difference. For example, the reference brightness value corresponding to the target reference brightness difference includes the threshold number of pixels at the (i-1)th position. Corresponding reference brightness value and the threshold for the number of the i-th pixel Corresponding reference brightness value The second candidate brightness value is or .
[0078] If multiple reference brightness differences are all greater than or equal to the second brightness threshold TH2, then any one of these multiple reference brightness differences can be determined as the target reference brightness difference.
[0079] In one possible implementation, if there are multiple reference brightness differences that are all greater than or equal to the second brightness threshold TH2, the maximum value among the multiple reference brightness differences that satisfy the condition of being greater than or equal to the second brightness threshold TH2 can be determined as the target reference brightness difference.
[0080] After determining the target reference brightness difference, a second candidate brightness value is determined from the reference brightness values corresponding to the target reference brightness difference. The reference brightness values corresponding to the target reference brightness difference include the reference brightness values corresponding to two adjacent pixel number thresholds, and the second candidate brightness value can be either of these two reference brightness values.
[0081] If there is no target reference brightness difference greater than or equal to the second brightness threshold TH2 among the reference brightness differences between any two adjacent pixel number thresholds, the terminal device will select the maximum pixel number threshold from among the multiple pixel number thresholds. Corresponding reference brightness value It was determined to be the second candidate brightness value, i.e. .
[0082] S72, determine the candidate brightness difference between the first candidate brightness value and the second candidate brightness value.
[0083] The candidate brightness difference between the first and second candidate brightness values is simply the difference between the first and second candidate brightness values. This difference is calculated by subtracting the first candidate brightness value from the second candidate brightness value. The candidate brightness difference is denoted as... .
[0084] S73, based on the candidate brightness difference, determine the target reference brightness value from the first candidate brightness value and the second candidate brightness value.
[0085] After obtaining the candidate brightness difference value Then, the candidate brightness difference values The target reference brightness value is determined by comparing it with the third brightness difference value TH3.
[0086] Specifically, in the candidate brightness difference If the first candidate brightness value is greater than or equal to the third brightness threshold TH3, then... The target reference brightness value was determined; among the candidate brightness differences... If the value is less than the third brightness threshold TH3, then the second candidate brightness value will be selected. This value is determined as the target reference brightness value.
[0087] The following is combined Figure 8 An example is given to illustrate the process of determining the target reference brightness value.
[0088] Figure 8 This is a schematic diagram of the process for determining the target reference brightness value provided in an embodiment of this application, such as... Figure 8 As shown, it includes: S801, determine the reference brightness value BL1 corresponding to R1.
[0089] R1 is the minimum pixel count threshold, and BL1 is the reference brightness value corresponding to the minimum pixel count threshold. Taking multiple pixel count thresholds including 5, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 2000, 3000, and 4000 as an example, then R1 is 5, and BL1 is the reference brightness value corresponding to the pixel count threshold of 5 in the image to be displayed. In the image to be displayed, the number of pixels included under multiple brightness values is greater than or equal to 5, and BL1 is the maximum value among these multiple brightness values.
[0090] S802, determine whether BL1>TH1 is satisfied. If yes, execute S803; otherwise, execute S813.
[0091] Determine whether the reference brightness value BL1 corresponding to the minimum pixel count threshold is greater than the first brightness threshold TH1. Different determination results correspond to different target reference brightness values.
[0092] S803, calculate Δ1~2, Δ2~3,..., Δ(n-1)~n.
[0093] Δ1~2, Δ2~3, ..., Δ(n-1)~n represent the reference brightness difference between two adjacent pixel number thresholds. For example, Δ1~2 represents the reference brightness difference between pixel number threshold 5 and pixel number threshold 100, Δ2~3 represents the reference brightness difference between pixel number threshold 100 and pixel number threshold 200, Δ(n-1)~n represents the reference brightness difference between pixel number threshold 3000 and pixel number threshold 4000, and so on.
[0094] S804: Determine if there exists a value greater than or equal to TH2 among Δ1~2, Δ2~3, ..., Δ(n-1)~n. If yes, execute S805; otherwise, execute S809.
[0095] S805, determine BLA=BL1, BLB=BLcurrent.
[0096] If there is a value greater than or equal to TH2 among Δ1~2, Δ2~3, ..., Δ(n-1)~n, then the first candidate brightness value BLA is determined as the reference brightness value BL1 corresponding to the minimum pixel count threshold, and the second candidate brightness value BLB is the reference brightness value corresponding to the target reference brightness difference. For example, if Δ2~3 is greater than or equal to TH2, then Δ2~3 is the target reference brightness difference, and its corresponding reference brightness values include BL2 and BL3, where BLcurrent is BL2.
[0097] S806, determine whether BLcurrent-BL1>=TH3 is satisfied. If yes, execute S807; otherwise, execute S808.
[0098] Determine whether the difference between the first candidate brightness value BL1 and the second candidate brightness value BLcurrent is greater than or equal to the third brightness threshold TH3, and determine the target reference brightness value based on the determination result.
[0099] S807, determine BL=BL1.
[0100] If the difference between the first candidate brightness value BL1 and the second candidate brightness value BLcurrent is greater than or equal to the third brightness threshold TH3, then the target reference brightness value BL is determined to be equal to the first candidate brightness value BL1.
[0101] S808, confirm BL=BLcurrent.
[0102] If the difference between the first candidate brightness value BL1 and the second candidate brightness value BLcurrent is less than the third brightness threshold TH3, then the target reference brightness value BL is determined to be equal to the second candidate brightness value BLcurrent.
[0103] S809, determine BLA=BL1, BLB=BLn.
[0104] If there is no value greater than or equal to TH2 among Δ1~2, Δ2~3, ..., Δ(n-1)~n, then the first candidate brightness value BLA is determined as the reference brightness value BL1 corresponding to the minimum pixel number threshold, and the second candidate brightness value BLB is determined as the reference brightness value BLn corresponding to the maximum pixel number threshold.
[0105] S810: Determine if BLn-BL1>=TH3 is satisfied. If yes, execute S811; otherwise, execute S812.
[0106] Determine whether the difference between the first candidate brightness value BL1 and the second candidate brightness value BLn is greater than or equal to the third brightness threshold TH3, and determine the target reference brightness value based on the determination result.
[0107] S811, determine BL=BL1.
[0108] If the difference between the first candidate brightness value BL1 and the second candidate brightness value BLn is greater than or equal to the third brightness threshold TH3, then the target reference brightness value BL is determined to be equal to the first candidate brightness value BL1.
[0109] S812, determine BL=BLn.
[0110] If the difference between the first candidate brightness value BL1 and the second candidate brightness value BLn is less than the third brightness threshold TH3, then the target reference brightness value BL is determined to be equal to the second candidate brightness value BLn.
[0111] S813, determine BL=BL1.
[0112] If the reference brightness value BL1 corresponding to the minimum pixel count threshold is less than or equal to the first brightness threshold TH1, then the target reference brightness value BL is determined to be equal to the first candidate brightness value BL1.
[0113] After obtaining the target reference brightness value, the target backlight parameters of the image to be displayed can be obtained according to the preset mapping relationship, such as the lookup table between the brightness value and PWM. The backlight of the image to be displayed can then be adjusted according to the target backlight parameters.
[0114] To prevent the overall image from becoming too dark, pixel compensation processing can be performed on the RGB channels of the image to be displayed. Based on the relationship between the backlight and the LCD (OC) panel, BL*OC=1, and the OC is adjusted accordingly based on the amount of BL decrease. For example, if the BL decreases to 83.1% (850 / 1023) of the original image, then the OC is increased by 1.2 times (100% / 83.1%), thus ensuring the display effect.
[0115] The backlight adjustment method provided in this application first determines the number of pixels in the image to be displayed at different brightness values based on the brightness values of each pixel. Then, based on the number of pixels at each brightness value, it determines a reference brightness value corresponding to each of a preset set of pixel number thresholds. For any pixel number threshold, the number of pixels in the image to be displayed whose brightness value is greater than or equal to the reference brightness value corresponding to that pixel number threshold is greater than or equal to that pixel number threshold. After determining the reference brightness values corresponding to each of the multiple pixel number thresholds, the target backlight parameters of the image to be displayed are determined based on the reference brightness values corresponding to each of the multiple pixel number thresholds and the preset mapping relationship between brightness values and backlight parameters. The backlight of the image to be displayed is then adjusted according to the target backlight parameters. This solution, for the image to be displayed, can obtain reference brightness values for multiple levels of different pixel number thresholds based on the brightness values of the pixels in the image to be displayed, thereby achieving adaptive backlight adjustment under multiple levels of pixel number thresholds. This achieves better energy saving and display effect while ensuring image quality.
[0116] The backlight adjustment device provided in this application is described below. The backlight adjustment device described below can be referred to in correspondence with the backlight adjustment method described above.
[0117] Figure 9 This is a schematic diagram of the backlight adjustment device provided in the embodiments of this application, as shown below. Figure 9 As shown, the device includes: The first determining module 91 is used to determine the number of pixels included under each brightness value in the image to be displayed based on the brightness value of each pixel in the image to be displayed. The second determining module 92 is used to determine the reference brightness value corresponding to each of the preset multiple pixel number thresholds based on the number of pixels included under each brightness value. For any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is the brightness value where the number of pixels in the image to be displayed is greater than the pixel number threshold. Processing module 93 is used to determine the target backlight parameters of the image to be displayed based on the reference brightness values corresponding to the plurality of pixel number thresholds and the preset mapping relationship between the brightness values and backlight parameters. The adjustment module 94 is used to adjust the backlight of the image to be displayed according to the target backlight parameters.
[0118] In one possible implementation, the processing module 93 is specifically used for: The target reference brightness value of the image to be displayed is determined based on the reference brightness values corresponding to the multiple pixel number thresholds. The target backlight parameters are determined based on the target reference brightness value and the preset mapping relationship.
[0119] In one possible implementation, the processing module 93 is specifically used for: Among the reference brightness values corresponding to the plurality of pixel number thresholds, determine the reference brightness value corresponding to the minimum pixel number threshold; If the reference brightness value corresponding to the minimum pixel number threshold is less than or equal to the first brightness threshold, the reference brightness value corresponding to the minimum pixel number threshold shall be determined as the target reference brightness value. If the reference brightness value corresponding to the minimum pixel number threshold is greater than the first brightness threshold, the reference brightness difference between two adjacent pixel number thresholds among the multiple pixel number thresholds sorted by size is determined according to the reference brightness values corresponding to each of the multiple pixel number thresholds; the target reference brightness value is determined according to the reference brightness difference between two adjacent pixel number thresholds.
[0120] In one possible implementation, the processing module 93 is specifically used for: Based on the reference brightness difference between the two adjacent pixel number thresholds, a first candidate brightness value and a second candidate brightness value are determined from the reference brightness values corresponding to each of the plurality of pixel number thresholds. Determine the candidate brightness difference between the first candidate brightness value and the second candidate brightness value; Based on the candidate brightness difference, the target reference brightness value is determined from the first candidate brightness value and the second candidate brightness value.
[0121] In one possible implementation, the processing module 93 is specifically used for: The reference brightness value corresponding to the minimum pixel count threshold is determined as the first candidate brightness value; Determine whether there exists a target reference brightness difference greater than or equal to the second brightness threshold among the reference brightness differences between the number of adjacent pixels in each pair; If the target reference brightness difference exists among the reference brightness differences between the number of adjacent pixels in each pair, the second candidate brightness value is determined from the reference brightness values corresponding to the target reference brightness difference. If the target reference brightness difference does not exist among the reference brightness differences between any two adjacent pixel number thresholds, the reference brightness value corresponding to the maximum pixel number threshold among the plurality of pixel number thresholds is determined as the second candidate brightness value.
[0122] In one possible implementation, the processing module 93 is specifically used for: If the candidate brightness difference is greater than or equal to the third brightness threshold, the first candidate brightness value is determined as the target reference brightness value; If the difference between the candidate brightness values is less than the third brightness threshold, the second candidate brightness value is determined as the target reference brightness value.
[0123] In one possible implementation, the second determining module 92 is specifically used for: For any pixel count threshold, based on the number of pixels included under each brightness value, determine at least one brightness value in which the number of corresponding pixels is greater than or equal to the pixel count threshold. The maximum value among the at least one brightness value is determined as the reference brightness value corresponding to the pixel number threshold.
[0124] Figure 10 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 10 As shown, the electronic device may include a processor 1010, a communications interface 1020, a memory 1030, and a communication bus 1040, wherein the processor 1010, the communications interface 1020, and the memory 1030 communicate with each other via the communication bus 1040. The processor 1010 can call logical instructions in the memory 1030 to execute a backlight adjustment method. This method includes: determining the number of pixels included at each brightness value in the image to be displayed based on the brightness value of each pixel in the image to be displayed; determining a reference brightness value corresponding to each of a plurality of preset pixel number thresholds based on the number of pixels included at each brightness value, wherein, for any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is a brightness value where the number of pixels in the image to be displayed is greater than the pixel number threshold; determining a target backlight parameter for the image to be displayed based on the reference brightness values corresponding to the plurality of pixel number thresholds and a preset mapping relationship between brightness values and backlight parameters; and adjusting the backlight of the image to be displayed based on the target backlight parameter.
[0125] Furthermore, the logical instructions in the aforementioned memory 1030 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0126] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the backlight adjustment method provided in the above embodiments. The method includes: determining the number of pixels included under each brightness value in the image to be displayed based on the brightness value of each pixel in the image to be displayed; determining a reference brightness value corresponding to each of a plurality of preset pixel number thresholds based on the number of pixels included under each brightness value, wherein, for any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is a brightness value in the image to be displayed where the number of pixels is greater than the pixel number threshold; determining a target backlight parameter of the image to be displayed based on the reference brightness values corresponding to the plurality of pixel number thresholds and a preset mapping relationship between brightness values and backlight parameters; and adjusting the backlight of the image to be displayed based on the target backlight parameter.
[0127] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the backlight adjustment method provided in the above embodiments. The method includes: determining the number of pixels included at each brightness value in the image to be displayed based on the brightness value of each pixel in the image to be displayed; determining a reference brightness value corresponding to each of a plurality of preset pixel number thresholds based on the number of pixels included at each brightness value, wherein, for any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is a brightness value where the number of pixels in the image to be displayed is greater than the pixel number threshold; determining a target backlight parameter of the image to be displayed based on the reference brightness values corresponding to the plurality of pixel number thresholds and a preset mapping relationship between brightness values and backlight parameters; and adjusting the backlight of the image to be displayed based on the target backlight parameter.
[0128] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0129] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A backlight adjustment method, characterized in that, The method includes: Based on the brightness value of each pixel in the image to be displayed, determine the number of pixels included under each brightness value in the image to be displayed; Based on the number of pixels included under each brightness value, a reference brightness value corresponding to each of the preset multiple pixel number thresholds is determined. For any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is the brightness value when the number of pixels in the image to be displayed is greater than the pixel number threshold. The target reference brightness value of the image to be displayed is determined based on the reference brightness values corresponding to the multiple pixel number thresholds. The target backlight parameters of the image to be displayed are determined based on the target reference brightness value and the preset mapping relationship. Adjust the backlight of the image to be displayed according to the target backlight parameters; Determining the target reference brightness value of the image to be displayed based on the reference brightness values corresponding to each of the plurality of pixel quantity thresholds includes: Among the reference brightness values corresponding to the plurality of pixel number thresholds, determine the reference brightness value corresponding to the minimum pixel number threshold; If the reference brightness value corresponding to the minimum pixel number threshold is less than or equal to the first brightness threshold, the reference brightness value corresponding to the minimum pixel number threshold shall be determined as the target reference brightness value. If the reference brightness value corresponding to the minimum pixel number threshold is greater than the first brightness threshold, the reference brightness difference between two adjacent pixel number thresholds among the multiple pixel number thresholds sorted by size is determined according to the reference brightness values corresponding to each of the multiple pixel number thresholds; the target reference brightness value is determined according to the reference brightness difference between two adjacent pixel number thresholds.
2. The method according to claim 1, characterized in that, Determining the target reference brightness value based on the reference brightness difference between two adjacent pixel number thresholds includes: Based on the reference brightness difference between the two adjacent pixel number thresholds, a first candidate brightness value and a second candidate brightness value are determined from the reference brightness values corresponding to each of the plurality of pixel number thresholds. Determine the candidate brightness difference between the first candidate brightness value and the second candidate brightness value; Based on the candidate brightness difference, the target reference brightness value is determined from the first candidate brightness value and the second candidate brightness value.
3. The method according to claim 2, characterized in that, The step of determining a first candidate brightness value and a second candidate brightness value from the reference brightness values corresponding to each of the plurality of pixel number thresholds based on the reference brightness difference between the two adjacent pixel number thresholds includes: The reference brightness value corresponding to the minimum pixel count threshold is determined as the first candidate brightness value; Determine whether there exists a target reference brightness difference greater than or equal to the second brightness threshold among the reference brightness differences between the number of adjacent pixels in each pair; If the target reference brightness difference exists among the reference brightness differences between the number of adjacent pixels in each pair, the second candidate brightness value is determined from the reference brightness values corresponding to the target reference brightness difference. If the target reference brightness difference does not exist among the reference brightness differences between any two adjacent pixel number thresholds, the reference brightness value corresponding to the maximum pixel number threshold among the plurality of pixel number thresholds is determined as the second candidate brightness value.
4. The method according to claim 2 or 3, characterized in that, The step of determining the target reference brightness value from the first candidate brightness value and the second candidate brightness value based on the candidate brightness difference includes: If the candidate brightness difference is greater than or equal to the third brightness threshold, the first candidate brightness value is determined as the target reference brightness value; If the difference between the candidate brightness values is less than the third brightness threshold, the second candidate brightness value is determined as the target reference brightness value.
5. The method according to any one of claims 1-3, characterized in that, The step of determining the reference brightness value corresponding to each of the preset multiple pixel number thresholds based on the number of pixels included in each brightness value includes: For any pixel count threshold, based on the number of pixels included under each brightness value, determine at least one brightness value in which the number of corresponding pixels is greater than or equal to the pixel count threshold. The maximum value among the at least one brightness value is determined as the reference brightness value corresponding to the pixel number threshold.
6. A backlight adjustment device, characterized in that, The device includes: The first determining module is used to determine the number of pixels included under each brightness value in the image to be displayed based on the brightness value of each pixel in the image to be displayed; The second determining module is used to determine the reference brightness value corresponding to each of the preset multiple pixel number thresholds based on the number of pixels included under each brightness value. For any pixel number threshold, the reference brightness value corresponding to the pixel number threshold is the brightness value where the number of pixels in the image to be displayed is greater than the pixel number threshold. The processing module is used to determine the target reference brightness value of the image to be displayed based on the reference brightness values corresponding to the plurality of pixel quantity thresholds; and to determine the target backlight parameters of the image to be displayed based on the target reference brightness value and a preset mapping relationship. An adjustment module is used to adjust the backlight of the image to be displayed according to the target backlight parameters; The processing module is further configured to: determine the reference brightness value corresponding to the minimum pixel number threshold among the reference brightness values corresponding to the plurality of pixel number thresholds; if the reference brightness value corresponding to the minimum pixel number threshold is less than or equal to the first brightness threshold, determine the reference brightness value corresponding to the minimum pixel number threshold as the target reference brightness value; if the reference brightness value corresponding to the minimum pixel number threshold is greater than the first brightness threshold, determine the reference brightness difference between pairs of adjacent pixel number thresholds among the plurality of pixel number thresholds sorted by size according to the reference brightness values corresponding to the plurality of pixel number thresholds; and determine the target reference brightness value according to the reference brightness difference between pairs of adjacent pixel number thresholds.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the backlight adjustment method as described in any one of claims 1-5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the backlight adjustment method as described in any one of claims 1-5.