Color space management method and system for multi-primary color LED lamps with multiple lamp beads
By collecting the spectral data and grayscale brightness curve of each LED lamp bead, constructing a linear programming equation group and a sequential quadratic programming algorithm, and optimizing the PWM value, the color consistency problem of the lamp beads in multi-primary color LED lamps is solved, and efficient color management and color rendering index improvement are achieved, which is suitable for demanding scenes such as stage lighting.
Patent Information
- Application Number
- CN202510498224.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-04-21
AI Technical Summary
During the production process, existing multi-primary color LED lamps have color consistency defects among different lamp beads in the same lamp due to individual differences in LED chips and precision limitations of the spectroscopic and color separation processes. In particular, the color difference problem is prominent within the viewing angle range in the application scenario of moving head lights. Existing color management technology fails to effectively address the individual differences in lamp beads, resulting in uneven distribution of color temperature and color rendering index.
By collecting the spectral data and grayscale brightness curve of each LED lamp bead, constructing a linear programming equation system and a sequential quadratic programming algorithm, optimizing the PWM value of each lamp bead, and combining the CIE1931 physical coordinate system for color correction, we achieve lamp-bead-level color consistency management, eliminate individual differences, and optimize the color rendering index and power utilization.
It achieves color consistency and accuracy of multi-primary color LED lamps in different application scenarios, improves color rendering index, improves power utilization, avoids overload risks, and meets the color consistency and reliability requirements of demanding scenes such as stage lighting.
Smart Images

