Display compensation method and device of display panel, electronic equipment and storage medium
Patent Information
- Application Number
- CN202511101712.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-07
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2045-08-07
AI Technical Summary
[0003]然而,在对显示面板的亮度进行补偿的过程中,存在由于计算过程复杂导致补偿效率低,且难以保证亮度数据可靠度的问题
[0052]In this embodiment of the invention, since the uniform image in the uniform panel is in an ideal uniform state, adjusting the block division of the image to be compensated based on the global contrast brightness variance and the global brightness variance of the image to be compensated can avoid the problems of insufficient compensation or over-computation caused by over-segmentation or under-segmentation of the image to be compensated. By analyzing the compensation situation of the second block matrix layer by layer, the incompleteness of a single compensation can be avoided, ensuring the reliability of the compensation result. In addition, by specifically targeting the block matrix with compensation to be compensated while ignoring the block matrix without compensation to be compensated, the area to be compensated is accurately identified, reducing the amount of data calculation and improving the efficiency of image compensation.
Smart Images

Figure CN120708563B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image compensation processing technology, and more specifically to a display compensation method, apparatus, electronic device, and storage medium for a display panel. Background Technology
[0002] Mura refers to uneven brightness or color on a screen. The Mura phenomenon causes inconsistencies in brightness or color on the screen, affecting the user's visual experience and reducing viewing comfort. Severe Mura may interfere with the normal display function of the monitor, resulting in unclear images or other quality problems. To solve the Mura problem, Demura technology was specifically developed. Demura technology compensates for brightness / color deviations by precisely adjusting the driving grayscale value or operating voltage of pixels in the Mura area, thus achieving display uniformity correction.
[0003] However, in the process of compensating for the brightness of the display panel, there are problems such as low compensation efficiency due to the complexity of the calculation process and difficulty in ensuring the reliability of the brightness data. Summary of the Invention
[0004] This invention provides a display compensation method, apparatus, electronic device, and storage medium for a display panel, aiming to quickly compensate for the image to be compensated on the display panel.
[0005] To address the aforementioned technical problems, the embodiments of the present invention provide the following technical solutions:
[0006] A display compensation method for a display panel, comprising:
[0007] Obtain the overall average brightness of the image to be compensated on the display panel;
[0008] The image to be compensated is divided into blocks to obtain the first block matrix of the image to be compensated;
[0009] Based on the overall average brightness, a brightness variance analysis is performed on the first block matrix to obtain the global brightness variance of the image to be compensated.
[0010] Obtain the global reference brightness variance of the image to be compensated, wherein the global reference brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel;
[0011] The image to be compensated is re-blocked based on the global brightness variance and the global control brightness variance to obtain a second block matrix;
[0012] If there is a third block matrix to be compensated in the second block matrix, the third block matrix is compensated to obtain the compensated third block matrix;
[0013] The compensated third block matrix is divided into blocks to obtain a fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated.
[0014] Optionally, the step of dividing the image to be compensated into blocks to obtain a first block matrix of the image to be compensated includes:
[0015] Edge detection is performed on the grayscale image of the image to be compensated to obtain multiple edge detection images;
[0016] The multiple edge detection images are binarized to obtain the first block matrix after the image to be compensated is divided into blocks.
[0017] Optionally, the step of performing luminance variance analysis on the first block matrix based on the overall luminance average value to obtain the global luminance variance of the image to be compensated includes:
[0018] Obtain the average brightness value of each of the first block matrices;
[0019] Based on the overall average brightness value and the average brightness value of each of the first block matrices, the global brightness variance of the image to be compensated is obtained.
[0020] Optionally, the step of re-segmenting the image to be compensated based on the global brightness variance and the global control brightness variance to obtain a second block matrix includes:
[0021] The number of updated blocks for the image to be compensated is determined based on the global brightness variance, the global reference brightness variance, and the relationship between the preset brightness variance, reference brightness variance, and the number of blocks.
[0022] The image to be compensated is re-divided into uniform blocks based on the updated number of blocks to obtain the second block matrix.
[0023] Optionally, if there is a third block matrix to be compensated in the second block matrix, the third block matrix is compensated to obtain a compensated third block matrix, including:
[0024] Obtain the brightness difference and range value for each second block matrix respectively;
[0025] Determine whether the brightness difference is greater than a preset brightness difference threshold, or whether the range is greater than a preset range threshold;
[0026] If so, the brightness difference is determined to be greater than a preset brightness difference threshold, or the second block matrix whose range value is greater than the preset range threshold is the third block matrix to be compensated.
[0027] The third block matrix is compensated based on a preset display compensation method to obtain the compensated third block matrix.
[0028] Optionally, obtaining the brightness difference and range values for each second block matrix includes:
[0029] The second average brightness, the second maximum brightness, and the second minimum brightness of each second block matrix, as well as the overall average brightness of the image to be compensated, are obtained respectively.
[0030] The absolute difference between the second average brightness and the overall average brightness is defined as the brightness difference of the second block matrix corresponding to the second average brightness;
[0031] The difference between the second maximum brightness value and the second minimum brightness value is defined as the range value of the corresponding second block matrix.
[0032] Optionally, the compensated third block matrix is divided into blocks to obtain a fourth block matrix. If the fourth block matrix contains a fifth block matrix to be compensated, after compensating the fifth block matrix, the process further includes:
[0033] Obtain all the block matrices to be compensated, and perform interpolation mapping and stitching on all the block matrices to be compensated to obtain the stitched compensated image.
[0034] Uniformity detection is performed on the stitched compensated image using region blocks of a different size than the fifth block matrix.
[0035] A display compensation device for a display panel, comprising:
[0036] The overall brightness average value acquisition module is used to acquire the overall brightness average value of the image to be compensated on the display panel;
[0037] The first block module is used to perform block processing on the image to be compensated to obtain the first block matrix of the image to be compensated.
[0038] The global brightness variance determination module is used to perform brightness variance analysis on the first block matrix based on the overall brightness average value to obtain the global brightness variance of the image to be compensated.
[0039] The global contrast brightness variance determination module is used to obtain the global contrast brightness variance of the image to be compensated, wherein the global contrast brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel.
[0040] The re-blocking module is used to re-block the image to be compensated according to the global brightness variance and the global reference brightness variance to obtain a second block matrix.
[0041] The first compensation module is used to compensate the third block matrix if there is a third block matrix to be compensated in the second block matrix, so as to obtain the compensated third block matrix.
[0042] The second compensation module is used to divide the compensated third block matrix into blocks to obtain a fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated.
[0043] An electronic device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps:
[0044] Obtain the overall average brightness of the image to be compensated on the display panel;
[0045] The image to be compensated is divided into blocks to obtain the first block matrix of the image to be compensated;
[0046] Based on the overall average brightness, a brightness variance analysis is performed on the first block matrix to obtain the global brightness variance of the image to be compensated.
[0047] Obtain the global reference brightness variance of the image to be compensated, wherein the global reference brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel;
[0048] The image to be compensated is re-blocked based on the global brightness variance and the global control brightness variance to obtain a second block matrix;
[0049] If there is a third block matrix to be compensated in the second block matrix, the third block matrix is compensated to obtain the compensated third block matrix;
[0050] The compensated third block matrix is divided into blocks to obtain a fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated.
[0051] A computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps in the display compensation method for the display panel described above.
[0052] In this embodiment of the invention, since the uniform image in the uniform panel is in an ideal uniform state, adjusting the block division of the image to be compensated based on the global contrast brightness variance and the global brightness variance of the image to be compensated can avoid the problems of insufficient compensation or over-computation caused by over-segmentation or under-segmentation of the image to be compensated. By analyzing the compensation situation of the second block matrix layer by layer, the incompleteness of a single compensation can be avoided, ensuring the reliability of the compensation result. In addition, by specifically targeting the block matrix with compensation to be compensated while ignoring the block matrix without compensation to be compensated, the area to be compensated is accurately identified, reducing the amount of data calculation and improving the efficiency of image compensation. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 This is a schematic diagram of a scenario of an embodiment of the display compensation system for a display panel provided in this invention.
[0055] Figure 2 This is a schematic diagram of another embodiment of the display compensation system for the display panel provided in this invention.
[0056] Figure 3 This is a schematic flowchart of an embodiment of the display compensation method for a display panel provided in this invention.
[0057] Figure 4 This is a flowchart illustrating an embodiment of the multi-iteration mean Demura adaptive optimization process provided by an embodiment of the present invention;
[0058] Figure 5 A schematic diagram of a display compensation device for a display panel according to an embodiment of the present invention;
[0059] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0060] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0061] In the following description, specific embodiments of the invention will be illustrated with reference to steps and symbols performed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be referred to several times as being performed by a computer, and computer execution as referred to herein includes operations by a computer processing unit representing electronic signals of data in a structured format. This operation transforms the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise alter the operation of the computer in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the invention described above are not intended to be limiting, and those skilled in the art will understand that many of the steps and operations described below can also be implemented in hardware.
[0062] The terms "module" or "unit" as used herein can be considered as software objects executing on the computing system. The different components, modules, engines, and services described herein can be considered as implementation objects on the computing system. The apparatus and methods described herein are preferably implemented in software, but can also be implemented in hardware, both of which are within the scope of this invention.
[0063] This invention provides a display compensation method, apparatus, electronic device, and storage medium for a display panel.
[0064] Please see Figure 1 , Figure 1 This is a schematic diagram of a scenario illustrating an embodiment of the display compensation system for a display panel provided in this invention. The display compensation system may include a client 100 and a server 200, which are connected via a network. The server 200 integrates a display compensation device for the display panel. The server 200 may be a work platform server (i.e., a server loaded with a work platform), such as... Figure 1In this embodiment of the invention, the server 200 is mainly used to obtain the overall average brightness of the image to be compensated on the display panel; to perform block processing on the image to be compensated to obtain a first block matrix of the image to be compensated; to perform brightness variance analysis on the first block matrix based on the overall average brightness to obtain the global brightness variance of the image to be compensated; to obtain the global reference brightness variance of the image to be compensated, which is the global brightness variance of the uniform image in the preset uniform panel; to re-block the image to be compensated according to the global brightness variance and the global reference brightness variance to obtain a second block matrix; if there is a third block matrix to be compensated in the second block matrix, the third block matrix is compensated to obtain a compensated third block matrix; the compensated third block matrix is divided into blocks to obtain a fourth block matrix; if there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated.
[0065] In this embodiment of the invention, the server 200 can be a standalone server, a server network, or a server cluster. For example, the server 200 described in this embodiment includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud server composed of multiple servers. The cloud server is composed of a large number of computers or network servers based on cloud computing. In this embodiment, communication between the server and the client can be achieved through any communication method, including but not limited to, mobile communication based on the 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), and Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP / IP Protocol Suite (TCP / IP) and User Datagram Protocol (UDP).
[0066] It is understood that the client 100 used in this embodiment of the invention can be understood as a client device. A client device includes both receiving and transmitting hardware, that is, a device with receiving and transmitting hardware capable of performing bidirectional communication on a bidirectional communication link. Such a client device may include cellular or other communication devices, having a single-line display, a multi-line display, or a cellular or other communication device without a multi-line display. Specifically, the client 100 may be a desktop terminal or a mobile terminal, specifically a mobile phone, tablet computer, laptop computer, etc.
[0067] Those skilled in the art will understand that Figure 1 The application environment shown is merely one application scenario of the solution in this application and does not constitute a limitation on the application scenario of the solution in this application. Other application environments may include those that are more specific to this application. Figure 1 The number of servers shown, or the server network connectivity relationships, for example... Figure 1 Only one server and two clients are shown in the image. It is understood that the display compensation system of this display panel may also include one or more other servers, and / or one or more clients connected to the server network, which is not limited here.
[0068] In some embodiments of the present invention, the working platform may be an enterprise office platform, such as WeChat for Business. Taking server 200 as an example, it may further include an enterprise office platform contact server, an enterprise office platform configuration management server, and a web management server. Enterprise users or developers can access the web management server using a web browser terminal to configure the field configuration information on the enterprise office platform configuration management server, and set and store the enterprise user information of enterprise employees of the enterprise office platform on the enterprise office platform contact server.
[0069] In addition, such as Figure 2 As shown, Figure 2 This is a schematic diagram of another embodiment of the display compensation system for a display panel provided in this invention. The display compensation system for the display panel may further include a storage terminal 300 for storing data, such as a storage object database. The object database stores object data, which may include application templates (such as approval templates, attendance templates, and other application templates), file data (such as Word files, Excel files, or PPT files, and other files in various formats), image data (such as images in various formats such as JPG, PNG, and BMP), and other types of data. Correspondingly, the object database may also be divided into multiple types of data, such as an application database, a file database, or an image database.
[0070] It should be noted that, Figure 1-2The schematic diagram of the display compensation system for the display panel shown is merely an example. The display compensation system and scenarios of the display panel described in the embodiments of the present invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. As those skilled in the art will know, with the evolution of the display compensation system of the display panel and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0071] The following detailed description is based on specific embodiments.
[0072] In this embodiment, the description will be from the perspective of the display compensation device of the display panel, which can be integrated into the server 200.
[0073] This invention provides a display compensation method for a display panel. Please refer to [link / reference]. Figure 3 , Figure 3 This is a schematic flowchart of an embodiment of the display compensation method for a display panel provided by the present invention, including:
[0074] S301: Obtain the overall average brightness of the image to be compensated on the display panel;
[0075] S302: Perform block processing on the image to be compensated to obtain the first block matrix of the image to be compensated;
[0076] S303: Obtain the overall average brightness of the image to be compensated on the display panel; perform block processing on the image to be compensated to obtain the first block matrix of the image to be compensated; perform brightness variance analysis on the first block matrix based on the overall average brightness to obtain the global brightness variance of the image to be compensated;
[0077] In one specific embodiment, the image to be compensated for the display panel can be the entire screen image displayed to the user, or it can be a selected area of the screen image of the display panel as needed. For example, when the screen image of the display panel includes multiple display areas, the image to be compensated can include only a few areas that need to be compensated, which is not limited here.
[0078] The first block matrix refers to the multiple image blocks obtained by dividing the image to be compensated into blocks, and the number of image blocks is the same as the number of the first block matrix.
[0079] Global brightness variance refers to a parameter obtained by performing variance analysis on the brightness data of the image to be compensated, which can represent the deviation of the brightness data of the image to be compensated.
[0080] S304: Obtain the global reference brightness variance of the image to be compensated. The global reference brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel.
[0081] In one specific embodiment, the preset uniform panel refers to a pre-set standard panel. The uniform image in the uniform panel is consistent with the image compensation result in the display panel that those skilled in the art want to achieve. The global comparison brightness variance refers to the deviation of the brightness data in the image of the standard display panel.
[0082] S305: The image to be compensated is re-blocked based on the global brightness variance and the global control brightness variance to obtain the second block matrix;
[0083] In one specific embodiment, the second block matrix is substantially the same as the first block matrix. Generally, the number or block method of the second block matrix and the first block matrix may be different, or they may be the same. This is not a limitation.
[0084] S306: If there is a third block matrix to be compensated in the second block matrix, compensate the third block matrix to obtain the compensated third block matrix.
[0085] In one specific embodiment, the second block matrix includes multiple components. By performing data analysis on each second block matrix, it is determined whether a certain second block matrix needs to be compensated. The second block matrix that needs to be compensated is defined as the third block matrix to be compensated. That is, the third block matrix is a specific second block matrix. Obviously, the third block matrix is much smaller than the second block matrix.
[0086] The compensated third block matrix refers to the result obtained by compensating the third block matrix with data. Specific compensation methods include any one of mean-based compensation, model prediction-based compensation, neighbor-based block compensation, and statistical distribution-based compensation. Other methods can also be used for compensation, which are not limited here.
[0087] S307: Divide the compensated third block matrix into blocks to obtain the fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, compensate the fifth block matrix.
[0088] In one specific embodiment, the fourth block matrix includes multiple fourth block matrices, and each fourth block matrix is much smaller than the compensated third block matrix.
[0089] Obviously, there may be no fifth block matrix to be compensated in the fourth block matrix. In other words, only one compensation is needed to obtain the final result that meets the requirements. When there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is treated as the third block matrix in S304 for iterative compensation.
[0090] Furthermore, after compensating the fifth block matrix, in order to ensure the final compensation effect of the image to be compensated, it is necessary to repeat S307 and replace the compensated fifth block matrix with the compensated third block matrix for iteration until the final image of the image to be compensated that meets the compensation requirements is obtained.
[0091] In other embodiments, the compensation target can be adaptively adjusted according to actual needs. That is, the number of iterations can be adjusted as needed to avoid the problem of excessive data processing volume due to too many iterations.
[0092] In this embodiment, since the uniform image in the uniform panel is in an ideal uniform state, adjusting the segmentation of the image to be compensated based on the global contrast brightness variance and the global brightness variance of the image to be compensated can avoid the problems of insufficient compensation or over-computation caused by over-segmentation or under-segmentation of the image to be compensated. By analyzing the compensation situation of the second segment matrix layer by layer, the incompleteness of a single compensation can be avoided, ensuring the reliability of the compensation result. In addition, by specifically targeting the segment matrix with compensation to be compensated while ignoring the segment matrix without compensation to be compensated, the area to be compensated is accurately identified, reducing the amount of data calculation and improving the efficiency of image compensation.
[0093] In one specific embodiment, in S303, in order to perform block processing on the image to be compensated of the display panel to obtain the first block matrix of the image to be compensated, the specific steps include: performing edge operator detection on the grayscale image of the image to be compensated to obtain multiple edge detection images; performing binarization processing on the multiple edge detection images to obtain the first block matrix after the image to be compensated is divided into blocks.
[0094] In this embodiment, edge information of the image can be obtained by performing edge operator detection on the grayscale image of the image to be compensated, resulting in an edge detection image that can highlight the contours of objects in the image. The edge detection image is then binarized to transform it into an image containing only black and white color values, thereby obtaining the first block matrix of the image to be compensated. The first block matrix can more clearly represent the distribution of image edge information, providing a basis for further block processing and analysis of the image, and facilitating the study of the image from different perspectives, both overall and local.
[0095] Furthermore, variance analysis is performed on the image to be compensated on the display panel to obtain the global brightness variance of the image to be compensated. Specifically, this includes: obtaining the overall average brightness of the image to be compensated and the average brightness value of each first block matrix; using the overall average brightness as a benchmark, the variance of multiple average brightness values is calculated to obtain the global brightness variance of the image to be compensated.
[0096] In this embodiment, the global brightness variance is obtained by calculating the variance of the average brightness value of each first block matrix based on the overall average brightness value of the image to be compensated. This helps to determine the degree of dispersion of brightness in different regions of the image to be compensated, so as to make more accurate compensation based on the brightness differences in different regions of the image.
[0097] In one specific embodiment, the Sobel / Canny operators are used for image edge detection to obtain an edge-detected image. The calculation formulas for the Sobel / Canny operators are as follows:
[0098]
[0099] Where (x,y) are the coordinates of the image to be compensated, I(x,y) is the gray-level matrix, and G... x For the horizontal gradient, G y Let G be the vertical gradient, θ be the gradient magnitude, and θ be the gradient direction. α (x,y) is a Gaussian kernel, I gs (x,y) represents the grayscale value of the coordinates (x,y) after Gaussian filtering, and α represents the Gaussian kernel G. α A parameter in (x,y).
[0100] Binarizing the edge detection image yields the matrix m of the image to be compensated. pq And obtain the position of the center pixel (x) cen ,y cen ), specifically:
[0101]
[0102] Where Q(x,y) is the binary image of the edge detection image; p and q are both non-negative integers, representing the order of the moments; x cen The x-coordinate and y-coordinate of the center point of the image are represented by... cen The y-coordinate of the image center point; m 10 Let m be the sum of the x-coordinates of each pixel in the edge detection image; 00 m is the total area of all regions where the pixel value is 1; 01 Let be the y-coordinates of each pixel in the edge detection image.
[0103] In determining the matrix m of the edge detection image pq and the position of the center pixel (x) cen ,y cenAfter that, the edge detection image is pre-divided into n (n=12) non-overlapping sub-regions, i.e., the first block matrix, which together cover the entire original image matrix. Then, the average brightness value avg[i] (i=1,2,…n) of each first block matrix is calculated, and the global brightness variance of the image to be compensated is determined by combining it with the overall average brightness value Mavg of the image to be compensated. The formula for calculating the global brightness variance is as follows:
[0104]
[0105] In this embodiment, by calculating the global brightness variance of the image to be compensated, the dispersion of the brightness data corresponding to the first block matrix can be controlled as a whole, so as to facilitate feedback judgment on the block effect of the image to be compensated and the uniformity of the image brightness.
[0106] Generally, the block division effect of the image to be compensated will not affect its uniformity. In other words, the image needs to be further compensated. Therefore, the image to be compensated needs to be re-blocked.
[0107] In one specific embodiment, in S304, the global reference brightness variance is the global brightness variance of the uniform image in the preset uniform panel. In order to obtain the global reference brightness variance of the image to be compensated, the overall average brightness of the uniform panel is first obtained. Then, the uniform panel is divided into blocks according to the block division method of the first block matrix, and the average brightness value of each sub-panel after block division is obtained. Finally, the variance of the global brightness corresponding to the average brightness value of multiple sub-panels and the overall average brightness of the uniform panel is determined according to the variance calculation method, and the variance of the global brightness is used as the global reference brightness variance.
[0108] Specifically, the global contrast luminance variance σ 2 The formula for calculating (z) is:
[0109]
[0110] Among them, z i Let be the average brightness value of the i-th sub-panel in the uniform panel, μ be the overall average brightness value of the uniform panel, and N be the number of sub-panels in the uniform panel.
[0111] In a specific embodiment, in S305, in order to perform block fine-tuning on the image to be compensated based on the global brightness variance and the global reference brightness variance to obtain a second block matrix, the process specifically includes: determining the updated block number of the image to be compensated based on the global brightness variance, the global reference brightness variance, and the relationship between the preset brightness variance, the reference brightness variance, and the number of blocks; and re-dividing the image to be compensated into uniform blocks based on the updated block number to obtain the second block matrix.
[0112] Specifically, the relationship between the preset brightness variance, the control brightness variance, and the number of blocks refers to:
[0113]
[0114] Where n is the number of blocks. σ represents the global brightness variance of the image to be compensated. 2 (z) represents the global contrast luminance variance of the uniform panel.
[0115] After determining the number of updated blocks, the image to be compensated is re-divided into uniform blocks based on the number of updated blocks to obtain a second block matrix, which can yield a second block matrix with a more reasonable block configuration.
[0116] In this embodiment, the number of updated blocks is determined based on the variance, which enables more accurate image segmentation based on the brightness characteristics of the image and the reference brightness. Compared with arbitrary or fixed segmentation, this method can dynamically adjust the number of blocks according to the changes in the brightness of the image itself and the reference brightness, making the segmentation more consistent with the actual situation of the image.
[0117] In one specific embodiment, in S306, if there is a third block matrix to be compensated in the second block matrix, the third block matrix is compensated to obtain the compensated third block matrix. Specifically, this includes: obtaining the brightness difference and range value of each second block matrix; determining whether the brightness difference is greater than a preset brightness difference threshold, or whether the range value is greater than a preset range threshold; if so, determining that the second block matrix whose brightness difference is greater than the preset brightness difference threshold, or whose range value is greater than the preset range threshold, is the third block matrix to be compensated; and compensating the third block matrix based on a preset display compensation method to obtain the compensated third block matrix.
[0118] Further, the brightness difference and range of each second block matrix are obtained respectively, specifically including: obtaining the second average brightness, the second maximum brightness and the second minimum brightness of each second block matrix, as well as the overall average brightness of the image to be compensated; defining the absolute difference between the second average brightness and the overall average brightness as the brightness difference of the second block matrix corresponding to the second average brightness; and defining the difference between the second maximum brightness and the second minimum brightness as the range of the corresponding second block matrix.
[0119] Specifically, during the compensation process for the image to be compensated, the overall average brightness value Mavg of the image to be compensated is taken as the target brightness. After determining the second average brightness avg2[i], the second maximum brightness value max(i), and the second minimum brightness value min(i) of each second block matrix, the formula for calculating the brightness difference s[i] (i=1,2,…n) of the second block matrix is as follows:
[0120] s[i] = |Mavg-avg2[i]|
[0121] Where |A| represents the absolute value of A.
[0122] The formula for calculating the range ms(i) of the second block matrix is:
[0123] ms[i] = max(i) - min(i)
[0124] The preset brightness difference threshold gray[i] is calculated using the following formula:
[0125]
[0126] It is only related to the block division result of the first block matrix. Here, n specifically refers to the number of the first block matrix. Therefore, the value of gray[i] is relatively fixed so as to facilitate comparison with the brightness difference corresponding to the updated block division.
[0127] The preset range threshold gs[i] is calculated using the following formula:
[0128]
[0129] Where Ma is the maximum brightness of the image to be compensated, Mi is the minimum brightness of the image to be compensated, and n specifically refers to the number of the first block matrix.
[0130] When the second block matrix is determined to be a third block matrix that needs to be compensated, it means that there is still a third block matrix that needs to be compensated in the second block matrix.
[0131] The preset display compensation method includes primary static gray-level-brightness compensation using a lookup table (LUT) combining the grayscale and brightness of the image to be compensated. Other image compensation methods can also be used, which are not limited here. Therefore, the compensated third block matrix is obtained by applying the third block matrix that needs compensation.
[0132] In this embodiment, by judging the brightness difference and range of the display panel block matrix, the third block matrix that needs compensation is determined, and then compensation is performed based on the preset display compensation method. This achieves accurate identification of areas in the display panel that may have display problems (i.e., areas where the brightness difference or range exceeds the threshold), and targeted compensation is performed on these specific areas. This helps to improve the overall display effect of the display panel, ensure the consistency and stability of the display, reduce problems such as uneven display and degraded image quality caused by abnormal brightness or range in local areas, improve the quality and reliability of the display panel in visual presentation, and meet users' needs for high-quality display effects.
[0133] Furthermore, in order to ensure that the compensated third block matrix meets the actual compensation requirements, it is necessary to iteratively compare the compensated third block matrix. Specifically, the compensated third block matrix is divided into blocks to obtain the fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated.
[0134] In other words, it is necessary to further divide the image into blocks and recalculate the results of the blocks in order to finally determine whether the image to be compensated can achieve the final compensation target.
[0135] In one specific embodiment, in S307, the compensated third block matrix is divided into blocks to obtain a fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, after compensating the fifth block matrix, the method further includes: obtaining all the block matrices to be compensated, and performing interpolation mapping and stitching on all the block matrices to be compensated to obtain a stitched compensated image; and performing uniformity detection on the stitched compensated image using region blocks of different sizes than the fifth block matrix.
[0136] That is, after determining all the block matrices to be compensated, in order to ensure the uniformity of the final compensated image, it is necessary to perform interpolation mapping and stitching on all the block matrices to be compensated to obtain the stitched compensated image.
[0137] In this embodiment, on the one hand, by performing feedback adjustment on all the blocks to be compensated, specifically by interpolating and mapping all the blocks to be compensated, the information of each block can be integrated, and the compensation information of different parts can be reasonably merged to improve the integrity and accuracy of image compensation. On the other hand, the uniformity of the stitched compensated image is detected by using a region block of a different size than the fifth block matrix to check the uniformity of the compensated image in different regions, ensuring that the final compensated image has good consistency and uniformity in overall visual effect and data distribution, avoiding problems such as excessive local differences, and improving image quality.
[0138] Furthermore, for a clearer description of the process of compensating the image to be compensated on the display panel, please refer to [link to relevant documentation]. Figure 4 , Figure 4 The flowchart of an embodiment of the multi-iteration mean Demura adaptive optimization process provided in this invention clearly shows all the necessary steps and logical order from the original image to the final uniform brightness image, highlighting the unique advantages of adaptive adjustment and hierarchical compensation, which helps to significantly improve the Mura phenomenon of Micro-LED display panels.
[0139] It should be noted that after the first segmentation, when it is determined that the image to be compensated needs to be compensated, the image to be compensated is not compensated directly. Instead, the number of segments of the image to be compensated is recalculated based on the variance data corresponding to the initial segmentation result of the image to be compensated. Only after segmentation based on the new number of segments does the cycle of compensation followed by resegmentation begin, until it is determined that the image to be compensated no longer needs to be compensated.
[0140] To facilitate better implementation of the display compensation method for the display panel provided in the embodiments of the present invention, the embodiments of the present invention also provide an apparatus based on the above-described display compensation method for the display panel. The meanings of the terms used are the same as in the above-described display compensation method for the display panel, and specific implementation details can be found in the descriptions in the method embodiments.
[0141] Please see Figure 5 , Figure 5 This is a schematic diagram of a display compensation device 500 for a display panel according to an embodiment of the present invention. The display compensation device 500 may include:
[0142] The overall brightness average value acquisition module 501 is used to acquire the overall brightness average value of the image to be compensated on the display panel;
[0143] The first block module 502 is used to perform block processing on the image to be compensated to obtain the first block matrix of the image to be compensated.
[0144] The global brightness variance determination module 503 is used to perform brightness variance analysis on the first block matrix based on the overall brightness average value to obtain the global brightness variance of the image to be compensated.
[0145] The global reference brightness variance determination module 504 is used to obtain the global reference brightness variance of the image to be compensated. The global reference brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel.
[0146] The re-blocking module 505 is used to re-block the image to be compensated based on the global brightness variance and the global reference brightness variance to obtain a second block matrix.
[0147] The first compensation module 506 is used to compensate the third block matrix if there is a third block matrix to be compensated in the second block matrix, so as to obtain the compensated third block matrix.
[0148] The second compensation module 507 is used to divide the compensated third block matrix into blocks to obtain the fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated.
[0149] This invention also provides an electronic device, such as... Figure 6 As shown, Figure 6This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention, specifically:
[0150] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that... Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0151] in:
[0152] The processor 601 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operation of the storage medium, user interface, and application programs, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.
[0153] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store applications required for operating the storage medium and at least one function (such as sound playback function, image playback function, etc.); the data storage area may store data created according to the use of the electronic device. In addition, the memory 602 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
[0154] The electronic device also includes a power supply 603 that supplies power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 via a power management storage medium, thereby enabling functions such as charging, discharging, and power consumption management through the power management storage medium. The power supply 603 may also include one or more DC or AC power supplies, recharge storage media, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0155] The electronic device may also include an input unit 604, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0156] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 runs the applications stored in the memory 602 to realize various functions, as follows:
[0157] Obtain the overall average brightness of the image to be compensated on the display panel; divide the image to be compensated into blocks to obtain the first block matrix of the image to be compensated; perform brightness variance analysis on the first block matrix based on the overall average brightness to obtain the global brightness variance of the image to be compensated; obtain the global reference brightness variance of the image to be compensated, which is the global brightness variance of the uniform image in the preset uniform panel; re-divide the image to be compensated into blocks according to the global brightness variance and the global reference brightness variance to obtain the second block matrix; if there is a third block matrix to be compensated in the second block matrix, compensate the third block matrix to obtain the compensated third block matrix; divide the compensated third block matrix into blocks to obtain the fourth block matrix; if there is a fifth block matrix to be compensated in the fourth block matrix, compensate the fifth block matrix.
[0158] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0159] To this end, embodiments of the present invention provide a computer-readable storage medium storing a computer program thereon, the computer program being loaded by a processor to execute the steps in any of the display compensation methods for a display panel provided in the embodiments of the present invention. For example, the computer program, when loaded by a processor, can execute the following steps:
[0160] Obtain the overall average brightness of the image to be compensated on the display panel; divide the image to be compensated into blocks to obtain the first block matrix of the image to be compensated; perform brightness variance analysis on the first block matrix based on the overall average brightness to obtain the global brightness variance of the image to be compensated; obtain the global reference brightness variance of the image to be compensated, which is the global brightness variance of the uniform image in the preset uniform panel; re-divide the image to be compensated into blocks according to the global brightness variance and the global reference brightness variance to obtain the second block matrix; if there is a third block matrix to be compensated in the second block matrix, compensate the third block matrix to obtain the compensated third block matrix; divide the compensated third block matrix into blocks to obtain the fourth block matrix; if there is a fifth block matrix to be compensated in the fourth block matrix, compensate the fifth block matrix.
[0161] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0162] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0163] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the display compensation methods for display panels provided in the embodiments of the present invention, the beneficial effects that any of the display compensation methods for display panels provided in the embodiments of the present invention can achieve can be realized. For details, please refer to the preceding embodiments, which will not be repeated here.
[0164] The above provides a detailed description of a display compensation method, apparatus, electronic device, and storage medium for a display panel provided by embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A display compensation method for a display panel, characterized in that, include: Obtain the overall average brightness of the image to be compensated on the display panel; The image to be compensated is divided into blocks to obtain the first block matrix of the image to be compensated; Based on the overall average brightness, a brightness variance analysis is performed on the first block matrix to obtain the global brightness variance of the image to be compensated. Obtain the global reference brightness variance of the image to be compensated, wherein the global reference brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel; The image to be compensated is re-blocked based on the global brightness variance and the global control brightness variance to obtain a second block matrix; If there is a third block matrix to be compensated in the second block matrix, the third block matrix is compensated to obtain the compensated third block matrix; The compensated third block matrix is divided into blocks to obtain a fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated. Specifically, the step of re-segmenting the image to be compensated based on the global brightness variance and the global reference brightness variance to obtain a second segmentation matrix includes: determining the updated number of segments of the image to be compensated based on the global brightness variance, the global reference brightness variance, and a preset relationship between the brightness variance, the reference brightness variance, and the number of segments; and re-segmenting the image to be compensated uniformly based on the updated number of segments to obtain the second segmentation matrix.
2. The display compensation method for a display panel according to claim 1, characterized in that, The step of dividing the image to be compensated into blocks to obtain the first block matrix of the image to be compensated includes: Edge detection is performed on the grayscale image of the image to be compensated to obtain multiple edge detection images; The multiple edge detection images are binarized to obtain the first block matrix after the image to be compensated is divided into blocks.
3. The display compensation method for a display panel according to claim 1, characterized in that, The step of performing luminance variance analysis on the first block matrix based on the overall average luminance value to obtain the global luminance variance of the image to be compensated includes: Obtain the average brightness value of each of the first block matrices; Based on the overall average brightness value and the average brightness value of each of the first block matrices, the global brightness variance of the image to be compensated is obtained.
4. The display compensation method for a display panel according to claim 1, characterized in that, If the second block matrix contains a third block matrix to be compensated, the third block matrix is compensated to obtain a compensated third block matrix, including: Obtain the brightness difference and range value for each second block matrix respectively; Determine whether the brightness difference is greater than a preset brightness difference threshold, or whether the range is greater than a preset range threshold; If so, the brightness difference is determined to be greater than a preset brightness difference threshold, or the second block matrix whose range value is greater than the preset range threshold is the third block matrix to be compensated. The third block matrix is compensated based on a preset display compensation method to obtain the compensated third block matrix.
5. The display compensation method for a display panel according to claim 4, characterized in that, The step of obtaining the brightness difference and range values of each second block matrix includes: The second average brightness, the second maximum brightness, and the second minimum brightness of each second block matrix, as well as the overall average brightness of the image to be compensated, are obtained respectively. The absolute difference between the second average brightness and the overall average brightness is defined as the brightness difference of the second block matrix corresponding to the second average brightness; The difference between the second maximum brightness value and the second minimum brightness value is defined as the range value of the corresponding second block matrix.
6. The display compensation method for a display panel according to claim 1, characterized in that, The compensated third block matrix is divided into blocks to obtain a fourth block matrix. If the fourth block matrix contains a fifth block matrix to be compensated, after compensating the fifth block matrix, the process further includes: Obtain all the block matrices to be compensated, and perform interpolation mapping and stitching on all the block matrices to be compensated to obtain the stitched compensated image. Uniformity detection is performed on the stitched compensated image using region blocks of a different size than the fifth block matrix.
7. A display compensation device for a display panel, characterized in that, include: The overall brightness average value acquisition module is used to acquire the overall brightness average value of the image to be compensated on the display panel; The first block module is used to perform block processing on the image to be compensated to obtain the first block matrix of the image to be compensated. The global brightness variance determination module is used to perform brightness variance analysis on the first block matrix based on the overall brightness average value to obtain the global brightness variance of the image to be compensated. The global contrast brightness variance determination module is used to obtain the global contrast brightness variance of the image to be compensated, wherein the global contrast brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel. The re-blocking module is used to re-block the image to be compensated according to the global brightness variance and the global reference brightness variance to obtain a second block matrix. The first compensation module is used to compensate the third block matrix if there is a third block matrix to be compensated in the second block matrix, so as to obtain the compensated third block matrix. The second compensation module is used to divide the compensated third block matrix into blocks to obtain a fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated. Specifically, the step of re-segmenting the image to be compensated based on the global brightness variance and the global reference brightness variance to obtain a second segmentation matrix includes: determining the updated number of segments of the image to be compensated based on the global brightness variance, the global reference brightness variance, and a preset relationship between the brightness variance, the reference brightness variance, and the number of segments; and re-segmenting the image to be compensated uniformly based on the updated number of segments to obtain the second segmentation matrix.
8. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the following steps: Obtain the overall average brightness of the image to be compensated on the display panel; The image to be compensated is divided into blocks to obtain the first block matrix of the image to be compensated; Based on the overall average brightness, a brightness variance analysis is performed on the first block matrix to obtain the global brightness variance of the image to be compensated. Obtain the global reference brightness variance of the image to be compensated, wherein the global reference brightness variance is the variance of the global brightness of the uniform image in the preset uniform panel; The image to be compensated is re-blocked based on the global brightness variance and the global control brightness variance to obtain a second block matrix; If there is a third block matrix to be compensated in the second block matrix, the third block matrix is compensated to obtain the compensated third block matrix; The compensated third block matrix is divided into blocks to obtain a fourth block matrix. If there is a fifth block matrix to be compensated in the fourth block matrix, the fifth block matrix is compensated. Specifically, the step of re-segmenting the image to be compensated based on the global brightness variance and the global reference brightness variance to obtain a second segmentation matrix includes: determining the updated number of segments of the image to be compensated based on the global brightness variance, the global reference brightness variance, and a preset relationship between the brightness variance, the reference brightness variance, and the number of segments; and re-segmenting the image to be compensated uniformly based on the updated number of segments to obtain the second segmentation matrix.
9. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to perform the steps in the display compensation method for the display panel according to any one of claims 1 to 6.
Citation Information
Patent Citations
Automatic contrast ratio computing device
CN103167245A
Light supplement lamp control method and device, electronic equipment and storage medium
CN111083388A