A segmented compensation chromaticity correction method, device and readable storage medium

Through the chromaticity correction method of segmented compensation, the target error value is calculated using the fit coefficient to compensate the measurement results, which solves the problem of insufficient chromaticity measurement accuracy and stability in the prior art, and achieves higher measurement accuracy and reliability.

CN119469416BActive Publication Date: 2025-04-25SUZHOU SEICHI INTELLIGENT EQUIPMENT TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510066813.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-25
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

In practical applications, the calibration accuracy of the four-color matrix color calibration algorithm is difficult to achieve the expected results due to the brightness of the measured screen. When the target screen displays different grayscales, there are differences in the measurement results between each grayscale, which cannot achieve the measurement stability of the quasi-meter.

Method used

The chromaticity correction method of segmented compensation is used to obtain the first third stimulus value measured by the target instrument, judge its interval, obtain the fit coefficient, calculate the target error value, and use this error value to compensate the first third stimulus value, and calculate the second third stimulus value as the final result.

Benefits of technology

It improves the accuracy and reliability of measurement, effectively solving the measurement instability problem of the four-color matrix color calibration algorithm under different brightness and gray levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119469416B_ABST
    Figure CN119469416B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a segmented compensation chromaticity correction method, device and readable storage medium, which can improve the measurement accuracy. The embodiment of the present application method includes: obtaining the first three stimulus values ​​obtained by measuring the target screen by the target instrument; judging whether the first three stimulus values ​​belong to the first interval segment, the first interval segment is the three stimulus value interval corresponding to the target screen displaying white; if not, determining that the first three stimulus values ​​belong to the second interval segment; obtaining the fitting coefficient, the fitting coefficient is associated with the error obtained by measuring the test screen by the standard measuring instrument and the target instrument respectively; calculating the target error value according to the fitting coefficient and the first three stimulus values; calculating the second three stimulus values ​​using the first three stimulus values ​​and the target error value; determining the second three stimulus values ​​as the target three stimulus values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and in particular to a segmented compensation chromaticity correction method, device and readable storage medium. Background Art

[0002] Affected by the measurement method and measurement tools, the colorimetric measurement efficiency of previous products could not meet the needs of real-time detection in industrial production. In recent years, the development of imaging colorimeters has promoted the continuous development of the industry, and imaging colorimetric measurement instruments based on CCD / CMOS have shown great potential. Existing imaging colorimeters generally use a four-color matrix color calibration algorithm to calibrate the colorimetry to achieve the alignment of measurement accuracy with the accuracy of the quasi-measuring instrument. However, in actual applications, affected by the brightness of the measurement screen, the correction accuracy of the four-color matrix color calibration algorithm is difficult to achieve the expected results, and when the target screen displays different grayscales, there are differences in the measurement results between the grayscales, and the measurement stability of the quasi-measuring instrument cannot be achieved. Summary of the invention

[0003] The embodiments of the present application provide a segmented compensation chromaticity correction method, device and readable storage medium, which can improve the measurement accuracy.

[0004] A first aspect of an embodiment of the present application provides a segmented compensation chromaticity correction method, comprising:

[0005] Acquire the first three stimulus values ​​obtained by measuring the target screen with the target instrument;

[0006] determining whether the first three stimulus values ​​belong to a first interval segment, the first interval segment being a three stimulus value interval corresponding to when the target screen displays white;

[0007] If not, determining that the first three stimulus values ​​belong to the second interval;

[0008] Obtaining a fitting coefficient, wherein the fitting coefficient is associated with errors obtained by measuring the test screen respectively by the standard measuring instrument and the target instrument;

[0009] Calculate a target error value according to the fitting coefficient and the first three stimulus values;

[0010] Calculating second tristimulus values ​​using the first tristimulus values ​​and the target error value;

[0011] The second tristimulus values ​​are determined as target tristimulus values.

[0012] Optionally, calculating a target error value according to the fitting coefficient and the first three stimulus values ​​includes:

[0013] determining an error function according to the first three stimulus values;

[0014] A target error value is calculated according to the fitting coefficient, the first three stimulus values ​​and the error function.

[0015] Optionally, determining the error function according to the first three stimulus values ​​includes:

[0016] Determining a target number of the first three stimulus values, the target number being the number of stimulus values ​​among the first three stimulus values ​​that are greater than or equal to a corresponding preset stimulus value threshold;

[0017] An error function is determined according to the number of targets.

[0018] Optionally, determining whether the first three stimulus values ​​belong to a first interval includes:

