Display compensation method and device, electronic equipment and storage medium

By obtaining the display brightness of the display screen and the grayscale values ​​of each area of ​​the target screen, using the preset function relationship and matrix for parameter determination and data conversion, and performing display compensation in different regions, solving the problem of inconsistent display effects in each area of ​​the display screen , achieving a more balanced display effect.

CN119446054APending Publication Date: 2025-02-14BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Application Number
CN202310944173.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Due to the influence of the process of the display screen, it is difficult to achieve complete consistency in the display effect of each display area, resulting in uneven color and uneven brightness.

Method used

By obtaining the display brightness of the display screen and the grayscale values ​​of each area of ​​the target screen, using the preset functional relationship and matrix for parameter determination and data conversion, and performing display compensation for the region.

Benefits of technology

It is realized that the area adjustment is based on the first display data of each area of ​​the display screen, the current display brightness and the grayscale of each area, to reduce the impact of grayscale and brightness changes on the adjustment effect, improve the display effect, and reduce color unevenness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119446054A_ABST
    Figure CN119446054A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display compensation method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining the display brightness of a display screen; dividing a display area of a target picture displayed by the display screen into N areas; wherein N is the total number of the display areas; determining a gray value of each region for displaying the target picture; determining a first parameter according to the display brightness and a preset first function relationship; determining a second parameter according to the gray level of each area and a preset second function relationship; according to the first parameter, the second parameter of the nth area and a preset first matrix, display compensation is carried out on the nth area of the target picture, n is a positive integer smaller than or equal to N, and therefore targeted display adjustment can be carried out on all display areas when a display screen displays different pictures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular, to a display compensation method, device, electronic device and storage medium. Background Art

[0002] Due to the influence of the manufacturing process, it is difficult to achieve completely consistent display effects in all display areas of the display screen. For example, the surrounding of the display area of ​​the Organic Light-Emitting Diode (OLED) screen is blue or pink, and the bottom or surrounding of the Liquid Crystal Display (LCD) screen is yellow, which will affect the display effect of the display screen. The current solution to improve the uneven color and brightness of the display screen is usually to improve or modify the screen hardware process, but the improvement effect is poor. Summary of the invention

[0003] A first aspect of the present disclosure provides a display compensation method, the method comprising: acquiring the display brightness of a display screen; dividing a display area of ​​a target image displayed on the display screen into N areas; wherein N is the total number of the display areas; determining the grayscale value of each area displaying the target image; determining a first parameter according to the display brightness and a preset first functional relationship; determining a second parameter according to the grayscale of each area and a preset second functional relationship; performing display compensation on the nth area of ​​the target image according to the first parameter, the second parameter of the nth area and a preset first matrix, wherein n is a positive integer less than or equal to N.

[0004] Optionally, determining the grayscale of each area of ​​the target image includes: determining a display grayscale histogram of each area of ​​the target image according to first display data of the target image; and determining the grayscale of each area according to the grayscale histogram.

[0005] Optionally, converting the first display data of the target image in the nth area into second display data according to the first parameter and the second parameter of the nth area includes: acquiring a preset first matrix; wherein the first matrix is ​​used as a matrix for converting display data of the nth area; obtaining a second matrix corresponding to the display brightness according to the first parameter and the first matrix; obtaining a third matrix used for the nth area according to the second parameter of the nth area and the second matrix; and obtaining the second display data of the nth area according to the third matrix and the first display data of the nth area.

[0006] Optionally, the method also includes: when the display screen displays a predetermined pure color image at a predetermined brightness, determining a first color value displayed in the mth area of ​​the display screen; determining a fourth matrix of the mth area according to a second color value of the predetermined pure color image corresponding to the nth area and the first color value; wherein m is a positive integer less than or equal to N; and generating the first matrix corresponding to the preset brightness according to the fourth matrix of the mth area at different brightnesses and different grayscales.

[0007] Optionally, the method further includes: obtaining a first functional relationship for determining the first parameter according to the fourth matrix and the first matrix at different display brightnesses.

[0008] Optionally, the method further includes: obtaining a second functional relationship for determining the second parameter according to the fourth matrix and the first matrix at different brightness and different grayscales.

[0009] A second aspect of the present disclosure provides a display compensation device, including: an acquisition module, used to acquire the display brightness of a display screen; a division module, used to divide the display area of ​​a target image displayed on the display screen into N areas; wherein N is the total number of the display areas; a first determination module, used to determine the grayscale value of each area displaying the target image; a second determination module, used to determine a first parameter according to the display brightness and a preset first functional relationship; a third determination module, used to determine a second parameter according to the grayscale of each area and a preset second functional relationship; a compensation module, used to perform display compensation on the nth area of ​​the target image according to the first parameter, the second parameter of the nth area and a preset first matrix; wherein n is a positive integer less than or equal to N.

