Color calibration method and system applied to RGBW lamp beads

By calculating the adjustable range and iterative adjustment of the light source color ratio K value of RGBW LED beads, the problems of low accuracy and computational complexity in RGBW LED bead calibration methods are solved, achieving efficient and automated color calibration, which is applicable to various types of RGBW LED beads.

CN121284784APending Publication Date: 2026-01-06SHANGHAI OPTCO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511752831.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-26
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

Existing RGBW LED calibration methods have low accuracy, cannot effectively handle complex color difference issues, and have high computational complexity, making it difficult to meet the requirements of high-precision and high-efficiency automatic calibration, especially in large-scale production or real-time adjustment.

Method used

By obtaining the XYZ chromaticity coordinate parameters of the RGBW LED beads and the XYZ chromaticity coordinate parameters of the target color, the adjustable range of the light source color ratio K is calculated. Within this range, the target ratio adjustment coefficient K_scan is selected, and the light source color of the RGBW LED beads is iteratively adjusted until it is below the color difference threshold, thereby achieving efficient color calibration.

Benefits of technology

It achieves efficient and automated color calibration of RGBW LED beads, ensuring the consistency between the output color and the target color. It is applicable to various types of RGBW LED beads, suitable for mass production and real-time adjustment, reduces manual intervention, and simplifies the calculation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121284784A_ABST
    Figure CN121284784A_ABST
Patent Text Reader

Abstract

The invention provides a color calibration method and system applied to RGBW lamp beads. The color calibration method comprises the following steps that S1, XYZ chromaticity coordinate parameters of original RGBW lamp beads and XYZ chromaticity coordinate parameters of target colors are obtained; s2, on the basis of the light source color mixing relation of the original RGBW lamp beads, the adjustable range of the light source color ratio K value between the target color and the original RGBW lamp beads is obtained through calculation; s3, in the adjustable range of the light source color proportion K value, selecting a target proportion adjustment coefficient Kscan, and calculating a mixed calibration color of the original RGBW lamp bead after adjustment under the target proportion adjustment coefficient Kscan; and S4, repeating the steps S1 to S3, and carrying out iterative adjustment on the light source color of the RGBW lamp bead until the difference between the light source color of the RGBW lamp bead and the target color is lower than a color difference threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of optical technology, and in particular relates to a color calibration method and system for RGBW LED chips. Background Technology

[0002] With the rapid development of LED lighting technology, RGBW LED chips have been widely used in various display and lighting fields. However, due to factors such as manufacturing processes, material differences, and chip aging, RGBW LED chips may exhibit color differences during actual use. These color differences can significantly affect the display effect, especially in scenarios where high color consistency is required.

[0003] Existing calibration methods typically rely on simple linear transformations or lookup tables, resulting in low accuracy, an inability to effectively handle complex color difference issues, and a lack of applicability to different types of LED chips. Furthermore, traditional calibration methods are slow and inefficient, particularly in large-scale production or real-time adjustments, failing to meet the demands for high-precision, high-efficiency automated calibration. Their high computational complexity also hinders large-scale application. Summary of the Invention

[0004] This invention provides a color calibration method and system for RGBW LED chips, to solve the technical problem that conventional RGBW LED chip calibration methods under the existing technology cannot meet the requirements of high-precision and high-efficiency automatic calibration.

[0005] To solve the above problems, the technical solution of the present invention is: a color calibration method applied to RGBW LED chips, comprising the following steps: S1: Obtain the XYZ chromaticity coordinate parameters of the original RGBW LED beads and the XYZ chromaticity coordinate parameters of the target color; S2: Based on the light source color mixing relationship of the original RGBW LED beads, calculate and obtain the adjustable range of the light source color ratio K value between the target color and the original RGBW LED beads; S3: Within the adjustable range of the light source color ratio K value, select the target ratio adjustment coefficient K_scan and calculate the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment coefficient K_scan; S4: Repeat steps S1-S3 to iteratively adjust the light source color of the RGBW LED beads until the light source color of the RGBW LED beads and the target color are below the color difference threshold.