[0019] Determining whether each of the first three stimulus values ​​is greater than or less than a corresponding preset stimulus value threshold;

[0020] If so, it is determined that the first three stimulus values ​​belong to the first interval; if not, it is determined that the first three stimulus values ​​do not belong to the first interval.

[0021] Optionally, before obtaining the fitting coefficient, the method further includes:

[0022] Set multiple different grayscale values ​​in red, green and blue for the test screen;

[0023] Acquire standard tristimulus values ​​obtained by measuring the test screen with a standard measuring instrument at different grayscale values ​​of red, green and blue and measured tristimulus values ​​obtained by measuring the test screen with a target instrument;

[0024] Calculating a measurement error value according to the standard tristimulus values ​​and the measured tristimulus values;

[0025] Calculate a fitting coefficient matrix according to the measurement error values;

[0026] The fitting coefficients are determined according to the fitting coefficient matrix.

[0027] Optionally, calculating the second tristimulus values ​​by using the first tristimulus values ​​and the target error value includes:

[0028] Each stimulus value in the first three stimulus values ​​is summed with the target error value to obtain second three stimulus values.

[0029] Optionally, after determining whether the first three stimulus values ​​belong to the first interval, the method further includes:

[0030] If yes, the first three stimulus values ​​are determined as target three stimulus values.

[0031] A second aspect of an embodiment of the present application provides a segmented compensation chromaticity correction device, comprising:

[0032] A first acquisition unit, used for acquiring first tristimulus values ​​obtained by measuring a target screen with a target instrument;

[0033] a judging unit, configured to judge whether the first three stimulus values ​​belong to a first interval segment, the first interval segment being a three stimulus value interval corresponding to when the target screen displays white;

[0034] a first determining unit, configured to determine that the first three stimulus values ​​belong to a second interval when the judging unit determines that the first three stimulus values ​​do not belong to the first interval;

[0035] A second acquisition unit is used to acquire a fitting coefficient, where the fitting coefficient is associated with errors obtained by measuring the test screen respectively by the standard measuring instrument and the target instrument;

[0036] A first calculation unit, used for calculating a target error value according to the fitting coefficient and the first three stimulus values;

[0037] a second calculation unit, configured to calculate second three stimulus values ​​using the first three stimulus values ​​and the target error value;

[0038] The second determining unit is configured to determine the second three stimulus values ​​as target three stimulus values.

[0039] Optionally, the first computing unit includes:

[0040] A determination module, used for determining an error function according to the first three stimulus values;

[0041] A calculation module is used to calculate a target error value according to the fitting coefficient, the first three stimulus values ​​and the error function.

[0042] Optionally, the determining module is specifically used to:

[0043] Determining a target number of the first three stimulus values, the target number being the number of stimulus values ​​among the first three stimulus values ​​that are greater than or equal to a corresponding preset stimulus value threshold;

[0044] An error function is determined according to the number of targets.

[0045] Optionally, the judging unit is specifically configured to:

[0046] Determining whether each of the first three stimulus values ​​is greater than or less than a corresponding preset stimulus value threshold;

[0047] If so, it is determined that the first three stimulus values ​​belong to the first interval; if not, it is determined that the first three stimulus values ​​do not belong to the first interval.

[0048] Optionally, the device further includes a third determining unit, and the third determining unit is configured to:

[0049] Set multiple different grayscale values ​​in red, green and blue for the test screen;

[0050] Acquire standard tristimulus values ​​obtained by measuring the test screen with a standard measuring instrument at different grayscale values ​​of red, green and blue and measured tristimulus values ​​obtained by measuring the test screen with a target instrument;

[0051] Calculating a measurement error value according to the standard tristimulus values ​​and the measured tristimulus values;

[0052] Calculate a fitting coefficient matrix according to the measurement error values;

[0053] The fitting coefficients are determined according to the fitting coefficient matrix.

[0054] Optionally, the second computing unit is specifically configured to:

[0055] Each stimulus value in the first three stimulus values ​​is summed with the target error value to obtain second three stimulus values.

[0056] Optionally, the device further comprises:

[0057] A fourth determining unit is configured to determine the first three stimulus values ​​as target three stimulus values ​​when the judging unit determines that the first three stimulus values ​​belong to the first interval.

[0058] A third aspect of the embodiments of the present application provides a segmented compensation chromaticity correction device, comprising:

[0059] Processor, memory, input-output unit, and bus;

