Color correction method, device and apparatus of display device, and storage medium
By acquiring the spectral energy data of the display device, determining the tristimulus compensation value, and adjusting the tristimulus value, the problem of inconsistent human visual perception in the color calibration of the display device is solved, achieving consistent color calibration of the display device and improving the efficiency and accuracy of color calibration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU SHIYUAN ELECTRONICS CO LTD
- Filing Date
- 2024-12-12
- Publication Date
- 2026-06-12
Smart Images

Figure CN122201206A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of color calibration, and more particularly to color calibration methods, apparatus, devices, and storage media for display devices. Background Technology
[0002] Color measurement and calibration play a vital role in industries such as lighting, display, printing, ink, textiles, and more. The color matching functions defined by the International Commission on Illumination (CIE) are fundamental tools for color measurement and calibration. By multiplying and integrating the spectral energy distribution with the three CIE color matching functions, tristimulus values and color coordinates can be obtained.
[0003] Normally, colors with the same tristimulus values are considered to be the same color, and display devices perform color parameter correction and color display based on these tristimulus values. However, in real-world scenarios, the following situation may occur: when two different displays show the same color using the same tristimulus values, the human eye may perceive a difference in the colors from the two displays. For example, if two displays show white using the same tristimulus values to represent white, the human eye may perceive the white from one display as having a yellowish-green tint. Therefore, using color matching functions to determine tristimulus values and perform color correction has certain limitations. Summary of the Invention
[0004] This application provides a color calibration method, apparatus, device, and storage medium for display devices, aiming to improve the deficiencies of using color matching functions to determine tristimulus values and perform color calibration.
[0005] Firstly, a color calibration method for a display device is provided, comprising:
[0006] The current spectral energy data corresponding to the display device is obtained, and the tristimulus compensation value corresponding to the current spectral energy data is determined. The current spectral energy data is used to reflect the energy distribution of the display device in the visible light range. The tristimulus compensation value is used to reflect the difference between the theoretical tristimulus value and the actual tristimulus value. The theoretical tristimulus value is the tristimulus value calculated based on the color matching function. The actual tristimulus value is the tristimulus value that is actually measured and matches the human eye's perception.
[0007] Based on the tristimulus compensation value corresponding to the current spectral energy data, the original tristimulus value of the display device is adjusted to obtain the target tristimulus value. The original tristimulus value of the display device is the tristimulus value calculated based on the inherent spectral energy data of the display device using a color matching function. The inherent spectral energy data is the spectral energy data that reflects the spectral characteristics of the display device itself.
[0008] The color parameters of the display device are corrected based on the target tristimulus values.
[0009] In this technical solution, the current spectral energy data corresponding to the display device is acquired, and the tristimulus compensation value corresponding to the current spectral energy data is determined. Then, the original tristimulus values of the display device are adjusted according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value. Finally, the color parameters of the display device are corrected using the target tristimulus value. Since the tristimulus compensation value is used to reflect the difference between the actual measured tristimulus value that matches the human eye's perception and the theoretical tristimulus value calculated based on the color matching function, and the original tristimulus value is the tristimulus value calculated based on the inherent spectral energy data of the display device using the color matching function, the... Adjusting the original tristimulus values of the display device according to the tristimulus compensation values corresponding to the current spectral energy data yields the target tristimulus values. These target tristimulus values are made close to the actual measured tristimulus values that match human eye perception. Using the target tristimulus values to correct the color parameters of the display device ensures that the corrected color parameters conform to human eye perception, reflecting the true colors that match human eye perception. This improves the displayed colors. Since each corrected display device conforms to human eye perception, the colors perceived by the human eye tend to be consistent when different display devices display the same colors.
[0010] In conjunction with the first aspect, in one possible implementation, the display device includes a liquid crystal panel and a backlight module, and the current spectral energy data includes first spectral energy data and second spectral energy data. The first spectral energy data is used to reflect the energy distribution of the liquid crystal panel in the visible light range, and the second spectral energy data is used to reflect the energy distribution of the backlight module in the visible light range.
[0011] Since the spectral energy intensity of the LCD panel and backlight module of the display device both affect the human eye's perception of color, the tristimulus compensation value is determined by acquiring the first spectral energy data reflecting the energy distribution of the LCD panel in the visible light range and the second spectral energy data reflecting the energy distribution of the backlight module in the visible light range. This takes into account the influence of multiple dimensions of spectral data on the human eye's perception of color, making the determined tristimulus compensation value more accurate, thereby enabling precise adjustment of the original tristimulus value of the display device.
[0012] In conjunction with the first aspect, in one possible implementation, the current spectral energy data further includes third spectral energy data, which is used to reflect the energy distribution of the current ambient light source in the visible light range, and the current ambient light source is the light source in the environment where the display device is currently located.
[0013] Since ambient light sources also affect the human eye's perception of color, third-spectral energy data, which reflects the energy distribution of ambient light sources in the visible light range within the environment where the display device is located, is obtained. The tristimulus compensation value is determined by combining the third-spectral energy data with the external light source data. This takes into account the influence of external light sources on the human eye's perception of color, making the determined tristimulus compensation value more accurate, thereby enabling precise adjustment of the original tristimulus values of the display device.
[0014] In conjunction with the first aspect, in one possible implementation, determining the tristimulus compensation value corresponding to the current spectral energy data includes: inputting the current spectral energy data into a tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data. The tristimulus compensation model is used to reflect the correspondence between the spectral energy data and the tristimulus compensation value. The tristimulus compensation model is obtained by training multiple sets of first sample data. The first sample data includes sample spectral energy data and sample tristimulus compensation values corresponding to the sample spectral energy data. The sample spectral energy data is the spectral energy data used as training samples. The sample tristimulus compensation value is the difference between the true tristimulus value corresponding to the sample spectral energy data and the theoretical tristimulus value corresponding to the sample spectral energy data.
[0015] By pre-training a tristimulus compensation model that reflects the correspondence between spectral energy data and tristimulus compensation values, and using the tristimulus compensation model to determine the tristimulus compensation value corresponding to the spectral energy data, different compensation adjustments can be made for different displays, so that the color perceived by the human eye tends to be consistent when different displays display the same color.
[0016] In conjunction with the first aspect, in one possible implementation, before inputting the current spectral energy data into the tristimulus value compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data, the method further includes: performing feature extraction on the current spectral energy data to obtain the current spectral features corresponding to the current spectral energy data; the step of inputting the current spectral energy data into the tristimulus value compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data includes: inputting the current spectral features into the tristimulus value compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data.
[0017] By pre-extracting features from the spectral energy data, the corresponding spectral features are obtained. Inputting these spectral features into the tristimulus compensation model can reduce the data dimensionality of the model and improve processing speed.
[0018] In conjunction with the first aspect, in one possible implementation, adjusting the original tristimulus value of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value includes: summing the original tristimulus value of the display device with the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value.
[0019] The original tristimulus values of the display device are summed with the tristimulus compensation values corresponding to the spectral energy data to obtain the target tristimulus values. This can compensate for the tristimulus values calculated based on the color matching function, so that the colors corrected based on the tristimulus values conform to the characteristics of human eye perception.
[0020] In conjunction with the first aspect, in one possible implementation, adjusting the original tristimulus value of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value includes: summing the original tristimulus value of the display device with the tristimulus compensation value corresponding to the current spectral energy data to obtain an initial tristimulus value; inputting the current spectral energy data into a tristimulus value prediction model to obtain a predicted tristimulus value corresponding to the current spectral energy data, wherein the tristimulus value prediction model is used to reflect the correspondence between the spectral energy data and the true tristimulus value, the tristimulus value prediction model is obtained by training on multiple sets of second sample data, the second sample data including sample spectral energy data and sample tristimulus values corresponding to the sample spectral energy data, the sample spectral energy data being the spectral energy data used as training samples, and the sample tristimulus values being the true tristimulus values corresponding to the sample spectral energy data; and performing a weighted summation of the initial tristimulus value and the predicted tristimulus value to obtain the target tristimulus value.
[0021] By pre-training a tristimulus value prediction model that reflects the correspondence between spectral energy data and the true tristimulus values, the predicted tristimulus values are weighted and summed with the initial tristimulus values obtained by summing the tristimulus compensation values and the original tristimulus values. This is equivalent to combining data from multiple dimensions to comprehensively determine the tristimulus values, which can improve the problem of insufficient prediction accuracy of a single model, thus making the tristimulus values more accurate.
[0022] Secondly, a color calibration device for a display device is provided, comprising:
[0023] The data acquisition module is used to acquire the current spectral energy data corresponding to the display device and determine the tristimulus compensation value corresponding to the current spectral energy data. The current spectral energy data is used to reflect the energy distribution of the display device in the visible light range. The tristimulus compensation value is used to reflect the difference between the theoretical tristimulus value and the actual tristimulus value. The theoretical tristimulus value is the tristimulus value calculated based on the color matching function. The actual tristimulus value is the tristimulus value that is actually measured and matches the tristimulus value perceived by the human eye.
[0024] The adjustment module is used to adjust the original tristimulus value of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value. The original tristimulus value of the display device is the tristimulus value calculated based on the inherent spectral energy data of the display device using a color matching function. The inherent spectral energy data is the spectral energy data that reflects the spectral characteristics of the display device itself.
[0025] The calibration module is used to correct the color parameters of the display device based on the target tristimulus values.
[0026] Thirdly, a computer device is provided, including a memory and a processor, the memory being connected to the processor, the processor being configured to execute one or more computer programs stored in the memory, wherein when the processor executes the one or more computer programs, the computer device enables the color correction method of the display device described in the first aspect.
[0027] Fourthly, a computer-readable storage medium is provided, which stores a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the color correction method of the display device described in the first aspect.
[0028] This application can achieve the following technical effects: Since the tristimulus compensation value is used to reflect the difference between the actual measured tristimulus value that matches the human eye's perception and the theoretical tristimulus value calculated based on the color matching function, the original tristimulus value is the tristimulus value calculated based on the inherent spectral energy data of the display device using the color matching function. The original tristimulus value of the display device is adjusted according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value. This makes the target tristimulus value close to the actual measured tristimulus value that matches the human eye's perception. Using the target tristimulus value to correct the color parameters of the display device makes the corrected color parameters of the display device conform to the human eye's perception of color, that is, it reflects the true color that matches the human eye's perception, thereby improving the display color. Since each corrected display device can conform to the human eye's perception of color, the color perceived by the human eye when different display devices display the same color tends to be consistent. Attached Figure Description
[0029] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 Schematic diagrams illustrating different displays showing a white image in embodiments of this application;
[0031] Figure 2 A schematic flowchart illustrating a color calibration method for a display device provided in an embodiment of this application;
[0032] Figure 3 A schematic diagram of the tristimulus value compensation model provided in the embodiments of this application;
[0033] Figure 4 A schematic diagram of the tristimulus value prediction model provided in the embodiments of this application;
[0034] Figure 5 This is a schematic diagram of the structure of a color correction device for a display device provided in an embodiment of this application;
[0035] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0037] It should be noted that, unless there is a conflict, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this application do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.
[0038] The technical solution of this application applies to color calibration scenarios for display devices. Before a display device leaves the factory, each manufacturer performs color calibration on its display device to ensure that the colors displayed by the device match human eye perception. For example, for a white screen, it is necessary to ensure that when the image displayed by the device is observed by the human eye, the image perceived by the human eye is also a white screen.
[0039] To achieve color calibration for display devices, the spectral energy distribution of the display device is typically determined. Then, a color matching function published by the CIE (Center for International Engineering) is used to convert this spectral energy distribution into tristimulus values, and color calibration is performed based on these tristimulus values. Theoretically, colors with the same tristimulus values will appear the same to the user on different display devices. (See reference...) Figure 1 In theory, after color calibration of different display devices using the same tristimulus values, different display devices can display white images in the same way. Figure 1 As shown in P1, the white image displayed by different display devices appears to be the same color as observed by the user; however, in real-world scenarios, after color correction of different display devices using the same tristimulus values, the white image displayed by different display devices will appear as follows: Figure 1 As shown in P2, the white image displayed by the user on different display devices is not the same color.
[0040] The inventors of this application discovered that the reason why this occurred Figure 1 The situation shown in P2 is due to differences in the spectral energy distribution of different display devices. This results in the tristimulus values calculated based on the color matching function being the same, but the colors observed by the user being inconsistent. When this occurs... Figure 1As shown in P2, the colors displayed by the monitors need to be manually observed and their color parameters manually adjusted to ensure that the human eye perceives the same color when different monitors display the same color. For monitor manufacturers, which produce monitors in batches, manually observing and adjusting the color parameters of each monitor to ensure that the human eye perceives the same color when different monitors display the same color would be extremely labor-intensive.
[0041] In view of this, this application proposes a color correction scheme for display devices. By determining a tristimulus compensation value corresponding to the spectral energy distribution of the display device, the tristimulus compensation value reflects the difference between the actual measured tristimulus value matching human eye perception and the tristimulus value calculated based on a color matching function. The tristimulus value calculated based on the color matching function is adjusted according to the tristimulus compensation value to obtain the final target tristimulus value. This target tristimulus value is then used to correct the color parameters of the display device. The tristimulus compensation value corresponding to the spectral energy distribution of the display device reflects the difference between the tristimulus value calculated based on the color matching function and the actual tristimulus value matching human eye perception, thus ensuring that the color displayed by the display device after correction with the target tristimulus value matches the color perceived by the human eye. Since the tristimulus compensation value is determined based on spectral energy data, it can offset the differences in spectral energy data, making the color perceived by the human eye more consistent when different display devices display the same color after color correction, eliminating the need for manual adjustment by the user and improving efficiency.
[0042] The technical solution of this application is described in detail below. This technical solution is used to perform color calibration on a display device before it leaves the factory, or it can be used to perform color calibration on the display device after it leaves the factory during use. This technical solution can be applied to display devices; for example, the display device can adaptively calibrate its own color parameters based on spectral energy data. This technical solution can also be applied to other computer devices; for example, before leaving the factory, the spectral energy data of the display device to be calibrated can be input into a computer device, which can then calculate the color parameters required for calibration and send these parameters to the display device for calibration.
[0043] See Figure 2 , Figure 2 This is a schematic flowchart of a color calibration method for a display device provided in an embodiment of this application, as shown below. Figure 2 As shown, the method includes the following steps:
[0044] S101, Obtain the current spectral energy data corresponding to the display device.
[0045] Here, the current spectral energy data corresponding to the display device reflects the current energy distribution of the display device within the visible light range. The wavelength range of visible light is 380–780 nanometers (nm). Since this wavelength range is continuous, discrete wavelengths can be obtained by sampling the wavelengths of visible light. The energy values of each discrete wavelength corresponding to the display device can then be determined, thus obtaining the spectral energy data for the display device. Specifically, wavelengths can be sampled from the visible light wavelength range at preset wavelength intervals to obtain discrete wavelengths. For example, if the wavelength interval is 1 nm, the sampled discrete wavelengths will be 380 nm, 381 nm, 382 nm, 383 nm…780 nm. Correspondingly, the spectral energy data for the display device includes the energy values for 380 nm, 381 nm, 382 nm, 383 nm…780 nm.
[0046] The current spectral energy data corresponding to the display device may include the inherent spectral energy data of the display device, which refers to the spectral energy data reflecting the spectral characteristics of the display device itself. The display device includes a liquid crystal panel and a backlight module. Both the spectral energy data of the liquid crystal panel and the spectral energy data of the backlight module affect the spectral characteristics of the display device. Therefore, the spectral energy data corresponding to the display device may include first spectral energy data and second spectral energy data. The first spectral energy data reflects the energy distribution of the liquid crystal panel in the visible light range, and the second spectral energy data reflects the energy distribution of the backlight module in the visible light range. For example, the first spectral energy data and the second spectral energy data may be shown in Tables 1 and 2, respectively.
[0047] wavelength Energy value (LCD panel) 380nm E11 381nm E12 383nm E13 384nm E14 … … 780nm E1n
[0048] Table 1
[0049]
[0050]
[0051] Table 2
[0052] The first and second spectral energy data can be obtained by the user through pre-measurement or from the manufacturers of the LCD panel and backlight module, and stored in the display device or computer device.
[0053] The current spectral energy data can be represented as {E11, E12, E13, ..., E1n; E21, E22, E23, ..., E2n}.
[0054] Since the spectral energy intensity of the LCD panel and backlight module of the display device both affect the human eye's perception of color, the tristimulus compensation value is determined by acquiring the first spectral energy data reflecting the energy distribution of the LCD panel in the visible light range and the second spectral energy data reflecting the energy distribution of the backlight module in the visible light range. This takes into account the influence of multiple dimensions of spectral data on the human eye's perception of color, making the determined tristimulus compensation value more accurate, thereby enabling precise adjustment of the original tristimulus value of the display device.
[0055] Optionally, the first spectral energy data and the second spectral energy data can be pre-calculated, and the result obtained from the calculation can be used as the inherent spectral energy data of the display device. That is, the spectral energy data corresponding to the display device includes the spectral energy data calculated from the first spectral energy data and the second spectral energy data. For example, the spectral energy data calculated from the first spectral energy data and the second spectral energy data can be as shown in Table 3:
[0056] wavelength Energy value (display device) 380nm E31 381nm E32 383nm E33 384nm E34 … … 780nm E3n
[0057] Where E31 = E21 * E11, E32 = E22 * E12, E33 = E23 * E13, ..., E3n = E2n * E1n.
[0058] The current spectral energy data can be represented as {E31, E32, E33, ..., E3n}.
[0059] In some possible cases, the current spectral energy data corresponding to the display device may also include spectral energy data from outside the display device. The current spectral energy data corresponding to the display device may also include third spectral energy data, which reflects the energy distribution of the current ambient light source within the visible light range. The current ambient light source is the light source in the environment where the display device is currently located. For example, the third spectral energy data may be as shown in Table 4:
[0060] wavelength Energy value (ambient light source) 380nm E41 381nm E42 383nm E43 384nm E44 … … 780nm E4n
[0061] Table 4
[0062] The current spectral energy data can be represented as {E11, E12, E13, ..., E1n; E21, E22, E23, ..., E2n; E41, E42, E43, ..., E4n}, or {E31, E32, E33, ..., E3n; E41, E42, E43, ..., E4n}.
[0063] The third spectral energy data can be obtained by collecting ambient light sources through a light sensor in the display device.
[0064] S102, determine the tristimulus compensation value corresponding to the current spectral energy data.
[0065] Here, the tristimulus compensation value is used to reflect the difference between the theoretical tristimulus value and the actual tristimulus value. The theoretical tristimulus value refers to the tristimulus value calculated based on the color matching function, while the actual tristimulus value is the tristimulus value that is actually measured and matches the human eye's perception.
[0066] In one feasible implementation, the current spectral energy data corresponding to the display device can be input into a tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data. The tristimulus compensation model is used to reflect the correspondence between the spectral energy data and the tristimulus compensation value. The tristimulus compensation model is obtained by training on multiple sets of first sample data, which include sample spectral energy data and the sample tristimulus compensation value corresponding to the sample spectral energy data. The sample spectral energy data is the spectral energy data used as training samples, and the sample tristimulus compensation value is the difference between the true tristimulus value corresponding to the sample spectral energy data and the theoretical tristimulus value corresponding to the sample spectral energy data.
[0067] The data format of the sample spectral energy data is the same as that of the spectral energy data corresponding to the display device obtained in step S101. When the current spectral energy data is represented as {E11, E12, E13, ..., E1n; E21, E22, E23, ..., E2n}, the sample spectral energy data can be represented as {e12, e13, ..., e1n; e21, e22, e23, ..., e2n}, containing 2n energy values, which are the energy values of the liquid crystal panel at n wavelengths and the energy values of the backlight module at n wavelengths, respectively. Alternatively, when the current spectral energy data is represented as {E31, E32, E33, ..., E3n}, the sample spectral energy data can be represented as {e31, e32, e33, ..., e3n}, containing n energy values, which are the energy values at n wavelengths calculated from the energy values of the liquid crystal panel and the backlight module. When the current spectral energy data is represented as {E11, E12, E13, ..., E1n; E21, E22, E23, ..., E2n; E41, E42, E43, ..., E4n}, the sample spectral energy data can be represented as {e11, e12, e13, ..., e1n; e21, e22, e23, ..., e2n; e41, e42, e43, ..., e4n}, which contains 3n energy values. These 3n energy values are the energy values of the liquid crystal panel at n wavelengths, the energy values of the backlight module at n wavelengths, and the energy values of the external ambient light source at n wavelengths. When the current spectral energy data is represented as {E31, E32, E33, ..., E3n; E41, E42, E43, ..., E4n}, the sample spectral energy data can be represented as {e31, e32, e33, ..., e3n; e41, e42, e43, ..., e4n}, which contains 2n energy values. These 2n energy values are the energy values of n wavelengths calculated from the energy values of the LCD panel and the backlight module, and the energy values of the external ambient light source at n wavelengths.
[0068] The sample spectral energy data is obtained through pre-collection. The theoretical tristimulus values corresponding to the sample spectral energy data can be pre-calculated using a color matching function based on the inherent spectral energy data of the display device within the sample spectral energy data. Taking the sample spectral energy data as {e11, e12, e13, ..., e1n; e21, e22, e23, ..., e2n; e41, e42, e43, ..., e4n} as an example, since e11, e12, e13, ..., e1n and e21, e22, e23, ..., e2n are all inherent spectral energy data of the display device, the theoretical tristimulus values corresponding to the sample spectral energy data can be calculated using the following formula:
[0069] Xl=∑x i *oci *lb i
[0070] Yl=Σy i *oc i *lb i
[0071] Zl=Σz i *oc i *lb i
[0072] Where Xl, Yl, and Zl represent the theoretical tristimulus values corresponding to the sample spectral energy data, i takes values from 1 to n, and oc i This represents the energy value of the liquid crystal panel at the i-th wavelength, lb i To represent the energy value of the backlight module at the i-th wavelength, x i y i z i Let x represent the color matching function value corresponding to the i-th wavelength. i y i z i It is calculated using a color matching function.
[0073] The true tristimulus values corresponding to the sample spectral energy data can be obtained through actual measurement. They can be displayed using a color display device (hereinafter referred to as the sample display device). The color parameters of the sample display device are adjusted to make the displayed color conform to human visual perception. The tristimulus values corresponding to this color are recorded as the true tristimulus values corresponding to the sample spectral energy data. For example, the sample display device can be made to display a white image. The color parameters of the sample display device are adjusted so that the image displayed by the human eye is white. The tristimulus values at this time are recorded as the true tristimulus values corresponding to the sample spectral energy data. The true tristimulus values corresponding to the sample spectral energy data can be represented as Xr, Yr, and Zr. The sample tristimulus compensation values corresponding to the sample spectral energy data can be represented as Δx = Xr - Xl, Δy = Yr - Yl, and Δz = Zr - Zl.
[0074] By acquiring sample spectral energy data and corresponding sample tristimulus compensation values using the same method on different sample display devices, multiple sets of first sample data can be obtained.
[0075] Among them, the tristimulus value compensation model is a model whose input is spectral energy data and whose output is tristimulus compensation value. The tristimulus value compensation model can be a model with any structure.
[0076] In one specific implementation, the tristimulus value compensation model can be a multilayer perceptron (MLP) model, and the tristimulus value compensation model can be as follows: Figure 3 As shown in M11, M12, M13, and M14, M11 is the MLP model for the sample spectral energy representation of {e11, e12, e13, ..., e1n; e21, e22, e23, ..., e2n}, M12 is the MLP model for the sample spectral energy representation of {e31, e32, e33, ..., e3n}, M13 is the MLP model for the sample spectral energy representation of {e11, e12, e13, ..., e1n; e21, e22, e23, ..., e2n; e41, e42, e43, ..., e4n}, and M14 is the MLP model for the sample spectral energy data representation of {e31, e32, e33, ..., e3n; e41, e42, e43, ..., e4n}. Figure 3 As shown in M11 to M14, the tristimulus value compensation model includes an input layer, a hidden layer, and an output layer. The input layer is used to input spectral energy data; the hidden layer is used to extract hidden features from the spectral energy data to obtain the hidden features of the spectral energy data. The connection matrix between the hidden layer and the input layer is L1*Q1, where L1 is equal to the data dimension of the spectral energy data. Taking M11 as an example, L1 = 2n, and Q1 is the number of neurons in the hidden layer, which is also the data dimension of the hidden features extracted by the hidden layer; the output layer is used to output the tristimulus compensation value based on the hidden features of the spectral energy data. The connection matrix between the output layer and the hidden layer is Q1*3.
[0077] During the training of the tristimulus compensation model, after obtaining multiple sets of first sample data, the sample spectral energy data from the first sample data can be input into the tristimulus compensation model. The tristimulus compensation model outputs the predicted tristimulus compensation value. The difference between the predicted tristimulus compensation value and the sample tristimulus compensation value in the first sample data is calculated. The difference between the predicted tristimulus compensation value and the sample tristimulus compensation value in the first sample data is used as the model loss of the tristimulus compensation model. The parameters of the tristimulus compensation model are adjusted according to the loss of the tristimulus compensation model until the predicted tristimulus value output by the tristimulus compensation model is close to the sample tristimulus compensation value, thus obtaining the final tristimulus compensation model.
[0078] By pre-training a tristimulus compensation model that reflects the correspondence between spectral energy data and tristimulus compensation values, and using the tristimulus compensation model to determine the tristimulus compensation value corresponding to the spectral energy data, different compensation adjustments can be made for different displays, so that the color perceived by the human eye tends to be consistent when different displays display the same color.
[0079] In some possible scenarios, before inputting the current spectral energy data corresponding to the display device into the tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data, feature extraction can be performed on the current spectral energy data corresponding to the display device to obtain the current spectral features corresponding to the current spectral energy data; then, the current spectral features corresponding to the current spectral energy data are input into the tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data. In this case, the tristimulus compensation model is a model whose input is spectral features and whose output is tristimulus compensation value. Taking the tristimulus compensation model as an MLP model as an example, the tristimulus compensation model can be as follows: Figure 3 As shown in M15, the input layer is used to input spectral features, and L1 in the L1*Q1 connection matrix between the input layer and the hidden layer represents the data dimension of the spectral features. In this case, during the training of the tristimulus compensation model, after acquiring multiple sets of first sample data, feature extraction is first performed on the sample spectral energy data in the first sample data to obtain the spectral features corresponding to the sample spectral energy data. Then, the spectral features corresponding to the sample spectral energy data are input into the tristimulus compensation model for training.
[0080] In this process, principal component analysis or singular value decomposition algorithms can be used to extract features from the current spectral energy data to obtain the spectral features corresponding to the current spectral energy data.
[0081] By pre-extracting features from the spectral energy data, the corresponding spectral features are obtained. Inputting these spectral features into the tristimulus value compensation model can reduce the dimensionality of the model and improve the processing speed.
[0082] S103, adjust the original tristimulus value of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value.
[0083] Here, the original tristimulus values of the display device are calculated based on the inherent spectral energy data of the display device using a color matching function. The inherent spectral energy data of the display device can be represented as {E11, E12, E13, ..., E1n; E21, E22, E23, ..., E2n} or {E31, E32, E33, ..., E3n}. The method for calculating the original tristimulus values is the same as the method for calculating the theoretical tristimulus values, and can be referred to the method for calculating the theoretical tristimulus values, which will not be repeated here.
[0084] In one feasible implementation, the target tristimulus value can be obtained by summing the original tristimulus value of the display device with the tristimulus compensation value corresponding to the current spectral energy data.
[0085] For example, if the original tristimulus values of the display device are represented as X1, Y1, Z1, and the tristimulus compensation values corresponding to the spectral energy data determined in step S102 are ΔX, ΔY, ΔZ, then the target tristimulus values are: X2 = X1 + ΔX, Y2 = Y1 + ΔY, Z2 = Z1 + ΔZ.
[0086] In another feasible implementation, the target tristimulus value can also be obtained through the following steps A1-A3:
[0087] A1. Summing the original tristimulus values of the display device with the tristimulus compensation values corresponding to the current spectral energy data yields the initial tristimulus values.
[0088] For example, if the original tristimulus values of the display device are represented as X1, Y1, Z1, and the tristimulus compensation values corresponding to the spectral energy data determined in step S102 are ΔX, ΔY, ΔZ, then the initial tristimulus values are: X3 = X1 + ΔX, Y3 = Y1 + ΔY, Z3 = Z1 + ΔZ.
[0089] A2. Input the current spectral energy data into the tristimulus value prediction model to obtain the predicted tristimulus value corresponding to the current spectral energy data.
[0090] Here, the tristimulus value prediction model is used to reflect the correspondence between spectral energy data and the true tristimulus values. The tristimulus value prediction model is obtained by training multiple sets of second sample data. The second sample data includes sample spectral energy data and the sample tristimulus values corresponding to the sample spectral energy data. For the method of obtaining sample spectral energy data and the sample tristimulus values corresponding to the sample spectral energy data, please refer to the relevant description in the aforementioned step S102, which will not be repeated here.
[0091] Among them, the tristimulus value prediction model is a model whose input is spectral energy data and whose output is tristimulus values. The tristimulus value prediction model can be a model with any structure.
[0092] In one specific implementation, the tristimulus value prediction model can be an MLP model, and the tristimulus value prediction model can be as follows: Figure 4The tristimulus compensation models M21, M22, M23, and M24 are shown in the figure. M21 is the MLP model for sample spectral energy representation as {e11, e12, e13, ..., e1n; e21, e22, e23, ..., e2n}, M22 is the MLP model for sample spectral energy representation as {e31, e32, e33, ..., e3n}, M23 is the MLP model for sample spectral energy representation as {e11, e12, e13, ..., e1n; e21, e22, e23, ..., e2n; e41, e42, e43, ..., e4n}, and M24 is the MLP model for sample spectral energy data representation as {e31, e32, e33, ..., e3n; e41, e42, e43, ..., e4n}. Figure 4 As shown in M21 to M24, the tristimulus value prediction model includes an input layer, a hidden layer, and an output layer. The input layer is used to input spectral energy data; the hidden layer is used to extract hidden features from the spectral energy data to obtain the hidden features of the spectral energy data. The connection matrix between the hidden layer and the input layer is L2*Q2, where L2 is the data dimension of the spectral energy data. Taking M23 as an example, L2 = 3n, and Q2 is the number of neurons in the hidden layer, which is also the data dimension of the hidden features extracted by the hidden layer; the output layer is used to output the tristimulus values based on the hidden features of the spectral energy data. The connection matrix between the output layer and the hidden layer is Q2*3.
[0093] In the process of training the tristimulus value prediction model, after obtaining multiple sets of second sample data, the sample spectral energy data in the second sample data can be input into the tristimulus value prediction model. The tristimulus value prediction model outputs the predicted tristimulus value, and the difference between the predicted tristimulus value and the sample tristimulus value in the second sample data is calculated. The difference between the predicted tristimulus value and the sample tristimulus value in the second sample data is used as the model loss of the tristimulus value prediction model. The parameters of the tristimulus value prediction model are adjusted according to the model loss of the tristimulus value prediction model until the predicted tristimulus value output by the tristimulus value prediction model is close to the sample tristimulus value, thus obtaining the final tristimulus value prediction model.
[0094] Similar to step S102 above, before inputting the current spectral energy data corresponding to the display device into the tristimulus value prediction model to obtain the predicted tristimulus value corresponding to the current spectral energy data, feature extraction can also be performed on the current spectral energy data corresponding to the display device to obtain the current spectral features corresponding to the current spectral energy data; then, the current spectral features corresponding to the current spectral energy data are input into the tristimulus value prediction model to obtain the tristimulus value corresponding to the current spectral energy data. The tristimulus prediction model can be as follows: Figure 4 As shown in M25, the input layer is used to input spectral features.
[0095] The predicted tristimulus values corresponding to the current spectral energy data can be represented as X4, Y4, Z4.
[0096] A3. The target tristimulus value is obtained by weighted summation of the initial tristimulus value and the predicted tristimulus value corresponding to the current spectral energy data.
[0097] The tristimulus formula for obtaining the target tristimulus value is obtained by weighted summation of the initial tristimulus value and the predicted tristimulus value: X2=w1*X3+w2*X4, Y2=w1*Y3+w2*Y4, Z2=w1*Z3+w2*Z4, where w1 and w2 are the weights of the initial tristimulus value and the predicted tristimulus value, respectively, and w1+w2=1.
[0098] S104 calibrates the color parameters of the display device based on the target tristimulus values.
[0099] In the above Figure 2 In the corresponding technical solution, the current spectral energy data corresponding to the display device is acquired, and the tristimulus compensation value corresponding to the current spectral energy data is determined. Then, the original tristimulus values of the display device are adjusted according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value. Finally, the color parameters of the display device are corrected using the target tristimulus value. Since the tristimulus compensation value is used to reflect the difference between the actual measured tristimulus value that matches the human eye's perception and the theoretical tristimulus value calculated based on the color matching function, the original tristimulus value is the tristimulus value calculated based on the inherent spectral energy data of the display device using the color matching function. Adjusting the original tristimulus values of the display device based on the tristimulus compensation values corresponding to the current spectral energy data yields the target tristimulus values. These target tristimulus values are made close to the actual measured tristimulus values that match human eye perception. Using these target tristimulus values to correct the color parameters of the display device ensures that the corrected color parameters conform to human eye perception, reflecting the true colors perceived by the human eye. This improves the displayed colors. Since each corrected display device conforms to human eye perception, the colors perceived by the human eye tend to be consistent when different display devices display the same colors.
[0100] The method of this application has been described above; the apparatus of this application will be described below.
[0101] See Figure 5 , Figure 5 This is a schematic diagram of the structure of a color correction device for a display device provided in an embodiment of this application, as shown below. Figure 5 As shown, the color correction device 20 of the display device includes:
[0102] The data acquisition module 201 is used to acquire the current spectral energy data corresponding to the display device and determine the tristimulus compensation value corresponding to the current spectral energy data. The current spectral energy data is used to reflect the energy distribution of the display device in the visible light range. The tristimulus compensation value is used to reflect the difference between the theoretical tristimulus value and the actual tristimulus value. The theoretical tristimulus value is the tristimulus value calculated based on the color matching function. The actual tristimulus value is the tristimulus value that is actually measured and matches the tristimulus value perceived by the human eye.
[0103] The adjustment module 202 is used to adjust the original tristimulus value of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value. The original tristimulus value of the display device is the tristimulus value calculated based on the inherent spectral energy data of the display device using a color matching function. The inherent spectral energy data is the spectral energy data that reflects the spectral characteristics of the display device itself.
[0104] The calibration module 203 is used to correct the color parameters of the display device based on the target tristimulus value.
[0105] In one possible design, the display device includes a liquid crystal panel and a backlight module, and the current spectral energy data includes first spectral energy data and second spectral energy data. The first spectral energy data is used to reflect the energy distribution of the liquid crystal panel in the visible light range, and the second spectral energy data is used to reflect the energy distribution of the backlight module in the visible light range.
[0106] In one possible design, the current spectral energy data further includes third spectral energy data, which reflects the energy distribution of the current ambient light source in the visible light range, and the current ambient light source is the light source in the environment where the display device is currently located.
[0107] In one possible design, the data acquisition module 201 is specifically used to: input the current spectral energy data into a tristimulus compensation model to obtain a tristimulus compensation value corresponding to the current spectral energy data. The tristimulus compensation model is used to reflect the correspondence between the spectral energy data and the tristimulus compensation value. The tristimulus compensation model is obtained by training multiple sets of first sample data. The first sample data includes sample spectral energy data and sample tristimulus compensation values corresponding to the sample spectral energy data. The sample spectral energy data is the spectral energy data used as training samples. The sample tristimulus compensation value is the difference between the true tristimulus value corresponding to the sample spectral energy data and the theoretical tristimulus value corresponding to the sample spectral energy data.
[0108] In one possible design, the data acquisition module 201 is further configured to: extract features from the current spectral energy data to obtain the current spectral features corresponding to the current spectral energy data; specifically, the data acquisition module 201 is configured to: input the current spectral features into the tristimulus value compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data.
[0109] In one possible design, the correction module 203 is specifically used to: sum the original tristimulus value of the display device with the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value.
[0110] In one possible design, the correction module 203 is specifically used to: sum the original tristimulus value of the display device with the tristimulus compensation value corresponding to the current spectral energy data to obtain an initial tristimulus value; input the current spectral energy data into a tristimulus value prediction model to obtain a predicted tristimulus value corresponding to the current spectral energy data, wherein the tristimulus value prediction model is used to reflect the correspondence between the spectral energy data and the true tristimulus value, the tristimulus value prediction model is obtained by training on multiple sets of second sample data, wherein the second sample data includes sample spectral energy data and sample tristimulus values corresponding to the sample spectral energy data, wherein the sample spectral energy data is the spectral energy data used as training samples, and the sample tristimulus value is the true tristimulus value corresponding to the sample spectral energy data; and perform a weighted summation of the initial tristimulus value and the predicted tristimulus value to obtain the target tristimulus value.
[0111] See Figure 6 , Figure 6 This is a schematic diagram of the structure of a computer device 30 provided in an embodiment of this application. The computer device 30 includes a processor 301 and a memory 302. The memory 302 is connected to the processor 301, for example, via a bus.
[0112] Processor 301 is configured to support the computer device 30 in performing the corresponding functions in the methods described in the above method embodiments. Processor 301 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0113] Memory 302 is used to store program code, etc. Memory 302 may include volatile memory (VM), such as random access memory (RAM); memory 302 may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); memory 302 may also include combinations of the above types of memory.
[0114] The memory 302 is used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the color correction method of the display device in the embodiments of this application. The core processor and the graphics processor cooperate to execute various functional applications and data processing of the color correction method of the display device by running the non-volatile software programs, instructions, and modules stored in the memory, thereby realizing the function of the color correction method of the display device provided in the above method embodiments.
[0115] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function. The data storage area may store data created based on the use of the color calibration device of the display device, etc. In some embodiments, the memory may include memory remotely located relative to the processor, which can be connected to the color calibration device of the display device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0116] The one or more modules are stored in the memory. When executed by the one or more processors, they perform the color correction method of the display device in any of the above method embodiments. For example, they perform the method steps described in the above method embodiments to realize the functions of the modules described in the above device embodiments.
[0117] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the method described in the foregoing embodiments.
[0118] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0119] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A color calibration method for a display device, characterized in that, include: The current spectral energy data corresponding to the display device is obtained, and the tristimulus compensation value corresponding to the current spectral energy data is determined. The current spectral energy data is used to reflect the energy distribution of the display device in the visible light range. The tristimulus compensation value is used to reflect the difference between the theoretical tristimulus value and the actual tristimulus value. The theoretical tristimulus value is the tristimulus value calculated based on the color matching function. The actual tristimulus value is the tristimulus value that is actually measured and matches the human eye's perception. Based on the tristimulus compensation value corresponding to the current spectral energy data, the original tristimulus value of the display device is adjusted to obtain the target tristimulus value. The original tristimulus value of the display device is the tristimulus value calculated based on the inherent spectral energy data of the display device using a color matching function. The inherent spectral energy data is the spectral energy data that reflects the spectral characteristics of the display device itself. The color parameters of the display device are corrected based on the target tristimulus values.
2. The method according to claim 1, characterized in that, The display device includes a liquid crystal panel and a backlight module. The current spectral energy data includes first spectral energy data and second spectral energy data. The first spectral energy data is used to reflect the energy distribution of the liquid crystal panel in the visible light range, and the second spectral energy data is used to reflect the energy distribution of the backlight module in the visible light range.
3. The method according to claim 2, characterized in that, The current spectral energy data also includes third spectral energy data, which is used to reflect the energy distribution of the current ambient light source in the visible light range. The current ambient light source is the light source in the environment where the display device is currently located.
4. The method according to any one of claims 1-3, characterized in that, Determining the tristimulus compensation value corresponding to the current spectral energy data includes: The current spectral energy data is input into the tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data. The tristimulus compensation model is used to reflect the correspondence between the spectral energy data and the tristimulus compensation value. The tristimulus compensation model is obtained by training multiple sets of first sample data. The first sample data includes sample spectral energy data and sample tristimulus compensation values corresponding to the sample spectral energy data. The sample spectral energy data is the spectral energy data used as training samples. The sample tristimulus compensation value is the difference between the true tristimulus value corresponding to the sample spectral energy data and the theoretical tristimulus value corresponding to the sample spectral energy data.
5. The method according to claim 4, characterized in that, Before inputting the current spectral energy data into the tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data, the method further includes: Feature extraction is performed on the current spectral energy data to obtain the current spectral features corresponding to the current spectral energy data; The step of inputting the current spectral energy data into the tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data includes: The current spectral features are input into the tristimulus compensation model to obtain the tristimulus compensation value corresponding to the current spectral energy data.
6. The method according to any one of claims 1-3, characterized in that, The step of adjusting the original tristimulus values of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value includes: The target tristimulus value is obtained by summing the original tristimulus value of the display device with the tristimulus compensation value corresponding to the current spectral energy data.
7. The method according to any one of claims 1-3, characterized in that, The step of adjusting the original tristimulus values of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value includes: The initial tristimulus value is obtained by summing the original tristimulus value of the display device with the tristimulus compensation value corresponding to the current spectral energy data. The current spectral energy data is input into the tristimulus value prediction model to obtain the predicted tristimulus value corresponding to the current spectral energy data. The tristimulus value prediction model is used to reflect the correspondence between the spectral energy data and the true tristimulus value. The tristimulus value prediction model is obtained by training multiple sets of second sample data. The second sample data includes sample spectral energy data and sample tristimulus values corresponding to the sample spectral energy data. The sample spectral energy data is the spectral energy data used as training samples, and the sample tristimulus value is the true tristimulus value corresponding to the sample spectral energy data. The target tristimulus value is obtained by weighted summing of the initial tristimulus value and the predicted tristimulus value.
8. A color calibration device for a display device, characterized in that, include: The data acquisition module is used to acquire the current spectral energy data corresponding to the display device and determine the tristimulus compensation value corresponding to the current spectral energy data. The current spectral energy data is used to reflect the energy distribution of the display device in the visible light range. The tristimulus compensation value is used to reflect the difference between the theoretical tristimulus value and the actual tristimulus value. The theoretical tristimulus value is the tristimulus value calculated based on the color matching function. The actual tristimulus value is the tristimulus value that is actually measured and matches the tristimulus value perceived by the human eye. The adjustment module is used to adjust the original tristimulus value of the display device according to the tristimulus compensation value corresponding to the current spectral energy data to obtain the target tristimulus value. The original tristimulus value of the display device is the tristimulus value calculated based on the inherent spectral energy data of the display device using a color matching function. The inherent spectral energy data is the spectral energy data that reflects the spectral characteristics of the display device itself. The calibration module is used to correct the color parameters of the display device based on the target tristimulus values.
9. A computer device, characterized in that, The device includes a memory and a processor, the memory being connected to the processor, the processor being configured to execute one or more computer programs stored in the memory, the processor causing the computer device to perform the method as described in any one of claims 1-7 when executing the one or more computer programs.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1-7.