Figure CN120091473B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of novel lighting technology, and in particular to a method and system for managing color consistency of a multi-bead, multi-primary-color LED lamp. Background Art
[0002] Existing stage lighting equipment generally uses multi-primary color LED lamps (such as RGBW and other four primary colors or more) to achieve complex color rendering. However, due to individual differences in LED chips, precision limitations of spectroscopic and color separation processes, and assembly errors during the production process, the finished lamps have significant color consistency defects. Specifically, different lamp beads in the same lamp emit light with the same driving signal, and there are obvious deviations in the color coordinates and brightness. Especially in the application scenario of a single controllable moving head light, the color difference problem within the viewing angle range is more prominent.
[0003] Although the mainstream color management technology currently on the market can calculate color parameters by collecting spectral data from all the lamp beads in a single lamp, it does not distinguish the individual characteristics of each lamp bead and only performs color compensation on the lamp as a whole. This can easily lead to non-uniform distribution of color temperature and color rendering index in different areas of the same lamp. Therefore, there is a defect that the color management effect of LED multi-primary color lamps is poor, and there is room for improvement. Summary of the Invention
[0004] In order to improve the color management effect of multi-primary color LED lamps with multiple lamp beads, the present application provides a color space management method and system for multi-primary color LED lamps with multiple lamp beads.
[0005] In the first aspect, the invention objectives of this application are achieved by adopting the following technical solutions:
[0006] The color space management method of a multi-primary color LED lamp with multiple lamp beads includes:
[0007] Collect the spectrum data of the maximum brightness of each LED lamp bead in the LED lamp at different colors, calculate the tristimulus value of each lamp bead and store it;
[0008] The grayscale brightness curve of each lamp bead is collected through the DXM control signal, and an independent grayscale compensation table corresponding to each lamp bead is generated; the target chromaticity coordinates are converted to the CIE1931 physical coordinate system; a linear programming equation system is constructed based on the color conversion coefficients, and the maximum brightness PWM duty cycle of each lamp bead at the target coordinate is calculated in combination with the three stimulus values to obtain the target PWM value of each lamp bead;
[0009] Based on the maximum power parameters of each color channel and the total power limit value of the LED lamp, a sequential quadratic programming algorithm combined with a fitness-based objective function is used to optimize the target coordinate display index of each lamp bead to obtain the optimized PWM value;
[0010] The lamp storage parameters of the LED lamp are updated based on the optimized PWM value.
[0011] By adopting the above technical solution, the present application provides a color consistency management technology solution for multi-primary color LED lamps with multiple lamp beads. It is different from the existing technology that adopts overall color data collection and ignores the color differences between lamp beads in the same lamp. When there are differences in the colors of different lamp beads in the same lamp, it is difficult to accurately manage the color space of the multi-primary color LED lamp with multiple lamp beads. Therefore, the present application adopts a technical solution of single lamp bead level color correction plus dynamic optimization of color rendering index to improve the color management effect of multi-primary color LED lamps with multiple lamp beads; specifically, by independently collecting the three stimulus values (X, Y, Z) and grayscale brightness curve of each LED lamp bead, the inherent differences between single lamp beads are eliminated, the problem of visual color difference of different lamp beads in the same lamp is solved, and individual differences and visual color difference phenomena are eliminated; significantly It is superior to the correction method in the existing technology that takes the lamp as the unit; in order to ensure the full color space consistency of multi-primary color LED lamps; this application is based on the linear programming correction of the CIE physical coordinate system, combined with the optimization of the main lamp beads of the target chromaticity coordinates (x, y), the color coordinates of the lamp at any color mixing ratio deviate from the target value by <1%, covering the full color space (such as the RGBWW four-primary color mixing color gamut), and at the same time adopts the sequential quadratic programming (SQP) algorithm to optimize the color rendering index under power limitation (such as P_max = 300W), which is beneficial to improving power utilization; at the same time, through the optimization and adjustment of the PWM value, it can realize the compensation for the light decay and temperature drift of each lamp bead, and realize the aging tracking and dynamic calibration of the multi-primary color LED lamp beads, which is beneficial to meet the color consistency, color rendering performance and reliability requirements of harsh scenes such as stage lighting, film and television production.
[0012] In a preferred embodiment of the present application, the method includes:
[0013] The target chromaticity coordinates are converted into the CIE1931 physical coordinate system, and the conversion formula is:
[0014] X / (X+Y+Z)=x, Y / (X+Y+Z)=y;
[0015] The constructed linear programming equations, the target PWM value x of each lamp bead i :
[0016]
[0017] Among them, X, Y, Z are the tristimulus values XYZ; x, y are the CIE1931 physical coordinate system (x, y); i is the number of colors; x i N is the PWM duty cycle of the LED (0 to 1), which controls the LED brightness output; lampA is the total number of LED lamp beads in the lamp; 1i 、A 2i It is the chromaticity conversion coefficient of the lamp bead.
[0018] By adopting the above technical solution and converting the target chromaticity coordinates into the CIE1931 physical coordinate system, the color performance of LED lamps can be accurately represented and controlled to ensure color consistency and accuracy in different application scenarios.
[0019] In a preferred example of the present application, the construction of the linear programming equation system includes:
[0020] Convert the CIE1931 physical coordinate system (x, y) into a linear equation to construct the constraint coefficient matrix: Xx*(X+Y+Z)=0,
[0021] Yy*(X+Y+Z)=0;
[0022] Construct the linear programming system of equations:
[0023] max Y l =∑(Y i *x i )
[0024] ∑(x i *(X i -x*(X i +Y i +Z i )))=0
[0025] ∑(x i *(Y i -y*(X i +Y i +Z i )))=0
[0026] 0≤x i ≤1;
[0027] Among them, Y l To maximize the brightness under the chromaticity constraint; X i 、Y i and Z i are the X, Y, and Z components of the three stimulus values of each color;
[0028] The linear programming equation is converted into a linear programming standard form suitable for a multi-lamp LED lamp based on a preset objective function.
[0029] By adopting the above technical solution, based on the constructed linear programming equations and converting them into a standard type suitable for LED lamps with multiple lamp beads, it is possible to accurately calculate the optimal PWM value for each lamp bead in a mathematical way, thereby achieving fine control of the brightness and color output of the lamp; this application is based on optimization under the constraints of maximizing brightness and chromaticity, not only considering the requirements of color accuracy, but also pursuing the maximization of brightness output while meeting these requirements, thereby improving the overall performance of the LED lamp.
[0030] In a preferred embodiment of the present application, the conversion of the linear programming equation into a linear programming standard form applicable to a multi-bead LED lamp based on a preset objective function includes:
[0031] Preset objective function Z tar is: min Z tar =-∑(C i *x i ), the negative sign indicates minimizing negative contributions;
[0032]
[0033] Among them, C i For color brightness, directly use the Y component of the tristimulus value of each color.
[0034] By adopting the above technical solution, the present application ensures that the lamp can provide consistent color output even under different operating conditions by minimizing negative contribution (equivalent to maximizing color consistency), which is crucial for applications requiring high color consistency (such as stage lights).
[0035] In a preferred example of the present application, the sequential quadratic programming algorithm is combined with a fitness-based objective function to optimize the target coordinate display index of each lamp bead, including:
[0036] The sequential quadratic programming algorithm is combined with the fitness-based objective function as follows:
[0037]
[0038] Among them, f is the objective function value based on fitness; cri ra is the color rendering index Ra value of the current PWM output; W is the optimization weight; cri r9 is the red color rendering index R9 value of the current PWM output; penalty is the power over limit penalty;
[0039] The power calculation formula is:
[0040] p=∑(pwm×color p )
[0041] Where P is the total output power; pwm is the PWM duty cycle of each color channel; color p is the maximum power of each color channel.
[0042] By adopting the above technical solution, combined with the SQP algorithm and penalty terms, the global optimization of color rendering, power consumption and stability is achieved. Specifically, the sequential quadratic programming algorithm is adopted, and combined with the fitness-based objective function for optimization. Not only does it take into account the importance of the color rendering index Ra and the red color rendering index R9, but it also introduces a power over-limit penalty term to ensure that the total output power does not exceed the limit, which helps to improve the energy efficiency of LED lamps while ensuring color quality and avoiding overload risks. At the same time, the power calculation formula is used to accurately control the power consumption of each color channel, ensuring color quality while achieving energy saving effects.
[0043] In a preferred example of the present application, the calculation formula of the power overlimit penalty term is:
[0044] penalty=max(0,P max -p / max diff )
[0045] Among them, max() is a function that returns the maximum value; P max The maximum output power allowed; max diff is the penalty factor, when p is less than P max Punishment is imposed when necessary.
[0046] By adopting the above technical solution, the total output power can be effectively prevented from exceeding the maximum allowable value, avoiding hardware damage caused by overload. It can also optimize the operating efficiency of the lamp and ensure the best color performance and brightness output within the power limit.
[0047] In a preferred embodiment of the present application, the calculation of the tristimulus values includes:
[0048] The spectral power distribution of each lamp bead is collected through a spectrometer;
[0049] The XYZ tristimulus values are calculated based on the CIE1931 standard chromaticity observer function. The formula is:
[0050]
[0051] Where k is a normalization constant; S(λ) represents the spectral power distribution of the LED lamp bead; is the color matching function.
[0052] By adopting the above technical solution, a spectrometer is used to collect the spectral power distribution of each lamp bead, and the XYZ tristimulus values are calculated based on the CIE1931 standard chromaticity observer function to obtain an accurate color representation method, thereby facilitating accurate adjustment of the brightness and color of each lamp bead based on the actual measurement data.
[0053] In the second aspect, the invention objective of this application is achieved by adopting the following technical solutions:
[0054] A color space management system for a multi-lamp bead multi-primary color LED lamp is used to execute the color space management method for the multi-lamp bead multi-primary color LED lamp as described above, and the system includes:
[0055] The spectrum data acquisition module is used to collect the spectrum data of the maximum brightness of each LED lamp bead in the LED lamp at different colors and calculate the tristimulus value of each lamp bead;
[0056] Grayscale brightness curve acquisition module obtains the grayscale brightness curve of each lamp bead through the DXM control signal and generates an independent grayscale compensation table;
[0057] Chromaticity coordinate conversion module, converting the target chromaticity coordinates into the CIE1931 physical coordinate system;
[0058] The PWM duty cycle calculation module constructs a linear programming equation system based on the color conversion coefficient and calculates the target PWM value of each lamp bead in combination with the three stimulus values;
[0059] The PWM value optimization module uses a sequential quadratic programming algorithm and a fitness-based objective function to optimize the target PWM value of each lamp bead based on the maximum power parameters of the color channel and the total power limit of the LED lamp to obtain the optimized PWM value;
[0060] A parameter updating module is used to update the stored parameters of the LED lamp based on the optimized PWM value.
[0061] By adopting the above technical solution, the entire process of LED lamp color control is covered, from spectral data acquisition to PWM value optimization and updating. The PWM duty cycle calculation module constructs a linear programming equation system based on the color conversion coefficient and combines the three stimulus values to calculate the target PWM value of each lamp bead. It can accurately adjust the brightness output of each lamp bead to achieve the desired color effect. The PWM value optimization module takes into account the maximum power parameters of the color channel and the total power limit of the LED lamp. It uses a sequential quadratic programming algorithm and a fitness-based objective function to optimize the target PWM value of each lamp bead. It can maximize the overall performance of the lamp while meeting color requirements and avoiding the risk of overload.
[0062] In a third aspect, the invention objective of this application is achieved by adopting the following technical solutions:
[0063] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the color space management method for the multi-lamp bead multi-primary color LED lamp.
[0064] Fourthly, the invention objectives of this application are achieved by adopting the following technical solutions:
[0065] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the color space management method for a multi-lamp bead multi-primary color LED lamp as described above.
[0066] In summary, this application includes at least one of the following beneficial technical effects:
[0067] 1. By combining the tristimulus values to calculate the target PWM value for each lamp bead, the brightness output of each lamp bead can be precisely adjusted to achieve the desired color effect. Taking into account the maximum power parameters of the color channel and the total power limit of the LED lamp, a sequential quadratic programming algorithm and a fitness-based objective function are used to optimize the target PWM value of each lamp bead, which can maximize the overall performance of the lamp while meeting color requirements.
[0068] 2. By introducing a power over-limit penalty item to ensure that the total output power does not exceed the limit, it helps to improve the energy efficiency of LED lamps while ensuring color quality and avoiding overload risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 This is a flow chart of a color space management method for a multi-primary color LED lamp with multiple lamp beads in one embodiment of the present application;
[0070] Figure 2 This is an example diagram of a multi-lamp bead lamp before color optimization in a color space management method for a multi-primary color LED lamp with multiple lamp beads in one embodiment of the present application;
[0071] Figure 3 This is an example diagram of a multi-lamp bead lamp after color optimization in a color space management method for a multi-primary color LED lamp with multiple lamp beads in one embodiment of the present application;
[0072] Figure 4 yes Figure 2 and Figure 3 After the lamp beads are color optimized, Figure 2 An indicator diagram showing a more obvious optimization effect. DETAILED DESCRIPTION
[0073] The present application is further described in detail below with reference to the accompanying drawings.
[0074] In one embodiment, if Figure 1 As shown, the present application discloses a color space management method for a multi-primary color LED lamp with multiple lamp beads, which specifically includes the following steps:
[0075] S1: Collect the spectrum data of the maximum brightness of each LED lamp bead in the LED lamp at different colors, calculate the tristimulus value of each lamp bead and store it.
[0076] In this embodiment, a spectrometer with a resolution of ≥1 nm and a wavelength range of 380-780 nm is used to apply a maximum driving current (e.g., 350 mA) to each LED lamp bead in a darkroom environment, and its spectral power distribution S(λ) in the wavelength range of 380-780 nm is recorded.
[0077] Specifically, the XYZ tristimulus values are calculated based on the CIE 1931 standard chromaticity observer function, and the formula is:
[0078]
[0079] Where k is a normalization constant; S(λ) represents the spectral power distribution of the LED lamp bead; is the color matching function; λ is the wavelength. For example, when a spectrometer with a wavelength of 380-780 nm is used, the XYZ components of the XYZ tristimulus values are calculated as
[0080] Furthermore, the X of each lamp bead i , Y i , Z i The database associates each lamp bead with a unique identification code (such as SN number).
[0081] S2: Collect the grayscale brightness curve of each lamp bead through the DXM control signal and generate an independent grayscale compensation table corresponding to each lamp bead.
[0082] In this embodiment, DMX stands for Digital Multiplex, which is a communication protocol standard mainly used for signal transmission between different devices in stage lighting systems. The DXM control signal is the control signal used by the lighting controller to control the lamp beads. The grayscale brightness of each color LED is collected according to the DMX value. 256-level grayscale control instructions (0-100% brightness) are sent through the DMX512 protocol, the real-time brightness value of each lamp bead is recorded, and a piecewise polynomial fitting (such as cubic spline difference) is performed on the nonlinear brightness response to generate a grayscale brightness curve. An ideal grayscale brightness model is set (such as linear growth or gamma = 2.2 correction), and then a grayscale compensation coefficient is calculated, such as compensation coefficient = target grayscale brightness / current grayscale brightness curve value. Then, the compensation table (256×1 byte) of each lamp bead is burned into the EEPROM of the lighting driver chip.
[0083] S3: Convert the target chromaticity coordinates to the CIE1931 physical coordinate system; construct a linear programming equation system based on the color conversion coefficients, and calculate the target coordinate maximum brightness PWM duty cycle of each lamp bead in combination with the three stimulus values to obtain the target PWM value of each lamp bead.
[0084] In this embodiment, the color consistency calculation process is as follows: first, the input DMX value is converted into CIE1931 xy physical coordinates according to the coordinate parameters of each color set in the lamp; then the target chromaticity coordinates are converted into the CIE1931 physical coordinate system. The conversion formula is:
[0085] X / (X+Y+Z)=x, Y / (X+Y+Z)=y;
[0086] The constructed linear programming equations, the target PWM value x of each lamp bead i :
[0087]
[0088] Among them, X, Y, Z are the tristimulus values XYZ; x, y are the CIE1931 physical coordinate system (x, y); i is the number of colors; x i N is the PWM duty cycle of the LED (0 to 1), which controls the LED brightness output; lamp A is the total number of LED lamp beads in the lamp; 1i 、A 2i It is the chromaticity conversion coefficient of the lamp bead.
[0089] For example, for an RGB+WW four-color stage light, there are four coordinate parameters and four DMX values. The program inside the lamp traverses every two coordinate points respectively. If the ratio of the two coordinate points corresponding to the DMX is 1 (maximum value), the midpoint of the two coordinates is returned. If the ratio is 1:0.5, the position 0.75 close to the maximum value is returned.
[0090] Specifically, the target chromaticity coordinates are converted to the CIE1931 physical coordinate system, and the conversion formula is: X / (X+Y+Z)=x, Y / (X+Y+Z)=y;
[0091] Substitute the converted target chromaticity coordinates into the constructed linear programming equations to obtain the returned duty cycle, which is finally output to the LED lamp beads.
[0092] The constructed linear programming equations, the target PWM value x of each lamp bead i :
[0093]
[0094] Among them, X, Y, Z are the tristimulus values XYZ; x, y are the CIE1931 physical coordinate system (x, y); i is the number of colors; x i N is the PWM duty cycle of the LED (0 to 1), which controls the LED brightness output; lamp A is the total number of LED lamp beads in the lamp; 1i 、A 2i It is the chromaticity conversion coefficient of the lamp bead.
[0095] In this embodiment, a linear programming equation system is constructed, including:
[0096] Convert the CIE1931 physical coordinate system (x, y) into a linear equation to construct the constraint coefficient matrix:
[0097] Xx*(X+Y+Z)=0,
[0098] Yy*(X+Y+Z)=0;
[0099] The constructed linear programming equations are:
[0100] max Y l =∑(Y i *x i )
[0101] ∑(x i *(X i -x*(X i +Y i +Z i )))=0
[0102] ∑(xi *(Y i -y*(X i +Y i +Z i )))=0
[0103] 0≤x i ≤1;
[0104] Among them, Y l To maximize the brightness under the chromaticity constraint; X i 、Y i and Z i They are the X, Y, and Z components of the three stimulus values of each color.
[0105] Based on the preset objective function, the linear programming equation is converted into a linear programming standard form suitable for LED lamps with multiple lamp beads.
[0106] Specifically, based on the preset objective function, the linear programming equation is converted into a linear programming standard form suitable for LED lamps with multiple lamp beads, including:
[0107] Preset objective function Z tar is: min Z tar =-∑(C i *x i ), the negative sign indicates minimizing negative contributions; equivalent to maximizing color consistency;
[0108]
[0109] Among them, C i For color brightness, directly use the Y component of the tristimulus value of each color.
[0110] S4: Based on the maximum power parameters of each color channel and the total power limit value of the LED lamp, the sequential quadratic programming algorithm is combined with the fitness-based objective function to optimize the target coordinate display index of each lamp bead to obtain the optimized PWM value.
[0111] In this embodiment, the high CRI color temperature PWM of each lamp bead is calculated according to the required color temperature range, that is, the sequential quadratic programming algorithm (also known as the SQP algorithm) is combined with the objective function based on fitness as follows:
[0112]
[0113] Among them, f is the objective function value based on fitness; cri ra is the color rendering index Ra value of the current PWM output; cri r9 is the red color rendering index R9 value of the current PWM output; W is the optimization weight; penalty is the power overlimit penalty item.
[0114] The calculation formula for the power overlimit penalty term is:
[0115] penalty=max(0,P max -p / max diff )
[0116] Among them, max() returns the maximum value function; P max The maximum output power allowed; max diff is the penalty factor, when p is less than P max Punishment is imposed when necessary.
[0117] For example, the actual power of each color is input into the host computer of the lamp, and the output power needs to be limited.
[0118] Assume that in the RGBW four-color stage light: R = 60W, G = 120W, B = 120W, W = 200W. The total power is equal to the sum of all color powers P max =60+120+120+200=500W, the limit power = 300W, and the maximum allowable power margin error is equal to the total power minus the limit power, 500–300=200W.
[0119] The power calculation formula is:
[0120] p=∑(pwm×color p )
[0121] Where P is the total output power; pwm is the PWM duty cycle of each color channel; color p is the maximum power of each color channel; if the final power is greater than the limit power, the penalty value penalty becomes larger to limit the final output power to the required range.
[0122] S5: Updating the stored lamp parameters of the LED lamp based on the optimized PWM value.
[0123] Specifically, the optimized PWM value x i Write the driver IC register (such as 0x00-0x1F address) in the form of 16-bit integer; the firmware update method is to use I 2 C or SPI interface to batch burn parameters to multiple LED controllers.
[0124] Reference Figures 2 to 4 , Figure 3 This is an example diagram of the effect obtained by using the color space management method of the multi-lamp multi-primary color LED lamp of the present application to optimize the color space of the multi-lamp multi-primary color LED lamp (i.e., after grayscale compensation, consistency calculation and CRI optimization); Figure 2This is an example of the color rendering of the lamp before color space optimization; in order to facilitate the observation of the color space management effect of this application; Figure 4 This application is aimed at Figure 2 and Figure 3 The lamp beads with more obvious optimization effects are indicated by arrows. Figure 4 is Figure 2 The application can eliminate individual differences through the grayscale compensation table and avoid the color spot problem of traditional batch correction; at the same time, dynamically adjust the PWM value to ensure the total power.
[0125] For example, three RGB LEDs are mixed, the target chromaticity coordinates are (x=0.32, y=0.33), and the total power is limited to 2W.
[0126] The data collection results before optimization are: red LED: X = 12.5, Y = 4.2, Z = 0.8; green LED: X = 2.3, Y = 15.6, Z = 1.9; blue LED: X = 0.8, Y = 1.2, Z = 7.5.
[0127] The optimization result is: Target PWM value: x red =0.45,x green =0.35,x blue =0.20. Actual chromaticity: (x=0.319, y=0.331), total power 1.98W, Ra=92, R9=85.
[0128] Before optimization, the color difference Δu′v′=0.015 and R9=68. After optimization, the color difference is reduced to 0.003 and R9 is increased by 25%.
[0129] It should be understood that the serial numbers of the steps in the above embodiments do not imply the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0130] In one embodiment, a color space management system for a multi-lamp-bead multi-primary-color LED lamp is provided. The color space management system for the multi-lamp-bead multi-primary-color LED lamp corresponds to the color space management method for the multi-lamp-bead multi-primary-color LED lamp in the above embodiment.
[0131] The color space management system for multi-bead, multi-primary color LED lamps includes a spectrum data acquisition module, a grayscale brightness curve acquisition module, a chromaticity coordinate conversion module, a PWM duty cycle calculation module, a PWM value optimization module, and a parameter update module. Detailed descriptions of each functional module are as follows:
[0132] The spectrum data acquisition module is used to collect the spectrum data of the maximum brightness of each LED lamp bead in the LED lamp at different colors and calculate the tristimulus value of each lamp bead;
[0133] Grayscale brightness curve acquisition module obtains the grayscale brightness curve of each lamp bead through the DXM control signal and generates an independent grayscale compensation table;
[0134] Chromaticity coordinate conversion module, converting the target chromaticity coordinates into the CIE1931 physical coordinate system;
[0135] The PWM duty cycle calculation module constructs a linear programming equation system based on the color conversion coefficient and calculates the target PWM value of each lamp bead in combination with the three stimulus values;
[0136] The PWM value optimization module uses a sequential quadratic programming algorithm and a fitness-based objective function to optimize the target PWM value of each lamp bead based on the maximum power parameters of the color channel and the total power limit of the LED lamp to obtain the optimized PWM value;
[0137] The parameter update module is used to update the stored parameters of the LED lamp based on the optimized PWM value.
[0138] Regarding the specific limitations of the color space management system of multi-lamp multi-primary color LED lamps, please refer to the limitations of the color space management method of multi-lamp multi-primary color LED lamps above, which will not be repeated here; the various modules in the above-mentioned color space management system of multi-lamp multi-primary color LED lamps can be implemented in whole or in part through software, hardware and their combination; the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0140] S1: Collect the spectrum data of the maximum brightness of each LED lamp bead in the LED lamp at different colors, calculate the tristimulus value of each lamp bead and store it;
[0141] S2: Collect the grayscale brightness curve of each lamp bead through the DXM control signal and generate an independent grayscale compensation table corresponding to each lamp bead;
[0142] S3: Convert the target chromaticity coordinates to the CIE1931 physical coordinate system; construct a linear programming equation system based on the color conversion coefficients, and calculate the target coordinate maximum brightness PWM duty cycle of each lamp bead in combination with the three stimulus values to obtain the target PWM value of each lamp bead;
[0143] S4: Based on the maximum power parameters of each color channel and the total power limit value of the LED lamp, a sequential quadratic programming algorithm is used in combination with a fitness-based objective function to optimize the target coordinate display index of each lamp bead to obtain the optimized PWM value;
[0144] S5: Updating the stored lamp parameters of the LED lamp based on the optimized PWM value.
[0145] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0146] In one embodiment, particularly according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product comprising a computer program / instructions that, when executed by a processor, implements the steps of the color space management method for a multi-bead, multi-primary-color LED lamp as described above. In such an embodiment, the computer program can be downloaded and installed from a network via a communication module and / or installed from a removable medium. When executed by a central processing unit (CPU), the computer program performs the various functions defined in the present invention.
[0147] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0148] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may still be modified, or some of the features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A color space management method for a multi-primary color LED lamp with multiple lamp beads, characterized in that: include: Collect the spectrum data of the maximum brightness of each LED lamp bead in the LED lamp at different colors, calculate the tristimulus value of each lamp bead and store it; The grayscale brightness curve of each lamp bead is collected through the DMX control signal, and an independent grayscale compensation table corresponding to each lamp bead is generated; Convert the target chromaticity coordinates into the CIE1931 physical coordinate system; Construct a linear programming equation group based on the color conversion coefficient, and calculate the target coordinate maximum brightness PWM duty cycle of each lamp bead in combination with the three stimulus values to obtain the target PWM value of each lamp bead; Based on the maximum power parameters of each color channel and the total power limit value of the LED lamp, a sequential quadratic programming algorithm combined with a fitness-based objective function is used to optimize the target coordinate display index of each lamp bead to obtain the optimized PWM value; Updating lamp storage parameters of the LED lamp based on the optimized PWM value; The sequential quadratic programming algorithm is combined with the fitness-based objective function to optimize the target coordinate display index of each lamp bead, including: The sequential quadratic programming algorithm is combined with the fitness-based objective function as follows: Among them, f is the objective function value based on fitness; cri ra is the color rendering index Ra value of the current PWM output; cri r9 is the red color rendering index R9 value of the current PWM output; W is the optimization weight; penalty is the power over-limit penalty; The power calculation formula is: p=∑(pwm×color p ) Where P is the total output power; pwm is the PWM duty cycle of each color channel; color p is the maximum power of each color channel; The calculation formula of the power overlimit penalty term is: penalty=max(0,P max -p / max diff ) Among them, max() is a function that returns the maximum value; P max The maximum output power allowed; max diff is the penalty factor, when p is less than P max Punishment is imposed when necessary.
2. The color space management method for a multi-primary color LED lamp with multiple lamp beads according to claim 1, characterized in that: The method comprises: The target chromaticity coordinates are converted into the CIE1931 physical coordinate system, and the conversion formula is: X / (X+Y+Z)=x, Y / (X+Y+Z)=y; The constructed linear programming equations, the target PWM value x of each lamp bead i : Among them, X, Y, Z are the tristimulus values XYZ; x, y are the CIE1931 physical coordinate system (x, y); i is the number of colors; x i N is the PWM duty cycle of the LED, which is 0 to 1 and controls the LED brightness output; lamp A is the total number of LED lamp beads in the lamp; 1i 、A 2i It is the chromaticity conversion coefficient of the lamp bead.
3. The color space management method for a multi-primary color LED lamp with multiple lamp beads according to claim 2, characterized in that: The construction of the linear programming equations includes: Convert the CIE1931 physical coordinate system (x, y) into a linear equation to construct the constraint coefficient matrix: Xx*(X+Y+Z)=0, Yy*(X+Y+Z)=0; Construct the linear programming system of equations: max Y l =∑(Y i *x i ) ∑(x i *(X i -x*(X i +Y i +Z i )))=0 ∑(x i *(AND i -and * (X i +Y i +Z i )))=0 0≤x i ≤1; Among them, Y l To maximize the brightness under the chromaticity constraint; X i 、Y i and Z i are the X, Y, and Z components of the three stimulus values of each color; The linear programming equation is converted into a linear programming standard form suitable for a multi-lamp LED lamp based on a preset objective function.
4. The color space management method for a multi-primary color LED lamp with multiple lamp beads according to claim 3, characterized in that: The method of converting the linear programming equation into a linear programming standard form applicable to a multi-lamp LED lamp based on a preset objective function includes: Preset objective function Z tar is: min Z tar =-∑(C i *x i ), the negative sign indicates minimizing negative contributions; Among them, C i For color brightness, directly use the Y component of the tristimulus value of each color.
5. The color space management method for a multi-primary color LED lamp with multiple lamp beads according to claim 1, characterized in that: The calculation of the tristimulus values includes: The spectral power distribution of each lamp bead is collected through a spectrometer; The XYZ tristimulus values are calculated based on the CIE1931 standard chromaticity observer function. The formula is: Where k is a normalization constant; S(λ) represents the spectral power distribution of the LED lamp bead; is the color matching function.
6. The color space management system of multi-bead multi-primary color LED lamps is characterized by: A method for color space management of a multi-primary color LED lamp with multiple lamp beads according to any one of claims 1 to 5, the system comprising: The spectrum data acquisition module is used to collect the spectrum data of the maximum brightness of each LED lamp bead in the LED lamp at different colors and calculate the tristimulus value of each lamp bead; Grayscale brightness curve acquisition module obtains the grayscale brightness curve of each lamp bead through DMX control signal and generates an independent grayscale compensation table; Chromaticity coordinate conversion module, converting the target chromaticity coordinates into the CIE1931 physical coordinate system; The PWM duty cycle calculation module constructs a linear programming equation system based on the color conversion coefficient and calculates the target PWM value of each lamp bead in combination with the three stimulus values; The PWM value optimization module uses a sequential quadratic programming algorithm and a fitness-based objective function to optimize the target PWM value of each lamp bead based on the maximum power parameters of the color channel and the total power limit of the LED lamp to obtain the optimized PWM value; a parameter updating module, configured to update stored parameters of the LED lamp based on the optimized PWM value; The sequential quadratic programming algorithm is combined with the fitness-based objective function to optimize the target coordinate display index of each lamp bead, including: The sequential quadratic programming algorithm is combined with the fitness-based objective function as follows: Among them, f is the objective function value based on fitness; cri ra is the color rendering index Ra value of the current PWM output; cri r9 is the red color rendering index R9 value of the current PWM output; W is the optimization weight; penalty is the power over-limit penalty; The power calculation formula is: p=∑(pwm×color p ) Where P is the total output power; pwm is the PWM duty cycle of each color channel; color p is the maximum power of each color channel; The calculation formula of the power overlimit penalty term is: penalty=max(0,P max -p / max diff ) Among them, max() is a function that returns the maximum value; P max The maximum output power allowed; max diff is the penalty factor, when p is less than P max Punishment is imposed when necessary.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the color space management method of the multi-lamp bead multi-primary color LED lamp according to any one of claims 1 to 5 are implemented.
8. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the color space management method of the multi-lamp bead multi-primary color LED lamp as claimed in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
RGB atmosphere lamp light color control method and system
CN115866837A
Atmosphere lamp equipment, white balance calibration method thereof, corresponding device and medium
CN118695428A