[0060] The processor is connected to the memory, the input and output unit, and the bus;

[0061] A program is stored in the memory, and the processor calls the program to execute the method in the first aspect and any possible implementation manner of the first aspect.

[0062] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the computer executes the method in the first aspect and any possible implementation of the first aspect.

[0063] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0064] In this embodiment, after obtaining the first three stimulus values ​​measured by the target instrument, the interval of the first three stimulus values ​​is first determined. If the first three stimulus values ​​are in the second interval, the fitting coefficient is obtained and the target error value is calculated using the fitting coefficient and the first three stimulus values. The first three stimulus values ​​are then compensated using the target error value to calculate the second three stimulus values, and the second three stimulus values ​​are used as the final result (i.e., the target three stimulus values) obtained by measuring the target screen this time. The fitting coefficient is obtained after analyzing multiple error processing. Therefore, the target error value calculated by the fitting coefficient can be used to effectively compensate the first three stimulus values, thereby improving the accuracy and reliability of the measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A schematic flow chart of an embodiment of a chromaticity correction method for segmented compensation in an embodiment of the present application;

[0066] Figure 2 A schematic diagram of a flow chart of an embodiment of calculating a target error value in an embodiment of the present application;

[0067] Figure 3 This is a flow chart of an embodiment of determining whether the first three stimulus values ​​belong to the first interval segment in the embodiment of the present application;

[0068] Figure 4 A schematic diagram of a flow chart of an embodiment of determining a fitting coefficient in an embodiment of the present application;

[0069] Figure 5 It is a structural schematic diagram of an embodiment of a chromaticity correction device for segmented compensation in an embodiment of the present application;

[0070] Figure 6 It is a structural schematic diagram of another embodiment of the chromaticity correction device with segmented compensation in the embodiment of the present application. DETAILED DESCRIPTION

[0071] The embodiments of the present application provide a segmented compensation chromaticity correction method, device and readable storage medium for improving measurement accuracy.

[0072] The method of the present application can be applied to a server, a terminal or other devices with logic processing capabilities, and the present application does not limit this. For the convenience of description, the following description is made by taking the execution subject as a server as an example.

[0073] The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0074] See also Figure 1 In one embodiment of the present application, a chromaticity correction method of segmented compensation includes:

[0075] 101. Acquire first tristimulus values ​​obtained by measuring a target screen with a target instrument;

[0076] The server can establish a network connection with the target instrument (such as a colorimeter or spectrometer) and use a protocol (such as HTTP, TCP / IP, or serial communication) to send a request to read the tristimulus values ​​of the target screen. In addition, the server may not establish a network connection with the target instrument. The user first uses the target instrument to detect the target screen to obtain the first tristimulus values, and then imports the first tristimulus values ​​into the server. The tristimulus values ​​are defined according to the CIE (International Commission on Illumination) standard and are used to represent the specific numerical values ​​of color. The received data is usually in JSON or XML format, and the server needs to use the corresponding parsing library (such as JSON parsing library) to parse the response. After parsing, the server stores these tristimulus values ​​in a database (such as MySQL, PostgreSQL, or MongoDB), and attaches a timestamp and measurement device identifier for subsequent auditing and analysis.

[0077] 102. Determine whether the first tristimulus value belongs to a first interval segment, where the first interval segment is a tristimulus value interval corresponding to when the target screen displays white. If not, execute step 103.

[0078] The server extracts the definition of the first interval from the database, which is usually the tristimulus value range corresponding to the display of white. For example, the tristimulus values ​​of white may be defined as [X_min, X_max], [Y_min, Y_max], [Z_min, Z_max]. The server can check whether the three stimulus values ​​in the first tristimulus values ​​are within this range. If not, the server can execute step 103.

[0079] 103. Determine that the first three stimulus values ​​belong to the second interval;

[0080] In the embodiment of the present application, the tristimulus values ​​are divided into two intervals, one is the first interval, indicating that the color displayed on the screen is white, and the other is the second interval, indicating that the color displayed on the screen is other colors. Therefore, if the first tristimulus value does not belong to the first interval, the server can determine that the first tristimulus value belongs to the second interval.

[0081] 104. Obtain fitting coefficients;