[0006] Preferably, calculating the adjustable range of the light source color ratio K value between the target color and the original RGBW LED beads in S2 includes the following steps: S21: Initialize the boundary parameters of the light source color ratio K value, and set the minimum initial value K of the light source color ratio K value. minThe initial value is 0, and the maximum initial value is K. max =1; Define the RGB mixing vector in the original RGBW LED as RGB_mix=[R_rgb, G_rgb, B_rgb]; Define the white light vector in the original RGBW LED as W_light=[R_w, G_w, B_w]; Define the target color vector as Target=[R_t, G_t, B_t]; S22: Establish the color mixing equation for the light source. The calculation expression for the color mixing equation for the light source is as follows: Target=K×RGB_mix+(1-K)×W_light Where K is the color ratio of the light source, K value; Expand the light source color mixing equation into RGB component form: R_t = K × R_rgb + (1-K) × R_w; G_t = K × G_rgb + (1-K) × G_w; B_t=K×B_rgb+(1-K)×B_w.

[0007] Preferably, calculating the adjustable range of the light source color ratio K value between the target color and the original RGBW LED in S2 further includes the following steps: S23: Solve the K-value constraint for the red channel in the original RGBW LED. The expression for calculating the K-value constraint of the red channel is: K_r=(R_t-R_w) / (R_rgb-R_w) Wherein, K_r is the range of K values ​​for the red light channel in the original RGBW LED; Solve the K-value constraint for the green channel in the original RGBW LED. The expression for calculating the K-value constraint for the green channel is: K_g=(G_t-G_w) / (G_rgb-G_w) Wherein, K_g is the range of K values ​​for the green channel in the original RGBW LED; Solving for the K-value constraint in the blue channel of the original RGBW LED, the expression for calculating the K-value constraint of the blue channel is as follows: K_b=(B_t-B_w) / (B_rgb-B_w) Wherein, K_b is the range of K values ​​for the blue channel in the original RGBW LED; S24: Solve for the intersection of the red light channel K value range K_r, the green light channel K value range K_g, and the blue light channel K value range K_b to obtain the adjustable range (K_r) of the light source color ratio K value between the target color and the original RGBW LED beads.min K max ), where the minimum value of the light source color ratio K is K. min The maximum value of the lower bound of the red light channel K value range K_r, the green light channel K value range K_g, and the blue light channel K value range K_b, and the maximum value of the light source color ratio K value. max It is configured as the minimum value of the upper bound of the red light channel K value range K_r, the green light channel K value range K_g, and the blue light channel K value range K_b.

[0008] Preferably, the adjustable range of the light source color ratio K value between the target color and the original RGBW LED beads calculated in S2 further includes the following steps: S25: Based on the XYZ chromaticity coordinate parameters of the original RGBW LED beads and the XYZ chromaticity coordinate parameters of the target color, a color gamut triangle is constructed, and the adjustable range of the light source color ratio K value is optimized secondaryly using geometric calculations.

[0009] Preferably, in S25, geometric calculations are used to perform a secondary optimization of the adjustable range of the light source color ratio K value, including the following steps: S251: Construct a color gamut triangle based on the three primary colors RGB (red, green, blue) in the original RGBW LED beads, and determine the geometric connection WT from the white light point W to the target color light point T; When the target color light point T is located outside the color gamut triangle, calculate the effective intersection points of the geometric connection line WT with each boundary of the color gamut triangle, where: For the gamut boundary RG of red-green light, solve for the intersection point P_rg of the geometric line WT and the gamut boundary RG of red-green light; for the gamut boundary GB of green-blue light, solve for the intersection point P_gb of the geometric line WT and the gamut boundary GB of green-blue light; for the gamut boundary BR of blue-red light, solve for the intersection point P_br of the geometric line WT and the gamut boundary BR of blue-red light. S252: Determine the geometric connection WP from the white light point W to the unique intersection point P_rg, intersection point P_gb, or intersection point P_br. Calculate the light source color ratio K value corresponding to the valid intersection point P_rg, intersection point P_gb, or intersection point P_br. The calculation expression is: K=|WP| / |WT|×sign Where, sign represents the positional relationship of intersection point P_rg, intersection point P_gb, or intersection point P_br relative to the geometric connection line WT; Obtain the maximum and most effective actual light source color ratio K value k max Based on the color ratio K value of the light source max Adjustable range of the light source color ratio K value (K min K max A second optimization was performed, and the adjustable range of the light source color ratio K value was corrected to [K].min ,min(K max k max )).

