Pixel compensation method and system, electronic equipment and computer readable storage medium
By dividing rectangular intervals on the display screen and selecting basic pixels for pixel compensation, the problem of excessive gray-scale sequence searches in the prior art is solved, the speed and memory efficiency of the pixel compensation algorithm are improved, and the display quality is improved.
Patent Information
- Application Number
- CN202411650820.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-01-03
AI Technical Summary
The existing pixel compensation algorithm needs to frequently look up grayscale sequences when executed, resulting in a decrease in computing speed and an increase in memory consumption, which cannot effectively improve the display quality of the display screen.
By dividing the display screen into rectangular intervals, we judge whether each interval needs pixel compensation, and select the basic pixel from the intervals that need to be compensated, and use its sub-pixel value to other pixel values to perform pixel compensation through the preset compensation table to reduce Number of searches for grayscale sequences.
It improves the computing speed of the pixel compensation algorithm, reduces memory consumption, and enhances the display quality of the display screen.
Smart Images

Figure CN119252166A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a pixel compensation method and system, electronic equipment and a computer-readable storage medium. Background Art
[0002] During the production process of display screens, due to reasons such as materials and processes, some products may have uneven pixel brightness (mura). These uneven brightness spots will cause visual discomfort. Products with such spots cannot meet the specifications of end customers and generally have to be scrapped or downgraded.
[0003] The current compensation method for display screens with Mura is to use advanced sub-pixel optical imaging equipment to capture pure grayscale images, obtain the brightness data of each pixel in the display screen, and then calculate and store the compensation value of each pixel based on the sub-pixel and compensation table of each pixel through the pixel compensation algorithm. When the display screen is lit up and used later, each pixel is corrected in real time based on the compensation value of each pixel, thereby compensating for the mura defect, so that the display quality of the display screen meets the shipping specifications of the display screen manufacturer and improves the qualified rate of the display screen.
[0004] The existing pixel compensation algorithm needs to store the grayscale sequence before execution and needs to search the grayscale sequence during execution. In order to improve the effect of pixel compensation, the existing technology stores more and more grayscales in the grayscale sequence, resulting in more and more grayscale sequence searches, which leads to a gradually lower computing speed and a gradually higher memory consumption of the existing pixel compensation algorithm.
[0005] The following is an explanation of the terms that may be involved in this application, as follows: Sub-pixel: Each pixel is composed of three sub-pixels: red (R), green (G), and blue (B), or four sub-pixels: red (R), green (G), blue (B), and white (W).
[0006] Grayscale: The level of pixel brightness on the display screen. For example, an 8-bit display screen can display 256 gray levels, from darkest to brightest.
[0007] Grayscale sequence: A sequence in which multiple grayscales are arranged from small to large is called a grayscale sequence. All pixels on the display screen correspond to one grayscale sequence.
[0008] Compensation table: Each pixel in the display screen corresponds to a compensation table, which includes the compensation value of each sub-pixel of the pixel at each grayscale in the grayscale sequence. Summary of the invention
[0009] In order to solve the above technical problems, the present invention specifically provides the following technical solutions.
[0010] The present invention provides a pixel compensation method, comprising the following steps: S1, determining the area of the display screen that needs pixel compensation; S2, selecting a pixel from the region as a basic pixel, using a sub-pixel value of the basic pixel as a sub-pixel value of each pixel in the region, and performing pixel compensation on the region using a preset compensation table.
[0011] Optionally, before step S1, the method further comprises the following steps: S0, performing pixel compensation on all pixels in the display screen.
[0012] Optionally, the step S1 includes: dividing the display screen into more than one rectangular intervals, and determining whether pixel compensation is required for each rectangular interval.
[0013] Optionally, the step S1 includes the following sub-steps: S11, dividing the display screen into one or more rectangular intervals, and calculating the maximum value and the minimum value of each sub-pixel in each rectangular interval; S12: Based on the maximum value and the minimum value of each sub-pixel, determine whether pixel compensation is required for each rectangular interval.
[0014] Optionally, the sub-step S12 includes the following operations: S121, determining the difference between the maximum value and the minimum value of each sub-pixel as the pixel difference value of the sub-pixel; S122, determining the product of the pixel difference of each sub-pixel and the preset ratio of the sub-pixel as the pixel product of the sub-pixel; S123, determining a maximum value among the products of each pixel, and if the maximum value is less than or equal to a preset threshold, determining that pixel compensation is required for the rectangular interval.
[0015] Optionally, step S2 includes: A pixel is selected from a rectangular interval that needs pixel compensation as a basic pixel, and the sub-pixel value of the basic pixel is used as the sub-pixel value of each pixel in the rectangular interval. Pixel compensation is performed on the rectangular interval through a preset compensation table for each pixel.
[0016] Optionally, step S2 includes the following sub-steps: S21, selecting a pixel from a rectangular interval that needs pixel compensation as a basic pixel, using a sub-pixel value of the basic pixel as a sub-pixel value of each pixel in the rectangular interval, and determining a grayscale interval of the sub-pixel of the basic pixel based on a preset grayscale sequence; S22, determining a compensation value of a sub-pixel of each pixel based on the grayscale interval and the compensation table of each pixel; S23, performing pixel compensation on each pixel using the compensation value.
[0017] In addition, the present invention also provides a pixel compensation system, comprising: A compensation area determination module is used to determine the area in the display screen that needs pixel compensation; The pixel compensation module is used to select pixels from the area as basic pixels, use the values of the sub-pixels of the basic pixels as the values of the sub-pixels of each pixel in the area, and perform pixel compensation on the area through a preset compensation table.
[0018] In addition, the present invention also provides an electronic device, which includes a processor and a memory storing a computer program, and when the processor runs the computer program, the steps of the pixel compensation method described above are implemented.
[0019] In addition, the present invention also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the pixel compensation method described above are implemented.
[0020] Through the above technical solution, pixels are selected from the area where pixel compensation is required as basic pixels, and the values of the sub-pixels of the basic pixels are used as the values of the sub-pixels of each pixel, and pixel compensation is performed using a preset compensation table. This solves the problem of too high grayscale sequence search times caused by pixel compensation based on the sub-pixels of each pixel in the prior art, thereby achieving the purpose of improving the operation speed of the pixel compensation algorithm and reducing the memory consumption of the pixel compensation algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a flow chart of a pixel compensation method provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of a pixel compensation algorithm in the prior art; Figure 3 A schematic diagram of pixel compensation in a pixel compensation method provided by an embodiment of the present invention; Figure 4 A schematic diagram of modules of a pixel compensation system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0023] The specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0024] Although the various steps in the flowchart in the embodiment of the present invention are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0025] See also Figure 1 According to one aspect of the present application, there is provided a pixel compensation method, comprising the following steps: S1, determining an area in a display screen that needs pixel compensation.
[0026] S2, selecting a pixel from the region as a basic pixel, using a sub-pixel value of the basic pixel as a sub-pixel value of each pixel in the region, and performing pixel compensation on the region using a preset compensation table.
[0027] The core operation of the pixel compensation algorithm in the prior art is to calculate the compensation value of each pixel based on the sub-pixels of each pixel and the compensation table.
[0028] See also Figure 2 , the pixel compensation algorithm in the prior art is described by taking the parallel calculation of three pixels as an example, the three pixels are: the i-th pixel, the i+1-th pixel and the i+2-th pixel. Among them, the value of the R sub-pixel of the i-th pixel is R0, the value of the G sub-pixel is G0, and the value of the B sub-pixel is B0.
[0029] For the i-th pixel, first search the preset grayscale sequence to determine the grayscale intervals of R0, G0, and B0. For example, if the preset grayscale sequence is {4, 8, 16, 32, 48, 64, 80, 128, 164, 192, 208, 240, 256} and R0 is 70, then the grayscale interval of R0 is [64, 80].
[0030] Then, based on the compensation value of the R sub-pixel of the i-th pixel at grayscale 64 and the compensation value at grayscale 80, a linear or nonlinear interpolation calculation is performed to obtain the compensation value of the R sub-pixel of the i-th pixel.
[0031] Among them, linear interpolation is a method of interpolation using known quantities. It constructs a first-order polynomial function and approximates the original function through the function values of several known quantities, thereby calculating the function values of other unknown quantities. The following takes linear interpolation as an example to illustrate the calculation method of the compensation value of the R sub-pixel of the i-th pixel: One known quantity of the linear interpolation calculation is: grayscale A1 is 64, and the compensation value C1 of the R sub-pixel of the i-th pixel at grayscale 64; another known quantity of the linear interpolation method is: grayscale A2 is 80, and the compensation value C2 of the R sub-pixel of the i-th pixel at grayscale 80. Based on the above two known quantities, the compensation value Rc0 of the R sub-pixel of the i-th pixel is calculated by the formula of the linear interpolation method: Rc0 = ((R0-A1)(C2-C1) / (A2-A1))+C1.
[0032] The value R0 of the R sub-pixel of the i-th pixel is added to the compensation value Rc0, and the obtained calculation result is determined as the value of the R sub-pixel of the i-th pixel after pixel compensation.
[0033] When three pixels are calculated in parallel, nine search operations are required for the grayscale sequence. When N pixels are calculated in parallel, the number of search operations for the grayscale sequence is the product of three times N. As the number of grayscales in the grayscale sequence increases, the number of searches for the grayscale sequence will gradually increase, the operation speed of the existing pixel compensation algorithm will gradually decrease, and the memory consumption will gradually increase.
[0034] The present invention selects pixels from an area that needs pixel compensation as basic pixels, uses the values of the sub-pixels of the basic pixels as the values of the sub-pixels of each pixel, and performs pixel compensation through a preset compensation table, so that when performing pixel compensation on the area, only three search operations on the grayscale sequence need to be performed, thereby solving the problem of too high number of grayscale sequence searches when performing pixel compensation based on the sub-pixels of each pixel in the prior art, thereby achieving the purpose of improving the operation speed of the pixel compensation algorithm and reducing the memory consumption of the pixel compensation algorithm.
[0035] Before step S1, the method may further include the following steps: S0, performing pixel compensation on all pixels in the display screen.
[0036] The principle of this operation is that when a large area of uneven brightness or obvious uneven brightness appears on the display screen, it will affect the compensation effect of pixel compensation. The present invention performs pixel compensation on all pixels on the display screen before step S1, so that the brightness of different pixels is roughly the same, thereby improving the compensation effect of pixel compensation.
[0037] Several rows are selected in the display screen, for example: the first row and the last row row_end, and compensation values of these two rows under a preset grayscale sequence are given. For example: the preset grayscale sequence is {64, 128, 256}, and the compensation values of the R sub-pixel, G sub-pixel and B sub-pixel in the first row under the preset grayscale sequence are respectively: W1_64, W1_128, W1_256; the compensation values of the three sub-pixels in the last row row_end under the preset grayscale sequence are respectively: W2_64, W2_128, W2_256.
[0038] For the k-th pixel in the display screen, a two-dimensional interpolation calculation is performed between the compensation values of the first row and the last row row_end according to its row position row_k and the value of the sub-pixel to obtain the compensation value of the k-th pixel.
[0039] Among them, two-dimensional interpolation calculation is a method of estimating values between data points in two-dimensional space. This method estimates the value of unknown points on a two-dimensional plane through known data points.
[0040] For example, the value of the R sub-pixel of the k-th pixel is 80, and the grayscale interval of 80 is [64,128]. The two-dimensional interpolation calculation process is: .
[0041] Among them, r_c is the compensation value of the R sub-pixel of the k-th pixel, and r1_c and r2_c are intermediate values.
[0042] The step S1 may include: dividing the display screen into more than one rectangular area, and determining whether pixel compensation is required for each rectangular area.
[0043] The principle of this operation is that when the values of the sub-pixels of adjacent pixels are similar, the display screen of these pixels is relatively flat, and mura can only be perceived by the human eye in a relatively flat display screen. When the values of the sub-pixels of adjacent pixels are greatly different, mura is not easy to be seen. Therefore, if the values of the sub-pixels of each pixel in the rectangular interval are similar, it is determined that the rectangular interval needs pixel compensation.
[0044] The step S1 may include the following sub-steps: S11, dividing the display screen into one or more rectangular intervals, wherein the rectangular interval preferably includes at least two pixels, and calculating the maximum value and the minimum value of each sub-pixel in each rectangular interval.
[0045] S12: Based on the maximum value and the minimum value of each sub-pixel, determine whether pixel compensation is required for each rectangular interval.
[0046] The sub-step S12 may include the following operations: S121, determining the difference between the maximum value and the minimum value of each sub-pixel as the pixel difference value of the sub-pixel.
[0047] S122, the product of the pixel difference of each sub-pixel and the preset ratio of the sub-pixel is determined as the pixel product of the sub-pixel. In this embodiment, the ratio is preferably in the range of 0 to 1, the preset ratio of the R sub-pixel is preferably 0.3, the preset ratio of the G sub-pixel is preferably 0.6, and the preset ratio of the B sub-pixel is preferably 0.1.
[0048] S123, determining the maximum value of the products of each pixel, if the maximum value is less than or equal to a preset threshold, it is determined that the values of the sub-pixels of each pixel in the rectangular interval are similar, and pixel compensation is required for the rectangular interval.
[0049] The step S2 may include: A pixel is selected from a rectangular interval that needs pixel compensation as a basic pixel, and the sub-pixel value of the basic pixel is used as the sub-pixel value of each pixel in the rectangular interval. Pixel compensation is performed on the rectangular interval through a preset compensation table for each pixel.
[0050] The step S2 may include the following sub-steps: S21, selecting a pixel from a rectangular interval that needs pixel compensation as a basic pixel, using the value of the sub-pixel of the basic pixel as the value of the sub-pixel of each pixel in the rectangular interval, and determining the grayscale interval of the sub-pixel of the basic pixel based on a preset grayscale sequence.
[0051] There is no limitation on the method for selecting the basic pixel. In this embodiment, the method for selecting the basic pixel is preferably: arbitrarily selecting a pixel from the rectangular interval as the basic pixel.
[0052] See also Figure 3 The pixel compensation method provided by this embodiment is described by taking the rectangular interval including three pixels as an example, wherein the three pixels are: the i-th pixel, the i+1-th pixel, and the i+2-th pixel. The value of the R sub-pixel of the i+1-th pixel is R1, the value of the G sub-pixel is G1, and the value of the B sub-pixel is B1.
[0053] The i+1th pixel is selected as the basic pixel, and the value of the sub-pixel of the i+1th pixel is used as the value of the sub-pixel of each pixel in the rectangular interval.
[0054] Then, a preset grayscale sequence is searched to determine the grayscale intervals of R1, G1 and B1, where the grayscale intervals are the grayscale intervals of the sub-pixels of each pixel in the rectangular interval.
[0055] S22, determining a compensation value of a sub-pixel of each pixel based on the grayscale interval and the compensation table of each pixel.
[0056] In this implementation, the compensation value of the sub-pixel of each pixel is preferably determined by linear interpolation calculation.
[0057] S23, performing pixel compensation on each pixel using the compensation value.
[0058] Specifically, the value of the sub-pixel of each pixel is added to the compensation value, and the obtained calculation result is determined as the value of the sub-pixel of the pixel after pixel compensation.
[0059] See also Figure 4 Another aspect of the present application provides a pixel compensation system, comprising: The compensation area determination module 1 is used to determine the area in the display screen that needs pixel compensation.
[0060] The pixel compensation module 2 is used to select pixels from the area as basic pixels, use the sub-pixel values of the basic pixels as the sub-pixel values of each pixel in the area, and perform pixel compensation on the area through a preset compensation table.
[0061] The system may also include the following modules: The coarse compensation module is used to perform pixel compensation on all pixels in the display screen.
[0062] The compensation area determination module 1 may include the following submodules: The calculation submodule is used to divide the display screen into more than one rectangular interval and calculate the maximum value and the minimum value of each sub-pixel in each rectangular interval.
[0063] The judging submodule is used to judge whether pixel compensation is required for each rectangular interval based on the maximum value and the minimum value of each sub-pixel.
[0064] The pixel compensation module 2 may include the following submodules: The interval determination submodule is used to select a pixel from a rectangular interval that needs pixel compensation as a basic pixel, use the value of the sub-pixel of the basic pixel as the value of the sub-pixel of each pixel in the rectangular interval, and determine the grayscale interval of the sub-pixel of the basic pixel based on a preset grayscale sequence.
[0065] The compensation value determination submodule is used to determine the compensation value of the sub-pixel of each pixel based on the grayscale interval and the compensation table of each pixel.
[0066] The compensation submodule is used to perform pixel compensation on each pixel using the compensation value.
[0067] Another aspect of the present application provides an electronic device, which includes a processor and a memory storing a computer program, and when the processor runs the computer program, the steps of the pixel compensation method described above are implemented.
[0068] Another aspect of the present application provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the pixel compensation method described above are implemented.
[0069] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0070] In this document, the terms "comprises," "comprising" or any other variations thereof are intended to cover a non-exclusive inclusion of elements other than those listed and may also include other elements not expressly listed.
[0071] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A pixel compensation method, characterized in that: The following steps are involved: S1, determining the area of the display screen that needs pixel compensation; S2, selecting a pixel from the region as a basic pixel, using a sub-pixel value of the basic pixel as a sub-pixel value of each pixel in the region, and performing pixel compensation on the region using a preset compensation table.
2. The pixel compensation method according to claim 1, characterized in that: Before step S1, the method further comprises the following steps: S0, performing pixel compensation on all pixels in the display screen.
3. The pixel compensation method according to claim 1 or 2, characterized in that: The step S1 includes: dividing the display screen into more than one rectangular area, and determining whether pixel compensation is required for each rectangular area.
4. The pixel compensation method according to claim 3, characterized in that: The step S1 comprises the following sub-steps: S11, dividing the display screen into one or more rectangular intervals, and calculating the maximum value and the minimum value of each sub-pixel in each rectangular interval; S12: Based on the maximum value and the minimum value of each sub-pixel, determine whether pixel compensation is required for each rectangular interval.
5. The pixel compensation method according to claim 4, characterized in that: The sub-step S12 includes the following operations: S121, determining the difference between the maximum value and the minimum value of each sub-pixel as the pixel difference value of the sub-pixel; S122, determining the product of the pixel difference of each sub-pixel and the preset ratio of the sub-pixel as the pixel product of the sub-pixel; S123, determining a maximum value among the products of each pixel, and if the maximum value is less than or equal to a preset threshold, determining that pixel compensation is required for the rectangular interval.
6. The pixel compensation method according to claim 5, characterized in that: The step S2 comprises: A pixel is selected from a rectangular interval that needs pixel compensation as a basic pixel, and the sub-pixel value of the basic pixel is used as the sub-pixel value of each pixel in the rectangular interval. Pixel compensation is performed on the rectangular interval through a preset compensation table for each pixel.
7. The pixel compensation method according to claim 6, characterized in that: The step S2 comprises the following sub-steps: S21, selecting a pixel from a rectangular interval that needs pixel compensation as a basic pixel, using a sub-pixel value of the basic pixel as a sub-pixel value of each pixel in the rectangular interval, and determining a grayscale interval of the sub-pixel of the basic pixel based on a preset grayscale sequence; S22, determining a compensation value of a sub-pixel of each pixel based on the grayscale interval and the compensation table of each pixel; S23, performing pixel compensation on each pixel using the compensation value.
8. A pixel compensation system, characterized in that: include: A compensation area determination module is used to determine the area in the display screen that needs pixel compensation; The pixel compensation module is used to select pixels from the area as basic pixels, use the values of the sub-pixels of the basic pixels as the values of the sub-pixels of each pixel in the area, and perform pixel compensation on the area through a preset compensation table.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory storing a computer program, and when the processor runs the computer program, the steps of the pixel compensation method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the steps of the pixel compensation method according to any one of claims 1 to 7 are implemented.