[0082] After determining that the first three stimulus values ​​belong to the second interval, the server can obtain the pre-calculated fitting coefficient. The fitting coefficient will participate in subsequent calculations as a constant. It should be noted that the fitting coefficient is associated with the errors obtained by the standard measuring instrument and the target instrument respectively measuring the test screen. That is, the standard measuring instrument measures the test screen to obtain a three stimulus value, and the target instrument measures the test screen to obtain another three stimulus value. There is an error between the two, and multiple errors are obtained by multiple measurements. The fitting coefficient is obtained after processing and analyzing multiple errors, and is used to calculate the error between the three stimulus values ​​measured by the target instrument and the three stimulus values ​​measured by the standard measuring instrument.

[0083] 105. Calculate the target error value according to the fitting coefficient and the first three stimulus values;

[0084] After obtaining the fitting coefficients, the server can calculate the target error value using the fitting coefficients and the first three stimulus values. The target error value is regarded as the error between the three stimulus values ​​obtained by measuring the screen with the standard instrument and the three stimulus values ​​obtained by measuring the same screen with the target instrument. The calculation results will be stored in the database and associated with the specific measurement records for subsequent review and analysis.

[0085] 106. Calculate the second tristimulus values ​​using the first tristimulus values ​​and the target error value;

[0086] The server combines the first tristimulus value with the target error value to calculate the second tristimulus value. The purpose of this step is to correct the first tristimulus value so that it is closer to the actual target value. After the calculation is completed, the server will update the corresponding record in the database to ensure the consistency and integrity of the data.

[0087] 107. Determine the second tristimulus values ​​as target tristimulus values.

[0088] The server marks the calculated second tristimulus value as the final target tristimulus value and updates it in the database. This target tristimulus value is obtained by measuring the target instrument and then compensating with the target error value.

[0089] In this embodiment, after obtaining the first three stimulus values ​​measured by the target instrument, the server first determines the interval of the first three stimulus values. If the first three stimulus values ​​are in the second interval, the fitting coefficient is obtained and the target error value is calculated using the fitting coefficient and the first three stimulus values. The first three stimulus values ​​are then compensated using the target error value to calculate the second three stimulus values, and the second three stimulus values ​​are used as the final result (i.e., the target three stimulus values) obtained by measuring the target screen this time. The fitting coefficient is obtained after analyzing multiple error processing. Therefore, the server can effectively compensate the first three stimulus values ​​using the target error value calculated by the fitting coefficient, thereby improving the accuracy and reliability of the measurement.

[0090] Further, in some embodiments of the present application, step 106 in the above embodiment calculates the second tristimulus values ​​using the first tristimulus values ​​and the target error value, which may specifically include:

[0091] Each stimulus value in the first three stimulus values ​​is summed with the target error value to obtain the second three stimulus values.

[0092] In this step, the server will use each stimulus value in the first three stimulus values ​​and add the same target error value to calculate the second three stimulus values.

[0093] In a possible example, the specific steps of calculating the second tristimulus values ​​may include:

[0094] 1. Extract the first three stimulus values:

[0095] Extract the first tristimulus values ​​from the database, usually represented as an array or list, for example: first tristimulus values ​​= [X1, Y1, Z1].

[0096] 2. Extract target error value:

[0097] Extract the target error value from the previously calculated result, usually a single number, expressed as the target error value equal to e.

[0098] 3. Calculate the secondary and tertiary stimulus values:

[0099] For each stimulus value in the first three stimulus values, add the same target error value. The calculation is as follows:

[0100] Second tristimulus value_X = first tristimulus value_X + target error value;

[0101] Second tristimulus value_Y = first tristimulus value_Y + target error value;

[0102] The second tristimulus value_Z = the first tristimulus value_Z + the target error value.

[0103] For example, if the first tristimulus value is [X1, Y1, Z1] and the target error value is e, then the second tristimulus value can be calculated as:

[0104] Second and third stimulus values ​​= [X1 + e, Y1 + e, Z1 + e]

[0105] 4. Store the second and third stimulus values:

[0106] The calculated second and third stimulus values ​​are stored in a database and are ensured to be associated with the original first and third stimulus values ​​and the target error value for subsequent query and analysis.

[0107] By calculating the second tristimulus value in this way, the server can ensure that each stimulus value is corrected in the same way, providing consistency and reliability. This process effectively improves the accuracy of the final tristimulus value and provides a solid data foundation for subsequent color management and device calibration.

[0108] Further, in some embodiments of the present application, after determining whether the first tristimulus value belongs to the first interval in step 102 in the above embodiment, the chromaticity correction method of segmented compensation may further include the following steps:

[0109] When it is determined that the first tristimulus values ​​belong to the first interval, the first tristimulus values ​​are determined as target tristimulus values.