[0010] Optionally, the first determination module is configured to: determine a display grayscale histogram of the target image in each area according to the first display data of the target image; and determine the grayscale of each area according to the grayscale histogram.

[0011] Optionally, the compensation module is configured to: obtain a preset first matrix; wherein the first matrix is ​​used as a matrix for converting display data of the nth region; obtain a second matrix corresponding to the display brightness based on the first parameters and the first matrix; obtain a third matrix used by the nth region based on the second parameters of the nth region and the second matrix; obtain the second display data of the nth region based on the third matrix and the first display data of the nth region.

[0012] Optionally, the device also includes: a fourth determination module, used to determine the first color value displayed in the mth area of ​​the display screen when the display screen displays a predetermined pure color image at a predetermined brightness; a fifth determination module, used to determine the fourth matrix of the mth area according to the second color value of the predetermined pure color image corresponding to the nth area and the first color value; wherein m is a positive integer less than or equal to N; and a generation module, used to generate the first matrix corresponding to the preset brightness according to the fourth matrix of the mth area at different brightnesses and different grayscales.

[0013] Optionally, the device further includes: a sixth determination module, which obtains a first functional relationship for determining the first parameter according to the fourth matrix and the first matrix at different display brightnesses.

[0014] Optionally, the device further includes: a seventh determination module, which obtains a second functional relationship for determining the second parameter according to the fourth matrix and the first matrix at different brightness and different grayscales.

[0015] An embodiment of the present disclosure provides an electronic device, comprising: a memory for storing processor-executable instructions; and a processor connected to the memory; wherein the processor is configured to execute the display compensation method as described in the first aspect above.

[0016] A fourth aspect of the present disclosure is a non-temporary computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the display compensation method as described in any one of the above embodiments is implemented.

[0017] The embodiment of the present disclosure provides a display compensation method, which obtains the grayscale value of the display in each area, obtains the current display brightness of the display screen, and performs display compensation on the nth area of ​​the target screen; compared with the related art in which the problem of uneven screen display is solved in the process, the method provided by the embodiment of the present disclosure can adjust the brightness of the display screen in a corresponding manner according to the first display data of each area of ​​the display screen, the current display brightness and the grayscale of each area; and can also adjust according to different brightness changes and different grayscale changes of each area, thereby reducing the influence of grayscale and brightness changes on the adjustment effect, improving the adjustment effect, so that when the screen is displayed based on the adjusted second display data, the color unevenness of the screen can be reduced.

[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0020] Figure 1 is a flow chart of a display compensation method according to an exemplary embodiment of the present disclosure;

[0021] Figure 2 is a flow chart of a display compensation method according to an exemplary embodiment of the present disclosure;

[0022] Figure 3 is a flow chart of a display compensation method according to an exemplary embodiment of the present disclosure;

[0023] Figure 4 is a flow chart of a display compensation method according to an exemplary embodiment of the present disclosure;

[0024] Figure 5 is a flow chart of a display compensation method according to an exemplary embodiment of the present disclosure;

[0025] Figure 6 is a structural schematic diagram of a display compensation device shown in an exemplary embodiment of the present disclosure;

[0026] Figure 7 It is a schematic diagram of the structure of a storage medium shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely embodiments consistent with some aspects of the present disclosure as detailed in the appended claims.

[0028] Combination Figure 1 As shown, in an embodiment of the present disclosure, a display compensation method is provided, which is applied to an electronic device, wherein the electronic device includes: a display screen, and the method includes:

[0029] Step S101, obtaining the display brightness of the display screen;

[0030] Step S102, dividing the display area of ​​the target image displayed on the display screen into N areas; wherein N is the total number of the display areas;

[0031] Step S103, determining the grayscale value of each area displaying the target image;

[0032] Step S104, determining a first parameter according to the display brightness and a preset first functional relationship;

[0033] Step S105, determining a second parameter according to the grayscale of each region and a preset second functional relationship;

[0034] Step S106: performing display compensation on the nth area of ​​the target image according to the first parameter, the second parameter of the nth area, and a preset first matrix, wherein n is a positive integer less than or equal to N.

[0035] In the disclosed embodiment, the electronic device may be a mobile phone, a computer, a tablet, a car computer, or other device with a display screen. The display screen may be an organic light-emitting diode (OLED) screen or a liquid crystal display (LCD) screen.

[0036] In some embodiments, the electronic device includes a display brightness setting module, and the user can set the display brightness of the display screen according to the setting module, so that the display brightness of the display screen can be determined by the electronic device. Here, the display brightness of the display screen refers to the display brightness of the entire display area of ​​the display screen.

