Brightness control method of OLED display and data processing method thereof
By acquiring brightness values from OLED displays and setting brightness ranges and correction coefficients, a mapping relationship is established, and brightness is dynamically adjusted, solving the problem of high energy consumption in OLED displays and achieving energy saving and optimization of visual effects.
Patent Information
- Application Number
- CN202410791982.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2044-06-18
AI Technical Summary
OLED displays consume a lot of energy, which reduces the lifespan of electronic devices. How can we reduce power consumption while maintaining display quality?
By acquiring the current brightness value of the target pixel in the displayed image of the OLED display, setting a brightness threshold based on brightness statistics to divide the brightness range, determining the correction coefficient, establishing a mapping relationship between the current brightness value and the target brightness value, and dynamically adjusting the brightness to optimize the display effect.
It ensures balanced screen brightness and improves visual quality while saving energy, without requiring hardware modifications, and is low-cost and easy to implement.
Smart Images

Figure CN118762646B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of image processing and display driving technology, and in particular to a brightness control method for an OLED display and its data processing method, system, electronic device, storage medium, program product, chip, and chip module. Background Technology
[0002] In the current consumer electronics market, OLED (Organic Light-Emitting Diode) display technology has become widely adopted as a next-generation display technology. However, due to the high brightness characteristic of OLED displays, their power consumption is significantly higher than that of traditional LCD (Liquid Crystal Display) displays in certain scenarios. Therefore, how to reduce power consumption and extend the lifespan of electronic devices while maintaining the original display effect is a challenge facing OLED technology. Summary of the Invention
[0003] The technical problem to be solved by this disclosure is to overcome the high energy consumption of OLEDs in the prior art, and to provide a brightness control method for OLED displays and its data processing method, system, electronic device, storage medium, program product, chip, and chip module.
[0004] This disclosure solves the above-mentioned technical problems through the following technical solution:
[0005] This disclosure provides a data processing method for brightness control of an OLED display, the data processing method comprising:
[0006] Obtain the current brightness value of the target pixel in the displayed image of the OLED display;
[0007] Obtain brightness statistics based on the current brightness value;
[0008] A brightness threshold is set based on the brightness statistics; the brightness threshold is used to divide the current brightness value of the target pixel into several brightness intervals.
[0009] Determine the correction factor for each of the brightness ranges;
[0010] The target mapping relationship between the current brightness value and the target brightness value is determined based on the correction coefficient; the target mapping relationship characterizes the mapping relationship between the current brightness value and the target brightness value in different brightness ranges.
[0011] Optionally, setting the brightness threshold based on the brightness statistics includes setting a plurality of the current brightness values as the brightness threshold.
[0012] Optionally, setting the brightness threshold based on the brightness statistics includes:
[0013] The current brightness values are arranged in order of magnitude, and the brightness difference between each two adjacent current brightness values is calculated sequentially.
[0014] In response to the brightness difference being less than or equal to the difference threshold, each current brightness value is set as the brightness threshold;
[0015] And / or,
[0016] In response to the brightness difference being greater than the difference threshold, the two current brightness values corresponding to the maximum value of the brightness difference are set as the brightness threshold.
[0017] Optionally, determining the correction coefficient for each of the brightness ranges includes:
[0018] Obtain several sampled brightness values within each brightness range;
[0019] Based on a first preset mapping relationship, a first correction coefficient is determined for each sampled brightness value; the first preset mapping relationship is the mapping relationship between the sampled brightness value and the first correction coefficient, and the sampled brightness value and the first correction coefficient are negatively correlated.
[0020] The correction factor for each of the brightness ranges is determined based on all of the first correction factors.
[0021] Optionally, determining the correction coefficient for each of the brightness ranges includes:
[0022] Determine the average or maximum brightness value of the current brightness value;
[0023] Based on the second preset mapping relationship, the correction coefficient of the brightness range corresponding to the average brightness value or the maximum brightness value is determined as the upper limit correction coefficient;
[0024] The correction coefficient for each brightness interval is determined based on the upper limit correction coefficient; wherein all the correction coefficients do not exceed the upper limit correction coefficient, and the brightness threshold corresponding to each brightness interval is negatively correlated with the correction coefficient.
[0025] Optionally, obtaining the current brightness value of the target pixel in the displayed image of the OLED display includes:
[0026] Obtain the brightness histogram of the displayed image;
[0027] The current brightness value is extracted based on the brightness histogram.
[0028] This disclosure also provides a brightness control method for an OLED display, the brightness control method comprising:
[0029] Obtain the current brightness value of the target pixel in the displayed image of the OLED display;
[0030] The target brightness value is determined based on the current brightness value and the target mapping relationship; the target mapping relationship is obtained according to the data processing method described in any one of the above statements.
[0031] The current brightness value of the target pixel is updated based on the target brightness value.
[0032] Optionally, determining the target brightness value based on the current brightness value and the target mapping relationship includes:
[0033] Determine the target brightness range in which the current brightness value lies;
[0034] The target brightness value is calculated based on the target mapping relationship corresponding to the target brightness range.
[0035] This disclosure also provides a data processing system for brightness control of an OLED display, the data processing system comprising:
[0036] The first acquisition module is used to acquire the current brightness value of the target pixel in the displayed image of the OLED display;
[0037] The second acquisition module is used to acquire brightness statistics information based on the current brightness value;
[0038] A threshold setting module is used to set a brightness threshold based on the brightness statistics information; the brightness threshold is used to divide the current brightness value of the target pixel into several brightness intervals.
[0039] The first determining module is used to determine the correction coefficient for each of the brightness ranges;
[0040] The second determining module is used to determine the target mapping relationship between the current brightness value and the target brightness value according to the correction coefficient; the target mapping relationship represents the mapping relationship between the current brightness value and the target brightness value in different brightness intervals.
[0041] Optionally, the threshold setting module is specifically used to: set a plurality of the current brightness values as the brightness threshold.
[0042] Optionally, the threshold setting module is specifically used for:
[0043] The current brightness values are arranged in order of magnitude, and the brightness difference between each two adjacent current brightness values is calculated sequentially.
[0044] In response to the brightness difference being less than or equal to the difference threshold, each current brightness value is set as the brightness threshold;
[0045] And / or,
[0046] In response to the brightness difference being greater than the difference threshold, the two current brightness values corresponding to the maximum value of the brightness difference are set as the brightness threshold.
[0047] Optionally, the first determining module is specifically used for:
[0048] Obtain several sampled brightness values within each brightness range;
[0049] Based on a first preset mapping relationship, a first correction coefficient is determined for each sampled brightness value; the first preset mapping relationship is the mapping relationship between the sampled brightness value and the first correction coefficient, and the sampled brightness value and the first correction coefficient are negatively correlated.
[0050] The correction factor for each of the brightness ranges is determined based on all of the first correction factors.
[0051] Optionally, the first determining module is specifically used for:
[0052] Determine the average or maximum brightness value of the current brightness value;
[0053] Based on the second preset mapping relationship, the correction coefficient of the brightness range corresponding to the average brightness value or the maximum brightness value is determined as the upper limit correction coefficient;
[0054] The correction coefficient for each brightness interval is determined based on the upper limit correction coefficient; wherein all the correction coefficients do not exceed the upper limit correction coefficient, and the brightness threshold corresponding to each brightness interval is negatively correlated with the correction coefficient.
[0055] Optionally, the first acquisition module is specifically used for:
[0056] Obtain the brightness histogram of the displayed image;
[0057] The current brightness value is extracted based on the brightness histogram.
[0058] This disclosure also provides a brightness control system for an OLED display, the brightness control system comprising:
[0059] A brightness acquisition module is used to acquire the current brightness value of a target pixel in the displayed image of the OLED display;
[0060] A brightness determination module is used to determine a target brightness value based on the current brightness value and a target mapping relationship; the target mapping relationship is obtained according to the data processing method described in any one of the above statements.
[0061] A brightness update module is used to update the current brightness value of the target pixel based on the target brightness value.
[0062] Optionally, the brightness determination module is specifically used for:
[0063] Determine the target brightness range in which the current brightness value lies;
[0064] The target brightness value is calculated based on the target mapping relationship corresponding to the target brightness range.
[0065] This disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and for running on the processor, wherein the processor executes the computer program to implement a data processing method for brightness control of an OLED display as described above, or to implement a brightness control method for an OLED display as described above.
[0066] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements a data processing method for brightness control of an OLED display as described above, or implements a brightness control method for an OLED display as described above.
[0067] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements a data processing method for brightness control of an OLED display as described above, or implements a brightness control method for an OLED display as described above.
[0068] This disclosure also provides a chip storing a computer program, which, when executed by the chip, implements either the data processing method for brightness control of the OLED display described in any one of the above descriptions, or the brightness control method for the OLED display described in any one of the above descriptions.
[0069] This disclosure also provides a chip module for use in an electronic device, including a transceiver component and a chip, wherein the chip is used to implement the data processing method for brightness control of the OLED display as described above, or to implement the brightness control method for the OLED display as described above.
[0070] Based on common knowledge in the field, the above-mentioned preferred conditions can be combined arbitrarily to obtain various preferred embodiments of this disclosure.
[0071] The positive improvements of this disclosure are as follows: By displaying the brightness statistics of the current brightness value of the target pixel in the image, a correction coefficient is determined for each brightness interval divided by a brightness threshold, and the target mapping relationship between the current brightness value and the target brightness value is determined based on the correction coefficient. This allows for dynamic adjustment of brightness according to different brightness requirements, thereby providing the best visual effect in different display scenarios. It acquires the current brightness value of the target pixel in the displayed image of the OLED display, and determines the target brightness value based on the current brightness value and the target mapping relationship to update the current brightness value of the target pixel. This achieves a gain effect on different current brightness values, ensuring overall brightness balance of the image while saving energy and guaranteeing the visual quality of the image. Furthermore, this disclosure does not require hardware modifications, making it easier to implement and less costly. Attached Figure Description
[0072] Figure 1 A flowchart illustrating a data processing method for brightness control of an OLED display, provided as an exemplary embodiment of this disclosure;
[0073] Figure 2 A flowchart of step 101 provided for an exemplary embodiment of this disclosure;
[0074] Figure 3 Another flowchart of step 103 provided for an exemplary embodiment of this disclosure;
[0075] Figure 4 A schematic diagram illustrating the mapping relationship between brightness ranges and correction coefficients provided in an exemplary embodiment of this disclosure;
[0076] Figure 5 A flowchart of step 104 provided for an exemplary embodiment of this disclosure;
[0077] Figure 6 A schematic diagram of a first preset mapping relationship provided for an exemplary embodiment of this disclosure;
[0078] Figure 7 Another flowchart of step 104 provided for an exemplary embodiment of this disclosure;
[0079] Figure 8 A schematic diagram of a second preset mapping relationship provided for an exemplary embodiment of this disclosure;
[0080] Figure 9 A schematic diagram of a target mapping relationship provided for an exemplary embodiment of this disclosure;
[0081] Figure 10 A flowchart illustrating an exemplary embodiment of this disclosure of a brightness control method for an OLED display;
[0082] Figure 11 A flowchart of step 202 provided for an exemplary embodiment of this disclosure;
[0083] Figure 12 A schematic diagram of a data processing system for brightness control of an OLED display provided as an exemplary embodiment of this disclosure;
[0084] Figure 13 A schematic diagram of a brightness control system for an OLED display provided as an exemplary embodiment of this disclosure;
[0085] Figure 14 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of the present disclosure. Detailed Implementation
[0086] The present disclosure is further illustrated below by way of embodiments, but the present disclosure is not limited to the scope of the embodiments described herein.
[0087] The prefixes such as "first" and "second" used in this disclosure are merely for distinguishing different descriptive objects and do not limit the position, order, priority, quantity, or content of the described objects. The use of ordinal numbers and other prefixes used to distinguish descriptive objects in this disclosure does not constitute a limitation on the described objects. The description of the described objects is given in the claims or the context of the embodiments, and should not be construed as an unnecessary limitation. Furthermore, in the description of this embodiment, unless otherwise stated, "multiple" means two or more.
[0088] Example 1
[0089] Figure 1 A flowchart illustrating a data processing method for brightness control of an OLED display, provided as an exemplary embodiment of this disclosure, is included. The data processing method comprises:
[0090] Step 101: Obtain the current brightness value of the target pixel in the displayed image of the OLED display.
[0091] This step provides the necessary input data for subsequent brightness adjustments, enabling the entire brightness control system to effectively optimize and adjust brightness based on an accurate understanding of the current brightness status.
[0092] Optionally, Figure 2 A flowchart of step 101 provided for an exemplary embodiment of this disclosure; as shown in the figure, step 101 specifically includes:
[0093] Step 1011: Obtain the brightness histogram of the displayed image.
[0094] In this step, the first step is to capture the current display image from the OLED display. For example, data can be read from the Frame Buffer using a screenshot thread and saved as a screenshot. Since the Frame Buffer provides an interface to abstract the display device as a frame buffer, the composite display frame can be written to the Frame Buffer and displayed on the screen. By reading data from the Frame Buffer, a screenshot of the current display can be taken. The histogram information of the V channel of the current image is calculated to generate a luminance histogram. In practical applications, obtaining all pixel values of an image is computationally expensive, so usually only the luminance histogram is obtained for image-related calculations. Therefore, if the luminance and chrominance information of the input image are mixed together, they need to be separated. The specific separation method is not limited in this paper. For example, it can be converted to common YUV or HSV format images. This disclosure does not limit the number of histogram bins, but to ensure that the calculated image information is accurate enough, the number of bins should not be too small.
[0095] Step 1012: Extract the current brightness value based on the brightness histogram.
[0096] After obtaining the histogram, the next step is to calculate the current brightness value of the current image based on the histogram. First, as described in step 1011, a brightness histogram is generated by calculating the brightness value of each pixel. This histogram represents the distribution of the number of pixels at each brightness level in the image. The generated brightness histogram is analyzed to determine the overall brightness trend of the image. This can be done by finding the peak, average, or other statistical measures in the histogram. Based on the analysis results of the brightness histogram, the current brightness value representing the current image brightness is extracted. This current brightness value can be the peak (the most common brightness value), average (average brightness level), or median (the middle brightness value) in the histogram; the specific method chosen depends on the application scenario and the required accuracy.
[0097] Step 102: Obtain brightness statistics based on the current brightness value.
[0098] In this step, brightness statistics include, but are not limited to, the cumulative brightness histogram of the current image, maximum brightness (max), and average brightness (ave). For example, the brightness values pxl_a1, pxl_a2, pxl_a3, ..., pxl_an correspond to the percentages of cumulative histogram pixels relative to the total number of pixels in the image, respectively. The differences between these percentage brightness values are calculated as diff_a2_a1, diff_a3_a2, ..., diff_max_an. Here, diff_a2_a1 = pxl_a2 – pxl_a1, and so on. The relationship between the pixel percentages a1%, a2%, a3%, ..., an% must satisfy 100% ≥ an > an-1 ... > a3 > a2 > a1 ≥ 0%.
[0099] Step 103: Set a brightness threshold based on brightness statistics; the brightness threshold is used to divide the current brightness value of the target pixel into several brightness intervals.
[0100] The purpose of this step is to define the threshold for the brightness range in order to perform subsequent brightness adjustments. Optionally, step 103 specifically includes:
[0101] Step 1031: Set several current brightness values as brightness thresholds.
[0102] This step directly sets several selected current brightness values as brightness thresholds. Regarding the selection of current brightness values, optionally, a series of representative current brightness values can be selected based on the brightness statistics obtained in step 102; alternatively, all current brightness values can be selected. These selected current brightness values are directly set as brightness thresholds for subsequent division of brightness intervals. For example, if the selected brightness values are 90 and 120, these two values can be selected as brightness thresholds to divide the area into three brightness intervals: "below 90," "90 to 120," and "above 120." Alternatively, the average or median of the current brightness values can be used as brightness thresholds. For example, if the average brightness value is 120 and the median is 115, these two values can be selected as brightness thresholds to divide the area into three brightness intervals: "below 115," "115 to 120," and "above 120." It should be understood that the above example only divides the area into three brightness intervals; in practical applications, the number of selected current brightness values can be increased to increase the number of brightness intervals. This method of directly using actual brightness values as brightness thresholds is easy to understand and implement, requiring no complex calculations or algorithms.
[0103] Optionally, Figure 3 Another flowchart of step 103 provided for an exemplary embodiment of this disclosure; as shown in the figure, step 103 specifically includes:
[0104] Step 1032: Arrange the current brightness values in order of size, and calculate the brightness difference between each pair of adjacent current brightness values in turn.
[0105] For example, suppose we have the following current brightness values: 50, 80, 60, 130, 100. First, sort these brightness values in ascending order, resulting in 50, 60, 80, 100, 130. Then, calculate the brightness difference between each pair of adjacent brightness values, obtaining 10, 20, 20, 30. It should be understood that the brightness difference calculation in this step applies to two adjacent current brightness values; however, the brightness difference between any two current brightness values can be calculated as needed.
[0106] Step 1033: In response to a brightness difference value being less than or equal to a difference threshold, set each current brightness value as a brightness threshold.
[0107] Based on the example in step 1032, assume the difference threshold is 30. Since all brightness differences are less than or equal to 30, 50, 60, 80, 100, and 130 are set as brightness thresholds, thus forming 6 brightness ranges.
[0108] And / or,
[0109] Step 1034: In response to the brightness difference being greater than the difference threshold, the two current brightness values corresponding to the maximum value of the brightness difference are set as the brightness threshold.
[0110] Based on the example in step 1032, assume the difference threshold is 10. Since the brightness differences are 10, 20, 20, and 30, three of these differences are greater than 10. Furthermore, the two current brightness values corresponding to the maximum brightness difference of 30 are 100 and 130. Therefore, 100 and 130 are set as the brightness thresholds. It should be understood that this step determines two brightness thresholds, thus dividing the current brightness value into two brightness intervals.
[0111] Based on steps 101 to 103 above, a specific example is given below: After obtaining the histogram, the brightness statistics of the current image are calculated based on the histogram. The brightness statistics include, but are not limited to, the cumulative brightness histogram of the current image, the maximum brightness (max), the average brightness (ave), and the brightness values pxl_a1, pxl_a2, pxl_a3…pxl_an corresponding to the cumulative histogram pixels as a1%, a2%, a3%…an% of the total number of pixels in the image. The brightness differences between different percentage brightness values are then calculated as diff_a2_a1, diff_a3_a2…diff_max_an. Where diff_a2_a1 = pxl_a2 – pxl_a1, and so on. The relationship between the pixel percentages a1%, a2%, a3%…an% must satisfy 100% ≥ an% > an-1%… > a3% > a2% > a1% ≥ 0%. First, the brightness differences between the percentages of pixels with different brightness values need to be calculated based on the cumulative histogram: diff_a2_a1, diff_a3_a2, ..., diff_max_an. Then, the maximum value among these brightness differences, max_diff, needs to be found. Finally, the brightness threshold can be determined based on the following four scenarios:
[0112] Case 1: If max_diff is less than the set threshold thr_diff, it indicates that the image contrast is low. In this case, set pxl_a1, pxl_a2, pxl_a3…pxl_an as the brightness threshold. The values of pxl_a1, pxl_a2, pxl_a3…pxl_an must satisfy the following condition: 0 ≤ pxl_a1 ≤ pxl_a2 ≤ … ≤ pxl_an ≤ 255.
[0113] Case 2: If max_diff equals diff_a2_a1 and is greater than thr_diff, it means that the image contrast is high, but the overall brightness of the image is low. In this case, set one brightness threshold thr1 to pxl_a1 and the other brightness threshold thr2 to pxl_a2.
[0114] Case 3: If max_diff equals diff_a3_a2 and is greater than thr_diff, it indicates that the image contrast is high and the overall brightness of the image is too high. In this case, set one brightness threshold thr1 to pxl_a2 and the other brightness threshold thr2 to pxl_a3.
[0115] Case 4: If max_diff equals diff_max_an, it indicates that the image's brightness histogram has obvious trailing, and the image contrast is low. In this case, set one brightness threshold thr1 to pxl_an and the other brightness threshold thr2 to the maximum brightness pxl_max.
[0116] The above four scenarios are merely illustrative examples, and the embodiments disclosed herein are not limited to these four. The reason for using these four brightness threshold settings is to distinguish between low-brightness, medium-brightness, and high-brightness areas of the image. For example, if max_diff equals diff_a3_a2, it means that the difference between the brightness value pxl_a3, which accounts for a3% of the total number of image pixels, and the brightness value pxl_a2, which accounts for a2% of the total number of image pixels, is the largest. Therefore, brightness values less than pxl_a2 are considered low-brightness areas, brightness values greater than pxl_a2 and less than pxl_a3 are considered medium-brightness areas, and brightness values greater than pxl_a3 are considered high-brightness areas. It should be understood that the value of thr_diff is not limited herein and needs to be manually set based on experience.
[0117] Step 104: Determine the correction factor for each brightness range.
[0118] This step, based on the brightness threshold determined in step 103, divides the brightness into several intervals and assigns a correction coefficient to each interval. Optionally, Figure 4 This is a schematic diagram illustrating the mapping relationship between brightness ranges and correction coefficients provided in an exemplary embodiment of this disclosure. As shown in the diagram, thresholds thr1 and thr2 divide the brightness range into three brightness ranges, and the correction coefficients corresponding to these three brightness ranges from left to right are gain1, gain2, and gain3, respectively. Optionally, Figure 5 A flowchart of step 104 provided for an exemplary embodiment of this disclosure; as shown in the figure, step 104 specifically includes:
[0119] Step 1041: Obtain several sampled brightness values within each brightness range.
[0120] In this step, sample brightness values are selected within each defined brightness interval to provide data for subsequent calculation of the correction coefficient. Assuming the brightness thresholds of 100 and 130 have been set as in step 103, the current brightness is divided into three brightness intervals: 0 to 100, 100 to 130, and 130 to 255. First, several sample brightness values are selected within each brightness interval. These sample brightness values can be any value taken from the brightness interval and / or the current brightness value existing within the brightness interval. For example, in the interval [0, 100), 50 and 60 can be selected as sample brightness values; in the interval [100, 130), 110 and 120 can be selected as sample brightness values; and in the interval [130, 255), 150 and 240 can be selected as sample brightness values. Then, these sample brightness values are recorded for subsequent calculation of the correction coefficient. In this example, the obtained sample brightness values are: 50, 60, 110, 120, 150, and 240.
[0121] It should be understood that the selection of sampled brightness values can be based on randomness or on certain selection rules, and the number of sampled brightness values selected for each brightness range can also be adjusted according to the actual situation.
[0122] Step 1042: Determine the first correction coefficient corresponding to each sampled brightness value according to the first preset mapping relationship; the first preset mapping relationship is the mapping relationship between the sampled brightness value and the first correction coefficient, and the sampled brightness value and the first correction coefficient are negatively correlated.
[0123] In this step, a first correction coefficient is determined for each sampled brightness value according to a first preset mapping relationship. The first preset mapping relationship is the mapping relationship between the sampled brightness value and the first correction coefficient, and the sampled brightness value and the first correction coefficient are negatively correlated. Optionally, Figure 6 This is a schematic diagram of a first preset mapping relationship provided in an exemplary embodiment of the present disclosure, wherein each first correction coefficient corresponds to a sampling brightness range. If the sampling brightness value falls within any sampling brightness range, a unique first correction coefficient can be determined. Therefore, based on the example of step 1041, when the sampling brightness values are 50, 60, 110, 120, 150, and 240, the corresponding six first correction coefficients are 0.93, 0.9, 0.85, 0.82, 0.79, and 0.62, respectively.
[0124] Step 1043: Determine the correction factor for each brightness range based on all the first correction factors.
[0125] In this step, the correction coefficient for each brightness interval is calculated based on the first correction coefficient obtained in step 1042. For example, the first correction coefficient corresponding to each brightness interval can be determined separately. For example, in the example of step 1042, the first correction coefficients corresponding to the sampled brightness values in the interval [0, 100) are 0.93 and 0.9, respectively; the first correction coefficients corresponding to the sampled brightness values in the interval [100, 130) are 0.85 and 0.82, respectively; and the first correction coefficients corresponding to the sampled brightness values in the interval [130, 255) are 0.79 and 0.62, respectively. For the first correction coefficients corresponding to the above brightness intervals, any one of the values can be randomly selected as the correction coefficient, or the average value of these first correction coefficients can be taken as the correction coefficient. For example, if we set the average of these first correction coefficients as the correction coefficient, then the correction coefficients in the brightness ranges [0, 100), [100, 130), and [130, 255) are 0.915, 0.835, and 0.705, respectively.
[0126] Optionally, Figure 7 Another flowchart of step 104 provided for an exemplary embodiment of this disclosure; as shown in the figure, step 104 specifically includes:
[0127] Step 1044: Determine the average or maximum brightness value of the current brightness value.
[0128] Assuming the current brightness values are 50, 60, 80, 100, and 130, the average brightness value is 84 and the maximum brightness value is 130.
[0129] Step 1045: Based on the second preset mapping relationship, determine the correction coefficient of the brightness range corresponding to the average brightness value or the maximum brightness value as the upper limit correction coefficient.
[0130] In this step, based on the second preset mapping relationship, a correction coefficient for the brightness range corresponding to the average or maximum brightness value is determined as the upper limit correction coefficient. Optionally, Figure 8 This is a schematic diagram of a second preset mapping relationship provided in an exemplary embodiment of the present disclosure, wherein each second correction coefficient corresponds to a brightness range. If the average brightness value or the maximum brightness value falls within any brightness range, a unique second correction coefficient can be determined. Therefore, based on the example of step 1044, when the average brightness value is 84, the corresponding second correction coefficient is 0.87, and when the maximum brightness value is 130, the corresponding second correction coefficient is 0.82. Thus, 0.87 or 0.82 can be used as the upper limit correction coefficient.
[0131] Step 1046: Determine the correction coefficient for each brightness range based on the upper limit correction coefficient; wherein, all correction coefficients do not exceed the upper limit correction coefficient, and the brightness threshold corresponding to each brightness range is negatively correlated with the correction coefficient.
[0132] Assuming the upper limit correction coefficient is 0.87, the correction coefficients for the brightness ranges [0, 100), [100, 130), and [130, 255) are 0.87, 0.77, and 0.67, respectively. These correction coefficients all satisfy the condition that they do not exceed the upper limit correction coefficient, and the brightness threshold corresponding to each brightness range is negatively correlated with the correction coefficient, meaning that the smaller the brightness value corresponding to the brightness range, the larger the correction coefficient.
[0133] Step 105: Determine the target mapping relationship between the current brightness value and the target brightness value based on the correction coefficient; the target mapping relationship represents the mapping relationship between the current brightness value and the target brightness value in different brightness ranges.
[0134] Optionally, Figure 9 This is a schematic diagram of a target mapping relationship provided for an exemplary embodiment of the present disclosure; when the correction coefficient is determined, the target mapping relationship can be obtained according to the following mapping formula:
[0135]
[0136] Where V is the current brightness value, V ’ The target brightness value is defined by gain1, gain2, and gain3, which are correction coefficients. Coef1 and Coef2 are constant terms (intercepts), thr1 and thr2 are brightness thresholds, and max is the maximum brightness value.
[0137] The data processing method for brightness control of the OLED display in this embodiment can determine a correction coefficient for each brightness interval divided by a brightness threshold, and then determine the target mapping relationship between the current brightness value and the target brightness value based on the correction coefficient. This allows for dynamic adjustment of brightness according to different brightness requirements, thereby providing the best visual effect in different display scenarios.
[0138] Example 2
[0139] Figure 10 A flowchart illustrating an exemplary embodiment of this disclosure provides a brightness control method for an OLED display, the brightness control method comprising:
[0140] Step 201: Obtain the current brightness value of the target pixel in the displayed image of the OLED display.
[0141] Suppose you have an OLED display with a resolution of 1920*1080 pixels. You need to control the brightness of a specific pixel in the display, for example, the pixel located at coordinates (100, 200). For example, for the pixel at coordinates (100, 200), the RGB value read is (150, 100, 50). Next, you need to convert the RGB value to a brightness value. A common method is to use the brightness formula: Brightness = 0.299*R + 0.587*G + 0.114*B. In this example, the brightness value is 0.299*150 + 0.587*100 + 0.114*50 = 74.75. That is, the current brightness value of the pixel at coordinates (100, 200) is 74.75.
[0142] Step 202: Determine the target brightness value based on the current brightness value and the target mapping relationship; the target mapping relationship is obtained according to any of the data processing methods in Example 1;
[0143] Optionally, Figure 11 A flowchart of step 202 provided for an exemplary embodiment of this disclosure; step 202 specifically includes:
[0144] Step 2021: Determine the target brightness range where the current brightness value is located.
[0145] Assume we have already obtained the current brightness value of a pixel, for example, 74.75, through step 201. Now we need to determine the target brightness value based on this value in order to adjust the brightness of that pixel. Assume the target mapping relationship is as follows:
[0146]
[0147] The current brightness value is 74.75, which is within the range of 0 ≤ V < 80.
[0148] Step 2022: Calculate the target brightness value based on the target mapping relationship corresponding to the target brightness range.
[0149] Based on the target mapping relationship corresponding to 0≤V<80, then V ’ =V*0.6=74.75*0.6=44.85. That is, the target brightness value is 44.85.
[0150] Step 203: Update the current brightness value of the target pixel based on the target brightness value.
[0151] Assuming the target brightness value, for example 44.85, has been calculated in step 202, we now need to update the current brightness value of the target pixel based on this target brightness value. Update the brightness value of the pixel at coordinates (100, 200) from 74.75 to 44.85.
[0152] The brightness control method for an OLED display in this embodiment obtains the current brightness value of a target pixel in the displayed image of the OLED display, and determines the target brightness value based on the current brightness value and the target mapping relationship to update the current brightness value of the target pixel. This method can achieve a gain effect on different current brightness values, ensuring overall brightness balance of the image while saving energy and guaranteeing visual quality. Furthermore, this disclosure requires no hardware modifications, making it easier to implement and less costly.
[0153] Example 3
[0154] Corresponding to the aforementioned data processing method embodiment for brightness control of OLED displays, this disclosure also provides an embodiment of a data processing system for brightness control of OLED displays.
[0155] Figure 12 A schematic diagram of a data processing system for brightness control of an OLED display, provided as an exemplary embodiment of this disclosure, is shown. The data processing system includes:
[0156] The first acquisition module 31 is used to acquire the current brightness value of the target pixel in the displayed image of the OLED display;
[0157] The second acquisition module 32 is used to acquire brightness statistics information based on the current brightness value;
[0158] The threshold setting module 33 is used to set a brightness threshold based on brightness statistics; the brightness threshold is used to divide the current brightness value of the target pixel into several brightness intervals.
[0159] The first determining module 34 is used to determine the correction coefficient for each brightness range;
[0160] The second determining module 35 is used to determine the target mapping relationship between the current brightness value and the target brightness value according to the correction coefficient; the target mapping relationship represents the mapping relationship between the current brightness value and the target brightness value in different brightness ranges.
[0161] Optionally, the threshold setting module 33 is specifically used to set several current brightness values as brightness thresholds.
[0162] Optionally, the threshold setting module 33 is specifically used for:
[0163] Arrange the current brightness values in order of size, and calculate the brightness difference between each pair of adjacent current brightness values in turn;
[0164] If the brightness difference is less than or equal to the difference threshold, then each current brightness value is set as the brightness threshold.
[0165] And / or,
[0166] If the brightness difference is greater than the difference threshold, the two current brightness values corresponding to the maximum value of the brightness difference are set as the brightness threshold.
[0167] Optionally, the first determining module 34 is specifically used for:
[0168] Obtain several sampled brightness values within each brightness range;
[0169] Based on the first preset mapping relationship, a first correction coefficient corresponding to each sampled brightness value is determined; the first preset mapping relationship is the mapping relationship between the sampled brightness value and the first correction coefficient, and the sampled brightness value and the first correction coefficient are negatively correlated.
[0170] The correction factor for each brightness range is determined based on all the first correction factors.
[0171] Optionally, the first determining module 34 is specifically used for:
[0172] Determine the average or maximum brightness value of the current brightness level;
[0173] Based on the second preset mapping relationship, the correction coefficient of the brightness range corresponding to the average brightness or the maximum brightness is determined as the upper limit correction coefficient;
[0174] The correction coefficient for each brightness range is determined based on the upper limit correction coefficient; wherein, all correction coefficients do not exceed the upper limit correction coefficient, and the brightness threshold corresponding to each brightness range is negatively correlated with the correction coefficient.
[0175] Optionally, the first acquisition module 31 is specifically used for:
[0176] Obtain the brightness histogram of the displayed image;
[0177] Extract the current brightness value based on the brightness histogram.
[0178] The data processing system for brightness control of the OLED display in this embodiment can determine a correction coefficient for each brightness interval divided by a brightness threshold, and then determine the target mapping relationship between the current brightness value and the target brightness value based on the correction coefficient. This allows for dynamic adjustment of brightness according to different brightness requirements, thereby providing the best visual effect in different display scenarios.
[0179] For the system embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components 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 disclosure according to actual needs.
[0180] Example 4
[0181] Corresponding to the aforementioned embodiments of the brightness control method for OLED displays, this disclosure also provides embodiments of the brightness control system for OLED displays.
[0182] Figure 13 A schematic diagram of a brightness control system for an OLED display provided as an exemplary embodiment of this disclosure, the brightness control system comprising:
[0183] Brightness acquisition module 41 is used to acquire the current brightness value of the target pixel in the displayed image of the OLED display;
[0184] Brightness determination module 42 is used to determine a target brightness value based on the current brightness value and the target mapping relationship; the target mapping relationship is obtained according to any of the above data processing methods.
[0185] The brightness update module 43 is used to update the current brightness value of the target pixel according to the target brightness value.
[0186] Optionally, the brightness determination module 42 is specifically used for:
[0187] Determine the target brightness range where the current brightness value is located;
[0188] The target brightness value is calculated based on the target mapping relationship corresponding to the target brightness range.
[0189] The brightness control system of the OLED display in this embodiment acquires the current brightness value of the target pixel in the displayed image of the OLED display, and determines the target brightness value based on the current brightness value and the target mapping relationship to update the current brightness value of the target pixel. This allows for gain effects on different current brightness values, ensuring overall brightness balance of the image while saving energy and maintaining visual quality. Furthermore, this disclosure requires no hardware modifications, making it easier to implement and less costly.
[0190] For the system embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components 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 disclosure according to actual needs.
[0191] Example 5
[0192] Figure 14 This is a schematic diagram of the structure of an electronic device according to an example embodiment of the present disclosure. The electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor. When the processor executes the computer program, it implements a data processing method for brightness control of an OLED display as described above, or implements a brightness control method for an OLED display as described above. Figure 14 The electronic device 90 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0193] like Figure 14 As shown, the electronic device 90 can be manifested as a general-purpose computing device, such as a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including memory 92 and processor 91).
[0194] Bus 93 includes a data bus, an address bus, and a control bus.
[0195] The memory 92 may include volatile memory, such as random access memory (RAM) 921 and / or cache memory 922, and may further include read-only memory (ROM) 923.
[0196] The memory 92 may also include a program tool 925 (or utility) having a set (at least one) program module 924, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0197] The processor 91 executes various functional applications and data processing by running computer programs stored in the memory 92, such as the data processing method for brightness control of the OLED display described above, or the brightness control method for the OLED display described above.
[0198] Electronic device 90 can also communicate with one or more external devices 94 (e.g., keyboard, pointing device, etc.). This communication can be performed through input / output (I / O) interface 95. Furthermore, electronic device 90 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public network, such as the Internet) via network adapter 96. As shown, network adapter 96 communicates with other modules of electronic device 90 via bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.
[0199] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0200] Example 6
[0201] This disclosure also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a data processing method for brightness control of an OLED display as described above, or implements a brightness control method for an OLED display as described above.
[0202] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0203] Example 7
[0204] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements a data processing method for brightness control of an OLED display according to any one of the above-described embodiments, or a brightness control method for an OLED display according to any one of the above-described embodiments.
[0205] The program code for executing the computer program product of this disclosure can be written in any combination of one or more programming languages, and the program code can be executed entirely on a user device, partially on a user device, as a stand-alone software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0206] Example 8
[0207] This disclosure also provides a chip storing a computer program. When the computer program is executed by the chip, it implements a data processing method for brightness control of an OLED display as described above, or implements a brightness control method for an OLED display as described above.
[0208] Example 9
[0209] This disclosure also provides a chip module for use in an electronic device, including a transceiver component and a chip. The chip is used to implement a data processing method for brightness control of an OLED display as described above, or to implement a brightness control method for an OLED display as described above.
[0210] While specific embodiments of this disclosure have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of this disclosure is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of this disclosure, but all such changes and modifications fall within the scope of protection of this disclosure.
Claims
1. A data processing method for brightness control of an OLED display, characterized in that, The data processing method includes: Obtain the current brightness value of the target pixel in the displayed image of the OLED display; Obtain brightness statistics based on the current brightness value; A brightness threshold is set based on the brightness statistics; the brightness threshold is used to divide the current brightness value of the target pixel into several brightness intervals. Determine the correction factor for each of the brightness ranges; The target mapping relationship between the current brightness value and the target brightness value is determined based on the correction coefficient; the target mapping relationship characterizes the mapping relationship between the current brightness value and the target brightness value in different brightness intervals. The step of determining the correction coefficient for each brightness interval includes: determining the average brightness value or the maximum brightness value of the current brightness value; determining the correction coefficient of the brightness interval corresponding to the average brightness value or the maximum brightness value as the upper limit correction coefficient according to the second preset mapping relationship; determining the correction coefficient for each brightness interval according to the upper limit correction coefficient; wherein all the correction coefficients do not exceed the upper limit correction coefficient, and the brightness threshold corresponding to each brightness interval is negatively correlated with the correction coefficient.
2. The data processing method according to claim 1, characterized in that, The step of setting a brightness threshold based on the brightness statistics includes setting a plurality of the current brightness values as the brightness threshold.
3. The data processing method according to claim 1, characterized in that, The step of setting a brightness threshold based on the brightness statistics includes: The current brightness values are arranged in order of magnitude, and the brightness difference between each two adjacent current brightness values is calculated sequentially. In response to the brightness difference being less than or equal to the difference threshold, each current brightness value is set as the brightness threshold; And / or, In response to the brightness difference being greater than the difference threshold, the two current brightness values corresponding to the maximum value of the brightness difference are set as the brightness threshold.
4. The data processing method according to claim 1, characterized in that, The determination of the correction coefficient for each of the brightness ranges includes: Obtain several sampled brightness values within each brightness range; Based on a first preset mapping relationship, a first correction coefficient is determined for each sampled brightness value; the first preset mapping relationship is the mapping relationship between the sampled brightness value and the first correction coefficient, and the sampled brightness value and the first correction coefficient are negatively correlated. The correction factor for each of the brightness ranges is determined based on all of the first correction factors.
5. The data processing method according to claim 1, characterized in that, The step of obtaining the current brightness value of the target pixel in the displayed image of the OLED display includes: Obtain the brightness histogram of the displayed image; The current brightness value is extracted based on the brightness histogram.
6. A brightness control method for an OLED display, characterized in that, The brightness control method includes: Obtain the current brightness value of the target pixel in the displayed image of the OLED display; The target brightness value is determined based on the current brightness value and the target mapping relationship; the target mapping relationship is obtained according to the data processing method of any one of claims 1 to 5. The current brightness value of the target pixel is updated based on the target brightness value.
7. The brightness control method for an OLED display according to claim 6, characterized in that, The step of determining the target brightness value based on the current brightness value and the target mapping relationship includes: Determine the target brightness range in which the current brightness value lies; The target brightness value is calculated based on the target mapping relationship corresponding to the target brightness range.
8. A data processing system for brightness control of an OLED display, characterized in that, The data processing system includes: The first acquisition module is used to acquire the current brightness value of the target pixel in the displayed image of the OLED display; The second acquisition module is used to acquire brightness statistics information based on the current brightness value; A threshold setting module is used to set a brightness threshold based on the brightness statistics information; the brightness threshold is used to divide the current brightness value of the target pixel into several brightness intervals. The first determining module is used to determine the correction coefficient for each of the brightness ranges; The second determining module is used to determine the target mapping relationship between the current brightness value and the target brightness value according to the correction coefficient; the target mapping relationship represents the mapping relationship between the current brightness value and the target brightness value in different brightness intervals; The first determining module is specifically used for: determining the average brightness value or the maximum brightness value of the current brightness value; determining, according to a second preset mapping relationship, the correction coefficient of the brightness interval corresponding to the average brightness value or the maximum brightness value as the upper limit correction coefficient; determining the correction coefficient of each brightness interval according to the upper limit correction coefficient; wherein, all the correction coefficients do not exceed the upper limit correction coefficient, and the brightness threshold corresponding to each brightness interval is negatively correlated with the correction coefficient.
9. A brightness control system for an OLED display, characterized in that, The brightness control system includes: A brightness acquisition module is used to acquire the current brightness value of a target pixel in the displayed image of the OLED display; A brightness determination module is used to determine a target brightness value based on the current brightness value and a target mapping relationship; the target mapping relationship is obtained according to the data processing method of any one of claims 1 to 5. A brightness update module is used to update the current brightness value of the target pixel based on the target brightness value.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and for running on the processor, characterized in that, When the processor executes the computer program, it implements the data processing method for brightness control of the OLED display according to any one of claims 1 to 5, or implements the brightness control method for the OLED display according to any one of claims 6 to 7.
11. A 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 data processing method for brightness control of the OLED display according to any one of claims 1 to 5, or implements the brightness control method for the OLED display according to any one of claims 6 to 7.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the data processing method for brightness control of the OLED display according to any one of claims 1 to 5, or implements the brightness control method for the OLED display according to any one of claims 6 to 7.
13. A chip, characterized in that, The chip stores a computer program, which, when executed by the chip, implements the data processing method for brightness control of the OLED display according to any one of claims 1 to 5, or implements the brightness control method for the OLED display according to any one of claims 6 to 7.
14. A chip module, used in electronic devices, characterized in that, The device includes a transceiver component and a chip, wherein the chip is used to implement the data processing method for brightness control of the OLED display according to any one of claims 1 to 5, or to implement the brightness control method for the OLED display according to any one of claims 6 to 7.
Citation Information
Patent Citations
Display apparatus and method for driving the same
CN102915721A