[0010] Preferably, in S3, the mixed calibration color of the original RGBW LEDs after adjustment under the target ratio adjustment factor K_scan is calculated, including the following steps: S31: Based on the adjustable range of the light source color ratio K value, the target ratio adjustment coefficient K_scan is selected according to the preset ratio. The calculation expression of the light source color mixing equation is as follows: Target=K_scan×RGB_mix+(1-K_scan)×W Expand the light source color mixing equation into RGB component form: R_mix=(R_target-(1-K_scan)×R_w) / K_scan; G_mix=(G_target-(1-K_scan)×G_w) / K_scan; B_mix=(B_target-(1-K_scan)×B_w) / K_scan; S32: Normalize the RGB components in the original RGBW LED beads. The relative proportions of the three primary colors (red, green, and blue) in the original RGBW LED beads are: sum_RGB=R_mix+G_mix+B_mix The normalization ratio is: R_ratio=R_mix / sum_RGB; G_ratio=G_mix / sum_RGB; B_ratio=B_mix / sum_RGB.

[0011] Preferably, in S3, the mixed calibration color of the original RGBW LEDs after adjustment under the target ratio adjustment coefficient K_scan is further calculated, including the following steps: S33: Calculate the driving coefficient Dr for red light, Dg for green light, Db for blue light, and Dw for white light in the original RGBW LED chips, where: Dr = R_ratio × K_scan × n Dg = G_ratio × K_scan × n Db = B_ratio × K_scan × n Dw=(1-K_scan)×n Where n is the hardware driver scaling factor for the RGBW LED.

[0012] Preferably, in S3, the mixed calibration color of the original RGBW LEDs after adjustment under the target ratio adjustment coefficient K_scan is further calculated, including the following steps: S34: Calculate the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment factor K_scan. The calculation expression for the mixed calibration color of the RGBW LED beads is: C_calc=Dr×R+Dg×G+Db×B+Dw×W Wherein, R is the reference spectral characteristic vector of the red channel in the RGBW LED, G is the reference spectral characteristic vector of the green channel in the RGBW LED, B is the reference spectral characteristic vector of the blue channel in the RGBW LED, and W is the reference spectral characteristic vector of the white channel in the RGBW LED.

[0013] Preferably, in S4, the light source color of the RGBW LED beads is iteratively adjusted until the color difference between the light source color of the RGBW LED beads and the target color is lower than the color difference threshold, including the following steps: S41: Based on the adjustable range of the light source color ratio K value, the target ratio adjustment coefficient K_scan is iteratively selected according to the preset ratio, and the mixed light source output color of the RGBW LED beads is iteratively adjusted.

[0014] Based on the same concept, the present invention also provides a color calibration system for RGBW LED chips, used to perform the color calibration method for RGBW LED chips as described above, comprising: The color parameter input module is used to obtain the XYZ chromaticity coordinate parameters of the original RGBW LED beads and the XYZ chromaticity coordinate parameters of the target color. The adjustment ratio calculation module is used to calculate and obtain the adjustable range of the light source color ratio K value between the target color and the original RGBW LED beads based on the light source color mixing relationship of the original RGBW LED beads; The calibration color calculation module is used to select the target ratio adjustment coefficient K_scan within the adjustable range of the light source color ratio K value, and calculate the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment coefficient K_scan; The light source parameter iteration module iteratively adjusts the light source color of the RGBW LED beads until the color difference between the light source color of the RGBW LED beads and the target color is lower than the color difference threshold.

[0015] Because of the above technical solutions, this invention has the following advantages and positive effects compared with the prior art: This invention provides a color calibration method and system for RGBW LED chips. First, the XYZ chromaticity coordinates of the original RGBW LED chip and the target color are obtained. Then, based on the light source color mixing relationship of the original RGBW LED chip, the adjustable range of the light source color ratio K between the target color and the original RGBW LED chip is calculated. Subsequently, within the adjustable range of the light source color ratio K, a target ratio adjustment coefficient K_scan is selected, and the mixed calibration color of the original RGBW LED chip after adjustment under the target ratio adjustment coefficient K_scan is calculated. Finally, the above steps are repeated iteratively to adjust the light source color of the RGBW LED chip until the difference between the light source color of the RGBW LED chip and the target color is below a color difference threshold. In this invention, by accurately calculating the difference between the output light source composition ratio of the RGBW LED chip and the target color, efficient color calibration of the RGBW LED chip is achieved, ensuring the consistency between the output color and the target color. Furthermore, this invention is applicable to various types of RGBW LED chips, can achieve automated operation, reduce manual intervention, and has a simple calculation process with low resource consumption, making it suitable for large-scale production and real-time adjustment operations. Attached Figure Description

[0016] Figure 1 The present invention provides a flowchart of a color calibration method for RGBW LED chips. Detailed Implementation

[0017] The following detailed description, in conjunction with the accompanying drawings and specific embodiments, provides a color calibration method and system for RGBW LED chips based on the present invention. The advantages and features of the present invention will become clearer from the following description and claims.