[0037] In some embodiments, regarding step S102, the target screen may be any screen to be displayed on the display screen. In some embodiments, the target screen may refer to a preset screen for testing that controls the display screen to display. The target screen may be a screen with a preset color, such as a screen with a pure white color, a pure red color, a pure yellow color, or a pure blue color; the target screen may also be a screen with a preset pattern. The embodiments of the present disclosure are not limited to the above examples.

[0038] It should be noted that, regarding step S102, the target image can be displayed in the entire display area of ​​the display screen, or in a partial display area of ​​the display screen. Therefore, it is only necessary to divide the display area of ​​the target image into N areas and determine the grayscale value of each area.

[0039] In some embodiments, in step S104, the preset first functional relationship refers to a mapping relationship between multiple display brightnesses and multiple first parameters. Therefore, after determining the display brightness of the display screen, the display brightness is input into the preset first functional relationship, and the corresponding first parameter can be determined.

[0040] Similarly, regarding step S105, the preset second functional relationship refers to a mapping relationship between multiple grayscales and multiple second parameters. Therefore, after determining the grayscale of N areas of the display screen, the grayscale is input into the preset second functional relationship, and the second parameter of each area can be determined.

[0041] Here, the first parameter and the second parameter may be matrices consisting of a plurality of matrix elements.

[0042] In some embodiments, the display screen may be divided into N areas according to the size of the display area of ​​the target picture of the display screen.

[0043] Exemplarily, if the target image has a first area in the display area of ​​the display screen, N takes a first value; if the target image has a second area in the display area of ​​the display screen, N takes a second value; if the first area is larger than the second area, the first value is larger than the second value. That is, the size of N is positively correlated with the area of ​​the target image in the display area of ​​the display screen. In this way, the display area of ​​display screens of different sizes can be divided into appropriate N areas, so that display screens of different sizes can be accurately adjusted in display effect.

[0044] Here, it should be noted that the display area of ​​the target image in the display area of ​​the display screen can be adjusted according to different requirements. For example, if the display parameters of the entire screen of the display screen need to be compensated, the display area of ​​the target image occupies the entire display screen. If a part of the screen of the display screen has a problem and needs to be adjusted, the display area of ​​the target image only covers the display area of ​​the part with the problem.

[0045] Here, the grayscale of each of the N regions is the average grayscale of each pixel in each region.

[0046] In some embodiments, since the grayscale displayed by the display screen is usually divided into multiple grayscales, for example, 256 grayscales, the display effect corresponding to each different grayscale will be different. The display screen is divided into N areas, and the 256 grayscales are divided into multiple grayscale level segments, the grayscale level segment to which the grayscale belongs is determined, and then the grayscale value corresponding to the corresponding grayscale level is input into the second function relationship to obtain the second parameter.

[0047] In this way, each region can have multiple pixels, each gray stage can have multiple gray levels, and the grayscale of any region and any gray level segment can represent the overall value of the corresponding region and the corresponding gray level segment. In this way, only the second parameters corresponding to different numbers of gray levels in different regions need to be calculated, which can reduce the amount of calculation when calculating the second parameter.

[0048] In some embodiments, step S106 may include: converting the first display data of the target image in the nth area into second display data according to the first parameter and the second parameter of the nth area; wherein n is a positive integer less than or equal to N; and controlling the display of the nth area of ​​the display screen according to the second display data.

[0049] In some embodiments, step S106 includes: multiplying the first parameter by the second parameter of the nth region to obtain a first product; then multiplying the first product by the preset first matrix to obtain a second product; and performing display compensation on the nth region of the target screen through the second product. Here, the preset first matrix can be referred to as a preset color gamut conversion matrix. Here, the color value of each pixel in each region of each pure color picture can be determined by pre-displaying a pure color picture of each type of pixel on the display screen, and the color gamut to which each region belongs can be determined according to the color value of each pixel in each region. Then, based on the color gamut, a preset color gamut conversion matrix is ​​determined.

[0050] Here, the first parameter may be a matrix, and the second parameter may also be a matrix. Thus, display compensation may be performed on the nth area of ​​the target screen according to the dot product of the first parameter, the second parameter of the nth area, and a preset first matrix.

[0051] In this way, the problem of uneven color value display in each area can be solved by obtaining the second product of each area to respectively compensate and control the color value display of the display screen. The display effect can be adjusted accordingly by area, making the color value adjustment of the display screen more effective.

[0052] It is worth noting that: step S104 and step S105 may not have a certain order relationship. For example, step S104 and step S105 may be executed in parallel, S104 may be executed first and then S105, or S105 may be executed first and then S104.

[0053] Combination Figure 2 As shown, in the embodiment of the present disclosure, step S103 may include:

[0054] Step S1031, determining a display grayscale histogram of the target picture in each area according to the first display data of the target picture;

[0055] Step S1032: determining the grayscale of each region according to the grayscale histogram.