[0110] The predicted accuracy of the target instrument is usually sufficient to meet the measurement requirements when the screen displays white, so there is no need to add error prediction.

[0111] The server performs targeted processing on the three stimulus values ​​belonging to the first interval and the three stimulus values ​​belonging to the second interval, which is beneficial to improving the measurement effect.

[0112] See also Figure 2 In some embodiments of the present application, step 105 in the above embodiment calculates the target error value according to the fitting coefficient and the first three stimulus values, and may include the following steps 201 to 203:

[0113] 201. Determine a target number of the first three stimulus values, where the target number is the number of stimulus values ​​in the first three stimulus values ​​that are greater than or equal to the corresponding preset stimulus value threshold;

[0114] The server extracts the first three stimulus values ​​and the preset stimulus value threshold from the database. By traversing each stimulus value, the server checks whether each value is greater than or equal to the corresponding threshold. The calculation result is the number of stimulus values ​​that meet the conditions, that is, the target number, and it is stored in a variable for subsequent use. It should be noted that in the embodiment of the present application, the preset stimulus value thresholds corresponding to the three stimulus values ​​in the first three stimulus values ​​can be the same or different, and this application is not limited to this. In practical applications, the preset stimulus value threshold is a range value. The engineer first sets a preset stimulus value threshold and updates the preset stimulus value threshold according to the actual effect. The main function of the preset stimulus value threshold is to be able to distinguish the four colors of WRGB (white, red, green and blue) in the XYZ color gamut. In a possible implementation process, the three stimulus value results when the current screen is WRGB color can be uniformly measured first, and the appropriate preset stimulus value threshold is selected according to the three stimulus value results, so that the preset stimulus value threshold can distinguish the four different colors of white, red, green and blue. Furthermore, in the actual application of the segmented compensation chromaticity correction method, the accuracy of the target three stimulus values ​​finally calculated is not sensitive to the local change of the preset stimulus value threshold, and a relatively satisfactory accuracy can be obtained within a certain value range.

[0115] 202. Determine an error function according to the number of targets.

[0116] According to the previously determined number of targets, the server selects an appropriate error function. It should be noted that if the number of targets is 0 or 3, that is, each stimulus value in the first three stimulus values ​​is greater than (corresponding to the case where the number of targets is 3) or less than (corresponding to the case where the number of targets is 0) the corresponding preset stimulus value threshold, the first three stimulus values ​​belong to the first interval segment, and the first three stimulus values ​​belonging to the first interval segment will be directly determined as the target three stimulus values, without the need to introduce error estimation. Therefore, the value of the target number can only be 1 or 2. Specifically, when the target number is 1, the error function is as follows:

[0117]

[0118] in, is the error value, ~ is the fitting coefficient, obtained by fitting the training samples; , , are the tristimulus values, and It is the value corresponding to the channel whose stimulation value is greater than the corresponding preset stimulation value threshold.

[0119] When the number of targets is 2, the error function is as follows:

[0120]

[0121] in, is the error value, ~ is the fitting coefficient, obtained by fitting the training samples; 、 、 are the tristimulus values, and , It is the value corresponding to the channel whose stimulation value is greater than the corresponding preset stimulation value threshold.

[0122] 203. Calculate a target error value according to the fitting coefficient, the first three stimulus values ​​and the error function.

[0123] After determining the target function, the server can directly substitute the fitting coefficients and the first three stimulus values ​​into the error function and calculate the target error value.

[0124] In this embodiment, it is ensured that the first three stimulus values ​​can be effectively analyzed and a suitable error calculation method can be dynamically selected, thereby improving the accuracy of the target error value. This flexibility is helpful for subsequent color correction and equipment adjustment, and enhances the reliability of the entire process.

[0125] See also Figure 3 In some embodiments of the present application, step 102 in the above embodiment determines whether the first tristimulus value belongs to the first interval segment, and may include the following steps 301 to 303:

[0126] 301. Determine whether each stimulus value in the first three stimulus values ​​is greater than or less than the corresponding preset stimulus value threshold; if so, execute step 302; if not, execute step 303;

[0127] The server extracts the first three stimulus values ​​and the corresponding preset stimulus value thresholds from the database. Then, each stimulus value is compared with the corresponding threshold one by one. It should be noted that in the embodiment of the present application, the preset stimulus value thresholds corresponding to the three stimulus values ​​in the first three stimulus values ​​may be the same or different, and the present application does not limit this. The judgment conditions include: if all stimulus values ​​are greater than the threshold, or all stimulus values ​​are less than the threshold, the conditions are considered to be met. If the conditions are met, the server will go to step 302; if not, it will go to step 303.