[0018] First Embodiment See Figure 1 This embodiment provides a color calibration method for RGBW LED chips, which enables efficient and automated color calibration for different types of RGBW LED chips. The method includes the following steps: S1: Obtain the XYZ chromaticity coordinate parameters (R_Values, G_Values, B_Values, W_Values) of the original RGBW LED bead and the XYZ chromaticity coordinate parameters (T_Values) of the target color. Here, RGBW LED bead refers to a bead containing four independent LED chips packaged in one bead, including red light channel, green light channel, blue light channel and white light channel. Any channel can be controlled independently to achieve mixed output of multiple basic lights.

[0019] S2: Based on the light source color mixing relationship of the original RGBW LED beads, calculate and obtain the adjustable range of the light source color ratio K value between the target color and the original RGBW LED beads. The light source color ratio K value is used to determine the mixing ratio and output intensity between the three primary colors of red, green and blue (RGB) and white light, thereby adjusting the optical parameters such as the color temperature, color saturation, and brightness of the light source.

[0020] S3: Within the adjustable range of the light source color ratio K value, select the target ratio adjustment coefficient K_scan and calculate the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment coefficient K_scan.

[0021] S4: Repeat steps S1-S3 to iteratively adjust the light source color of the RGBW LED beads until the light source color of the RGBW LED beads and the target color are below the color difference threshold.

[0022] The following will provide a more detailed explanation of the specific steps and functions of the color calibration method for RGBW LED chips provided in this embodiment: Preferably, in one embodiment, calculating the adjustable range of the light source color ratio K value between the target color and the original RGBW LED in S2 includes the following steps: S21: Initialize the boundary parameters of the light source color ratio K value, and set the minimum initial value K of the light source color ratio K value. min The initial value is 0, and the maximum initial value is K. max =1; Define the RGB mixing vector in the original RGBW LED as RGB_mix=[R_rgb, G_rgb, B_rgb]; Define the white light vector in the original RGBW LED as W_light=[R_w, G_w, B_w]; Define the target color vector as Target=[R_t, G_t, B_t].

[0023] S22: Establish the color mixing equation for the light source. The calculation expression for the color mixing equation for the light source is as follows: Target=K×RGB_mix+(1-K)×W_light Where K is the color ratio of the light source, K value; Expand the light source color mixing equation into RGB component form: R_t = K × R_rgb + (1-K) × R_w; G_t = K × G_rgb + (1-K) × G_w; B_t=K×B_rgb+(1-K)×B_w.

[0024] Preferably, in one embodiment, calculating the adjustable range of the light source color ratio K value between the target color and the original RGBW LED in S2 further includes the following steps: S23: Solve the K-value constraint for the red channel in the original RGBW LED. The expression for calculating the K-value constraint of the red channel is: K_r=(R_t-R_w) / (R_rgb-R_w) Wherein, K_r is the range of K values ​​for the red light channel in the original RGBW LED.

[0025] Solve the K-value constraint for the green channel in the original RGBW LED. The expression for calculating the K-value constraint for the green channel is: K_g=(G_t-G_w) / (G_rgb-G_w) Wherein, K_g represents the range of K values ​​for the green channel in the original RGBW LED.

[0026] Solving for the K-value constraint in the blue channel of the original RGBW LED, the expression for calculating the K-value constraint of the blue channel is as follows: K_b=(B_t-B_w) / (B_rgb-B_w) Wherein, K_b is the range of K values ​​for the blue channel in the original RGBW LED.

[0027] S24: Collect the K-value constraints for all channels, solve for the intersection of the K-value ranges K_r (red channel), K_g (green channel), and K_b (blue channel), and obtain the adjustable range (K_r) of the light source color ratio K between the target color and the original RGBW LED beads. min K max ), where the minimum value of the light source color ratio K is K. min The maximum value of the lower bound of the red light channel K value range K_r, the green light channel K value range K_g, and the blue light channel K value range K_b, and the maximum value of the light source color ratio K value. max It is configured as the minimum value of the upper bound of the red light channel K value range K_r, the green light channel K value range K_g, and the blue light channel K value range K_b.

[0028] Finally, the validity of the intersection of the red light channel K value range K_r, the green light channel K value range K_g, and the blue light channel K value range K_b is verified. That is, if the obtained Kmin ≤ Kmax, the valid range [Kmin, Kmax] is returned. If Kmin > Kmax, it means that the target color cannot be achieved, and an empty range or the default range [0, 1] is returned.