[0056] In some embodiments, regarding the step S1031, the display grayscale histogram of the target image in each area is determined by the first display grayscale of each pixel in each area. Here, the first display data in the step S1031 includes the first display grayscale.

[0057] In some embodiments, regarding step S1032, the grayscale mean value between multiple pixels in any area can be determined as the grayscale of the corresponding area according to the displayed grayscale histogram of any area.

[0058] In this way, the grayscale mean of each region can be obtained as the grayscale of each region, thereby improving the balance of the adjustment display of each region.

[0059] Combination Figure 3 As shown, in the embodiment of the present disclosure, step S106 may include:

[0060] Step S1061, obtaining a preset first matrix; wherein the first matrix is ​​used for the matrix of the nth region display data conversion;

[0061] Step S1062, obtaining a second matrix corresponding to the display brightness according to the first parameter and the first matrix;

[0062] Step S1063, obtaining a third matrix used by the nth region using the second parameter of the nth region and the second matrix;

[0063] Step S1064: performing display compensation on the nth region according to the third matrix.

[0064] In some embodiments, regarding step S1061, the preset first matrix may be referred to as a preset color gamut conversion matrix. Here, the color value of each pixel in each region of each pure color image may be determined by pre-displaying a pure color image of each type of pixel on a display screen, and the color gamut to which each region belongs may be determined according to the color value of each pixel in each region. Then, the preset color gamut conversion matrix may be determined according to the color gamut.

[0065] Here, it should be noted that the meaning of the color gamut is the range of colors that can be expressed by a certain color table. The colors of the visible spectrum in nature constitute the largest color gamut space, which contains all the colors that the human eye can see. The size of the color gamut space of an electronic device is related to the electronic device, display medium and observation conditions. The larger the color gamut space of an electronic device, the more colors it can reproduce. The color value can be called chromaticity, and the color coordinates in the color gamut space can be determined based on the color value.

[0066] Therefore, the color gamut of the display screen can be reflected by the first matrix. The preset color gamut conversion matrix is ​​used to perform a dot product with the first parameter and the second parameter of the nth region to obtain a matrix for display data conversion of the nth region.

[0067] In some embodiments, regarding step S1062, a dot multiplication process is performed between a matrix element corresponding to the first parameter and a matrix element of the first matrix to obtain a second matrix used by the nth region.

[0068] Regarding step S1063, a dot multiplication process is performed on the matrix elements corresponding to the second parameter and the matrix elements of the second matrix to obtain a third matrix used by the n-th region.

[0069] The step S1064 includes: performing a dot product process between matrix elements of the third matrix and the first display data of the nth region to obtain the second display data of the nth region.

[0070] In one embodiment, uniformity compensation is performed on each area of ​​the display screen according to the second display data. The uniformity compensation here can be understood as mura compensation.

[0071] Here, the first display data may include: a first display brightness, a first display grayscale, and a first display color value. The second display data may include: a second display brightness, a second display grayscale, and a second display color value. In one embodiment, the second display color value may be converted according to the first display color value. The color value may also be called chromaticity, which is used to measure the hue and saturation of the color.

[0072] In some embodiments, the second display data is display data after uniformity compensation.

[0073] In this way, the display of the display screen can be controlled by the second display data. In addition, since the first display data may be affected by the change of brightness and grayscale under different brightness or grayscale, the first parameter is determined according to the relationship between the brightness change and the display data, and the second parameter is determined according to the relationship between the grayscale change and the display data. The second display data finally determined according to the first parameter and the second parameter takes into account the influence factor of different brightness or grayscale on the display adjustment, so that when the display of the display screen is controlled by the second display data, the influence of different brightness or grayscale on the display adjustment can be compensated, and the difference caused by the change of brightness or grayscale can be reduced.

[0074] Combination Figure 4 As shown, in the embodiment of the present disclosure, the method further includes:

[0075] Step S107, when the display screen displays a predetermined pure color image at a predetermined brightness, determining a first color value displayed in the mth area of ​​the display screen;

[0076] Step S108, determining a fourth matrix according to the first color value, the second color value and the color gamut conversion formula; wherein the second color value is the expected color value of the m-th region displaying the predetermined pure color image; wherein the fourth matrix is: a color gamut conversion matrix of the m-th region displaying the predetermined pure color image at the predetermined brightness; wherein m is a positive integer less than or equal to N;

[0077] Step S109 , generating the first matrix corresponding to the preset brightness according to the fourth matrix of the mth area at different brightness and different grayscales.

[0078] In some embodiments, regarding step S107, the predetermined brightness may include multiple brightnesses, or the predetermined brightness may be the maximum brightness that can be displayed in the electronic device. The predetermined pure color image may be a pure color image corresponding to the color of each pixel.