[0128] 302. Determine that the first three stimulus values ​​belong to the first interval segment;

[0129] If all stimulus values ​​of the first three stimulus values ​​are greater than or less than the threshold, the server will record this result to confirm that the first three stimulus values ​​belong to the first interval segment.

[0130] 303. Determine that the first three stimulus values ​​do not belong to the first interval segment.

[0131] If the stimulus values ​​of the first three stimulus values ​​do not meet the above conditions, the server will confirm that they do not belong to the first interval segment.

[0132] In this embodiment, the server can effectively evaluate the relationship between the first tristimulus value and the preset threshold value. Through clear judgment, the server can decide how to classify these values, thereby providing a basis for subsequent color correction and data analysis.

[0133] See also Figure 4 In some embodiments of the present application, before step 104 in the above embodiment, obtaining the fitting coefficient, the chromaticity correction method of segmented compensation may further include the following steps 401 to 405:

[0134] 401. Setting a plurality of different grayscale values ​​under red, green and blue for the test screen;

[0135] The server will set different grayscale values ​​for the red, green, and blue channels of the test screen according to the preset grayscale range. These grayscale values ​​are usually in the range of 0 to 255, representing different brightness levels. After the settings are completed, ensure that the screen can accurately display the corresponding colors at these grayscale values ​​for subsequent measurements.

[0136] 402. Obtain standard tristimulus values ​​obtained by measuring a test screen with a standard measuring instrument and measured tristimulus values ​​obtained by measuring the test screen with a target instrument at different grayscale values ​​of red, green, and blue;

[0137] At each set grayscale value, the server uses a standard measuring instrument and a target instrument to measure the test screen respectively. Under different grayscale values ​​of red, green, and blue, the standard tristimulus values ​​obtained by the standard measuring instrument (i.e., the values ​​that should be obtained under ideal conditions) and the measured tristimulus values ​​obtained by the target instrument (i.e., the values ​​of the actual display effect) are recorded. All measurement results, including the corresponding tristimulus values ​​for different grayscale values ​​of each color, are stored in the database for subsequent analysis and comparison.

[0138] 403. Calculate the measurement error value according to the standard three stimulus values ​​and the measured three stimulus values;

[0139] The server will compare the standard tristimulus values ​​measured by the standard measuring instrument at each grayscale value with the corresponding measured tristimulus values ​​measured by the target instrument, and calculate the measurement error value. Specifically, the standard tristimulus values ​​measured by the standard measuring instrument are subtracted from the corresponding measured tristimulus values ​​measured by the target instrument to obtain the difference, which is the measurement error value. The measurement error value reflects the deviation between the actual measurement and the ideal value, ensuring that the difference in display effects can be identified.

[0140] 404. Calculate a fitting coefficient matrix according to the measurement error value;

[0141] Using the previously calculated measurement error values, the server will construct a fitting coefficient matrix. This matrix is ​​usually used to describe the relationship between the standard value and the measured value for subsequent error correction and model building. The calculation of the fitting coefficient may involve statistical methods such as multivariate linear regression. In one possible embodiment, the calculation formula is as follows:

[0142] (Formula 3)

[0143] in, Indicates the error of the X, Y, and Z stimulus values ​​corresponding to each measurement point, is the fitting coefficient matrix, which is obtained by least squares fitting and represents the coefficients of different color components (X, Y, Z) in each dimension. It is a grayscale matrix, and each item in the grayscale matrix represents the parameters related to the color grayscale. This is a matrix containing square terms and linear terms. The last row is all 1 to introduce the deviation term.

[0144] The entire formula 3 shows how the screen error is represented by the combination of the fitting coefficient matrix and the grayscale matrix. With the measured error and the known grayscale value, the fitting coefficient matrix can be solved using the least squares method.

[0145] 405. Determine the fitting coefficients according to the fitting coefficient matrix.

[0146] The server will extract the final fit coefficients from the fit coefficient matrix (i.e. ~ ). These fitting coefficients will be used to correct the measurement results in the subsequent steps to improve the accuracy and reliability of the measurement.

[0147] In this embodiment, it is ensured that the server can perform comprehensive measurement and analysis under various color and grayscale conditions. By systematically calculating errors and establishing fitting models, the server can improve the accuracy of color correction and provide strong support for subsequent equipment adjustment and optimization.

