Disclosure of Invention
In view of the foregoing, an object of the present invention is to provide a color shift compensation method and a compensation system for compensating a display panel.
According to one aspect of the application, a color shift compensation method of a display panel is provided, and comprises the steps of collecting a pure gray-scale image displayed by the display panel based on a preset gray-scale value, obtaining component values of a plurality of channels of each pixel point according to the pure gray-scale image, respectively obtaining compensation values of the channels of each pixel point in the pure gray-scale image, respectively compensating the component values of the corresponding channels according to the compensation values of the channels for each pixel point, wherein the compensation values of the channels are calculated according to the difference between the component values of the corresponding channels of each pixel point and the component value average value of the channels of each pixel point in a reference area in the pure gray-scale image, and the color shift compensation method further comprises the steps of repeatedly executing the steps until the display image of the display panel reaches the expected effect under the condition that the display image of the display panel does not reach the expected effect after compensation, and storing the component values of the channels of each pixel point for compensation at the stage of the color shift compensation.
Optionally, the component values of the channels are R, G, B channel component values of the pure gray-scale image under RGB color system.
Optionally, the obtaining the compensation values of the channels of each pixel point in the pure gray scale image includes obtaining chromaticity information and brightness information of each pixel point according to the pure gray scale image data, calculating a component value of X, Y, Z channels of each pixel point under an XYZ color system according to the chromaticity information and the brightness information, and calculating a component value of R, G, B channels of each pixel point under the RGB color system according to the component value of X, Y, Z channels.
Optionally, the color cast compensation method further comprises the steps of selecting the minimum repetition number, compensating the minimum repetition number for a plurality of display panels, and reselecting the minimum repetition number when the display panels which do not reach the expected effect exceeds the expected number, wherein the plurality of steps are executed for the minimum repetition number to enable the display images of the display panels after compensation to reach the expected effect, so that the compensation time is reduced.
Optionally, the selecting the minimum repetition number includes comparing the pure gray-scale images displayed by the display panel before compensation and after the nth compensation, and if the difference between the display effects of the display panel before compensation and after the nth compensation is lower than a set requirement, taking N as the minimum repetition number, wherein N is a positive integer greater than or equal to 1.
Optionally, the selecting the minimum repetition number includes comparing the pure gray-scale image displayed by the display panel after the Mth compensation and the M+1th compensation, and if the difference of the display effects of the display panel after the Mth compensation and the M+1th compensation is lower than a set requirement, taking M as the minimum repetition number, wherein M is a positive integer greater than or equal to 1.
Optionally, the expected number is one.
Optionally, the reference area is a central area of the pure gray scale image.
Optionally, the preset gray scale value is 2-4 different gray scale values.
Optionally, the display panel is one of LCD, OLED, microLED.
According to still another aspect of the present application, there is provided a color shift compensation system for a display panel, comprising a display panel for displaying a pure gray-scale image at a preset gray-scale value according to driving data, a driving module connected to the display panel for providing the driving data to the display panel, an acquisition device for acquiring the pure gray-scale image displayed by the display panel, a computer connected to the acquisition device for calculating compensation values of the plurality of channels of each pixel point in the pure gray-scale image as compensation data according to the pure gray-scale image, and a flash memory connected to the computer and the driving module for storing the compensation values of the plurality of channels and providing the compensation values to the driving module, wherein the color shift compensation system compensates for color shift of the display panel according to the color shift compensation method of any one of claims 1 to 10.
Optionally, the driving module further comprises a compensation unit, the driving module is configured to provide the driving data for the display panel according to the gray-scale data of the preset gray-scale value so as to enable the display panel to display the pure gray-scale image before compensation, and provide the driving data for the display panel according to the compensated gray-scale data so as to enable the display panel to display the compensated gray-scale image, wherein the compensation unit is used for superposing the compensation data and the gray-scale data of the preset gray-scale value so as to obtain the compensated gray-scale data.
According to the color shift compensation method, the chrominance information and the luminance information of each pixel point under the gray-scale image are obtained by shooting and processing the pure gray-scale image with different gray-scale values, the chrominance information and the luminance information are converted into the component values of R, G, B channels in an RGB color space, and the component values of each pixel point of the display screen are compensated by taking the reference area data as a standard. The color cast compensation method can realize RGB three-color compensation by photographing the pure gray-scale images with different gray-scale values, avoids the color cast phenomenon caused by the manufacturing process of the display panel when only compensating the white picture in a single color, improves the compensation reliability, and simultaneously, compared with the RGB three-color compensation in the prior art, the compensation method can reduce the requirement on a camera, reduce the photographing time of a production line and improve the productivity. Further, according to the compensation method of the invention, the compensation effect can be confirmed by repeating the steps for a plurality of times, so that the compensation effect can be optimized. Further, by selecting the minimum number of repetitions, the working time can be reduced.
Detailed Description
The invention will be described in more detail below with reference to the accompanying drawings. Like elements are denoted by like reference numerals throughout the various figures. For clarity, the various features of the drawings are not drawn to scale. Furthermore, some well-known portions may not be shown.
It should be noted that in this document relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
FIG. 1 is a schematic block diagram of a compensation data acquisition system according to an embodiment of the present application. The compensation data acquisition system 10 shown in fig. 1 includes a computer 11, a Flash memory (Flash IC) 12, an acquisition device 13, a display panel 14, and a driving module 15.
The driving module 15 is connected to the display panel 14, and provides driving data to the display panel according to gray-scale data of a preset gray-scale value to drive the display panel 14 to display pure gray-scale images of the preset gray-scale value, and in some embodiments, the driving module 15 drives the display panel 14 to display pure gray-scale images of 2-4 different gray-scale values, for example, gray-scale images of four different gray-scale values, such as Gary32, gary128, gary192, gary 255. In some embodiments, the display panel 14 is, for example, any one of an LCD, OLED, or MicroLED. However, it should be understood that the number and the gray scale value of the pure gray scale images displayed on the display panel 14 in this embodiment are not limited thereto, and the skilled person can choose the number and the gray scale value of the gray scale images according to the practical situation.
The acquisition device 13 is in some embodiments, for example, a camera, for taking a pure gray-scale image displayed by the display panel 14 and transmitting the obtained image data to the computer 11 connected thereto. The computer 11 calculates compensation data according to the image data, in some embodiments, the computer 11 uses a central area of the display panel 14 (i.e. selects a×b pixels of the central area of the display panel) as a reference area, and calculates compensation values by respectively compensating component values of channels corresponding to other pixels with respect to component value averages (for example, R, G, B channel component value averages in RGB color system) of multiple channels of each pixel of the central area as compensation data, in some other embodiments, the computer 11 may also calculate compensation values of other pixels with respect to component value averages (for example, R, G, B channel component value averages in RGB color system) of multiple channels of each pixel of the area with respect to component value averages of multiple channels of each pixel of any position area in the display panel 14 as a reference area.
Further, in some embodiments, the difference between the compensated point and the mean value of the component values of the channel corresponding to the reference region is calculated as a compensation value, and in some other embodiments, the ratio between the difference between the compensated point and the mean value of the component values of the channel corresponding to the reference region and the mean value of the component values of the reference region is calculated as a compensation value.
The Flash memory 12 is connected to the computer 11 and the driving module 15, respectively, and the computer 11 stores the calculated compensation value in the Flash memory 12 (Flash IC) collocated with the display panel 14. The driving module 15 further includes a compensation unit 151, where the compensation unit 151 is configured to superimpose the compensation data in the flash memory 12 and the gray-scale data with a preset gray-scale value to obtain compensated gray-scale data, and provide driving data to the display panel 14 according to the compensated gray-scale data to drive the display panel 14 to display a compensated picture, so as to confirm the compensation effect.
Fig. 2 shows a schematic flowchart of a color cast compensation method according to an embodiment of the present invention, and specifically includes the following implementation steps:
s110, collecting pure gray-scale images displayed by the display panel based on preset gray-scale values;
In this step, the driving module 15 provides driving data to the display panel according to the gray-scale data of the preset gray-scale value to drive the display panel 14 to display the pure gray-scale images of the preset gray-scale value, and in some embodiments, the driving module 15 drives the display panel 14 to display the pure gray-scale images of 2-4 different gray-scale values, such as the pure gray-scale images of four different gray-scale values of Gary32, gary128, gary192, gary 255. The acquisition device 13 (e.g., a camera in some embodiments) is configured to acquire a plurality of pure grayscale images displayed on the display panel 14 and transmit the acquired image data to the computer 11. In some embodiments, the display panel 14 is, for example, any one of an LCD, OLED, or MicroLED. However, it should be understood that the number and the gray scale value of the pure gray scale images displayed on the display panel 14 in this embodiment are not limited thereto, and the skilled person can choose the number and the gray scale value of the pure gray scale images according to the practical situation.
S120, obtaining component values of a plurality of channels of each pixel point according to the pure gray-scale image:
In this step, the computer 11 processes the image data of the plurality of pure grayscale pictures transmitted from the acquisition device 13 to obtain component values of the plurality of channels of each pixel, and performs step S130 after the component values of the plurality of channels of each pixel.
Illustratively, in some embodiments, referring to fig. 3, taking the acquisition of R, G, B channel component values under the RGB color system as an example, specific acquisition steps include S121, S122, and S123.
Step S121, obtaining chromaticity information and brightness information of each pixel point according to the pure gray-scale image data:
in this step, the computer 11 processes the image data acquired by the acquisition device 13 to obtain color coordinates (x, y, lv) of each pixel point, where x, y represents chromaticity information of each pixel point of the grayscale image, and lv represents luminance information.
Step S122, calculating the component value of X, Y, Z channels of each pixel point under the XYZ color system according to the chromaticity information and the brightness information:
In this step, the computer 11 processes the color coordinates (X, Y, lv) and obtains (X, Y, Z) data, which in some embodiments may be calculated by the following formula:
X=x*Y/y (1)
Y=Lv (2)
Z=(1-X-Y)*Y/y (3)
Wherein x and y represent chromaticity information of each pixel point of the gray-scale image, lv represents brightness information, X, Y, Z represents component values of X, Y, Z channels under the XYZ color system (namely tristimulus values under the XYZ color system).
Step 123, calculating the R, G, B channel component value of each pixel point under the RGB color system according to the component value of the X, Y, Z channels;
In this step, the computer 11 processes (X, Y, Z) and obtains (R, G, B) data. In some embodiments, the calculation may be performed by the following formula:
R = 3.2406*X/100-1.5372*Y/100-0.4986*Z/100 (4)
G = -0.9689*X/100+1.8758*Y/100+0.0415*Z/100 (5)
B = 0.0557*X/100-0.2040*Y/100+1.0570*Z/100 (6)
wherein X, Y, Z and R, G, B represent the component values of each channel in the XYZ color system or the RGB color system (i.e., tristimulus values in the XYZ color system and the RGB color system), respectively.
For example, steps S122 and S123 are further described in connection with two sets of (x, y, lv) data.
For example, when x=0.3024, y=0.3197, lv= 553.39, x=523.444, y=553.39, z= 654.132 can be obtained in combination with formulas (1), (2), and (3), and r=5.19452, g=5.5803, and b= 6.07682 can be obtained in further combination with formulas (4), (5), and (6).
For example, when x=0.2833, y=0.2995, lv= 126.18, x=119.355, y=126.18, z= 175.767 can be obtained in combination with formulas (1), (2), and (3), and r=1.0518, g=1.2834, and b= 1.66693 can be obtained in further combination with formulas (4), (5), and (6).
Step S130, respectively obtaining compensation values of the channels of each pixel point in the pure gray scale image:
In this step, the computer 11 calculates the compensation values of the plurality of channels according to the difference between the component values of the corresponding channels of each pixel point and the component value average value of the corresponding channels of the reference area in the pure gray-scale image, and performs interpolation calculation on each gray-scale value which is not selected according to the compensation condition of the selected gray-scale value, so as to obtain all compensation data.
In some embodiments, the computer 11 uses the central area of the display panel 14 (i.e. selects a×b pixels in the central area of the display panel) as a reference area, and calculates compensation values by respectively compensating the component values of the channels corresponding to other pixels with respect to the component value average value (for example, the component value of the channel under the RGB color system R, G, B) of the channels of each pixel in the central area as compensation data, and in some other embodiments, the computer 11 may also calculate compensation values with respect to other pixels with respect to the component value average value (for example, the component value of the channel under the RGB color system R, G, B) of the channels of each pixel in any position area of the display panel 14 as a reference area.
Further, in some embodiments, the difference between the compensated point and the mean value of the component values of the channel corresponding to the reference region is calculated as a compensation value, and in some other embodiments, the ratio between the difference between the compensated point and the mean value of the component values of the channel corresponding to the reference region and the mean value of the component values of the reference region is calculated as a compensation value.
Step S140, for each pixel point, respectively compensating the component values of the corresponding channels according to the compensation values of the channels,
In this step, the compensation unit 151 in the driving module 15 superimposes the compensation data (i.e., the compensation values of the plurality of channels) and the gray-scale data (i.e., the plurality of channel component values of each pixel point in the pure gray-scale image before compensation) with the preset gray-scale value, thereby completing the compensation of the corresponding channel component values and obtaining the compensated gray-scale data (i.e., the plurality of channel component values of each pixel point after compensation).
Step S150, judging whether the expected effect is achieved:
In this step, the driving module 15 drives the display panel 14 to display the compensated image according to the compensated gray scale data to confirm the compensation effect, and if the desired effect is not achieved, the steps S110 to S140 are repeated until the desired effect is achieved.
Step S160, storing compensation values of the channels of each pixel point:
In this step, when the computer 11 compensates the display image of the display panel 14 to achieve the desired effect, the compensation values of the plurality of channels for each pixel are stored as compensation data in the Flash memory 12 (Flash IC) for color shift compensation in the display stage.
The compensation data acquisition method can realize RGB three-color compensation by photographing the pure gray-scale images with different gray-scale values, avoids the color shift phenomenon caused by the manufacturing process of the display panel when only performing white-picture monochromatic compensation, improves the compensation reliability, and simultaneously, compared with the RGB three-color compensation in the prior art, the compensation method can reduce the requirement on a camera, reduce the photographing time of a production line and improve the productivity. Further, according to the compensation method of the invention, the compensation effect can be confirmed by repeating the steps for a plurality of times, so that the compensation effect can be optimized.
Further, in some embodiments, the compensation data acquisition method of the present invention further includes step S170 and step S180:
s170, selecting the minimum repetition number:
In this step, the minimum number of cycles of steps S110 to S140 when the desired effect is achieved is recorded as the minimum number of repetitions. In some embodiments, the pure gray-scale images displayed by the display panel before compensation and after the nth compensation are compared, if the difference of the display effects of the display panel before compensation and after the nth compensation is lower than a set requirement, N is a positive integer greater than or equal to 1, in some other embodiments, the pure gray-scale images displayed by the display panel after the mth and the (m+1) th compensation are compared, and if the difference of the display effects of the display panel after the mth and the (m+1) th compensation is lower than the set requirement, M is a minimum number of repetitions, wherein M is a positive integer greater than or equal to 1.
S180, verifying the minimum repetition number:
in this step, the compensation data at the minimum number of repetitions is verified by the plurality of display panels, that is, the plurality of display panels are compensated for the minimum number of repetitions, it is determined whether each display panel can achieve the desired effect at the minimum number of repetitions, and the minimum number of repetitions is reselected when the display panels that do not achieve the desired effect exceed a certain number (e.g., in some embodiments, the display panels that do not achieve the desired effect exceed one).
By confirming the minimum repetition number, the repeated compensation caused by the defect of a certain display panel is avoided, so that the operation time is further reduced.
Embodiments in accordance with the present invention, as described above, are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention and various modifications as are suited to the particular use contemplated. The invention is limited only by the claims and the full scope and equivalents thereof.