A display device, a brightness compensation method, a storage medium and a computer device
By incorporating a brightness compensation device into the OLED display, and utilizing grayscale data calculation and a gain model, the problem of uneven brightness and display content in OLED display products under power consumption constraints has been solved, thereby improving both brightness and image quality.
Patent Information
- Application Number
- CN202310946965.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-07-27
AI Technical Summary
Existing OLED display products struggle to balance displayed content and brightness due to power consumption limitations, resulting in poor display quality.
By setting a brightness compensation device in the display device, the distribution of pixel grayscale values in the current frame is calculated and statistically analyzed using grayscale data. This data is then input into the gain model to determine the brightness gain value. Brightness compensation is performed on each color pixel to ensure that the proportional relationship of the brightness values is consistent with the grayscale data.
Without exceeding the peak brightness, the brightness and image quality of the displayed image were improved, achieving a balance between the displayed content and brightness, and enhancing the display effect.
Smart Images

Figure CN116895254B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display. More particularly, it relates to a display device, a brightness compensation method, a storage medium and a computer device. BACKGROUND
[0002] Organic Light Emitting Diode (OLED) is an active light-emitting display device, which has the advantages of light-emitting, ultra-thin, wide viewing angle, high brightness, high contrast, low power consumption, and extremely high response speed. OLED display products are limited by power consumption, and it is difficult to balance the display content and display brightness to ensure that both have good effects. SUMMARY
[0003] The present application relates to the technical field of display. More particularly, it relates to a display device, a brightness compensation method, a storage medium and a computer device.
[0004] To achieve the above-mentioned purpose, the technical scheme adopted by the present application is as follows:
[0005] The present application provides a display device, comprising a pixel array and a brightness compensation device, the pixel array comprising a first pixel, a second pixel and a third pixel,
[0006] The brightness compensation device comprises:
[0007] A gray scale data acquisition module is configured to acquire gray scale data of the first pixel, the second pixel and the third pixel, wherein the gray scale data comprises pixel categories and gray scale information.
[0008] A distribution data calculation module is configured to obtain, from the gray scale data, the pixel category with the largest number and the count value corresponding to each gray scale value in the first pixel, the second pixel and the third pixel, as distribution data.
[0009] A reference data acquisition module is configured to determine, from the distribution data corresponding to different gray scale values, the distribution data with the largest count value as reference data.
[0010] A brightness gain value determination module is configured to determine, according to a preset gain model, an input parameter of the gain model from the gray scale data corresponding to the reference data, and obtain a brightness gain value corresponding to the input parameter as an output parameter.
[0011] A brightness compensation module is configured to perform brightness compensation on the brightness value corresponding to each color pixel according to the brightness gain value.
[0012] Further, the distribution data calculation module is further configured to search for the number of the first pixel, the second pixel and the third pixel at each integer gray scale value from the range of 0-255, and take the pixel category with the largest number as the pixel category at the current integer gray scale value, and take the corresponding number of the pixel category as the count value.
[0013] Further, the reference data calculation module is further configured to compare the count values in the distribution data corresponding to each integer gray scale value from the range of 0-255, and select any one of the distribution data with the same count value as the reference data if there is the distribution data with the same count value.
[0014] Further, the luminance gain value determination module further comprises:
[0015] retrieve the gray scale data of the first pixel, the second pixel and the third pixel corresponding to the gray scale value of the reference data;
[0016] search for the number of the gray scale values greater than or equal to the preset gray scale value in the gray scale data to determine the input parameter of the gain model;
[0017] input the input parameter into the gain model to obtain the luminance gain value corresponding to the input parameter.
[0018] Further, the luminance compensation module is further configured to:
[0019] determine the proportional relationship of the gray scale data of each color pixel in the gray scale data corresponding to the luminance gain value;
[0020] perform luminance compensation on the luminance value of each color pixel according to the proportional relationship and the luminance gain value, and the proportional relationship of the luminance value of each color pixel after the luminance compensation is the same as the proportional relationship of the gray scale data of each color pixel.
[0021] The second aspect of the present application provides a luminance compensation method of a display device, the display device comprising a pixel array, the pixel array comprising a first pixel, a second pixel and a third pixel,
[0022] The luminance compensation method comprises:
[0023] obtain the gray scale data of the first pixel, the second pixel and the third pixel, the gray scale data comprising a pixel category and gray scale information;
[0024] obtain the pixel category with the largest number and the count value of the first pixel, the second pixel and the third pixel corresponding to the gray scale value at each gray scale value from the gray scale data as the distribution data;
[0025] Determine the distribution data with the maximum count value as the reference data from the distribution data corresponding to different gray scale values;
[0026] According to the preset gain model, determine the input parameter of the gain model from the gray scale data corresponding to the reference data, and obtain the luminance gain value corresponding to the input parameter as the output parameter;
[0027] According to the luminance gain value, perform luminance compensation on the luminance value corresponding to each color pixel.
[0028] Further, obtain the pixel category and count value corresponding to the maximum number of pixels of the first pixel, the second pixel and the third pixel at each gray scale value from the gray scale data as the distribution data;
[0029] Comprise:
[0030] From the range of gray scale values from 0 to 255, find the number of the first pixel, the second pixel and the third pixel at each integer gray scale value;
[0031] Take the pixel with the maximum number as the pixel category at the current integer gray scale value, and take the number corresponding to the pixel category as the count value.
[0032] Further, according to the preset gain model, determine the input parameter of the gain model from the gray scale data corresponding to the reference data, and obtain the luminance gain value corresponding to the input parameter as the output parameter, further comprising:
[0033] Retrieve the gray scale value corresponding to the reference data, and the gray scale data of the first pixel, the second pixel and the third pixel;
[0034] In the gray scale data, find the number of gray scale values greater than or equal to the preset gray scale value to determine the input parameter of the gain model;
[0035] Input the input parameter into the gain model to obtain the luminance gain value corresponding to the input parameter.
[0036] Further, according to the luminance gain value, perform luminance compensation on the luminance value corresponding to each color pixel, further comprising:
[0037] Determine the proportional relationship of the gray scale data of each color pixel in the gray scale data corresponding to the luminance gain value;
[0038] According to the proportional relationship and the luminance gain value, perform luminance compensation on the luminance value of each color pixel, and the proportional relationship of the luminance value of each color pixel after luminance compensation is the same as the proportional relationship of the gray scale data of each color pixel.
[0039] Further, the first pixel, the second pixel and the third pixel corresponding to the maximum number of the gray scale value are obtained from the gray scale data as the distribution data, and the method further comprises:
[0040] The pixel array is divided into a plurality of pixel regions;
[0041] In each pixel region, the number of the first pixel, the second pixel and the third pixel corresponding to each integer gray scale value is searched from the range of 0-255.
[0042] The pixel with the maximum number is taken as the pixel category corresponding to the integer gray scale value in the current pixel region, and the number corresponding to the pixel category is taken as the pixel region value of the current pixel region.
[0043] The maximum pixel region value is determined from all the pixel region values as the count value.
[0044] The third aspect of the present application provides a display device comprising the brightness compensation device of the first aspect of the present application.
[0045] The fourth aspect of the present application provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to realize the method of the second aspect of the present application.
[0046] The fifth aspect of the present application provides a computer device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the program to realize the method of the second aspect of the present application.
[0047] The beneficial effects of the present application are as follows:
[0048] The display device of the embodiment of the present application is provided with the brightness compensation device, which improves the display brightness by using the current display picture content, calculates the gray scale data of each pixel, counts the gray scale value distribution of each pixel of the current frame of the display picture, inputs the reference data obtained according to the gray scale value distribution into the gain model to obtain the brightness gain value to improve the display brightness of the current display picture, thereby improving the display quality. BRIEF DESCRIPTION OF DRAWINGS
[0049] The specific embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0050] Figure 1 The step schematic diagram of the brightness compensation method of the embodiment of the present application is shown;
[0051] Figure 2 The step schematic diagram of step S7 of the embodiment of the present application is shown;
[0052] Figure 3 and Figure 4 A model curve diagram showing the luminance gain model of an embodiment of the present application;
[0053] Figure 5 A curve diagram showing the luminance gain value and input parameter of an embodiment of the present application;
[0054] Figure 6 A module diagram showing the luminance compensation device of another embodiment of the present application;
[0055] Figure 7 A computer device showing another embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to more clearly illustrate the present application, the present application will be further described below in conjunction with embodiments and drawings. In the drawings, similar components are denoted by the same reference numerals. It should be understood by those skilled in the art that the specific description below is illustrative rather than limiting, and should not limit the scope of protection of the present application.
[0057] A first embodiment of the present application proposes a luminance compensation method for a display device, the display device comprising a pixel array, the pixel array comprising a first pixel, a second pixel and a third pixel, for example, the pixel array is arranged in a standard pixel arrangement, a diamond arrangement, a delta arrangement, etc., which is not limited by the embodiments of the present application.
[0058] As shown in the drawings, the luminance compensation method according to the embodiments of the present application comprises: Figure 1
[0059] S1, obtaining gray scale data of the first pixel, the second pixel and the third pixel, the gray scale data comprising pixel categories and gray scale information;
[0060] S3, obtaining, from the gray scale data, the pixel category and the count value corresponding to the largest number of pixels in the first pixel, the second pixel and the third pixel at each gray scale value, as distribution data;
[0061] S5, determining the distribution data with the largest count value from the distribution data corresponding to different gray scale values as reference data;
[0062] S7, according to a preset gain model, determining input parameters of the gain model from the gray scale data corresponding to the reference data, and obtaining a luminance gain value corresponding to the input parameters as output parameters;
[0063] S9, performing luminance compensation on the luminance value corresponding to each color pixel according to the luminance gain value.
[0064] Based on the above process, the embodiment of the present application improves the display brightness by using the current display picture content, calculates the gray scale data of each pixel, counts the gray scale value distribution of each pixel of the current display picture, inputs the reference data obtained according to the gray scale value distribution into the gain model to obtain the brightness gain value to improve the display brightness of the current display picture.
[0065] The embodiment of the present application will now be described with reference to a specific example:
[0066] S1, obtaining the gray scale data of the first pixel, the second pixel and the third pixel, the gray scale data including pixel category and gray scale information;
[0067] In one specific example, the pixel category of the embodiment of the present application can be the color and position information of the pixel, for example, the first pixel in the first row and the first column is red, so the pixel category of the first pixel at this position is red and the corresponding position, and the gray scale information includes the gray scale value, for example, the gray scale value of the first pixel is 25, and the gray scale data of the first pixel can be represented as R 1,1 = 25. Therefore, the gray scale data of the embodiment of the present application is represented as X m.n , wherein X represents the first pixel R, the second pixel G or the third pixel B, m represents the row position of the pixel in the pixel array, and n represents the column position of the pixel in the pixel array.
[0068] When the display device displays a picture, each pixel at different positions has different gray scale information, and the brightness compensation method of the embodiment of the present application takes the gray scale data of each pixel as the basis for brightness compensation.
[0069] S3, obtaining the pixel category and the count value corresponding to the largest number of pixels in the first pixel, the second pixel and the third pixel at each gray scale value from the gray scale data as distribution data;
[0070] In one optional embodiment, the step S3 "obtaining the pixel category and the count value corresponding to the largest number of pixels in the first pixel, the second pixel and the third pixel at each gray scale value from the gray scale data as distribution data" includes:
[0071] S31, finding the number of the first pixel, the second pixel and the third pixel at each integer gray scale value from the range of 0-255.
[0072] That is, the process of finding the gray scale value of the embodiment of the present application is to find all the gray scale values in a certain order, so as to count all the gray scale values of the pixel array.
[0073] In one specific example, the second pixel in the second row and the second column is found from the gray scale value of 0, and if the gray scale data of the second pixel is G1,2 = 20, the gray scale data does not meet the gray scale value of 0, the number of the second pixels with the gray scale value of 0 is not counted, if the gray scale data of the second pixel in the second row and the second column is G 2,2 = 20, the gray scale data meets the search requirement of the gray scale value of 0, therefore, the number of the second pixels with the gray scale value of 0 is counted as 1, after traversing all the pixels, the total number of the second pixels with the gray scale value of 0 is counted. The number of the first pixels with the gray scale value of 0 and the third pixels with the gray scale value of 0 is counted in the same way, thereby realizing the number counting of each pixel category meeting a certain gray scale value based on the gray scale data counting, and displaying the content by the gray scale value.
[0074] S33, taking the pixel with the largest number as the pixel category under the current integer gray scale value, and taking the number corresponding to the pixel category as the count value.
[0075] Based on the process of the foregoing step S33, after searching the pixels corresponding to each gray scale value, the number counting of each pixel under different gray scale values is obtained, for example, for the gray scale value of 1, the number of the first pixels is 40, the number of the second pixels is 25, and the number of the third pixels is 34. Since there are pixel categories, under any gray scale value, there are three pixel categories corresponding to the number respectively, therefore, the number of the pixel with the largest number in the gray scale value is taken as the count value, that is, in the example, the number of the first pixels 40 is the largest, therefore, the count value S of the gray scale value 1 is 40.
[0076] Based on the same principle, the count value S under different gray scale values can be obtained respectively. Based on the process of the steps S31 and S32, the process of the embodiment of the present application can obtain the pixel category and the count value corresponding to each gray scale value as the distribution data F X,S , wherein X represents the pixel category, which is the first pixel R, the second pixel G or the third pixel B, and S is the count value of the foregoing step S33.
[0077] In an optional embodiment, before the step S31, the step "obtaining the pixel category and the count value corresponding to the gray scale value from the gray scale data, as the distribution data" further includes:
[0078] S301, dividing the pixel array into multiple pixel regions.
[0079] In a specific example, taking a 95-inch product as an example, each 270 rows are sequentially divided into a pixel region, and 4320 / 270 = 16 sub-regions are required in total. By this setting, the distribution data of part of the pixels in each pixel region is determined in the form of sub-regions, which can improve the search efficiency of the distribution data.
[0080] S303, respectively in each pixel area, from the gray scale value is 0-255 range, find each integer gray scale value, the number of the first pixel, the second pixel and the third pixel.
[0081] The gray scale value determination method of each pixel area of the embodiment can refer to the foregoing embodiment, which will not be described here again. The purpose of this step is to determine the number of each pixel of each gray scale value pair in each pixel area to clarify the gray scale distribution in the pixel area.
[0082] S305, taking the pixel with the largest number as the pixel category corresponding to the integer gray scale value in the current pixel area, and taking the number corresponding to the pixel category as the pixel area value of the current pixel area.
[0083] The relevant principle is described in step S33. When the gray scale value is 10, the current pixel area is the 12th pixel area. After confirmation, it is determined that the pixel category with the largest number under gray scale 10 in the 12th pixel area is the second pixel B. Therefore, the second pixel B and the number corresponding to the second pixel, for example, 170, are taken as the pixel area value. The process of the pixel area value of the remaining pixel areas is the same. After traversal, the pixel area values of all pixel areas are obtained.
[0084] S307, determining the maximum pixel area value from all pixel area values as the count value.
[0085] Based on the process of steps S303-S305, the gray scale distribution in the plurality of pixel areas is obtained. In this process, the gray scale distributions of all pixel areas are compared, and the pixel category corresponding to the largest number under any gray scale is selected from the plurality of pixel areas. For example, when the gray scale value is 10, the pixel area value of the 12th pixel area is determined to be the largest from the 16 pixel areas. Therefore, the pixel area value is taken as the count value S.
[0086] Based on the foregoing embodiment, the embodiment of the application can obtain the count value of all pixels in the pixel array once, and the embodiment of the application can also obtain the pixel area value of each pixel area by splitting the pixel array, and then determine the count value by obtaining the maximum pixel area value from the pixel area value. The person skilled in the art can design according to the actual application.
[0087] S5, determining the distribution data with the largest count value from the distribution data corresponding to different gray scale values as the reference data.
[0088] Based on the process of the foregoing steps S1-S5, the embodiment of the application determines the distribution data corresponding to each gray scale value. The distribution data includes the pixel category and the count value corresponding to the gray scale value involved in the foregoing process.
[0089] The gray scale value ranges from 0 to 255. In a specific example, if the gray scale value is 10, the pixel category in the distribution data is the second pixel, and the count value is 56, then the distribution data corresponding to the gray scale value 10 is F10 B,56 .
[0090] In another specific example, if the gray scale value is 55, the pixel category in the distribution data is the first pixel, and the count value is 78, then the distribution data corresponding to the gray scale value 55 is F55 R,78 .
[0091] In another specific example, if the gray scale value is 216, the pixel category in the distribution data is the first pixel, and the count value is 105, then the distribution data corresponding to the gray scale value 216 is F216 R,105 .
[0092] Therefore, step S5 of the embodiment realizes determining the distribution data with the maximum count value from the distribution data corresponding to multiple gray scale values as the reference data, and the maximum count value obtained in the process is the gray scale distribution of a frame in the current display picture. Based on the above embodiment, the distribution data corresponding to the gray scale value 216 is taken as the reference data.
[0093] In an optional embodiment, step S5 of “determining the distribution data with the maximum count value from the distribution data corresponding to different gray scale values as the reference data” further includes:
[0094] Comparing the count values in the distribution data corresponding to each integer gray scale value in the range from 0 to 255, if there are distribution data with the same count value, then selecting any one of the distribution data corresponding to the gray scale value with the same count value as the reference data.
[0095] Considering that there are different gray scale values but the same count value in the process of determining the count value in the embodiment of the application, therefore, in this case, any one of the distribution data corresponding to the gray scale value is selected as the reference data. The reference data of the embodiment of the application is used as the basis for determining the brightness gain value in the subsequent steps.
[0096] S7, determining the input parameter of the gain model from the gray scale data corresponding to the reference data according to the preset gain model, and obtaining the brightness gain value corresponding to the input parameter as the output parameter;
[0097] In an optional embodiment, as shown in Figure 2 , the step S7 further includes:
[0098] S71, calling the gray scale value corresponding to the reference data, and the gray scale data of the first pixel, the second pixel and the third pixel.
[0099] Based on the reference data determined according to the foregoing steps, the reference data is one of the distribution data corresponding to multiple gray scale values, and based on step S1, the gray scale data includes pixel categories and gray scale information, therefore, steps S1-S5 are to select a reference data of a gray scale distribution of the current picture content from multiple distribution data, and steps S7-S9 are to perform brightness compensation on the entire picture by using the reference data, so as to improve the display brightness on the basis of ensuring the picture content.
[0100] In this step, the reference data is the distribution data corresponding to the gray scale value 216, which includes the pixel categories and corresponding gray scale values of each pixel under the gray scale value 216.
[0101] S73, in the gray scale data, find the number of gray scale values greater than or equal to the preset gray scale value to determine the input parameter of the gain model.
[0102] In this step, when the pixel array is 720*1080, the reference data includes not only the count value of the 720*1080 pixels under the gray scale value 216, but also the specific gray scale information of the 720*1080 pixels, and further, the gray scale data corresponding to the 720*1080 pixels is found to determine that the display picture is the preset gray scale value as the demarcation point of the high and low gray scale, find the number of gray scale values greater than or equal to the preset gray scale value, and the input parameter of the gain model of the embodiment is the ratio of the number of high gray scale values to the total number of gray scale values. In a specific example, 128 gray scale is the preset gray scale value, then the gray scale values in the distribution data of each pixel greater than or equal to 128 gray scale are high gray scale, and the gray scale values less than 128 gray scale are low gray scale, the input parameter is obtained through this step to determine the overall state of the current display picture, so as to perform subsequent brightness compensation.
[0103] S75, input the input parameter into the gain model to obtain the brightness gain value corresponding to the input parameter.
[0104] In this embodiment, the input parameter ratio is inversely proportional to the brightness gain value gain, that is, the more the number of high gray scale values, the smaller the brightness gain value, and the more the low gray scale, the larger the brightness gain value.
[0105] The input parameter and the output brightness gain value of the gain model of the embodiment of the application are applicable to a linear brightness gain model, a nonlinear brightness gain model, or a discrete numerical brightness gain model, and the input parameter and the brightness gain value are implemented in the same proportion parameter to achieve gain consistency. Further, the brightness gain value of the embodiment of the application is determined according to the peak brightness of the display device, that is, the brightness compensation method of the embodiment of the application can improve the full screen brightness under the condition that the peak brightness is not exceeded.
[0106] In a specific example, such as Figure 3 In the brightness gain model shown, both the input parameter ratio and the brightness gain value are converted to 8 bits. An input parameter ratio of 255 indicates that the proportion of high grayscale (e.g., 128 grayscale levels and above) counts is 100%. This means that when the grayscale value is 255, all pixels are in a high grayscale state, indicating that the current display brightness is high. Therefore, the brightness gain value is 0, meaning no brightness compensation is needed. Conversely, an input parameter ratio of 0 indicates that the proportion of high grayscale (e.g., 128 grayscale levels and above) counts is 0%. This means that when the grayscale value is 0, all pixels are in a low grayscale state, indicating that the current display brightness is low, with an overall low grayscale distribution. Therefore, the brightness gain value is 255, meaning significant brightness compensation is required.
[0107] Similarly, a gain value of 0 indicates that the high grayscale count is 100, and the image information is entirely presented in high grayscale, requiring the maximum gain value. A gain value of 255 indicates that the high grayscale count is 0, and the image information is entirely presented in low grayscale, requiring the maximum gain value, which is the maximum brightness that the current image can illuminate without exceeding the power consumption limit.
[0108] In another embodiment, such as Figure 4 As shown, the curve of input parameter ratio versus brightness gain value is a non-linear curve. That is, near low input parameters, the change in brightness gain value is greater than the change in input parameters. The gain model of the non-linear curve is more conducive to grayscale improvement than the gain model of the linear curve, thus further improving the display quality.
[0109] In another embodiment, the gain model for the input parameters and the brightness gain value is a discrete point model, that is, the design is carried out in a way that corresponds to discrete points to achieve enhanced brightness matching.
[0110] Based on the above embodiments, the gain model can also be a hybrid design of various gain models, such as using a linear model within a certain range of the input parameter ratio and a nonlinear model within another range of the input parameter ratio, to further improve the accuracy of brightness compensation.
[0111] S9. Perform brightness compensation on the brightness value corresponding to each color pixel according to the brightness gain value.
[0112] In an optional embodiment, step S9, "performing brightness compensation on the brightness value corresponding to each color pixel based on the brightness gain value," further includes:
[0113] S91. Determine the proportional relationship of grayscale data of each color pixel in the grayscale data corresponding to the brightness gain value.
[0114] The brightness compensation in this embodiment of the invention is performed on all pixel data to ensure the consistency of the image display. Therefore, in order to ensure the consistency of the overall image after compensation, this step determines the ratio of grayscale values of each color pixel. For example, if the pixel array has only three pixels and the grayscale values of the first pixel, the second pixel, and the third pixel are R:G:B = 20; 30; 50 respectively, then their ratio is 2:3:5.
[0115] S93. Perform brightness compensation on the brightness value of each color pixel according to the ratio and the brightness gain value. The ratio of the brightness gain value of each color pixel after brightness compensation is the same as the ratio of the grayscale data of each color pixel.
[0116] Based on the brightness gain value determined in the preceding steps, the highest brightness value can be obtained for the current image. In a specific example, such as... Figure 5 As shown, the horizontal axis represents the proportion of high grayscale levels in the image to the total number of displayed pixels, and the vertical axis represents the brightness value (nits) that can be increased to that image, i.e., the brightness gain value. For example, as... Figure 5 As shown, when the input parameter ratio is 1, the brightness of the screen can be increased to 400 nits. That is, the current screen is already at a good display brightness, and under power consumption constraints, there is no need to make significant adjustments.
[0117] For example, if the final brightness gain value can brighten the corresponding 50 gray levels with the largest gray level value to 100 nits, then the ratio of the gray level data obtained after compensation for the remaining color pixels is 40:60:100, ensuring that the original ratio remains unchanged to guarantee the image details. Furthermore, the brightness gain value of this embodiment can improve the full-screen brightness of the image without exceeding the peak brightness, thereby improving the display quality.
[0118] Another embodiment of the present invention provides a brightness compensation device for a display device having a pixel array, wherein the pixel array includes a first pixel, a second pixel, and a third pixel. The display device of this embodiment can be any product or component with display function, such as electronic paper, mobile phone, tablet computer, television, monitor, laptop computer, digital photo frame, or navigator; this embodiment does not limit such applications.
[0119] like Figure 6As shown, another embodiment of the present application provides a display device, comprising a pixel array and a brightness compensation device, the pixel array comprising a first pixel, a second pixel and a third pixel, and the brightness compensation device comprising:
[0120] a gray scale data acquisition module configured to acquire gray scale data of the first pixel, the second pixel and the third pixel, the gray scale data comprising pixel categories and gray scale information;
[0121] a distribution data calculation module configured to obtain, from the gray scale data, a pixel category corresponding to a maximum number of pixels and a count value of the first pixel, the second pixel and the third pixel at each gray scale value, as distribution data;
[0122] a reference data acquisition module configured to determine, from the distribution data corresponding to different gray scale values, distribution data with a maximum count value as reference data;
[0123] a brightness gain value determination module configured to determine, according to a preset gain model, an input parameter of the gain model from the gray scale data corresponding to the reference data, and obtain a brightness gain value corresponding to the input parameter as an output parameter;
[0124] a brightness compensation module configured to perform brightness compensation on a brightness value corresponding to each color pixel according to the brightness gain value.
[0125] In the display device of the embodiment of the present application, the brightness compensation device improves display brightness by using current display screen content, calculates gray scale value distribution of each pixel of the current frame of the display screen, inputs reference data obtained from the gray scale value distribution into a gain model to obtain a brightness gain value to improve display brightness of the current display screen, thereby improving display quality.
[0126] In an optional embodiment, the distribution data calculation module is further configured to find, from a range of 0-255 of the gray scale value, a number of the first pixel, the second pixel and the third pixel at each integer gray scale value, and take a pixel category with a maximum number as a pixel category at the current integer gray scale value, and take a number corresponding to the pixel category as a count value.
[0127] The specific process of determining the distribution data performed by the distribution data calculation module can be referred to the related description of step S3 of the foregoing method embodiment, and will not be described here again.
[0128] In an optional embodiment, the reference data calculation module is further configured to compare count values in the distribution data corresponding to each integer gray scale value from the range of 0-255 of the gray scale value, and if there are distribution data with the same count value, select any one of the distribution data with the same count value as the reference data.
[0129] The reference data calculation module determines the distribution data corresponding to each gray scale value, which includes the pixel category and the count value corresponding to the gray scale value involved in the foregoing process. The working principle and specific process of the reference data calculation module can be referred to the relevant description of step S5 of the foregoing method embodiment, and will not be described here again.
[0130] In an optional embodiment, the luminance gain value determination module is further configured to: retrieve the gray scale data of the first pixel, the second pixel, and the third pixel corresponding to the gray scale value of the reference data; find the number of gray scale values greater than or equal to a preset gray scale value in the gray scale data to determine the input parameter of the gain model; and input the input parameter into the gain model to obtain the luminance gain value corresponding to the input parameter.
[0131] In this embodiment, the input parameter ratio is inversely proportional to the luminance gain value gain, that is, the more the number of high gray scale values, the smaller the luminance gain value, and the more the low gray scale values, the larger the luminance gain value.
[0132] The input parameter and the output luminance gain value of the gain model of the embodiment of the present application are applicable to a linear luminance gain model, a nonlinear luminance gain model, or a discrete numerical luminance gain model. Exemplarily, the input parameter and the luminance gain value are implemented in the same proportion parameter to achieve gain consistency. Further, the luminance gain value of the embodiment of the present application is determined according to the peak luminance of the display device, that is, the luminance gain value determination module of the embodiment of the present application can determine the luminance gain value for improving the full-screen luminance under the picture on the basis of not exceeding the peak luminance. The working principle and specific process of the luminance gain value determination module can be referred to the relevant description of step S7 of the foregoing method embodiment, and will not be described here again.
[0133] In an optional embodiment, the luminance compensation module is further configured to determine the proportional relationship of the gray scale data of each color pixel in the gray scale data corresponding to the luminance gain value; and perform luminance compensation on the luminance value of each color pixel according to the proportional relationship and the luminance gain value, so that the proportional relationship of the luminance value of each color pixel after luminance compensation is the same as the proportional relationship of the gray scale data of each color pixel.
[0134] After compensation by the luminance compensation module, the picture details of the display picture are restored, and the full-screen luminance under the picture can be improved without exceeding the peak luminance, so as to improve the display quality. The working principle and specific process of the luminance compensation module can be referred to the relevant description of step S9 of the foregoing method embodiment, and will not be described here again.
[0135] Another embodiment of the present application provides a computer readable storage medium, having stored thereon a computer program, which when executed by a processor implements: obtaining gray scale data of a first pixel, a second pixel and a third pixel, the gray scale data comprising pixel categories and gray scale information; obtaining, from the gray scale data, for each gray scale value, a pixel category corresponding to the gray scale value and a count value of the first pixel, the second pixel and the third pixel, as distribution data; determining, from the distribution data corresponding to different gray scale values, distribution data with the largest count value as reference data; determining, according to a preset gain model, an input parameter of the gain model from the gray scale data corresponding to the reference data, and obtaining a luminance gain value corresponding to the input parameter as an output parameter; and performing luminance compensation on a luminance value corresponding to each color pixel according to the luminance gain value.
[0136] In practical applications, the computer readable storage medium can adopt any combination of one or more computer readable media. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples (non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, device or apparatus.
[0137] The computer readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the computer readable program code is carried. Such propagated data signals can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a storage medium and that can be used to carry or transmit a program for use by or in connection with an instruction execution system, device or apparatus.
[0138] The program code contained on the computer readable medium can be transmitted using any suitable medium, including but not limited to wireless, wire line, optical cable, RF, etc., or any suitable combination thereof.
[0139] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0140] As shown in Figure 7 FIG. 1, another embodiment of the present application provides a schematic diagram of a computer device. Figure 7 The computer device 12 shown is but one example of a computing environment and should not be construed to limit the scope of functionality or use of embodiments of the present application.
[0141] As shown in Figure 7 FIG. 1, the computer device 12 is representative of a general purpose computing device. Components of the computer device 12 can include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 to the processing unit 16.
[0142] The bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics bus, a processor or local bus using any of a variety of bus architectures. By way of example, these bus architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0143] The computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by the computer device 12 and includes both volatile and non-volatile media, removable and non-removable media.
[0144] System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Figure 7 Although not shown, computer device 12 can employ other, different or Figure 7 additional hardware and / or software modules that can be used in conjunction with the computer device 12, including but not limited to a microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0145] Program / utility 40, having a set (at least one) of program modules 42, can be stored in memory 28 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data, each or some combination thereof, can include implementation of a network environment. Program modules 42 generally carry out the functions and / or methodologies of embodiments of the application as described herein.
[0146] Computer device 12 can also communicate with one or more external devices 14 such as a keyboard or a pointing device, displays 24, etc.; one or more devices that enable a user to interact with computer device 12; and / or one or more devices that enable computer device 12 to communicate with one or more other computing devices. Such communication can be via input / output (I / O) interfaces 22. Still yet, computer device 12 can communicate with one or more networks, such as a local area network (LAN), a wide area network (WAN), and / or the Internet, through network adapter 20. As Figure 7 illustrated, network adapter 20 can communicate with the other components of computer device 12 through bus 18. It should be understood that although not shown, other hardware and / or software components could be used in conjunction with computer device 12. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc. Figure 7
[0147] The processor unit 16 performs various function applications and data processing by running programs stored in the system memory 28, such as implementing a brightness compensation method provided by the embodiments of the present application.
[0148] In the description of the present application, the relative terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus including the element.
[0149] Obviously, the above-described embodiments of the present application are only examples for clearly illustrating the present application, and are not intended to limit the embodiments of the present application. For those skilled in the art, other different forms of changes or variations can be made on the basis of the above description, and it is impossible to enumerate all the embodiments here. Any obvious changes or variations derived from the technical solutions of the present application are still within the protection scope of the present application.
Claims
1. A display device, characterized by comprising: The display device comprises a pixel array and a brightness compensation device, the pixel array comprises a first pixel, a second pixel and a third pixel, The brightness compensation device comprises: a gray scale data acquisition module, configured to acquire gray scale data of the first pixel, the second pixel and the third pixel, the gray scale data comprising pixel categories and gray scale information; a distribution data calculation module, configured to obtain, from the gray scale data, a pixel category corresponding to a largest number of pixels and a count value of the first pixel, the second pixel and the third pixel at each gray scale value, as distribution data; a reference data acquisition module, configured to determine, from the distribution data corresponding to different gray scale values, distribution data with the largest count value as reference data; a brightness gain value determination module, configured to determine, according to a preset gain model, an input parameter of the gain model from the gray scale data corresponding to the reference data, and obtain a brightness gain value corresponding to the input parameter as an output parameter; a brightness compensation module, configured to perform brightness compensation on a brightness value corresponding to each color pixel according to the brightness gain value.
2. The display device according to claim 1, wherein The distribution data calculation module is further configured to find, in a range of 0-255 of the gray scale value, a number of the first pixel, the second pixel and the third pixel at each integer gray scale value, and take a pixel with the largest number as a pixel category at the current integer gray scale value, and take a number corresponding to the pixel category as a count value.
3. The display device according to claim 1, wherein The reference data calculation module is further configured to compare the count values in the distribution data corresponding to each integer gray scale value in the range of 0-255 of the gray scale value, and select any one of the distribution data with the same count value as the reference data if there is the distribution data with the same count value.
4. The display device according to claim 1, wherein The brightness gain value determination module is further configured to call the gray scale value corresponding to the reference data, and the gray scale data of the first pixel, the second pixel and the third pixel; In the gray scale data, find a number of gray scale values greater than or equal to a preset gray scale value to determine an input parameter of the gain model; input the input parameter into the gain model to obtain a brightness gain value corresponding to the input parameter.
5. The display device according to claim 1, wherein The brightness compensation module is further configured to determine a proportional relationship of the gray scale data of each color pixel in the gray scale data corresponding to the brightness gain value; and perform brightness compensation on a brightness value of each color pixel according to the proportional relationship and the brightness gain value, and a proportional relationship of the brightness value of each color pixel after the brightness compensation is the same as a proportional relationship of the gray scale data of each color pixel.
6. A brightness compensation method of a display device, characterized by, The display device comprises a pixel array, the pixel array comprises a first pixel, a second pixel and a third pixel, The brightness compensation method comprises: acquiring gray scale data of the first pixel, the second pixel and the third pixel, the gray scale data comprising pixel categories and gray scale information; obtaining, from the gray scale data, a pixel category corresponding to a largest number of pixels and a count value of the first pixel, the second pixel and the third pixel at each gray scale value, as distribution data; determining, from the distribution data corresponding to different gray scale values, distribution data with the largest count value as reference data; determining an input parameter of the gain model from the gray scale data corresponding to the reference data, and obtaining a luminance gain value corresponding to the input parameter as an output parameter according to the preset gain model; performing luminance compensation on a luminance value corresponding to each color pixel according to the luminance gain value.
7. The luminance compensation method according to claim 6, wherein The method further includes: dividing the pixel array into a plurality of pixel regions; finding, in each pixel region, a number of the first, second, and third pixels at each integer gray scale value from a range of 0-255; taking the pixel with the largest number as a pixel category corresponding to the integer gray scale value in the current pixel region, and taking the number corresponding to the pixel category as a pixel region value of the current pixel region; and determining a maximum pixel region value from all the pixel region values as the count value. The method further includes: dividing the pixel array into a plurality of pixel regions; finding, in each pixel region, a number of the first, second, and third pixels at each integer gray scale value from a range of 0-255; taking the pixel with the largest number as a pixel category corresponding to the integer gray scale value in the current pixel region, and taking the number corresponding to the pixel category as a pixel region value of the current pixel region; and determining a maximum pixel region value from all the pixel region values as the count value. The method further includes: retrieving the gray scale value corresponding to the reference data and the gray scale data of the first, second, and third pixels; finding, in the gray scale data, a number of gray scale values that are greater than or equal to a preset gray scale value to determine the input parameter of the gain model; and inputting the input parameter into the gain model to obtain the luminance gain value corresponding to the input parameter.
8. The luminance compensation method according to claim 6, wherein, The method further includes: determining a proportional relationship of the gray scale data of each color pixel in the gray scale data corresponding to the luminance gain value; and performing luminance compensation on the luminance value of each color pixel according to the proportional relationship and the luminance gain value, so that the proportional relationship of the luminance gain value of each color pixel after the luminance compensation is the same as the proportional relationship of the gray scale data of each color pixel. The method further includes: dividing the pixel array into a plurality of pixel regions; finding, in each pixel region, a number of the first, second, and third pixels at each integer gray scale value from a range of 0-255; taking the pixel with the largest number as a pixel category corresponding to the integer gray scale value in the current pixel region, and taking the number corresponding to the pixel category as a pixel region value of the current pixel region; and determining a maximum pixel region value from all the pixel region values as the count value. The program is executed by the processor to implement the method of any one of claims 6-10. The processor executes the program to implement the method of any one of claims 6-10.
9. The luminance compensation method of claim 6, wherein, 10. The luminance compensation method of claim 6, wherein, 11. A computer readable storage medium having stored thereon a computer program, characterized in that, 12. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that,
Citation Information
Patent Citations
Pixel brightness determination method and device, computer equipment and readable medium
CN114240943A
Image processing method and device, display equipment, electronic equipment and storage medium
CN115294912A