[0148] See also Figure 5 In one embodiment of the present application, a chromaticity correction device for segmented compensation includes:

[0149] A first acquisition unit 501 is used to acquire first tristimulus values ​​obtained by measuring a target screen with a target instrument;

[0150] A judging unit 502 is used to judge whether the first tristimulus value belongs to a first interval segment, where the first interval segment is a tristimulus value interval corresponding to when the target screen displays white;

[0151] A first determining unit 503, configured to determine that the first three stimulus values ​​belong to a second interval when the judging unit 502 determines that the first three stimulus values ​​do not belong to the first interval;

[0152] A second acquisition unit 504 is used to acquire a fitting coefficient;

[0153] A first calculation unit 505, used for calculating a target error value according to a fitting coefficient and a first tristimulus value;

[0154] A second calculation unit 506, configured to calculate second tristimulus values ​​using the first tristimulus values ​​and the target error value;

[0155] The second determining unit 507 is configured to determine the second tristimulus values ​​as target tristimulus values.

[0156] In this embodiment, after the first acquisition unit 501 acquires the first three stimulus values ​​measured by the target instrument, the judgment unit 502 and the first determination unit 503 first determine the interval of the first three stimulus values. If the first three stimulus values ​​are in the second interval, the second acquisition unit 504 acquires the fitting coefficient, the first calculation unit 505 calculates the target error value using the fitting coefficient and the first three stimulus values, the second calculation unit 506 then compensates the first three stimulus values ​​using the target error value to calculate the second three stimulus values, and the second determination unit 507 uses the second three stimulus values ​​as the final result (i.e., the target three stimulus values) obtained by measuring the target screen this time. The fitting coefficient is obtained after analyzing multiple error processing, so the chromaticity correction device with segmented compensation can effectively compensate the first three stimulus values ​​using the target error value calculated by the fitting coefficient, thereby improving the accuracy and reliability of the measurement.

[0157] Optionally, the first calculation unit 505 includes:

[0158] A determination module, configured to determine an error function according to the first tristimulus values;

[0159] The calculation module is used to calculate the target error value according to the fitting coefficient, the first three stimulus values ​​and the error function.

[0160] Optionally, determine whether the module is specifically used for:

[0161] Determining a target number of the first three stimulus values, the target number being the number of stimulus values ​​in the first three stimulus values ​​that are greater than or equal to the corresponding preset stimulus value threshold;

[0162] The error function is determined according to the number of targets.

[0163] Optionally, the judging unit 502 is specifically configured to:

[0164] Determine whether each stimulus value in the first three stimulus values ​​is greater than or less than a corresponding preset stimulus value threshold;

[0165] If so, it is determined that the first three stimulus values ​​belong to the first interval; if not, it is determined that the first three stimulus values ​​do not belong to the first interval.

[0166] Optionally, the device further includes a third determining unit, and the third determining unit is configured to:

[0167] Set multiple different grayscale values ​​in red, green and blue for the test screen;

[0168] Obtaining standard tristimulus values ​​obtained by measuring the test screen with a standard measuring instrument and measured tristimulus values ​​obtained by measuring the test screen with a target instrument at different grayscale values ​​of red, green and blue;

[0169] Calculate the measurement error value according to the standard three stimulus values ​​and the measured three stimulus values;

[0170] Calculate the fitting coefficient matrix based on the measurement error values;

[0171] Determine the fitting coefficients from the fitting coefficient matrix.

[0172] Optionally, the second calculation unit 506 is specifically configured to:

[0173] Each stimulus value in the first three stimulus values ​​is summed with the target error value to obtain the second three stimulus values.

[0174] Optionally, the device further comprises:

[0175] The fourth determining unit is configured to determine the first tristimulus values ​​as target tristimulus values ​​when the judging unit determines that the first tristimulus values ​​belong to the first interval.

[0176] In this implementation, the functions of each unit and module are the same as those described above. Figures 1 to 4 The steps in the illustrated embodiments correspond to each other and will not be described again here.

[0177] See also Figure 6 Another embodiment of the chromaticity correction device for segmented compensation in the embodiment of the present application includes:

[0178] Processor 601, memory 602, input and output unit 603 and bus 604;

[0179] The processor 601 is connected to the memory 602, the input and output unit 603 and the bus 604;

[0180] The memory 602 stores a program, and the processor 601 calls the program to execute Figures 1 to 4 Steps in the illustrated embodiment.

