Compensation method and device of display panel, electronic equipment and storage medium
By calculating the linear target loading and compensation slope to compensate the display panel, the problem of inaccurate brightness and color compensation in the existing technology is solved, and higher color reproduction accuracy and applicability are achieved.
Patent Information
- Application Number
- CN202410227671.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-02-29
AI Technical Summary
Existing technology cannot achieve Lr+Lg+Lb=Lw, and cannot simultaneously and accurately compensate for brightness and chromaticity of display images with different backgrounds and different proportions, resulting in inaccurate color reproduction of the display panel.
By calculating the linear target loading, linear grayscale, and compensation slope, the compensation value is calculated and the display panel is compensated to achieve Lr+Lg+Lb=Lw. The brightness and color of the display screen under different proportions and backgrounds are adjusted to be consistent with the 100% display, and all grayscale in the general display screen are compensated.
It improves the accuracy of color reproduction of the display panel, is suitable for images with more different backgrounds and grayscale levels, and reduces deviations in the compensation process.
Smart Images

Figure CN117894281B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and more specifically, to a compensation method, apparatus, electronic device, and storage medium for a display panel. Background Technology
[0002] When an image is displayed, the total current required for all sub-pixels to emit light is transmitted to each sub-pixel of the panel via the DDIC (Display Driver IC) and metal wires. The resistance of the metal wires themselves causes a drop in the ELVDD (positive power supply voltage in the display panel) voltage reaching the panel. The out-of-plane IR drop phenomenon refers to the phenomenon that when different display backgrounds or different display areas are displayed on the panel, different display colors and brightness will appear.
[0003] Currently, out-of-plane IR drop compensation methods typically compensate for specific smooth scenes based on the content detection results of the input image.
[0004] However, this method cannot achieve Lr + Lg + Lb = Lw (where Lr represents the brightness of the red image, Lg represents the brightness of the green image, Lb represents the brightness of the blue image, and Lw represents the brightness of the high grayscale image), nor can it simultaneously compensate the brightness and chromaticity of images with different backgrounds and proportions to meet the error standard. This means that the sum of the brightness of these three colors is not equal to the theoretical white brightness, which does not conform to the principle of no-loading compensation. Furthermore, compensation for general images cannot be achieved. Summary of the Invention
[0005] The purpose of this application is to provide a compensation method, device, electronic device, and storage medium for a display panel. The method calculates a compensation value based on the linear target loading, linear grayscale, and compensation slope, and compensates the display panel according to the compensation value, so as to achieve Lr+Lg+Lb=Lw and Ll=Ls during the display process of the display panel, and ultimately improves the accuracy of the display panel in color reproduction.
[0006] In a first aspect, this application provides a compensation method for a display panel, comprising:
[0007] Perform a gamma transformation on the input image to be displayed to obtain a linear image after the gamma transformation;
[0008] Obtain the linear average gray level of each color sub-pixel and the linear gray level of a single sub-pixel in the linear image;
[0009] The linear target loading of the image to be displayed is calculated based on the linear average gray level and the loading weights assigned to the luminous current of each color sub-pixel.
[0010] The compensation value is calculated based on the linear target loading, the linear grayscale, and the compensation slope; wherein the compensation slope is determined based on the compensation parameters used when compensating the attribute parameters of the first specific image with the first background ratio displayed on the display panel to be consistent with the attribute parameters of the second specific image with the second background ratio; and
[0011] The compensation value is used to compensate the image to be displayed.
[0012] The aforementioned compensation method for the display panel calculates a compensation value based on the linear target loading, linear grayscale, and compensation slope. This compensation value is then used to compensate the display panel, achieving Lr + Lg + Lb = Lw during the display process. Furthermore, it adjusts the brightness and color of the displayed image under different proportions and backgrounds to match the brightness and color of the image at 100% display, and compensates for all grayscale levels present in general display images. Consequently, it improves the accuracy of color reproduction in the display panel.
[0013] In conjunction with the first aspect, optionally, the linear average grayscale of each color sub-pixel includes the linear average grayscale averR of the red sub-pixel, the linear average grayscale averG of the green sub-pixel, and the linear average grayscale averB of the blue sub-pixel.
[0014] The calculation formulas for the linear average grayscale of the red sub-pixel, the linear average grayscale of the green sub-pixel, and the linear average grayscale of the blue sub-pixel are as follows:
[0015]
[0016]
[0017]
[0018] Wherein, TGrayR represents the sum of linear gamma gray levels of red sub-pixels in the image to be displayed, and NumR represents the total number of red sub-pixels in the image to be displayed; TGrayG represents the sum of linear gamma gray levels of green sub-pixels in the image to be displayed, and NumG represents the total number of green sub-pixels in the image to be displayed; TGrayB represents the sum of linear gamma gray levels of blue sub-pixels in the image to be displayed, and NumB represents the total number of blue sub-pixels in the image to be displayed.
[0019] The aforementioned compensation method for the display panel calculates the linear average grayscale of each color sub-pixel individually, enabling more precise adjustments to each color channel during the compensation process and reducing deviations. Ultimately, this further improves the accuracy of color reproduction in the display panel.
[0020] In conjunction with the first aspect, optionally, calculating the linear target loading of the image to be displayed based on the linear average grayscale and the loading weights assigned to the luminous currents of each color sub-pixel includes:
[0021] The linear target loading is calculated according to the following formula:
[0022] Loading_cur=averR*FR+averG*FG+averB*GB
[0023] Wherein, Loading_cur represents the linear target loading, FR represents the loading weight of the luminous current allocation of the red sub-pixel, FG represents the loading weight of the luminous current allocation of the green sub-pixel, and FB represents the loading weight of the luminous current allocation of the blue sub-pixel.
[0024] The aforementioned compensation method for the display panel improves the accuracy of linear target loading calculation by determining the loading weight of the luminous current allocation for each color sub-pixel and calculating the linear target loading based on the weight, thereby further improving the accuracy of the display panel in color reproduction.
[0025] In conjunction with the first aspect, optionally, the specific method for determining the compensation slope includes the following steps:
[0026] Obtain the first attribute parameters for displaying the first specific image and the second attribute parameters for displaying the second specific image on the display panel; wherein the foreground test grayscale of the first specific image and the second specific image are consistent;
[0027] Determine the compensation parameters required to compensate the first attribute parameter to be consistent with the second attribute parameter; wherein, the compensation parameters include the red sub-pixel compensation parameter ofsR, the green sub-pixel compensation parameter ofsG, and the blue sub-pixel compensation parameter ofsB;
[0028] The compensation slope is calculated according to the formula Grid = (ofsR, ofsG, ofsB) / loading diff; where loading diff represents the difference between the first linear loading of the first specific frame and the second linear loading of the second specific frame.
[0029] The aforementioned compensation method for the display panel determines the compensation slope based on the ratio of the difference between the compensation parameters of each pixel and the linear loading difference between the first and second specific images. This allows the compensation method for the display panel provided in this application to be applicable to more images with different backgrounds and grayscale levels, thereby improving the applicability of the method.
[0030] In conjunction with the first aspect, optionally, the calculation formulas for the first linear loading and the second linear loading are as follows:
[0031]
[0032]
[0033] Among them, gray max The theoretical maximum grayscale value of the image to be displayed is represented by loading1, loading1 represents the first linear loading, s represents the first background ratio, loading2 represents the second linear loading, l represents the second background ratio, and gray represents the grayscale of the first specific image and the second specific image.
[0034] The above-mentioned compensation method for the display panel determines the corresponding linear grayscale based on the background ratio and grayscale value, enabling the compensation method for the display panel provided in this application to be applicable to images with more different background ratios, thereby improving the applicability of the method and further improving the accuracy of the display panel in color reproduction.
[0035] In conjunction with the first aspect, optionally, the first background percentage is the minimum background percentage for the display panel to display the first specific image; the second background percentage is 100%.
[0036] The above-mentioned compensation method for the display panel improves the difference between the first and second linear loading by selecting the minimum and maximum values of the first and second background ratios in the formulas for calculating the first and second linear loading, respectively. This improves the calculation accuracy of the compensation slope loading diff and ultimately further enhances the accuracy of the display panel in color reproduction.
[0037] In conjunction with the first aspect, optionally, the compensation slope includes a black background compensation slope (Grid). Ne Compensation slope Grid with white background Po ;
[0038] The formula for calculating the black background compensation slope is:
[0039]
[0040] Among them, the first specific image is the first high grayscale image, the first background proportion is the first black background proportion, the second specific image is the second high grayscale image, and the second background proportion is the second black background proportion;
[0041] The formula for calculating the white background compensation slope is:
[0042]
[0043] Among them, the first specific image is the first low grayscale image, the first background proportion is the first white background proportion, the second specific image is the second low grayscale image, and the second background proportion is the second white background proportion.
[0044] The step of calculating the compensation value based on the linear target loading, the linear grayscale, and the compensation slope includes:
[0045] Determine whether the linear target loading is less than the linear gray level;
[0046] If it is determined that the linear target loading is less than the linear grayscale, then the compensation value is calculated based on the linear target loading, the linear grayscale, and the black background compensation slope.
[0047] If it is determined that the linear target loading is not less than the linear grayscale, then the compensation value is calculated based on the linear target loading, the linear grayscale, and the white background compensation slope.
[0048] The aforementioned compensation method for the display panel determines whether the relevant pixels require positive or negative compensation based on the relationship between the linear target loading and the linear grayscale. This determines whether to use a black background compensation slope or a white background compensation slope to calculate the compensation value, further improving the accuracy of the display panel compensation and ultimately enhancing the accuracy of the display panel in color reproduction.
[0049] Secondly, this application also provides a compensation device for a display panel, including a transformation module, an acquisition module, a calculation module, and a compensation module;
[0050] The transformation module is used to perform gamma transformation on the input image to be displayed to obtain a linear image after gamma transformation;
[0051] The acquisition module is used to acquire the linear average gray level of each color sub-pixel and the linear gray level of a single sub-pixel in the linear image.
[0052] The calculation module is used to calculate the linear target loading of the image to be displayed based on the linear average gray level and the loading weight assigned to the luminous current of each color sub-pixel.
[0053] The calculation module is also used to calculate the compensation value based on the linear target loading, the linear grayscale, and the compensation slope; wherein, the compensation slope is determined based on the compensation parameters used when the attribute parameters of the first specific image with the first background ratio displayed on the display panel are compensated to be consistent with the attribute parameters of the second specific image with the second background ratio.
[0054] The compensation module is used to compensate the image to be displayed using the compensation value.
[0055] The above-described compensation device for the display panel has the same beneficial effects as the compensation method for the display panel provided in the first aspect or any alternative embodiment of the first aspect, and will not be elaborated here.
[0056] Thirdly, this application also provides an electronic device, including: a processor and a memory, the memory storing machine-readable instructions executable by the processor, which, when executed by the processor, perform the methods described above.
[0057] The above-described electronic device has the same beneficial effects as the compensation method for a display panel provided in the first aspect or any alternative embodiment of the first aspect, which will not be elaborated here.
[0058] Fourthly, this application also provides a storage medium, the storage medium including a computer-readable storage medium on which a computer program is stored, the computer program being executed by a processor to perform the methods described above.
[0059] The aforementioned storage medium has the same beneficial effects as the compensation method for a display panel provided by the first aspect or any alternative embodiment of the first aspect, and will not be elaborated here.
[0060] In summary, the compensation method, apparatus, electronic device, and storage medium for the display panel provided in this application achieve Lr+Lg+Lb=Lw during the display process, and also adjust the brightness and chromaticity of the display screen under different proportions and backgrounds to be consistent with the brightness and chromaticity of the screen when displayed at 100%, and compensate for all gray levels present in general display screens. This improves the accuracy of color reproduction in the display panel. Calculating the linear average gray level of each color sub-pixel individually allows for more precise adjustment of each color channel during the compensation process, reducing deviations in the compensation process. The compensation slope is determined based on the ratio of the difference between the compensation parameters of each pixel and the linear loading difference between the first and second specific screens. This makes the compensation method for the display panel provided in this application applicable to more screens with different backgrounds and gray levels, thus improving its applicability. Calculating the compensation value using a black background compensation slope or a white background compensation slope based on the relationship between the linear target loading and the linear gray level of the sub-pixels further improves the accuracy of the compensation for the display panel, ultimately further improving the accuracy of color reproduction in the display panel. Attached Figure Description
[0061] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0062] Figure 1 A schematic diagram illustrating two images to be displayed as provided in embodiments of this application;
[0063] Figure 2 A flowchart illustrating the compensation method for a display panel provided in an embodiment of this application;
[0064] Figure 3 A flowchart illustrating the method for determining the compensation slope in the compensation method for the display panel provided in this application embodiment;
[0065] Figure 4 A detailed flowchart of S170 in the compensation method for the display panel provided in the embodiments of this application;
[0066] Figure 5 A schematic diagram of the functional modules of the compensation device for the display panel provided in the embodiments of this application;
[0067] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0068] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this application.
[0070] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0071] Please refer to Figure 1 , Figure 1 These are schematic diagrams illustrating two images to be displayed provided in embodiments of this application. For example... Figure 1 As shown in (a), a 10% white area against a black background results in a higher brightness value for the white area. Figure 1 As shown in (b), the brightness value of a 100% white screen is similar to... Figure 1 Compared to the white screen in (a), the brightness is much lower, and at the same time, Figure 1 (a) and Figure 1 The chromaticity also differs between the two high grayscale images in (b).
[0072] To address the aforementioned phenomenon, the commonly used out-of-plane IR drop compensation method involves first measuring the brightness of the white display at different display ratios under key grayscale levels (e.g., 32 / 64 / 128 / 192 / 224 grayscale levels), recording the ratio and corresponding brightness value Lw_apl; then, measuring the brightness of the high grayscale level image at the full display of key grayscale levels, denoted as Lw_100; next, adding a compensation value to the input grayscale of the high grayscale image at different ratios to adjust the brightness to be equal to the brightness of the full white display; finally, storing the grayscale compensation values for the corresponding proportions of red / green / blue / white in the DDIC, which calls these stored compensation values when the DDIC executes its algorithm.
[0073] It is evident that this method cannot achieve Lr+Lg+Lb=Lw (where Lr represents the brightness of the red image, Lg represents the brightness of the green image, Lb represents the brightness of the blue image, and Lw represents the brightness of the high grayscale image), and there are differences in brightness and color between high grayscale images with different proportions, which usually leads to inaccuracies in color reproduction of the display panel.
[0074] In view of this, this application provides a compensation method, apparatus, electronic device, and storage medium for a display panel to solve the aforementioned technical problems. Specifically, please refer to the embodiments and accompanying drawings provided in this application.
[0075] Please refer to Figure 2 , Figure 2 This is a flowchart of a compensation method for a display panel provided in an embodiment of this application. The compensation method for a display panel provided in this application can be applied to a controller and may include:
[0076] Step S110: Perform gamma transformation on the input image to be displayed to obtain a linear image after gamma transformation.
[0077] In step S110 above, a suitable gamma factor can be selected according to actual needs. A gamma transformation is performed on each pixel in the image, and the new grayscale value is calculated according to the basic formula of the gamma transformation.
[0078] Step S130: Obtain the linear average gray level of each color sub-pixel and the linear gray level of a single sub-pixel in the linear image.
[0079] In step S130 above, the linear average gray level of each color sub-pixel in the linear image can be calculated based on the sum of the linear gamma gray levels of each color sub-pixel and the total number of each color sub-pixel. The linear gray level of a single sub-pixel can be directly obtained from the channel of the corresponding color pixel.
[0080] Step S150: Calculate the linear target loading of the image to be displayed based on the linear average gray level and the loading weights assigned to the luminous current of each color sub-pixel.
[0081] In step S150 above, the loading weight of the light emission current allocation of each color sub-pixel can be determined based on the current load of the corresponding sub-pixel in the circuit of the display panel.
[0082] Step S170: Calculate the compensation value based on the linear target loading, linear grayscale, and compensation slope. The compensation slope can be determined by using compensation parameters that compensate the attribute parameters of the first specific screen displaying the first background percentage to be consistent with the attribute parameters of the second specific screen displaying the second background percentage.
[0083] In step S170 above, the specific formula for calculating the compensation value can be:
[0084] Offset=(Loading_cur-Gray_data)*Grid
[0085] Offset represents the compensation value, Loading_cur represents the linear target loading, Gray_data represents the linear grayscale, and Grid represents the compensation slope.
[0086] The compensation slope can be determined by controlling the display panel to display the first specific image (with a first background ratio) at a specific grayscale, and measuring its corresponding attribute parameters. Then, controlling the display surface to display the second specific image (with a second background ratio) at the same grayscale, and measuring its corresponding attribute parameters. The attribute parameters can be brightness and chromaticity. By compensating the first specific image displayed on the display panel, the difference between the attribute parameters of the first and second specific images is made less than a preset attribute parameter difference, thus determining the aforementioned compensation value.
[0087] Step S190: Compensate the image to be displayed using the compensation value.
[0088] In step S190 above, the voltage of each color sub-pixel in the display panel can be compensated according to the compensation voltage corresponding to the compensation value.
[0089] In the above implementation process, a compensation value is calculated based on the linear target loading, linear grayscale, and compensation slope. This compensation value is then used to compensate the display panel, achieving Lr + Lg + Lb = Lw during the display process. Furthermore, it adjusts the brightness and color of the displayed image under different proportions and backgrounds to match the brightness and color of the image at 100% display, and compensates for all grayscale levels present in general display images. This improves the accuracy of color reproduction in the display panel.
[0090] In some alternative implementations, the linear average grayscale of each color subpixel may include the linear average grayscale averR of the red subpixel, the linear average grayscale averG of the green subpixel, and the linear average grayscale averB of the blue subpixel.
[0091] The formulas for calculating the linear average grayscale of red sub-pixels, green sub-pixels, and blue sub-pixels can be as follows:
[0092]
[0093]
[0094]
[0095] Specifically, TGrayR represents the sum of linear gamma gray levels of red sub-pixels in the image to be displayed, and NumR represents the total number of red sub-pixels in the image to be displayed. TGrayG represents the sum of linear gamma gray levels of green sub-pixels in the image to be displayed, and NumG represents the total number of green sub-pixels in the image to be displayed. TGrayB represents the sum of linear gamma gray levels of blue sub-pixels in the image to be displayed, and NumB represents the total number of blue sub-pixels in the image to be displayed.
[0096] In the above implementation process, by calculating the linear average grayscale of each color sub-pixel separately, the compensation process for the display panel can be adjusted more precisely for each color channel, reducing deviations in the compensation process. Ultimately, this further improves the accuracy of color reproduction in the display panel.
[0097] In some alternative implementations, step S150 may include:
[0098] Step S151: Calculate the linear target loading according to the following formula:
[0099] Loading_cur=averR*FR+averG*FG+averB*GB
[0100] Among them, Loading_cur can represent the linear target loading, FR can represent the loading weight of the luminous current allocation of the red sub-pixel, FG can represent the loading weight of the luminous current allocation of the green sub-pixel, and FB can represent the loading weight of the luminous current allocation of the blue sub-pixel.
[0101] In the above implementation process, by determining the loading weight of the luminous current allocation of each color sub-pixel and calculating the linear target loading based on the weight, the calculation accuracy of the linear target loading is improved, thereby further improving the accuracy of the display panel in color reproduction.
[0102] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating the method for determining the compensation slope in the compensation method for the display panel provided in this application embodiment. In some optional embodiments, the specific method for determining the compensation slope may include the following steps:
[0103] Step S210: Obtain the first attribute parameters for displaying the first specific image and the second attribute parameters for displaying the second specific image on the display panel. The foreground test grayscale of the first specific image and the second specific image are consistent.
[0104] In step S210 above, the first specific image can be a white image representing a first background percentage against a black background, for example, 10%; it can also be a black image representing a first background percentage against a white background; it can also be a white image representing a first background percentage against a red background, and so on. The second specific image can be a white image representing a second background percentage against a black background, for example, 40%; it can also be a black image representing a first background percentage against a white background; it can also be a white image representing a first background percentage against a red background, and so on. The backgrounds and images within the backgrounds of the first and second specific images are identical. For example, both the first and second specific images are white images against a black background.
[0105] Regarding the consistency of the foreground test grayscale between the first specific image and the second specific image, it can be that the grayscale of the first specific image and the second specific image are equal, for example: the grayscale of the first specific image and the second specific image are both 255.
[0106] The first attribute parameter may include the first brightness and the first chromaticity of the first specific image, and the second attribute parameter may include the second brightness and the second chromaticity of the second specific image.
[0107] Step S230: Determine the compensation parameters required to compensate the first attribute parameter to be consistent with the second attribute parameter. The compensation parameters may include the red sub-pixel compensation parameter ofsR, the green sub-pixel compensation parameter ofsG, and the blue sub-pixel compensation parameter ofsB.
[0108] In step S230 above, compensation may be performed on the first specific image so that the difference between the first brightness and the second brightness is less than a brightness difference threshold, and the difference between the first chromaticity and the second chromaticity is less than a chromaticity difference threshold. The compensation parameters corresponding to the compensation process are respectively determined as the red sub-pixel compensation parameter ofsR, the green sub-pixel compensation parameter ofsG, and the blue sub-pixel compensation parameter ofsB.
[0109] Step S250: Calculate the compensation slope using the formula Grid = (ofsR, ofsG, ofsB) / loading diff. Here, loading diff represents the difference between the first linear loading of the first specific frame and the second linear loading of the second specific frame. Grid = (ofsR, ofsG, ofsB) / loading diff
[0110] In the above implementation process, the compensation slope is determined based on the ratio of the difference between the compensation parameters of each pixel and the linear loading difference between the first specific image and the second specific image. This allows the compensation method for the display panel provided in this application embodiment to be applicable to more images with different backgrounds and different gray levels, thereby improving the applicability of the method.
[0111] In some alternative implementations, the calculation formulas for the first linear loading and the second linear loading can be:
[0112]
[0113]
[0114] Among them, gray max It can represent the theoretical maximum grayscale value of the image to be displayed, such as 255, 1024, etc. loading1 can represent the first linear loading, s can represent the first background ratio, loading2 can represent the second linear loading, l can represent the second background ratio, and gray can represent the grayscale of the first specific image and the second specific image.
[0115] In the above implementation process, by determining the corresponding linear grayscale based on the background ratio and grayscale value, the compensation method of the display panel provided in this application embodiment can be applied to more images with different background ratios, thereby improving the applicability of the method and further improving the accuracy of the display panel in color reproduction.
[0116] In some alternative implementations, the first background percentage can be the minimum background percentage for the display panel to display a first specific image. The second background percentage can be 100%.
[0117] Minimum background percentage refers to the smallest background area that the display panel can show during the display process. 100% second background percentage usually means the largest background area that the display panel can show during the display process.
[0118] In the above implementation process, by selecting the minimum and maximum values of the first background ratio and the second background ratio in the formulas for calculating the first linear loading and the second linear loading respectively, the difference between the first linear loading and the second linear loading is improved, thereby improving the calculation accuracy of the compensation slope loading diff, and ultimately further improving the accuracy of the display panel in color reproduction.
[0119] In some alternative implementations, the compensation slope may include a black background compensation slope grid. NeCompensation slope Grid with white background Po .
[0120] The formula for calculating the slope of the black background compensation is as follows:
[0121]
[0122] Among them, the first specific image can be the first high grayscale image, the first background proportion can be the first black background proportion, the second specific image can be the second high grayscale image, and the second background proportion can be the second black background proportion.
[0123] The formula for calculating the white background compensation slope can be:
[0124]
[0125] Among them, the first specific image can be a first low grayscale image, the first background proportion can be a first white background proportion, the second specific image can be a second low grayscale image, and the second background proportion can be a second white background proportion.
[0126] Since the first and second specific frames are both high-grayscale frames with a corresponding proportion of black background, the slope Grid is used to compensate for the black background. Ne The compensation applied to the panel is typically negative compensation, meaning it reduces the grayscale of subpixels. Accordingly, when the first and second specific frames are low-grayscale frames with corresponding white background percentages, a white background compensation grid is used. Po The compensation applied to the panel is usually positive compensation, which means increasing the grayscale of the sub-pixels through compensation.
[0127] Accordingly, please refer to Figure 4 , Figure 4 This is a flowchart illustrating step S170 of the compensation method for a display panel provided in this application embodiment. Step S170 may include:
[0128] Step S171: Determine whether the linear target loading is less than the linear gray level.
[0129] If it is determined that the linear target loading is less than the linear grayscale, then step S172 is executed: calculate the compensation value based on the linear target loading, the linear grayscale, and the black background compensation slope.
[0130] In step S172 above, if the linear target loading is less than the linear gray level, it usually indicates that the sub-pixel needs to be negatively compensated. Therefore, the compensation value is calculated using the black background compensation slope.
[0131] If it is determined that the linear target loading is not less than the linear gray level, then step S173 is executed: calculate the compensation value based on the linear target loading, the linear gray level, and the white background compensation slope.
[0132] In step S173 above, if the linear target loading is greater than the linear grayscale, it usually indicates that the sub-pixel needs to be positively compensated. Therefore, the compensation value is calculated using the white background compensation slope.
[0133] In the above implementation process, based on the relationship between the linear target loading and the linear grayscale, it is determined whether the relevant pixels require positive or negative compensation, and then it is determined whether to use the black background compensation slope or the white background compensation slope to calculate the compensation value, which further improves the accuracy of compensation for the display panel, and ultimately further improves the accuracy of the display panel in color reproduction.
[0134] Based on the same inventive concept, please refer to the reference figure. Figure 5 This is a functional block diagram of the compensation device 500 for a display panel provided in an embodiment of this application. The compensation device 500 for a display panel provided in an embodiment of this application may include: a transformation module 510, an acquisition module 520, a calculation module 530, and a compensation module 540.
[0135] The transformation module 510 can be used to perform gamma transformation on the input image to be displayed to obtain a linear image after gamma transformation.
[0136] The acquisition module 520 can be used to acquire the linear average gray level of each color sub-pixel in a linear image and the linear gray level of a single sub-pixel.
[0137] The calculation module 530 can be used to calculate the linear target loading of the image to be displayed based on the linear average gray level and the loading weights assigned to the luminous current of each color sub-pixel.
[0138] The calculation module 530 can also be used to calculate the compensation value based on the linear target loading, linear grayscale, and compensation slope. The compensation slope can be determined by the compensation parameters used when compensating the attribute parameters of the first specific screen with the first background ratio displayed on the display panel to be consistent with the attribute parameters of the second specific screen with the second background ratio.
[0139] The compensation module 540 can be used to compensate the image to be displayed using the compensation value.
[0140] In some optional implementations, the linear average grayscale of each color sub-pixel includes the linear average grayscale averR of the red sub-pixel, the linear average grayscale averG of the green sub-pixel, and the linear average grayscale averB of the blue sub-pixel. The calculation formulas for the linear average grayscale of the red sub-pixel, the green sub-pixel, and the blue sub-pixel are as follows:
[0141]
[0142]
[0143]
[0144] Wherein, TGrayR represents the sum of the linear gamma gray levels of the red sub-pixels in the image to be displayed, and NumR represents the total number of red sub-pixels in the image to be displayed. TGrayG represents the sum of the linear gamma gray levels of the green sub-pixels in the image to be displayed, and NumG represents the total number of green sub-pixels in the image to be displayed. TGrayB represents the sum of the linear gamma gray levels of the blue sub-pixels in the image to be displayed, and NumB represents the total number of blue sub-pixels in the image to be displayed.
[0145] In some optional implementations, during the process of calculating the linear target loading of the image to be displayed based on the linear average grayscale and the loading weights assigned to the luminous current of each color sub-pixel, the calculation module 530 may specifically be used to: calculate the linear target loading according to the following formula:
[0146] Loading_cur=averR*FR+averG*FG+averB*GB
[0147] Where Loading_cur represents the linear target loading, FR represents the loading weight of the luminous current allocation of the red sub-pixel, FG represents the loading weight of the luminous current allocation of the green sub-pixel, and FB represents the loading weight of the luminous current allocation of the blue sub-pixel.
[0148] In some optional implementations, during the specific process of compensating the slope, the calculation module 530 may be used to: obtain a first attribute parameter for displaying a first specific image and a second attribute parameter for displaying a second specific image on the display panel. The foreground test grayscale of the first specific image and the second specific image are consistent. The calculation module determines the compensation parameters required to compensate the first attribute parameter to be consistent with the second attribute parameter. These compensation parameters include a red sub-pixel compensation parameter ofsR, a green sub-pixel compensation parameter ofsG, and a blue sub-pixel compensation parameter ofsB. The calculation module calculates the compensation slope according to the formula Grid = (ofsR, ofsG, ofsB) / loading diff. Here, loading diff represents the difference between the first linear loading of the first specific image and the second linear loading of the second specific image.
[0149] In some optional implementations, the calculation formulas for the first linear loading and the second linear loading are as follows:
[0150]
[0151]
[0152] Among them, gray max The theoretical maximum grayscale value of the image to be displayed is represented by loading1, loading1 represents the first linear loading, s represents the first background ratio, loading2 represents the second linear loading, l represents the second background ratio, and gray represents the grayscale of the first specific image and the second specific image.
[0153] In some alternative implementations, the first background percentage is the minimum background percentage for the display panel to display a first specific image. The second background percentage is 100%.
[0154] In some alternative implementations, the compensation slope includes a black background compensation slope Grid. Ne Compensation slope Grid with white background Po The formula for calculating the slope of the black background compensation is: Among them, the first specific image is the first high grayscale image, the first background proportion is the first black background proportion, the second specific image is the second high grayscale image, and the second background proportion is the second black background proportion.
[0155] The formula for calculating the white background compensation slope is: Among them, the first specific image is the first low grayscale image, the first background proportion is the first white background proportion, the second specific image is the second low grayscale image, and the second background proportion is the second white background proportion.
[0156] Accordingly, in the process of calculating the compensation value based on the linear target loading, the linear grayscale, and the compensation slope, the calculation module 530 can specifically be used to: determine whether the linear target loading is less than the linear grayscale. If it is determined that the linear target loading is less than the linear grayscale, then the compensation value is calculated based on the linear target loading, the linear grayscale, and the black background compensation slope. If it is determined that the linear target loading is not less than the linear grayscale, then the compensation value is calculated based on the linear target loading, the linear grayscale, and the white background compensation slope.
[0157] It should be understood that this device corresponds to the above-described compensation method embodiment for the display panel and is capable of performing the various steps involved in the above method embodiment. The specific functions of this device can be found in the description above, and detailed descriptions are omitted here to avoid repetition. The device includes at least one software function module that can be stored in memory or embedded in the device's operating system (OS) in the form of software or firmware.
[0158] Based on the same inventive concept, please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of the electronic device 600 provided in an embodiment of this application. The electronic device 600 may include a memory 611, a memory controller 612, a processor 613, a peripheral interface 614, an input / output unit 615, and a display unit 616. Those skilled in the art will understand that... Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device 600. For example, the electronic device 600 may also include components that are more... Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown.
[0159] The aforementioned memory 611, memory controller 612, processor 613, peripheral interface 614, input / output unit 615, and display unit 616 are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The aforementioned processor 613 is used to execute executable modules stored in the memory.
[0160] The memory 611 can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory 611 stores programs, and the processor 613 executes these programs upon receiving execution instructions. The methods executed by the electronic device 600, as defined in any embodiment of this application, can be applied to or implemented by the processor 613.
[0161] The aforementioned processor 613 may be an integrated circuit chip with signal processing capabilities. The processor 613 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a digital signal processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor.
[0162] The peripheral interface 614 described above couples various input / output devices to the processor 613 and the memory 611. In some embodiments, the peripheral interface 614, the processor 613, and the memory controller 612 can be implemented in a single chip. In other instances, they can be implemented by separate chips.
[0163] The input / output unit 615 described above is used to provide user input data. The input / output unit 615 may be, but is not limited to, a mouse and a keyboard.
[0164] The aforementioned display unit 616 provides an interactive interface (e.g., a user interface) between the electronic device 600 and the user, or displays image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display (LCD) or a touch display. If it is a touch display, it can be a capacitive touchscreen or a resistive touchscreen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated simultaneously from one or more locations on the touch display and pass the sensed touch operations to the processor for calculation and processing.
[0165] The electronic device 600 in this embodiment can be used to perform the various steps in the various methods provided in the embodiments of this application.
[0166] This application also provides a storage medium, which includes a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the methods described above.
[0167] The computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0168] In summary, the compensation methods, devices, electronic devices, and storage media for display panels provided in the various embodiments of this application achieve Lr+Lg+Lb=Lw during the display process, and also adjust the brightness and chromaticity of the display screen under different proportions and backgrounds to be consistent with the brightness and chromaticity of the screen when displayed at 100%, and compensate for all gray levels present in general display screens. This improves the accuracy of color reproduction in the display panel. Calculating the linear average gray level of each color sub-pixel individually allows for more precise adjustment of each color channel during the compensation process, reducing deviations in the compensation process. The compensation slope is determined based on the ratio of the pixel compensation parameters to the difference in linear loading between the first and second specific screens. This makes the compensation method for display panels provided in this application applicable to more screens with different backgrounds and gray levels, thus improving its applicability. Calculating the compensation value using a black background compensation slope or a white background compensation slope based on the relationship between the linear target loading and the linear gray level further improves the accuracy of the display panel compensation, ultimately further improving the accuracy of color reproduction in the display panel.
[0169] It should be understood that the disclosed apparatus and methods can also be implemented in other ways, given the several embodiments provided in this application. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0170] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0171] The above description is only an optional implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application.
Claims
1. A compensation method of a display panel, characterized by, The method comprises the following steps: performing gamma transformation on an input image to be displayed to obtain a linear image after gamma transformation; obtaining linear average gray scales of color sub-pixels in the linear image and linear gray scales of single sub-pixels; calculating a linear target loading of the image to be displayed according to the linear average gray scales and loading weights of the luminous current distribution of the color sub-pixels; calculating a compensation value according to the linear target loading, the linear gray scales and a compensation slope, wherein the compensation slope is determined according to a compensation parameter used in a case of compensating the attribute parameters of a first specific picture with a first background proportion displayed by the display panel to be consistent with the attribute parameters of a second specific picture with a second background proportion; and compensating the image to be displayed by using the compensation value.
2. The method of claim 1, wherein, In the method, the linear average gray scales of the color sub-pixels comprise a linear average gray scale averR of red sub-pixels, a linear average gray scale averG of green sub-pixels and a linear average gray scale averB of blue sub-pixels; the calculation formulas of the linear average gray scales of the red sub-pixels, the green sub-pixels and the blue sub-pixels are as follows respectively: wherein TGrayR represents a linear gamma gray scale sum of the red sub-pixels in the image to be displayed, NumR represents a total number of the red sub-pixels in the image to be displayed, TGrayG represents a linear gamma gray scale sum of the green sub-pixels in the image to be displayed, NumG represents a total number of the green sub-pixels in the image to be displayed, TGrayB represents a linear gamma gray scale sum of the blue sub-pixels in the image to be displayed, and NumB represents a total number of the blue sub-pixels in the image to be displayed.
3. The method of claim 2, wherein, The calculation of the linear target loading of the image to be displayed according to the linear average gray scales and the loading weights of the luminous current distribution of the color sub-pixels comprises: calculating the linear target loading according to the following formula: Loading_cur=averR*FR+averG*FG+averB*GB wherein Loading_cur represents the linear target loading, FR represents the loading weight of the luminous current distribution of the red sub-pixels, FG represents the loading weight of the luminous current distribution of the green sub-pixels, and FB represents the loading weight of the luminous current distribution of the blue sub-pixels.
4. The method of claim 1, wherein, The specific determination method of the compensation slope comprises the following steps: obtaining first attribute parameters of the first specific picture displayed by the display panel and second attribute parameters of the second specific picture; wherein the foreground test gray scales of the first specific picture and the second specific picture are consistent; determining compensation parameters required for compensating the first attribute parameters to be consistent with the second attribute parameters; wherein the compensation parameters comprise a red sub-pixel compensation parameter ofsR, a green sub-pixel compensation parameter ofsG and a blue sub-pixel compensation parameter ofsB; and The compensation slope is calculated according to a formula: Grid = (ofsR, ofsG, ofsB) / loading diff, wherein loading diff represents a difference between the first linear loading of the first specific picture and the second linear loading of the second specific picture.
5. The method of claim 4, wherein, The calculation formulas of the first linear loading and the second linear loading are respectively: wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray max wherein gray < 6. The method of claim 4, wherein, wherein, The first background ratio is a minimum background ratio of the display panel displaying the first specific picture; and the second background ratio is 100%.
7. The method of claim 4, wherein, The compensation slope includes a black background compensation slope Grid Ne and a white background compensation slope Grid Po ; The calculation formula of the black background compensation slope is: wherein, the first specific picture is a first high gray scale picture, the first background ratio is a first black background ratio, the second specific picture is a second high gray scale picture, and the second background ratio is a second black background ratio. The calculation formula of the white background compensation slope is: wherein, the first specific picture is a first low gray scale picture, the first background ratio is a first white background ratio, the second specific picture is a second low gray scale picture, and the second background ratio is a second white background ratio. The compensation value is calculated according to the linear target loading, the linear gray scale, and the compensation slope, including: determining whether the linear target loading is less than the linear gray scale; if it is determined that the linear target loading is less than the linear gray scale, calculating the compensation value according to the linear target loading, the linear gray scale, and the black background compensation slope; if it is determined that the linear target loading is not less than the linear gray scale, calculating the compensation value according to the linear target loading, the linear gray scale, and the white background compensation slope.
8. A compensation device of a display panel, characterized by, including a transformation module, an acquisition module, a calculation module, and a compensation module; the transformation module is configured to perform gamma transformation on an input image to be displayed to obtain a linear image after gamma transformation; the acquisition module is configured to acquire a linear average gray scale of each color sub-pixel and a linear gray scale of a single sub-pixel in the linear image; the calculation module is configured to calculate a linear target loading of the image to be displayed according to the linear average gray scale and a loading weight of the luminous current distribution of each color sub-pixel; the calculation module is further configured to calculate a compensation value according to the linear target loading, the linear gray scale, and a compensation slope, wherein the compensation slope is determined according to a compensation parameter used in a case of compensating attribute parameters of a first specific picture of a first background ratio to attribute parameters of a second specific picture of a second background ratio; the compensation module is configured to compensate the image to be displayed by using the compensation value.
9. An electronic device, comprising: including: a processor and a memory, the memory storing machine readable instructions executable by the processor, the machine readable instructions being executed by the processor to perform the method of any one of claims 1 to 7.
10. A storage medium, characterized by The storage medium comprises a computer readable storage medium; the computer readable storage medium stores a computer program, and the computer program is run by a processor to execute the method in any one of claims 1 to 7.
Citation Information
Patent Citations
Display device and data compensation method and operation method thereof
CN112735312A
Display panel driving circuit, control method thereof and display equipment
CN114220403A