[0079] For example, for a display screen including white sub-pixels, red sub-pixels, green sub-pixels, and blue sub-pixels, there are pure color images corresponding to white, red, green, and blue. For a display screen including red sub-pixels, green sub-pixels, and blue sub-pixels, there are pure color images corresponding to red, green, and blue.

[0080] Exemplarily, when the display screen displays a predetermined pure color image at a predetermined brightness, a first color value displayed in the mth region of the display screen can be obtained. The first color value can be understood as the chromaticity or color coordinate corresponding to the current color domain where the displayed color value is located.

[0081] In some embodiments, regarding step S108, the second color value of the predetermined pure color image corresponding to the nth region may be a target color gamut of the predetermined pure color image corresponding to the nth region. Then, the fourth matrix of the mth region may be determined according to the target color gamut corresponding to the second color value and the current color gamut corresponding to the first color value. Here, m and n are both positive integers less than or equal to N. m may be equal to or not equal to n.

[0082] In this way, the fourth matrix as the color gamut conversion matrix can be obtained.

[0083] In some embodiments, regarding the step S109, among the fourth matrices of different brightness and different grayscales in the m-th region, at least a fourth matrix having a maximum grayscale corresponding to a preset brightness can be obtained as the first matrix.

[0084] Here, it should be noted that the first matrix can be determined and set before the electronic device leaves the factory.

[0085] In this way, it can be obtained that the first matrix of the maximum grayscale of the preset brightness is located in the preset first matrix.

[0086] In the embodiment of the present disclosure, the method further includes:

[0087] A first functional relationship for determining the first parameter is obtained according to the fourth matrix and the first matrix at different display brightnesses.

[0088] In some embodiments, each matrix element of the first matrix at the maximum brightness is compared with each matrix element of the fourth matrix at different display brightness to obtain a matrix composed of a first ratio β.

[0089] In one embodiment, the brightness change value is used as an independent variable, and the first ratio β is used as a dependent variable to perform a fitting function to obtain a first functional relationship f(l); wherein, if the fourth matrix and the first matrix have k elements, there are k first functional relationships of the first parameter. Exemplarily, the value of k can be 9.

[0090] In this way, when executing step S104, the display brightness is input into the first functional relationship to obtain the first parameter. In this way, the display difference of display data at different brightnesses caused by brightness changes can be compensated by the first parameter.

[0091] Combination Figure 5 As shown, in the embodiment of the present disclosure, the method further includes:

[0092] Step S110, obtaining a second functional relationship for determining the second parameter according to the fourth matrix and the first matrix at different brightness and different grayscales.

[0093] In some embodiments, the step S110 may also include: obtaining a second functional relationship for determining the second parameter by comparing the fourth matrix and the first matrix at maximum brightness and different grayscales.

[0094] In some embodiments, at least each matrix element of the first matrix at the maximum grayscale of each brightness is compared with each matrix element of the fourth matrix at different display brightnesses to obtain a matrix composed of a second ratio α.

[0095] In one embodiment, the grayscale change value is used as the independent variable, and the second ratio α is used as the dependent variable to perform a fitting function to obtain a second functional relationship f(g); wherein, if the fourth matrix and the first matrix have k elements, there are k first functional relationships of the second parameter. Exemplarily, the value of k can be 9.

[0096] In this way, the display grayscale is input into the second functional relationship to obtain the second parameter. In this way, the display difference of display data at different grayscales that may be caused by grayscale changes can be compensated by the second parameter.

[0097] In some embodiments, the display screen is affected by the manufacturing process, and it is difficult to achieve completely consistent display effects in all areas of the surface. Organic Light-Emitting Diode (OLED) screens often have problems with blue and powdery edges around the screen, and Liquid Crystal Display (LCD) screens often have yellowing issues at the bottom or edges. These phenomena will affect the subjective visual effects of the screen. At present, the general solution to improve the uneven color and brightness of the screen is usually to improve the hardware by improving or modifying the screen hardware process. It is understood that there is currently no efficient and feasible technical solution to improve the problem of uneven display color through the platform end.

[0098] In the disclosed embodiment, a technical solution is proposed for collecting original screen information based on a platform-side stereo color lookup (3D LUT) function, and optimizing the uneven color effect of screen display through certain algorithms and processing.

[0099] In the disclosed embodiment, the application scenario is to collect screen brightness information after the display screen is produced, process and calculate, generate a display effect optimization compensation file, and apply it to the display device to optimize the display color unevenness effect. This solves the problems of insufficient precision, limited storage data, and occupied integrated circuit (IC) storage space.

[0100] In the disclosed embodiment, an area array camera may be used to collect screen color values, or single-point multi-position sequential sampling may be used to collect screen color values.