[0181] In this embodiment, the function of the processor 601 is the same as that of the aforementioned Figures 1 to 4 The steps in the illustrated embodiments correspond to each other and will not be described again here.

[0182] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0183] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0186] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A chromaticity correction method of segmented compensation, characterized in that: include: Acquire the first three stimulus values ​​obtained by measuring the target screen with the target instrument; determining whether the first three stimulus values ​​belong to a first interval segment, the first interval segment being a three stimulus value interval corresponding to when the target screen displays white; If not, determining that the first three stimulus values ​​belong to the second interval; Obtaining a fitting coefficient, wherein the fitting coefficient is associated with errors obtained by measuring the test screen respectively by the standard measuring instrument and the target instrument; Determining a target number of the first three stimulus values, the target number being the number of stimulus values ​​among the first three stimulus values ​​that are greater than or equal to a corresponding preset stimulus value threshold; Determining an error function according to the number of targets; Calculate a target error value according to the fitting coefficient, the first three stimulus values ​​and the error function; Calculating second tristimulus values ​​using the first tristimulus values ​​and the target error value; The second tristimulus values ​​are determined as target tristimulus values.

2. The method according to claim 1, characterized in that The determining whether the first three stimulus values ​​belong to the first interval includes: Determining whether each of the first three stimulus values ​​is greater than or less than a corresponding preset stimulus value threshold; If so, it is determined that the first three stimulus values ​​belong to the first interval; if not, it is determined that the first three stimulus values ​​do not belong to the first interval.

3. The method according to claim 1, characterized in that: Before obtaining the fitting coefficient, the method further includes: Set multiple different grayscale values ​​in red, green and blue for the test screen; Acquire standard tristimulus values ​​obtained by measuring the test screen with a standard measuring instrument at different grayscale values ​​of red, green and blue and measured tristimulus values ​​obtained by measuring the test screen with a target instrument; Calculating a measurement error value according to the standard tristimulus values ​​and the measured tristimulus values; Calculate a fitting coefficient matrix according to the measurement error values; The fitting coefficients are determined according to the fitting coefficient matrix.

4. The method according to any one of claims 1 to 3, characterized in that The calculating the second three stimulus values ​​by using the first three stimulus values ​​and the target error value comprises: Each stimulus value in the first three stimulus values ​​is summed with the target error value to obtain second three stimulus values.

5. The method according to any one of claims 1 to 3, characterized in that After determining whether the first three stimulus values ​​belong to the first interval, the method further includes: If yes, the first three stimulus values ​​are determined as target three stimulus values.

6. A chromaticity correction device with segmented compensation, characterized in that: include: A first acquisition unit, used for acquiring first tristimulus values ​​obtained by measuring a target screen with a target instrument; a judging unit, configured to judge whether the first three stimulus values ​​belong to a first interval segment, the first interval segment being a three stimulus value interval corresponding to when the target screen displays white; a first determining unit, configured to determine that the first three stimulus values ​​belong to a second interval when the judging unit determines that the first three stimulus values ​​do not belong to the first interval; A second acquisition unit is used to acquire a fitting coefficient, where the fitting coefficient is associated with errors obtained by respectively measuring the test screen with the standard measuring instrument and the target instrument; A first calculation unit, used for calculating a target error value according to the fitting coefficient and the first three stimulus values; a second calculation unit, configured to calculate second three stimulus values ​​using the first three stimulus values ​​and the target error value; a second determining unit, configured to determine the second tristimulus values ​​as target tristimulus values; The first computing unit comprises: A determination module, used for determining an error function according to the first three stimulus values; A calculation module, used for calculating a target error value according to the fitting coefficient, the first three stimulus values ​​and the error function; The determination module is specifically used for: Determining a target number of the first three stimulus values, the target number being the number of stimulus values ​​among the first three stimulus values ​​that are greater than or equal to a corresponding preset stimulus value threshold; An error function is determined according to the number of targets.

7. A segmented compensation chromaticity correction device, characterized in that: include: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; A program is stored in the memory, and the processor calls the program to execute the method according to any one of claims 1 to 5. 8 . A computer-readable storage medium having a program stored thereon, wherein when the program is executed on a computer, the computer is caused to execute the method according to claim 1 .

Citation Information

Patent Citations

  • Image white balance method and device thereof, electronic equipment and computer readable storage medium

    CN113194303A

  • Method for compensating brightness and chromaticity of display device and related equipment

    CN113724644A