[0029] Preferably, in one embodiment, calculating the adjustable range of the light source color ratio K value between the target color and the original RGBW LED in S2 further includes the following steps: S25: Within the adjustable range of obtaining the light source color ratio K value (K min K max After that, based on the XYZ chromaticity coordinate parameters of the original RGBW LED beads and the XYZ chromaticity coordinate parameters of the target color, a color gamut triangle is constructed. Geometric calculations are then used to perform secondary optimization on the adjustable range of the light source color ratio K value, further limiting the adjustable range of the light source color ratio K value.

[0030] Preferably, in one embodiment, in S25, the adjustable range of the light source color ratio K value is optimized secondaryly using geometric calculations, including the following steps: S251: Construct a color gamut triangle based on the three primary colors of red, green and blue in the original RGBW LED beads on the CIE 1931 chromaticity diagram, and determine the geometric connection WT from the white light point W to the target color light point T.

[0031] To determine the spatial relationship between the geometric connection line WT and the color gamut triangle, since the white light point W is usually located inside the color gamut triangle in the specific scenario of RGBW color mixing, if the target color light point T is located inside the triangle, it means that the K value range is [0, 1]. If the target color light point T is located outside the triangle, it is necessary to find the effective intersection point of the geometric connection line WT and the boundary of the color gamut triangle.

[0032] In this embodiment, when the target color light point T is located outside the color gamut triangle, the effective intersection points of the geometric connection line WT and each boundary of the color gamut triangle are calculated, wherein: For the gamut boundary RG of red-green light, solve for the intersection point P_rg of the geometric line WT and the gamut boundary RG of red-green light; for the gamut boundary GB of green-blue light, solve for the intersection point P_gb of the geometric line WT and the gamut boundary GB of green-blue light; for the gamut boundary BR of blue-red light, solve for the intersection point P_br of the geometric line WT and the gamut boundary BR of blue-red light.

[0033] Since the white light point W is usually located inside the color gamut triangle and the target color light point T is located outside the color gamut triangle, the geometric connection WT will form an intersection point with any boundary of the color gamut triangle.

[0034] S252: After obtaining the intersection points P_rg, P_gb, or P_br, determine the geometric connection WP from the white light point W to the unique intersection point P_rg, P_gb, or P_br. Calculate the light source color ratio K value corresponding to the valid intersection points P_rg, P_gb, or P_br. The calculation expression is: K=|WP| / |WT|×sign Wherein, sign represents the positional relationship of intersection point P_rg, intersection point P_gb, or intersection point P_br relative to the geometric connection line WT. When intersection point P is located between the white light point W and the target color light point T, sign=1. When intersection point P is located on the extension line of the geometric connection line WT, sign=-1.

[0035] Therefore, the maximum and most effective actual light source color ratio K value k is calculated and obtained. max Based on the color ratio K value of the light source max Adjustable range of the light source color ratio K value (K min K max A second optimization was performed, and the adjustable range of the light source color ratio K value was corrected to [K]. min ,min(K max k max [ ], that is, the smaller of the theoretical maximum value and the actual maximum value of the light source color ratio K is selected as the maximum value in the adjustable range of the light source color ratio K after secondary optimization.

[0036] Preferably, in one embodiment, calculating the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment coefficient K_scan in S3 includes the following steps: S31: Based on the adjustable range of the light source color ratio K value, the target ratio adjustment coefficient K_scan is selected according to the preset ratio. The calculation expression of the light source color mixing equation is as follows: Target=K_scan×RGB_mix+(1-K_scan)×W Expand the light source color mixing equation into RGB component form: R_mix=(R_target-(1-K_scan)×R_w) / K_scan; G_mix=(G_target-(1-K_scan)×G_w) / K_scan; B_mix=(B_target-(1-K_scan)×B_w) / K_scan.

[0037] S32: Normalize the RGB components in the original RGBW LED beads. The relative proportions of the three primary colors (red, green, and blue) in the original RGBW LED beads are: sum_RGB=R_mix+G_mix+B_mix The normalization ratio is: R_ratio=R_mix / sum_RGB; G_ratio=G_mix / sum_RGB; B_ratio=B_mix / sum_RGB.

[0038] Preferably, in one embodiment, calculating the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment coefficient K_scan in S3 further includes the following steps: S33: Calculate the driving coefficients Dr for red light, Dg for green light, Db for blue light, and Dw for white light in the original RGBW LED chips. The driving coefficients are the hardware driving limit of a single channel in the RGBW LED chips and are related to the power of the RGBW LED chips. Dr = R_ratio × K_scan × n Dg = G_ratio × K_scan × n Db = B_ratio × K_scan × n Dw=(1-K_scan)×n Where n is the hardware driver scaling factor of the RGBW LED bead. The driver chip of the RGBW LED bead usually accepts a fixed range of input signals, such as 0-255 (8 bits), 0-1023 (10 bits), 0-4095 (12 bits). The hardware driver scaling factor maps the driving signal to the hardware driving range of the RGBW LED bead according to the ratio value of [0, 1].

[0039] Preferably, in one embodiment, calculating the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment coefficient K_scan in S3 further includes the following steps: S34: Calculate the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment factor K_scan. The calculation expression for the mixed calibration color of the RGBW LED beads is: C_calc=Dr×R+Dg×G+Db×B+Dw×W Wherein, R is the reference spectral characteristic vector of the red channel in the RGBW LED, G is the reference spectral characteristic vector of the green channel in the RGBW LED, B is the reference spectral characteristic vector of the blue channel in the RGBW LED, and W is the reference spectral characteristic vector of the white channel in the RGBW LED.

[0040] Preferably, in one embodiment, the light source color of the RGBW LED beads is iteratively adjusted in S4 until the color difference between the light source color of the RGBW LED beads and the target color is lower than the color difference threshold, including the following steps: S41: Based on the adjustable range of the light source color ratio K value, the target ratio adjustment coefficient K_scan is iteratively selected according to the preset ratio, and the mixed light source output color of the RGBW LED beads is iteratively adjusted.

[0041] In this embodiment, within the adjustable range of the light source color ratio K, the target ratio adjustment coefficient K_scan is selected sequentially according to the preset ratio (e.g., from K...). min To min(K) max k max (A target ratio adjustment coefficient K_scan is used to select the light source color ratio K value sequentially at fixed intervals). The target ratio adjustment coefficient K_scan is used to generate the mixed light source output color of RGBW LED beads. The actual color difference between the mixed light source output color generated by RGBW LED beads under the target ratio adjustment coefficient K_scan and the target color is calculated. When the actual color difference value is lower than the color difference threshold, it proves that the light source color of RGBW LED beads under the target ratio adjustment coefficient K_scan meets the adjustment requirements.

[0042] Of course, in another embodiment, the optimal parameter adjustment scheme can be selected from the mixed light source output colors of several RGBW LED beads that are iteratively adjusted, and the group of RGBW LED beads with the smallest color difference from the target color can be used as the optimal parameter adjustment scheme.

[0043] Second Embodiment Based on the same concept, the present invention also provides a color calibration system for RGBW LED chips, used to perform the color calibration method for RGBW LED chips as described in any one of the first embodiments, including: The color parameter input module is used to obtain the XYZ chromaticity coordinate parameters of the original RGBW LED beads and the XYZ chromaticity coordinate parameters of the target color.

[0044] The adjustment ratio calculation module is used to calculate and obtain the adjustable range of the light source color ratio K value between the target color and the original RGBW LED beads based on the light source color mixing relationship of the original RGBW LED beads.

[0045] The calibration color calculation module is used to select the target ratio adjustment coefficient K_scan within the adjustable range of the light source color ratio K value, and calculate the mixed calibration color of the original RGBW LED beads after adjustment under the target ratio adjustment coefficient K_scan.

[0046] The light source parameter iteration module iteratively adjusts the light source color of the RGBW LED beads until the color difference between the light source color of the RGBW LED beads and the target color is lower than the color difference threshold.

[0047] The functions of each component in the color calibration system applied to RGBW LED chips described above correspond to the steps in the color calibration method embodiment applied to RGBW LED chips described above. Their functions and implementation processes will not be described in detail here.

[0048] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-described color calibration method applied to RGBW LED beads.

[0049] This embodiment also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-described color calibration method applied to RGBW LED beads.

[0050] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they shall still fall within the protection scope of the present invention.

Claims

1. A color calibration method applied to an RGBW lamp bead, characterized in that, Comprising the following steps: S1: obtaining XYZ chromaticity coordinate parameters of the original RGBW lamp bead and XYZ chromaticity coordinate parameters of the target color; S2: based on the light source color mixing relationship of the original RGBW lamp bead, calculating the adjustable range of the light source color proportion K value between the target color and the original RGBW lamp bead; S3: selecting a target proportion adjustment coefficient K_scan within the adjustable range of the light source color proportion K value, and calculating the mixed calibration color of the original RGBW lamp bead after adjustment under the target proportion adjustment coefficient K_scan; S4: repeating steps S1-S3 to iteratively adjust the light source color of the RGBW lamp bead until the light source color of the RGBW lamp bead and the target color are below the color difference threshold. 2.The method of color calibration applied to an RGBW lamp bead according to claim 1, wherein, In S2, the adjustable range of the light source color proportion K value between the target color and the original RGBW lamp bead is calculated, comprising the following steps: S21: initialize the boundary parameter of the light source color ratio K value, set the minimum initial value K min of the light source color ratio K value to 0, and the maximum initial value K max of the light source color ratio K value to 1. Define the red-green-blue RGB mixing vector in the original RGBW lamp bead as RGB_mix=[R_rgb, G_rgb, B_rgb]; Define the white light vector in the original RGBW lamp bead as W_light=[R_w, G_w, B_w]; Define the target color vector as Target=[R_t, G_t, B_t]; S22: establish a light source color mixing equation, and the calculation expression of the light source color mixing equation is: Target=K×RGB_mix+(1-K)×W_light Wherein, K is the light source color proportion K value; Expand the light source color mixing equation into red-green-blue RGB component form: R_t=K×R_rgb+(1-K)×R_w; G_t=K×G_rgb+(1-K)×G_w; B_t=K×B_rgb+(1-K)×B_w. 3.The method of color calibration applied to an RGBW lamp bead according to claim 2, wherein, In S2, the adjustable range of the light source color proportion K value between the target color and the original RGBW lamp bead is calculated, further comprising the following steps: S23: solve the K value constraint for the red light channel in the original RGBW lamp bead, and the K value constraint calculation expression of the red light channel is: K_r=(R_t-R_w) / (R_rgb-R_w) Wherein, K_r is the K value range of the red light channel in the original RGBW lamp bead; Solve the K value constraint for the green light channel in the original RGBW lamp bead, and the K value constraint calculation expression of the green light channel is: K_g=(G_t-G_w) / (G_rgb-G_w) Wherein, K_g is the K value range of the green light channel in the original RGBW lamp bead; Solve the K value constraint for the blue light channel in the original RGBW lamp bead, and the K value constraint calculation expression of the blue light channel is: K_b=(B_t-B_w) / (B_rgb-B_w) Wherein, K_b is the K value range of the blue light channel in the original RGBW lamp bead; S24: solve the intersection of the red light channel K value range K_r, the green light channel K value range K_g and the blue light channel K value range K_b, and obtain the adjustable range (K min , K max ) of the light source color ratio K value between the target color and the original RGBW lamp bead, wherein the minimum value K min of the light source color ratio K value is configured as the maximum value of the lower limit of the red light channel K value range K_r, the green light channel K value range K_g and the blue light channel K value range K_b, and the maximum value K max of the light source color ratio K value is configured as the minimum value of the upper limit of the red light channel K value range K_r, the green light channel K value range K_g and the blue light channel K value range K_b. 4.The method of color calibration applied to an RGBW lamp bead according to claim 3, wherein, In S2, the adjustable range of the light source color proportion K value between the target color and the original RGBW lamp bead is calculated, further comprising the following steps: S25: based on the XYZ chromaticity coordinate parameters of the original RGBW lamp bead and the XYZ chromaticity coordinate parameters of the target color, a color gamut triangle is constructed, and the adjustable range of the light source color proportion K value is secondarily optimized by geometric calculation. 5.The method of color calibration applied to RGBW lamp bead according to claim 4, characterized in that, The second optimization of the adjustable range of the light source color proportion K value by geometric calculation in S25 includes the following steps: S251: a color gamut triangle is constructed based on the red, green and blue RGB three primary colors in the original RGBW lamp bead, and a geometric line WT from the white light point W to the target color light point T is determined; When the target color light point T is located outside the color gamut triangle, the effective intersection points of the geometric line WT and the boundaries of the color gamut triangle are calculated, wherein: For the red-green light color gamut boundary RG, the intersection point P_rg of the geometric line WT and the red-green light color gamut boundary RG is solved; for the green-blue light color gamut boundary GB, the intersection point P_gb of the geometric line WT and the green-blue light color gamut boundary GB is solved; for the blue-red light color gamut boundary BR, the intersection point P_br of the geometric line WT and the blue-red light color gamut boundary BR is solved; S252: the geometric line WP from the white light point W to the only intersection point P_rg, the intersection point P_gb or the intersection point P_br is determined, the light source color proportion K value corresponding to the effective intersection point P_rg, the intersection point P_gb or the intersection point P_br is calculated, and the calculation expression is: K=|WP| / |WT|×sign Wherein, sign is the positional relationship of the intersection point P_rg, the intersection point P_gb or the intersection point P_br relative to the geometric line WT; Obtaining the maximum and effective actual light source color ratio K value k max , based on the light source color ratio K value k max , the adjustable range of the light source color ratio K value (K min , K max ) is optimized twice, and the adjustable range of the light source color ratio K value is corrected to [K min , min(K max , k max )]. 6.The method of color calibration applied to an RGBW lamp bead according to claim 5, wherein, In S3, the mixed calibration color of the original RGBW lamp bead after adjustment under the target proportion adjustment coefficient K_scan is calculated, including the following steps: S31: based on the adjustable range of the light source color proportion K value, the target proportion adjustment coefficient K_scan is selected according to the preset proportion, and the calculation expression of the light source color mixing equation is: Target=K_scan×RGB_mix+(1-K_scan)×W The light source color mixing equation is expanded into red, green and blue RGB component form: R_mix=(R_target-(1-K_scan)×R_w) / K_scan; G_mix=(G_target-(1-K_scan)×G_w) / K_scan; B_mix=(B_target-(1-K_scan)×B_w) / K_scan; S32: the red, green and blue RGB components in the original RGBW lamp bead are normalized, and the relative proportion of the red, green and blue RGB three primary colors in the original RGBW lamp bead is: sum_RGB=R_mix+G_mix+B_mix The normalized proportion is: R_ratio=R_mix / sum_RGB; G_ratio=G_mix / sum_RGB; B_ratio=B_mix / sum_RGB.

7. The color calibration method applied to the RGBW lamp bead according to claim 6, wherein, In S3, the mixed calibration color of the original RGBW lamp bead after adjustment under the target proportion adjustment coefficient K_scan is calculated, further including the following steps: S33: Calculate the driving coefficient Dr of red light, the driving coefficient Dg of green light, the driving coefficient Db of blue light and the driving coefficient Dw of white light in the original RGBW lamp bead, wherein: Dr=R_ratio×K_scan×n Dg=G_ratio×K_scan×n Db=B_ratio×K_scan×n Dw=(1-K_scan)×n Wherein, n is the hardware driving scaling factor of RGBW lamp bead. 8.The method of color calibration applied to an RGBW lamp bead according to claim 7, wherein, In S3, the mixed calibration color of the original RGBW lamp bead adjusted under the target proportion adjustment coefficient K_scan is calculated, further comprising the following steps: S34: Calculate the mixed calibration color of the original RGBW lamp bead adjusted under the target proportion adjustment coefficient K_scan, and the calculation expression of the RGBW lamp bead mixed calibration color is: C_calc=Dr×R+Dg×G+Db×B+Dw×W Wherein, R is the red channel reference spectrum characteristic vector in RGBW lamp bead, G is the green channel reference spectrum characteristic vector in RGBW lamp bead, B is the blue channel reference spectrum characteristic vector in RGBW lamp bead, and W is the white channel reference spectrum characteristic vector in RGBW lamp bead. 9.The method of color calibration applied to an RGBW lamp bead according to claim 8, wherein, In S4, the light source color of RGBW lamp bead is iteratively adjusted until the light source color of RGBW lamp bead and the target color are below the color difference threshold, comprising the following steps: S41: According to the preset proportion, the target proportion adjustment coefficient K_scan is selected based on the adjustable range of the light source color proportion K value, and the mixed light source output color of RGBW lamp bead is iteratively adjusted.

10. A color calibration system applied to an RGBW lamp bead, characterized in that, The application for the color calibration method applied to the RGBW lamp bead as claimed in any one of claims 1-9, comprising: A color parameter input module for obtaining the XYZ chromaticity coordinate parameters of the original RGBW lamp bead and the XYZ chromaticity coordinate parameters of the target color; An adjustment proportion calculation module for calculating the adjustable range of the light source color proportion K value between the target color and the original RGBW lamp bead according to the light source color mixing relationship of the original RGBW lamp bead; A calibration color calculation module for selecting the target proportion adjustment coefficient K_scan within the adjustable range of the light source color proportion K value, and calculating the mixed calibration color of the original RGBW lamp bead adjusted under the target proportion adjustment coefficient K_scan; A light source parameter iteration module for iteratively adjusting the light source color of RGBW lamp bead until the light source color of RGBW lamp bead and the target color are below the color difference threshold.