[0101] In the disclosed embodiment, the screen is made to distinguish and display a pure color picture of a 4-color display pixel (WRGB) screen; the screen is divided into m*n areas, and the WRGB at different positions are WLij (i=0, 1, 2, ..., m; j=0, 1, 2, ..., n), Wxij, Wyij, RLij, Rxij, Ryij, GLij, Gxij, Gyij, BLij, Bxij, Byij. The color value of WRGB is known to confirm the color gamut of the current area. The target color gamut is selected as the color gamut determined by ave(Wxij), ave(Wyij), ave(Rxij), ave(Ryij), ave(Gxij), ave(Gyij), ave(Bxij), ave(Byij). The color gamut conversion matrix Tij of each area can be calculated based on the target color gamut and the current color gamut. The matrix is ​​a 3*3 matrix, consisting of 9 elements [p11, p12, p13; p21, p22, p23; p31, p32, p33]. Here, the 4-color display pixel (WRGB) screen includes white sub-pixels, red sub-pixels, green sub-pixels, and blue sub-pixels. Here, x, y, and L correspond to the color coordinates in the color gamut space.

[0102] In the disclosed embodiment, if the screen brightness is the maximum brightness (Lmax) nit (nit), and the grayscale display capability is 0-255 grayscales, the screen brightness interval and the display grayscale can be divided into intervals, and the screen can be captured at different grayscales with different brightness.

[0103] In the disclosed embodiment, when the screen is divided into u parts according to grayscale, so that the screen displays the content of grayscale g=255 / u*p (p=1, 2, ..., u) at the maximum brightness Lmax, and the color values ​​of WRGB in different areas are collected in the same way, the color gamut conversion matrix Tij_g can also be calculated at grayscale g=255 / u*p (p=1, 2, ..., u) in the above manner, and u groups of 3*3 matrices can be obtained, that is, there are u p11, u p21, ... u p33, and the ratio α of each group of p values ​​and the matrix element of the maximum grayscale is made, and the data is fitted by the comparison value, then nine curves f(g) of the transformation coefficients of the T matrix elements that change with the grayscale can be fitted. Here, the g indicates the grayscale value.

[0104] In the disclosed embodiment, when the screen is divided into v parts according to brightness, and the screen is made to display different brightness l=Lmax / v*q (q=1,2,…v), the WRGB brightness color values ​​of different areas are collected in the same way, and the color gamut conversion matrix Tij_l is calculated in the same way, then v groups of 3*3 matrices can be obtained, that is, there are v p11, v p21,…v p33, and the ratio β of each group of p values ​​and the matrix element of the maximum brightness is made, and the data is fitted according to the comparison value, then nine curves f(l) of the transformation coefficients of the T matrix elements that change with brightness can be fitted. Here, the l indicates the brightness value.

[0105] In the disclosed embodiment, by identifying the brightness of the current display device and the histogram of the displayed content, the current screen brightness G and the histogram grayscale mean L of the current picture are obtained. The matrix element transformation coefficient β under the current L is calculated by applying the T matrix element change curve f(l) that changes with the brightness, and the matrix element transformation coefficient α under the current grayscale is calculated by applying the T matrix element change curve f(g) that changes with the grayscale.

[0106] In the disclosed embodiment, the color gamut conversion matrix of different areas at different grayscales under different brightness is: Tij*α*β, and then based on the dot product of the original display color value of the screen and the color gamut conversion matrix of different areas at different grayscales under different brightness, this matrix is ​​applied to different areas to compensate for the uniformity of screen color values.

[0107] Combination Figure 6 As shown, in an embodiment of the present disclosure, a display compensation device 300 is provided, and the device 300 includes:

[0108] An acquisition module 301 is used to acquire the display brightness of the display screen;

[0109] A division module 302 is used to divide the display area of ​​the target picture displayed on the display screen into N areas; wherein N is the total number of the display areas;

[0110] A first determination module 303, used to determine the grayscale value of each area displaying the target image;

[0111] A second determination module 304, configured to determine a first parameter according to the display brightness and a preset first functional relationship;

[0112] A third determination module 305 is used to determine a second parameter according to the grayscale of each region and a preset second functional relationship;

[0113] The compensation module 306 is used to perform display compensation on the nth area of ​​the target image according to the first parameter, the second parameter of the nth area and a preset first matrix; wherein n is a positive integer less than or equal to N.

[0114] In the embodiment of the present disclosure, the first determining module is configured as follows:

[0115] Determining a display grayscale histogram of the target picture in each area according to the first display data of the target picture;

[0116] The grayscale of each region is determined according to the grayscale histogram.

[0117] In the embodiment of the present disclosure, the compensation module is configured as follows:

[0118] Acquire a preset first matrix; wherein the first matrix is ​​used as a matrix for displaying data conversion in the nth region;

[0119] Obtaining a second matrix corresponding to the display brightness according to the first parameter and the first matrix;

[0120] The second parameter of the nth region and the second matrix are used to obtain a third matrix used by the nth region;

