Display panel compensation method and apparatus, and electronic device and storage medium
Through gamma transformation and compensation slope calculation, accurate color restoration of the display panel under different backgrounds and gray levels is achieved, solving the problem of inaccurate brightness and chromaticity compensation in the prior art, and improving the color restoration accuracy of the display panel.
Patent Information
- Application Number
- PCT/CN2024/117500
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-29
- Filing Date
- 2024-09-06
- Publication Date
- 2025-09-04
AI Technical Summary
The prior art cannot achieve Lr+Lg+Lb=Lw, and cannot accurately compensate for brightness and chromaticity for display screens with different backgrounds and different proportions at the same time, resulting in inaccurate color restoration of the display panel.
By performing gamma transformation on the input image, calculating the linear target loading and compensation slope, determining the compensation value, and compensating the display panel to ensure that Lr+Lg+Lb=Lw is suitable for pictures with different backgrounds and grayscales.
Improves the accuracy of the display panel in color restoration, is suitable for more pictures with different backgrounds and grayscales, and reduces deviations in the compensation process.
Smart Images

Figure CN2024117500_04092025_PF_FP_ABST
Abstract
Description
Display panel compensation method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202410227671.5 filed with the Chinese Patent Office on February 29, 2024, entitled “Compensation method, device, electronic device and storage medium for display panel”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to the field of display technology, and in particular to a compensation method, device, electronic device, and storage medium for a display panel. Background Art
[0004] When displaying an image, the total current required to illuminate all sub-pixels within the panel is transmitted by the DDIC (display driver chip) through metal wiring to each sub-pixel on the panel. The inherent resistance of the metal wiring causes the ELVDD (positive supply voltage) voltage reaching the panel to drop. This phenomenon, called out-of-plane IR drop, refers to the phenomenon in which the color and brightness of the display appear different when displayed on different display backgrounds or in different display areas on the panel.
[0005] Currently, the out-of-plane IR drop compensation method is usually to compensate for a specific smooth picture based on the content detection result of the input image.
[0006] However, this approach cannot achieve the equation 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). Furthermore, it cannot simultaneously compensate the brightness and chromaticity of images with different backgrounds and different proportions to meet the error standard. This means that the sum of the brightness of these three colors does not equal the theoretical white brightness, which does not conform to the principle of no-loading compensation. Furthermore, compensation for general images is not achievable.
[0007] Summary of the Invention
[0008] The purpose of the embodiments of the present disclosure is to provide a compensation method, device, electronic device and storage medium for a display panel. The compensation value is calculated based on the linear target loading, linear grayscale and compensation slope, and the display panel is compensated according to the compensation value to achieve Lr+Lg+Lb=Lw and Ll=Ls during the display process of the display panel, ultimately improving the accuracy of the display panel in color reproduction.
[0009] In a first aspect, the present disclosure provides a compensation method for a display panel, comprising:
[0010] Perform gamma transformation on the input image to be displayed to obtain a linear image after gamma transformation;
[0011] Obtaining the linear average grayscale of each color sub-pixel and the linear grayscale of a single sub-pixel in the linear image;
[0012] Calculating a linear target loading of the image to be displayed according to the linear average grayscale and the loading weights allocated to the light emitting currents of the sub-pixels of each color;
[0013] Calculating the compensation value based on the linear target loading, the linear grayscale, and a compensation slope; wherein the compensation slope is determined based on compensation parameters used when compensating attribute parameters of a first specific image with a first background ratio displayed on the display panel to be consistent with attribute parameters of a second specific image with a second background ratio; and
[0014] The image to be displayed is compensated using the compensation value.
[0015] The display panel compensation method calculates a compensation value based on the linear target loading, linear grayscale, and compensation slope, and compensates the display panel based on this compensation value. This achieves Lr + Lg + Lb = Lw during the display panel display process. It also adjusts the brightness and chromaticity of the displayed image at different ratios and backgrounds to be consistent with the brightness and chromaticity of the image at 100% display, and compensates for all grayscales present in a typical display image. This improves the accuracy of the display panel's color reproduction.
[0016] In combination with the first aspect, optionally, the linear average grayscale of each color sub-pixel includes a linear average grayscale averR of a red sub-pixel, a linear average grayscale averG of a green sub-pixel, and a linear average grayscale averB of a blue sub-pixel;
[0017] 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 respectively as follows:
[0018] Among them, TGrayR represents the linear gamma grayscale sum 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 linear gamma grayscale sum 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 linear gamma grayscale sum 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.
[0019] The above display panel compensation method calculates the linear average grayscale of each color subpixel individually, enabling more precise adjustments to each color channel during the display panel compensation process, reducing deviations during the display panel compensation process. Ultimately, this further improves the display panel's color reproduction accuracy.
[0020] In combination with the first aspect, optionally, calculating the linear target loading of the image to be displayed according to the linear average grayscale and the loading weights allocated to the light emitting currents of the sub-pixels of each color includes:
[0021] The linear target loading is calculated according to the following formula: Loading_cur = averR*FR+averG*FG+averB*GB
[0022] Among them, Loading_cur represents the linear target loading, FR represents the loading weight of the light emitting current distribution of the red sub-pixel, FG represents the loading weight of the light emitting current distribution of the green sub-pixel, and FB represents the loading weight of the light emitting current distribution of the blue sub-pixel.
[0023] The above-mentioned compensation method for the display panel improves the calculation accuracy of the linear target loading by determining the loading weight of the luminous current distribution of 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.
[0024] In combination with the first aspect, optionally, the specific method for determining the compensation slope includes the following steps:
[0025] Acquiring a first attribute parameter of the display panel displaying the first specific picture and a second attribute parameter of the display panel displaying the second specific picture; wherein the foreground test grayscale of the first specific picture is consistent with that of the second specific picture;
[0026] Determining compensation parameters required to compensate the first attribute parameter to be consistent with the second attribute parameter; wherein the 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;
[0027] The compensation slope is calculated according to the formula Grid=(ofsR, ofsG, ofsB) / loading diff, wherein loading diff represents the difference between a first linear loading of a first specific picture and a second linear loading of a second specific picture.
[0028] The display panel compensation method described above determines a compensation slope based on the ratio of each pixel compensation parameter to the difference in linear loading between a first specific image and a second specific image. This allows the display panel compensation method provided by the present disclosure to be applied to images with different backgrounds and grayscales, thereby expanding the method's applicability.
[0029] In combination with the first aspect, optionally, the calculation formulas for the first linear loading and the second linear loading are respectively:
[0030] Among them, gray max represents the theoretical maximum grayscale value of the image to be displayed, 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 picture and the second specific picture.
[0031] The above-mentioned compensation method for the display panel determines the corresponding linear grayscale according to the background ratio and the grayscale value, so that the compensation method for the display panel provided by the present disclosure can be applied to more images with different background ratios, thereby increasing the scope of application of the method and further improving the accuracy of the display panel in color reproduction.
[0032] In combination with the first aspect, optionally, the first background proportion is the minimum background proportion for the display panel to display the first specific picture; and the second background proportion is 100%.
[0033] The above-described display panel compensation method improves the difference between the first linear loading and the second linear loading 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, thereby improving the calculation accuracy of the compensation slope loading diff, and ultimately further improving the color reproduction accuracy of the display panel.
[0034] In combination with the first aspect, optionally, the compensation slope includes a black background compensation slope Grid Ne Compensate the slope of the grid with the white background Po ;
[0035] The calculation formula of the black background compensation slope is:
[0036] The first specific picture is a first high grayscale picture, the first background ratio is a first black background ratio, the second specific picture is a second high grayscale picture, and the second background ratio is a second black background ratio;
[0037] The calculation formula of the white background compensation slope is:
[0038] The first specific picture is a first low grayscale picture, the first background ratio is a first white background ratio, the second specific picture is a second low grayscale picture, and the second background ratio is a second white background ratio;
[0039] The calculating the compensation value according to the linear target loading, the linear grayscale, and the compensation slope includes:
[0040] Determining whether the linear target loading is less than the linear grayscale;
[0041] If it is determined that the linear target loading is less than the linear grayscale, calculating the compensation value according to the linear target loading, the linear grayscale, and the black background compensation slope;
[0042] If it is determined that the linear target loading is not less than the linear grayscale, the compensation value is calculated according to the linear target loading, the linear grayscale, and the white background compensation slope.
[0043] The above-mentioned compensation method for the display panel determines whether positive compensation or negative compensation is required for the relevant pixels based on the size relationship between the linear target loading and the linear grayscale, and then determines whether to use the black background compensation slope or the white background compensation slope to calculate the compensation value, thereby further improving the accuracy of the compensation for the display panel and ultimately further improving the accuracy of the display panel in color reproduction.
[0044] In a second aspect, the present disclosure further provides a compensation device for a display panel, comprising a transformation module, an acquisition module, a calculation module, and a compensation module;
[0045] The transformation module is used to perform gamma transformation on the input image to be displayed to obtain a linear image after gamma transformation;
[0046] The acquisition module is used to acquire the linear average grayscale of each color sub-pixel and the linear grayscale of a single sub-pixel in the linear image;
[0047] The calculation module is used to calculate the linear target loading of the image to be displayed according to the linear average grayscale and the loading weight allocated to the light emitting current of each color sub-pixel;
[0048] The calculation module is further configured to calculate the compensation value based on the linear target loading, the linear grayscale, and a compensation slope; wherein the compensation slope is determined based on compensation parameters used when compensating attribute parameters of a first specific image with a first background ratio displayed on the display panel to be consistent with attribute parameters of a second specific image with a second background ratio;
[0049] The compensation module is used to compensate the image to be displayed using the compensation value.
[0050] The compensation device for the display panel has the same beneficial effects as the compensation method for a display panel provided in the first aspect or any optional implementation of the first aspect, and will not be described in detail here.
[0051] In a third aspect, the present disclosure further provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method described above is performed.
[0052] The above-mentioned electronic device has the same beneficial effects as the compensation method for a display panel provided in the above-mentioned first aspect or any optional implementation manner of the first aspect, which will not be described in detail here.
[0053] In a fourth aspect, the present disclosure further provides a storage medium, which includes a computer-readable storage medium, on which a computer program is stored, and the computer program executes the method described above when executed by a processor.
[0054] The above-mentioned storage medium has the same beneficial effects as the compensation method for a display panel provided in the above-mentioned first aspect or any optional implementation manner of the first aspect, and is not described in detail here.
[0055] In summary, the display panel compensation method, device, electronic device, and storage medium provided by the present disclosure achieve Lr+Lg+Lb=Lw during the display panel display process, and also achieve adjustment of 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 grayscales present in a general display screen. This improves the accuracy of the display panel's color reproduction. By separately calculating the linear average grayscale of each color sub-pixel, each color channel can be adjusted more precisely during the display panel compensation process, reducing deviations in the display panel compensation process. A compensation slope is determined based on the ratio of each pixel compensation parameter to the difference in linear loading between the first specific screen and the second specific screen. This enables the display panel compensation method provided by the present disclosure to be applicable to screens with more different backgrounds and different grayscales, thereby expanding its scope of application. Calculating the compensation value using the black background compensation slope or the white background compensation slope based on the magnitude relationship between the linear target loading and the sub-pixel linear grayscale further improves the accuracy of the display panel compensation, ultimately further improving the accuracy of the display panel's color reproduction. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0057] FIG1 is a schematic diagram of two images to be displayed provided by an embodiment of the present disclosure;
[0058] FIG2 is a flow chart of a compensation method for a display panel provided by an embodiment of the present disclosure;
[0059] FIG3 is a flow chart of a method for determining a compensation slope in a compensation method for a display panel provided by an embodiment of the present disclosure;
[0060] FIG4 is a specific flow chart of S170 in the display panel compensation method provided by an embodiment of the present disclosure;
[0061] FIG5 is a schematic diagram of functional modules of a compensation device for a display panel provided by an embodiment of the present disclosure;
[0062] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0063] The following embodiments of the technical solution of the present disclosure are described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present disclosure and are therefore only examples and are not intended to limit the scope of protection of the present disclosure.
[0064] 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 disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this disclosure.
[0065] In the description of the embodiments of the present disclosure, technical terms such as "first" and "second" are used solely to distinguish between different objects and should not be understood to indicate or imply relative importance or to implicitly specify the quantity, specific order, or primary and secondary relationship of the technical features indicated. In the description of the embodiments of the present disclosure, "plurality" means more than two, unless otherwise specifically defined.
[0066] Please refer to Figure 1, which is a schematic diagram of two images to be displayed provided by an embodiment of the present disclosure. As shown in Figure 1 (a), a 10% white screen against a black background has a higher brightness value. As shown in Figure 1 (b), a 100% white screen has a much lower brightness value than the white screen in Figure 1 (a). Furthermore, the chromaticity of the two high grayscale images in Figures 1 (a) and 1 (b) also differs.
[0067] To address this phenomenon, the commonly used out-of-plane IR drop compensation method is to first measure the brightness of the white display screen at different display ratios at key point grayscales (for example: 32 / 64 / 128 / 192 / 224 grayscales, etc.), and record the ratio and corresponding brightness value Lw_apl. Next, the brightness of the high-grayscale screen with full display of key point grayscales is measured, recorded as Lw_100. Next, a compensation value is added to the input grayscale of the high-grayscale screen at different ratios to adjust the brightness to the same as the brightness of the full white display. Finally, the grayscale compensation values at the corresponding red / green / blue / white ratios are stored and stored in the DDIC. The DDIC calls these stored compensation values when executing the algorithm.
[0068] It can be seen that this method cannot achieve Lr+Lg+Lb=Lw (where Lr represents the brightness of the red picture, Lg represents the brightness of the green picture, Lb represents the brightness of the blue picture, and Lw represents the brightness of the high-grayscale picture), and there are differences in brightness and chromaticity between high-grayscale pictures with different proportions, which usually leads to inaccurate color reproduction of the display panel.
[0069] In view of this, the present disclosure provides a display panel compensation method, device, electronic device, and storage medium to solve the above technical problems. Specifically, please refer to the embodiments and drawings provided in the present disclosure.
[0070] Please refer to Figure 2, which is a flow chart of a compensation method for a display panel provided by an embodiment of the present disclosure. The compensation method for a display panel provided by an embodiment of the present disclosure can be applied to a controller and may include:
[0071] Step S110: performing gamma transformation on the input image to be displayed to obtain a linear image after gamma transformation.
[0072] In the above step S110, a suitable gamma factor can be selected according to actual needs. A gamma transformation is performed on each pixel in the image, and a new grayscale value is calculated according to the basic formula of the gamma transformation.
[0073] Step S130: obtaining the linear average grayscale of each color sub-pixel and the linear grayscale of a single sub-pixel in the linear image.
[0074] In step S130, the linear average grayscale of each color sub-pixel in the linear image can be calculated based on the sum of the linear gamma grayscales of each color sub-pixel and the total number of each color sub-pixel. The linear grayscale of a single sub-pixel can be directly obtained from the channel of the corresponding color pixel.
[0075] Step S150 : Calculating a linear target loading of the image to be displayed according to the linear average grayscale and the loading weights allocated to the light emitting currents of the sub-pixels of each color.
[0076] In the above step S150 , the loading weights of the light emitting current distribution of each color sub-pixel may be determined according to the current load of the corresponding sub-pixel in the circuit of the display panel.
[0077] Step S170: Calculating a compensation value based on the linear target loading, the linear grayscale, and the compensation slope. The compensation slope can be determined based on compensation parameters used to compensate attribute parameters of a first specific image with a first background ratio displayed on the display panel to be consistent with attribute parameters of a second specific image with a second background ratio.
[0078] In the above step S170, the specific calculation formula of the compensation value can be: Offset = (Loading_cur - Gray_data) * Grid
[0079] Offset represents the compensation value, Loading_cur represents the linear target loading, Gray_data represents the linear grayscale, and Grid represents the compensation slope.
[0080] 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. At the same grayscale, the display panel can be controlled to display the second specific image with a second background ratio and measuring its corresponding attribute parameters. The attribute parameters can be brightness and chromaticity. The compensation value can be determined by compensating the display panel while displaying the first specific image so that the difference between the attribute parameters of the first specific image and the attribute parameters of the second specific image is less than a preset attribute parameter difference.
[0081] Step S190: Compensating the image to be displayed using the compensation value.
[0082] In the above step S190 , the voltage of each color sub-pixel in the display panel may be compensated according to the compensation voltage corresponding to the compensation value.
[0083] In this implementation, a compensation value is calculated based on the linear target loading, linear grayscale, and compensation slope, and the display panel is compensated accordingly. This ensures that Lr + Lg + Lb = Lw during the display process. Furthermore, the brightness and chromaticity of the displayed image at different ratios and backgrounds are adjusted to be consistent with the brightness and chromaticity of the image at 100% display, and all grayscales present in a typical display image are compensated. This improves the accuracy of the display panel's color reproduction.
[0084] In some optional embodiments, the linear average grayscale of each color sub-pixel may include a linear average grayscale averR of a red sub-pixel, a linear average grayscale averG of a green sub-pixel, and a linear average grayscale averB of a blue sub-pixel.
[0085] 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 can be as follows:
[0086] Among them, TGrayR can represent the linear gamma grayscale sum of the red sub-pixels in the image to be displayed, and NumR can represent the total number of red sub-pixels in the image to be displayed. TGrayG can represent the linear gamma grayscale sum of the green sub-pixels in the image to be displayed, and NumG can represent the total number of green sub-pixels in the image to be displayed. TGrayB can represent the linear gamma grayscale sum of the blue sub-pixels in the image to be displayed, and NumB can represent the total number of blue sub-pixels in the image to be displayed.
[0087] In the above implementation, by individually calculating the linear average grayscale of each color sub-pixel, the display panel can be more precisely adjusted for each color channel during compensation, reducing deviations during the compensation process. Ultimately, the display panel's color reproduction accuracy is further improved.
[0088] In some optional implementations, step S150 may include:
[0089] Step S151: Calculate the linear target loading according to the following formula: Loading_cur = averR*FR+averG*FG+averB*GB
[0090] Among them, Loading_cur can represent the linear target loading, FR can represent the loading weight of the light emitting current distribution of the red sub-pixel, FG can represent the loading weight of the light emitting current distribution of the green sub-pixel, and FB can represent the loading weight of the light emitting current distribution of the blue sub-pixel.
[0091] In the above implementation process, by determining the loading weight of the luminous current distribution of each color sub-pixel and calculating the linear target loading according to the weight, the calculation accuracy of the linear target loading is improved, thereby further improving the accuracy of the display panel in color reproduction.
[0092] Please refer to FIG3 , which is a flow chart of a method for determining a compensation slope in a compensation method for a display panel provided by an embodiment of the present disclosure. In some optional implementations, the specific method for determining the compensation slope may include the following steps:
[0093] Step S210: Obtaining a first attribute parameter of a display panel displaying a first specific image and a second attribute parameter of a display panel displaying a second specific image, wherein the foreground test grayscale of the first specific image and the second specific image are consistent.
[0094] In step S210, the first specific image can be a white image with a first background ratio of, for example, 10% against a black background, or a black image with a first background ratio of, for example, 10% against a white background, or a white image with a first background ratio of, for example, 10% against a red background. The second specific image can be a white image with a second background ratio of, for example, 40% against a black background, or a black image with a first background ratio of, for example, 40% against a white background, or a white image with a first background ratio of, for example, 40% against a white background. The first specific image and the second specific image have the same background and the same image in the background. For example, the first specific image and the second specific image are both white images with a black background.
[0095] Regarding the consistency of the foreground test grayscales of the first specific frame and the second specific frame, the grayscales of the first specific frame and the second specific frame may be equal, for example, the grayscales of the first specific frame and the second specific frame are both 255.
[0096] The first attribute parameter may include a first brightness and a first chromaticity of a first specific picture, and the second attribute parameter may include a second brightness and a second chromaticity of a second specific picture.
[0097] Step S230: Determine compensation parameters required to compensate the first attribute parameter to be consistent with the second attribute parameter, wherein the compensation parameters may include a red sub-pixel compensation parameter ofsR, a green sub-pixel compensation parameter ofsG, and a blue sub-pixel compensation parameter ofsB.
[0098] In step S230, the first specific image may be compensated such 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 corresponding compensation parameters in 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.
[0099] Step S250: Calculate the compensation slope according to the formula Grid = (ofsR, ofsG, ofsB) / loading diff. Wherein, loading diff can represent the difference between the first linear loading of the first specific picture and the second linear loading of the second specific picture. Grid = (ofsR, ofsG, ofsB) / loading diff
[0100] In the above implementation process, the compensation slope is determined based on the ratio of each pixel compensation parameter to the difference in linear loading between the first specific image and the second specific image. This allows the display panel compensation method provided by the embodiment of the present disclosure to be applicable to images with more different backgrounds and different grayscales, thereby expanding the scope of application of the method.
[0101] In some optional implementations, the calculation formulas for the first linear loading and the second linear loading may be:
[0102] 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 picture and the second specific picture.
[0103] During the above implementation process, by determining the corresponding linear grayscale based on the background ratio and the grayscale value, the compensation method for the display panel provided in the embodiment of the present disclosure can be applied to images with more different background ratios, thereby increasing the scope of application of the method and further improving the accuracy of the display panel in color reproduction.
[0104] In some optional implementations, the first background ratio may be a minimum background ratio for the display panel to display the first specific image, and the second background ratio may be 100%.
[0105] The minimum background ratio may be the picture with the smallest background ratio that the display panel can display during the picture display process. The second background ratio of 100% generally means the picture with the largest background ratio that the display panel can display during the picture display process.
[0106] 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.
[0107] In some optional embodiments, the compensation slope may include a black background compensation slope Grid Ne Compensate the slope of the grid with the white background Po .
[0108] The calculation formula for the black background compensation slope can be:
[0109] The first specific picture may be a first high grayscale picture, the first background ratio may be a first black background ratio, the second specific picture may be a second high grayscale picture, and the second background ratio may be a second black background ratio.
[0110] The calculation formula for the white background compensation slope can be:
[0111] The first specific picture may be a first low grayscale picture, the first background ratio may be a first white background ratio, the second specific picture may be a second low grayscale picture, and the second background ratio may be a second white background ratio.
[0112] Since the first specific image and the second specific image are high grayscale images with corresponding black background ratios, the black background compensation slope Grid Ne The compensation for the panel is usually negative compensation, that is, the grayscale of the sub-pixel is reduced by compensation. Accordingly, when the first specific image and the second specific image are low grayscale images with corresponding white background ratios, the white background compensation slope Grid Po The compensation performed on the panel is usually forward compensation, that is, increasing the grayscale of the sub-pixel through compensation.
[0113] Accordingly, please refer to FIG4 , which is a specific flow chart of S170 in the display panel compensation method provided by an embodiment of the present disclosure. Step S170 may include:
[0114] Step S171: Determine whether the linear target loading is less than the linear grayscale.
[0115] If it is determined that the linear target loading is less than the linear grayscale, step S172 is executed: a compensation value is calculated according to the linear target loading, the linear grayscale and the black background compensation slope.
[0116] In the above step S172 , when the linear target loading is less than the linear grayscale, it usually means that the sub-pixel needs to be compensated in the negative direction, so the compensation value is calculated using the black background compensation slope.
[0117] If it is determined that the linear target loading is not less than the linear grayscale, step S173 is executed: a compensation value is calculated according to the linear target loading, the linear grayscale and the white background compensation slope.
[0118] In the above step S173 , when the linear target loading is greater than the linear grayscale, it generally indicates that the sub-pixel needs to be compensated in the forward direction, and therefore the compensation value is calculated using the white background compensation slope.
[0119] During the above implementation process, based on the size relationship between the linear target loading and the linear grayscale, it is determined whether the relevant pixels require positive compensation or negative compensation, and then it is determined whether the black background compensation slope or the white background compensation slope is used to calculate the compensation value, thereby further improving the accuracy of compensation for the display panel and ultimately further improving the accuracy of the display panel in color reproduction.
[0120] Based on the same inventive concept, please refer to FIG5 , which is a functional module diagram of a display panel compensation device 500 provided in an embodiment of the present disclosure. The display panel compensation device 500 provided in an embodiment of the present disclosure may include: a transformation module 510 , an acquisition module 520 , a calculation module 530 , and a compensation module 540 .
[0121] The transformation module 510 may be configured to perform a gamma transformation on an input image to be displayed to obtain a linear image after the gamma transformation.
[0122] The acquisition module 520 may be configured to acquire the linear average grayscale of each color sub-pixel and the linear grayscale of a single sub-pixel in the linear image.
[0123] The calculation module 530 may be configured to calculate a linear target loading of an image to be displayed according to the linear average grayscale and the loading weights allocated to the light emitting currents of the sub-pixels of each color.
[0124] The calculation module 530 may also be configured to calculate a compensation value based on the linear target loading, the linear grayscale, and the compensation slope. The compensation slope may be determined based on compensation parameters used to compensate attribute parameters of a first specific image with a first background ratio displayed on the display panel to be consistent with attribute parameters of a second specific image with a second background ratio.
[0125] The compensation module 540 may be configured to compensate the image to be displayed using the compensation value.
[0126] In some optional embodiments, the linear average grayscale of each color sub-pixel includes the linear average grayscale of the red sub-pixel averR, the linear average grayscale of the green sub-pixel averG, and the linear average grayscale of the blue sub-pixel averB. 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 calculated as follows:
[0127] Where TGrayR represents the linear gamma grayscale sum 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 linear gamma grayscale sum 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 linear gamma grayscale sum 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.
[0128] In some optional embodiments, in 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 currents of the sub-pixels of each color, the calculation module 530 can be specifically used to calculate the linear target loading according to the following formula: Loading_cur = averR*FR+averG*FG+averB*GB
[0129] Among them, Loading_cur represents the linear target loading, FR represents the loading weight of the light emitting current distribution of the red sub-pixel, FG represents the loading weight of the light emitting current distribution of the green sub-pixel, and FB represents the loading weight of the light emitting current distribution of the blue sub-pixel.
[0130] In some optional embodiments, in the specific process of compensating the slope, the calculation module 530 can be specifically used to: obtain the first attribute parameter of the display panel displaying the first specific picture and the second attribute parameter of the display panel displaying the second specific picture. The foreground test grayscale of the first specific picture is consistent with that of the second specific picture. Determine the compensation parameter required to compensate the first attribute parameter to be consistent with the second attribute parameter. 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. The compensation slope is calculated according to the formula Grid = (ofsR, ofsG, ofsB) / loading diff. The loading diff represents the difference between the first linear loading of the first specific picture and the second linear loading of the second specific picture.
[0131] In some optional implementations, the calculation formulas for the first linear loading and the second linear loading are:
[0132] Among them, gray maxRepresents the theoretical maximum grayscale value of the image to be displayed, 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 picture and the second specific picture.
[0133] In some optional implementations, the first background ratio is the minimum background ratio for the display panel to display the first specific image, and the second background ratio is 100%.
[0134] In some optional embodiments, the compensation slope includes a black background compensation slope Grid Ne Compensate the slope of the grid with the white background Po The calculation formula for the black background compensation slope is: The first specific picture is a first high grayscale picture, the first background ratio is a first black background ratio, the second specific picture is a second high grayscale picture, and the second background ratio is a second black background ratio.
[0135] The calculation formula for the white background compensation slope is: Among them, the first specific picture is a first low grayscale picture, the first background ratio is a first white background ratio, the second specific picture is a second low grayscale picture, and the second background ratio is a second white background ratio.
[0136] Accordingly, when calculating the compensation value based on the linear target loading, the linear grayscale, and the compensation slope, the calculation module 530 can be specifically configured to determine whether the linear target loading is less than the linear grayscale. If the linear target loading is determined to be less than the linear grayscale, the compensation value is calculated based on the linear target loading, the linear grayscale, and the black background compensation slope. If the linear target loading is determined to be not less than the linear grayscale, the compensation value is calculated based on the linear target loading, the linear grayscale, and the white background compensation slope.
[0137] It should be understood that the device corresponds to the display panel compensation method embodiment described above and is capable of executing each step involved in the method embodiment described above. The specific functions of the device can be found in the description above, and a detailed description is omitted here to avoid repetition. The device includes at least one software functional module that can be stored in a memory in the form of software or firmware or embedded in the device's operating system (OS).
[0138] Based on the same inventive concept, please refer to Figure 6, which is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present disclosure. Electronic device 600 may include a memory 611, a storage 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 appreciate that the structure shown in Figure 6 is merely illustrative and does not limit the structure of electronic device 600. For example, electronic device 600 may include more or fewer components than shown in Figure 6, or have a configuration different from that shown in Figure 6.
[0139] The aforementioned memory 611, storage controller 612, processor 613, peripheral interface 614, input / output unit 615, and display unit 616 are electrically connected to each other, directly or indirectly, to enable data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses or signal lines. The aforementioned processor 613 is used to execute the executable modules stored in the memory.
[0140] The memory 611 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 611 is used to store programs, and the processor 613 executes the programs after receiving an execution instruction. The method executed by the electronic device 600 defined by the process disclosed in any embodiment of the present disclosure may be applied to the processor 613 or implemented by the processor 613.
[0141] The 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. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor.
[0142] The peripheral interface 614 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 embodiments, they can be implemented in separate chips.
[0143] The input and output unit 615 is used to provide input data to the user. The input and output unit 615 can be, but is not limited to, a mouse and a keyboard.
[0144] The display unit 616 provides an interactive interface (e.g., a user operation interface) between the electronic device 600 and the user or is used to display image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display or a touch display. If it is a touch display, it can be a capacitive touch screen or a resistive touch screen that supports single-point and multi-touch operations. Supporting single-point and multi-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.
[0145] The electronic device 600 in this embodiment can be used to execute each step in each method provided in the embodiments of the present disclosure.
[0146] The present disclosure also provides a storage medium including a computer-readable storage medium having a computer program stored thereon, which executes the above method when executed by a processor.
[0147] Among them, 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 read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0148] In summary, the display panel compensation methods, devices, electronic devices, and storage media provided by various embodiments of the present disclosure achieve the goal of Lr + Lg + Lb = Lw during display panel display. They also adjust the brightness and chromaticity of displayed images under different percentages and backgrounds to be consistent with those at 100% display, and compensate for all grayscales present in a typical display image. This improves the accuracy of the display panel's color reproduction. By separately calculating the linear average grayscale of each color subpixel, the display panel can be more precisely adjusted for each color channel during compensation, reducing deviations in the display panel's compensation process. A compensation slope is determined based on the ratio of each pixel compensation parameter to the difference in linear loading between a first specific image and a second specific image. This allows the display panel compensation methods provided by the embodiments of the present disclosure to be applicable to images with more diverse backgrounds and grayscales, thereby expanding their scope of applicability. Calculating the compensation value using either a black background compensation slope or a white background compensation slope based on the relationship between the linear target loading and the linear grayscale further improves the accuracy of display panel compensation and, ultimately, further improves the accuracy of the display panel's color reproduction.
[0149] In the several embodiments provided in the embodiments of the present disclosure, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to the multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in a different order than the order marked in the drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified functions or actions, or can be implemented using a combination of dedicated hardware and computer instructions.
[0150] In addition, the functional modules in each embodiment of the present disclosure may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0151] The above description is only an optional implementation of the embodiment of the present disclosure, but the protection scope of the embodiment of the present disclosure is not limited to this. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present disclosure, and they should all be covered by the protection scope of the embodiment of the present disclosure. Industrial Applicability
[0152] The display panel compensation method, device, electronic device and storage medium provided by the present disclosure realize Lr+Lg+Lb=Lw during the display process of the display panel; adjust the brightness and chromaticity of the display screen under different proportions and different backgrounds to be consistent with the brightness and chromaticity of the screen when 100% is displayed; and compensate for all grayscales existing in a general display screen, thereby improving the accuracy of the display panel in color reproduction.
[0153] In the process of compensating the display panel, the display panel compensation method provided by the present disclosure can adjust each color channel more finely by separately calculating the linear average grayscale of each color sub-pixel, thereby reducing the deviation in the compensation process of the display panel; by determining the loading weight of the light-emitting current distribution 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; the compensation slope is determined according to the ratio of each pixel compensation parameter to the difference between the linear loading of the first specific picture and the second specific picture, so that the display panel compensation method provided by the present application can compensate for all grayscales existing in a general display picture, thereby improving the scope of application; the compensation value is calculated using the black background compensation slope or the white background compensation slope to improve the accuracy of the display panel compensation, and ultimately, further improve the accuracy of the display panel in color reproduction.
Claims
1. A compensation method for a display panel, characterized in that: include: Perform gamma transformation on the input image to be displayed to obtain a linear image after gamma transformation; Obtaining the linear average grayscale of each color sub-pixel and the linear grayscale of a single sub-pixel in the linear image; Calculating a linear target loading of the image to be displayed according to the linear average grayscale and the loading weights allocated to the light emitting currents of the sub-pixels of each color; Calculating the compensation value based on the linear target loading, the linear grayscale, and a compensation slope; wherein the compensation slope is determined based on compensation parameters used when compensating attribute parameters of a first specific image with a first background ratio displayed on the display panel to be consistent with attribute parameters of a second specific image with a second background ratio; and The image to be displayed is compensated using the compensation value.
2. The method according to claim 1, characterized in that in, 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 linear average grayscale of the green sub-pixel, and the linear average grayscale of the blue sub-pixel are respectively as follows: Among them, TGrayR represents the linear gamma grayscale sum 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 linear gamma grayscale sum 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 linear gamma grayscale sum 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.
3. The method according to claim 2, characterized in that Calculating the linear target loading of the image to be displayed according to the linear average grayscale and the loading weights allocated to the light emitting currents of the sub-pixels of each color includes: The linear target loading is calculated according to the following formula: Loading_cur=averR*FR+averG*FG+averB*GB Among them, Loading_cur represents the linear target loading, FR represents the loading weight of the light emitting current distribution of the red sub-pixel, FG represents the loading weight of the light emitting current distribution of the green sub-pixel, and FB represents the loading weight of the light emitting current distribution of the blue sub-pixel.
4. The method according to claim 1, wherein in, The specific method for determining the compensation slope includes the following steps: Acquiring a first attribute parameter of the display panel displaying the first specific picture and a second attribute parameter of the display panel displaying the second specific picture; wherein the foreground test grayscale of the first specific picture is consistent with that of the second specific picture; Determining compensation parameters required to compensate the first attribute parameter to be consistent with the second attribute parameter; wherein the 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 compensation slope is calculated according to the formula Grid=(ofsR, ofsG, ofsB) / loading diff, wherein loading diff represents the difference between a first linear loading of a first specific picture and a second linear loading of a second specific picture.
5. The method according to claim 4, characterized in that The calculation formulas for the first linear loading and the second linear loading are respectively: Among them, gray max represents the theoretical maximum grayscale value of the image to be displayed, 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 picture and the second specific picture.
6. The method according to claim 4, characterized in that in, The first background proportion is the minimum background proportion when the display panel displays the first specific image; and the second background proportion is 100%.
7. The method according to claim 4, characterized in that The compensation slope includes a black background compensation slope Grid Ne Compensate the slope of the grid with the white background Po ; The calculation formula of the black background compensation slope is: The first specific picture is a first high grayscale picture, the first background ratio is a first black background ratio, the second specific picture is a second high grayscale picture, and the second background ratio is a second black background ratio; The calculation formula of the white background compensation slope is: The first specific picture is a first low grayscale picture, the first background ratio is a first white background ratio, the second specific picture is a second low grayscale picture, and the second background ratio is a second white background ratio; The calculating the compensation value according to the linear target loading, the linear grayscale, and the compensation slope includes: Determining 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, calculating the compensation value according to 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, the compensation value is calculated according to the linear target loading, the linear grayscale, and the white background compensation slope.
8. A compensation device for a display panel, characterized in that: It includes a transformation module, an acquisition module, a calculation module and a compensation module; The transformation module is used to perform gamma transformation on the input image to be displayed, and obtain the line sexual images; The acquisition module is used to acquire the linear average grayscale of each color sub-pixel and the linear grayscale of a single sub-pixel in the linear image; The calculation module is used to calculate the linear target loading of the image to be displayed according to the linear average grayscale and the loading weight allocated to the light emitting current of each color sub-pixel; The calculation module is further configured to calculate the compensation value based on the linear target loading, the linear grayscale, and a compensation slope; wherein the compensation slope is determined based on compensation parameters used when compensating attribute parameters of a first specific image with a first background ratio displayed on the display panel to be consistent with attribute parameters of a second specific image with a second background ratio; The compensation module is used to compensate the image to be displayed using the compensation value.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is performed.
10. A storage medium, characterized in that: The storage medium comprises a computer-readable storage medium; a computer program is stored on the computer-readable storage medium, and the computer program executes the method according to any one of claims 1 to 7 when executed by a processor.
Citation Information
Patent Citations
Pixel compensation data generation method and device of display panel and display panel
CN110827745A
Display compensation method, display compensation device and electronic equipment
CN112581912A
Brightness uniformity control method, brightness uniformity control device and electronic equipment
CN112700750A
Pressure drop compensation method, device, equipment, medium and program product
CN114283731A
Mura compensation method and device of display panel, equipment and storage medium
CN115731860A