[0121] Display compensation is performed on the nth area of ​​the target picture according to the third matrix, the second parameter of the nth area, and a preset first matrix.

[0122] In the embodiment of the present disclosure, the device 300 further includes:

[0123] A fourth determination module, configured to determine a first color value displayed in the mth area of ​​the display screen when the display screen displays a predetermined pure color image at a predetermined brightness;

[0124] a fifth determination module, configured to determine a fourth matrix according to the first color value, the second color value, and a color gamut conversion formula; wherein the second color value is an expected color value for the m-th region to display the predetermined pure color image; wherein the fourth matrix is: a color gamut conversion matrix for the m-th region to display the predetermined pure color image at the predetermined brightness; wherein m is a positive integer less than or equal to N;

[0125] A generating module is used to generate the first matrix corresponding to the preset brightness according to the fourth matrix of the mth area at different brightness and different grayscale.

[0126] In the embodiment of the present disclosure, the device 300 further includes:

[0127] A sixth determination module obtains a first functional relationship for determining the first parameter according to the fourth matrix and the first matrix at different display brightnesses.

[0128] In the embodiment of the present disclosure, the device 300 further includes:

[0129] A seventh determination module obtains a second functional relationship for determining the second parameter according to the fourth matrix and the first matrix at different brightness and different grayscales.

[0130] In an embodiment of the present disclosure, an electronic device 400 is provided, including:

[0131] Memory 404 for storing processor executable instructions;

[0132] A processor 420 connected to the memory 404;

[0133] The processor 420 is configured to execute the display compensation method provided by any of the aforementioned technical solutions.

[0134] 4 is a block diagram of an electronic device 400 according to an exemplary embodiment. For example, the device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0135] Reference Figure 7 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0136] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0137] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 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.

[0138] The power component 406 provides power to the various components of the device 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.

[0139] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0140] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0141] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0142] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0143] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0144] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0146] An embodiment of the present disclosure provides a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor of a computer, the computer can execute the display compensation method described in one or more of the aforementioned technical solutions.

[0147] When the processor executes the instruction, it can at least perform the following steps:

[0148] Get the display brightness of the display;

[0149] Dividing a display area of ​​the target image displayed on the display screen into N areas; wherein N is the total number of the display areas;

[0150] Determining the grayscale value of each area displaying the target image;

[0151] Determining a first parameter according to the display brightness and a preset first functional relationship;

[0152] Determine a second parameter according to the grayscale of each area and a preset second functional relationship;

[0153] Display compensation is performed on the nth area of ​​the target picture according to the first parameter, the second parameter of the nth area, and a preset first matrix, wherein n is a positive integer less than or equal to N.

[0154] It can be understood that the determining of the grayscale value of each area of ​​the target image includes:

[0155] Determining a display grayscale histogram of the target picture in each area according to the first display data of the target picture;

[0156] The grayscale of each region is determined according to the grayscale histogram.

[0157] It can be understood that, converting the first display data of the target image in the nth area into the second display data according to the first parameter and the second parameter of the nth area includes:

[0158] Acquire a preset first matrix; wherein the first matrix is ​​used as a matrix for displaying data conversion in the nth region;

[0159] Obtaining a second matrix corresponding to the display brightness according to the first parameter and the first matrix;

[0160] The second parameter of the nth region and the second matrix are used to obtain a third matrix used by the nth region;

[0161] The second display data of the nth area is obtained according to the third matrix and the first display data of the nth area.

[0162] It is understandable that the method further comprises:

[0163] When the display screen displays a predetermined pure color image at a predetermined brightness, determining a first color value displayed in the mth area of ​​the display screen;

[0164] Determine a fourth matrix of the mth region according to the second color value of the predetermined pure color image corresponding to the nth region and the first color value; wherein m is a positive integer less than or equal to N;

[0165] The first matrix corresponding to the preset brightness is generated according to the fourth matrix of the mth area at different brightness and different grayscale.

[0166] It is understandable that the method further comprises:

[0167] A first functional relationship for determining the first parameter is obtained according to the fourth matrix and the first matrix at different display brightnesses.

[0168] It is understandable that the method further comprises:

[0169] A second functional relationship for determining the second parameter is obtained according to the fourth matrix and the first matrix at different brightness and different grayscales.

[0170] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0171] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A display compensation method, characterized in that: The method comprises: Get the display brightness of the display; Dividing a display area of ​​the target image displayed on the display screen into N areas; wherein N is the total number of the display areas; Determining the grayscale value of each area displaying the target image; Determining a first parameter according to the display brightness and a preset first functional relationship; Determine a second parameter according to the grayscale of each area and a preset second functional relationship; Display compensation is performed on the nth area of ​​the target picture according to the first parameter, the second parameter of the nth area, and a preset first matrix, wherein n is a positive integer less than or equal to N.

2. The display compensation method according to claim 1, characterized in that: Determining the grayscale of each area of ​​the target image includes: Determining a display grayscale histogram of the target picture in each area according to the first display data of the target picture; The grayscale of each region is determined according to the grayscale histogram.

3. The display compensation method according to claim 1 or 2, characterized in that: The performing display compensation on the nth area of ​​the target picture according to the first parameter, the second parameter of the nth area, and a preset first matrix includes: Acquire a preset first matrix; wherein the first matrix is ​​used to perform display data conversion on the nth area; Obtaining a second matrix corresponding to the display brightness according to the first parameter and the first matrix; Obtaining a third matrix used by the nth region according to the second parameter of the nth region and the second matrix; Display compensation is performed on the nth area according to the third matrix.

4. The display compensation method according to claim 3, characterized in that: The method further comprises: When the display screen displays a predetermined pure color image at a predetermined brightness, determining a first color value actually displayed in the mth area of ​​the display screen; A fourth matrix is ​​determined according to the first color value, the second color value and the color gamut conversion formula; wherein the second color value is the expected color value of the predetermined pure color image displayed in the m-th region; wherein the fourth matrix is: a color gamut conversion matrix of the predetermined pure color image displayed in the m-th region at the predetermined brightness; wherein m is a positive integer less than or equal to N; The first matrix corresponding to the preset brightness is generated according to the fourth matrix of the mth area at different brightness and different grayscale.

5. The display compensation method according to claim 4, characterized in that: The method further comprises: A first functional relationship for determining the first parameter is obtained according to the fourth matrix and the first matrix at different display brightnesses.

6. The display compensation method according to claim 3, characterized in that: The method further comprises: A second functional relationship for determining the second parameter is obtained according to the fourth matrix and the first matrix at different brightness and different grayscales.

7. A display compensation device, characterized in that: include: An acquisition module, used to acquire the display brightness of the display screen; A division module, used to divide the display area of ​​the target picture displayed on the display screen into N areas; wherein N is the total number of the display areas; A first determination module, used to determine the grayscale value of each area displaying the target image; A second determination module, used to determine a first parameter according to the display brightness and a preset first functional relationship; A third determination module, used to determine a second parameter according to the grayscale of each area and a preset second functional relationship; A compensation module is used to perform display compensation on the nth area of ​​the target image according to the first parameter, the second parameter of the nth area and a preset first matrix; wherein n is a positive integer less than or equal to N.

8. The display compensation device according to claim 7, characterized in that: The first determining module is configured as follows: Determining a display grayscale histogram of the target picture in each area according to the first display data of the target picture; The grayscale of each region is determined according to the grayscale histogram.

9. The display compensation device according to claim 7 or 8, characterized in that: The compensation module is configured as follows: Acquire a preset first matrix; wherein the first matrix is ​​used as a matrix for displaying data conversion in the nth region; Obtaining a second matrix corresponding to the display brightness according to the first parameter and the first matrix; The second parameter of the nth region and the second matrix are used to obtain a third matrix used by the nth region; The second display data of the nth area is obtained according to the third matrix and the first display data of the nth area.

10. The display compensation device according to claim 9, characterized in that: The device also includes: A fourth determination module, configured to determine a first color value displayed in the mth area of ​​the display screen when the display screen displays a predetermined pure color image at a predetermined brightness; a fifth determination module, configured to determine a fourth matrix according to the first color value, the second color value, and a color gamut conversion formula; wherein the second color value is an expected color value for the m-th region to display the predetermined pure color image; wherein the fourth matrix is: a color gamut conversion matrix for the m-th region to display the predetermined pure color image at the predetermined brightness; wherein m is a positive integer less than or equal to N; A generating module is used to generate the first matrix corresponding to the preset brightness according to the fourth matrix of the mth area at different brightness and different grayscale.

11. The display compensation device according to claim 10, characterized in that: The device also includes: A sixth determination module obtains a first functional relationship for determining the first parameter according to the fourth matrix and the first matrix at different display brightnesses.

12. The display compensation device according to claim 10, characterized in that: The device also includes: A seventh determination module obtains a second functional relationship for determining the second parameter according to the fourth matrix and the first matrix at different brightness and different grayscales.

13. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; A processor connected to the memory; Wherein, the processor is configured to execute the display compensation method as described in any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the display compensation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Screen brightness adjustment method and device and liquid crystal display device

    CN104715731A

  • Method and device of compensation for eliminating uneven brightness of screen body

    CN108877736A

  • Display panel pixel compensation method and compensation device

    CN110364111A

  • Method, computer readable storage medium, and display device for display panel mura compensation

    CN111433841A

  • Display compensation information obtaining method and device and display compensation method and device

    CN111968570A

Cited By

  • OLED panel real-time digital compensation method and system

    CN120636324A