A method, device, equipment and medium for adjusting color temperature of dual-primary color mixed light
By determining the color mixing ratio parameters using the vertical projection method and projective transformation relationship in a specified color space, the problem of accurate calculation in color temperature adjustment of dual-primary-color LED mixing system is solved, achieving efficient and stable color temperature control, which is suitable for embedded devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NINGBO PREH JOYSON AUTOMOTIVE ELECTRONICS
- Filing Date
- 2026-03-23
- Publication Date
- 2026-07-14
AI Technical Summary
Existing dual-color LED mixing systems cannot accurately calculate the target color temperature when adjusting the color temperature, and they are not robust to temperature drift, aging, and individual differences of LED devices, making it difficult to maintain color temperature accuracy and achieve automated control.
By obtaining the chromaticity coordinates of the primary color light source and the chromaticity coordinates of the target color temperature, the color mixing ratio parameters are determined in the specified color space using the vertical projection method, and then mapped to the CIE-XYZ space based on the projective transformation relationship. The duty cycle of the primary color light source is then calculated to achieve color temperature adjustment.
It reduces computational complexity, improves the accuracy and stability of color temperature adjustment, is suitable for embedded devices, achieves fast-response color temperature control, maintains consistency between brightness and color temperature, and has a simple structure and low cost.
Smart Images

Figure CN121908422B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lighting technology, specifically to a method, apparatus, device, and medium for adjusting the color temperature of dual-primary-color mixing. Background Technology
[0002] With the rapid growth in demand for adjustable correlated color temperature (CCT) lighting, light mixing technology based on multi-color light-emitting diodes (LEDs) has been widely applied in architectural lighting, lighting technology, and health lighting. To obtain different color temperatures, it is usually necessary to adjust the driving duty cycle of different primary color LEDs so that the color point of the mixed light is as close as possible to the ideal position corresponding to the target correlated color temperature.
[0003] Currently, dual-primary-color LED mixing systems commonly employ offline testing and duty cycle recording to adjust color temperature in practical applications. This means that during the debugging process, the dual-primary-color LED mixing system approximates the target color temperature through continuous experimentation, and then fixes the corresponding channel duty cycle for subsequent control. However, this method of color temperature adjustment does not rely on real-time calculation of the dual-primary-color ratio based on the target color temperature, making it impossible to accurately calculate based on dynamically changing target color temperatures. Furthermore, the dimming process heavily depends on manual experience, making automated control difficult. More importantly, this method of color temperature adjustment lacks robustness to LED device temperature drift, aging, and individual device differences. Once the LED device's condition changes, the preset duty cycle often fails to maintain the original color temperature accuracy.
[0004] In the industry, some dual-color LED mixing systems adjust color temperature using empirical formulas to derive the dual-channel ratio. However, empirical models can typically only adjust the CCT within a certain range and cannot effectively control the color deviation of the color point relative to the Planck locus. Because empirical formulas lack a rigorous foundation in color science, their applicability to different LED devices, driving conditions, and ambient temperatures is poor, making it difficult to guarantee consistent color temperature accuracy, and their generalization ability is also significantly limited.
[0005] Therefore, how to provide a color temperature adjustment method that is more suitable for dual-primary-color LED mixing systems is an important issue that the industry urgently needs to address. Summary of the Invention
[0006] In view of this, embodiments of the present invention provide a method, apparatus, device and medium for adjusting the color temperature of dual-primary-color mixing, thereby solving the problems that dual-primary-color LED mixing systems cannot accurately calculate the target color temperature according to dynamic changes when adjusting the color temperature, and that the preset duty cycle often fails to maintain the original color temperature accuracy, making it difficult to apply to actual engineering control.
[0007] According to a first aspect, embodiments of the present invention provide a method for adjusting the color temperature of dual-primary-color mixing, the method comprising:
[0008] Obtain the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space; the specified chromaticity space is the CIE-UV space.
[0009] Obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space;
[0010] The target chromaticity coordinates are vertically projected onto the straight line determined by the first and second chromaticity coordinates to obtain the projection point;
[0011] The first color mixing ratio parameter is determined based on the position of the projection point on the straight line; the first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in the specified color space.
[0012] Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter; the second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value.
[0013] Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively.
[0014] In conjunction with the first aspect, in the first embodiment of the first aspect, obtaining the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space specifically includes:
[0015] Under standard ambient temperature, determine the first maximum luminous power and the first tristimulus value of the first primary color light source, and determine the second maximum luminous power and the second tristimulus value of the second primary color light source;
[0016] Based on the first and second tristimulus values of the first and second primary color light sources in the CIE-XYZ space, respectively, the first and second tristimulus values are converted to the CIE-xyY space to obtain the chromaticity coordinates of the first primary color light source in the CIE-xyY space and the chromaticity coordinates of the second primary color light source in the CIE-xyY space.
[0017] The chromaticity coordinates of the first and second primary color light sources in the CIE-xyY space are transformed to the specified chromaticity space to obtain the first chromaticity coordinates and the second chromaticity coordinates, respectively.
[0018] In conjunction with the first aspect, in the second embodiment of the first aspect, obtaining the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space specifically includes:
[0019] The target color temperature is converted into approximate chromaticity coordinates on the blackbody curve to obtain the target color point;
[0020] The target color point is converted to the specified color space to obtain the target color coordinates.
[0021] In conjunction with the first aspect, in the third embodiment of the first aspect, determining the first color mixing ratio parameter based on the position of the projection point on the straight line specifically includes:
[0022] Determine the first vector formed by the first chromaticity coordinates to the target chromaticity coordinates;
[0023] Determine the second vector formed by the first chromaticity coordinates to the second chromaticity coordinates;
[0024] Determine the length from the first chromaticity coordinate to the second chromaticity coordinate;
[0025] Determine the projection length of the first vector onto the second vector;
[0026] The first color mixing ratio parameter is obtained based on the ratio of the projection length to the length of the first chromaticity coordinate to the second chromaticity coordinate.
[0027] If the first color mixing ratio parameter is determined to be less than 0, the first color mixing ratio parameter is updated to 0;
[0028] If the first color mixing ratio parameter is determined to be greater than 1, the first color mixing ratio parameter is updated to 1.
[0029] In conjunction with the first aspect, in the fourth embodiment of the first aspect, the mapping of the first color mixing ratio parameter to the CIE-XYZ space based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation to obtain the second color mixing ratio parameter specifically includes:
[0030] Determine the homogeneous projection matrix from the specified chromaticity space to the CIE-XYZ space;
[0031] Determine the homogeneous components of the first and second primary colors in the homogeneous coordinate system.
[0032] Based on the projective transformation relationship between color spaces and the edge consistency of projective transformation, and according to the first color mixing ratio parameter, the projection homogeneous matrix, the homogeneous components of the first primary color and the second primary color in the homogeneous coordinate system, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter.
[0033] In conjunction with the first aspect, in the fifth embodiment of the first aspect, the step of determining the duty cycles of the first and second primary color light sources based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capabilities of the first and second primary color light sources respectively specifically includes:
[0034] Determine the first junction temperature parameter of the first primary color light source and the second junction temperature parameter of the second primary color light source;
[0035] Based on the constructed light source junction temperature-brightness coefficient table and the first and second junction temperature parameters, temperature compensation is performed on the maximum luminous capacity of the first and second primary color light sources to obtain the maximum luminous capacity of the first and second primary color light sources after compensation; the sum of the maximum luminous capacity of the first and second primary color light sources after compensation is equal to the target brightness value.
[0036] The duty cycle of the first primary color light source is determined based on the second color mixing ratio parameter, the target brightness value, and the maximum luminous power of the first primary color light source after compensation.
[0037] The duty cycle of the second primary color light source is determined based on the second color mixing ratio parameter, the target brightness value, and the maximum luminous capability of the second primary color light source after compensation.
[0038] In conjunction with the first aspect, in the sixth embodiment of the first aspect, the method further includes the following steps:
[0039] The tristimulus values of the target color temperature in the CIE-XYZ space are determined. A pseudo-three-primary-color mixing matrix consisting of the pseudo-primary color, the first primary color, and the second primary color is constructed based on the preset pseudo-primary color. The maximum luminous efficiency of the first and second primary color light sources is obtained by solving the tristimulus values of the target color temperature in the CIE-XYZ space and the pseudo-three-primary-color mixing matrix. The duty cycles of the first and second primary color light sources are determined based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous efficiency of the first and second primary color light sources.
[0040] The pseudo-primary color mixing matrix is used to describe the three-primary-color mixing of pseudo-primary color, primary color, and secondary color. The red-green hue component of the pseudo-primary color in the CIE-XYZ space is 0, the yellow-blue hue component of the pseudo-primary color in the CIE-XYZ space is 0, and the remaining chromaticity component of the pseudo-primary color in the CIE-XYZ space after removing red and green stimuli is 1.
[0041] According to a second aspect, embodiments of the present invention also provide a color temperature adjustment device for dual-primary-color mixing, the device comprising:
[0042] The coordinate acquisition module is used to acquire the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space; the specified chromaticity space is the CIE-UV space.
[0043] The coordinate transformation module is used to obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space;
[0044] The vertical projection module is used to vertically project the target chromaticity coordinates onto a straight line determined by the first and second chromaticity coordinates to obtain the projection point;
[0045] The parameter determination module is used to determine the first color mixing ratio parameter based on the position of the projection point on the straight line; the first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in the specified color space;
[0046] The projective transformation module is used to map the first color mixing ratio parameter to the CIE-XYZ space based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation to obtain the second color mixing ratio parameter; the second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value.
[0047] The color temperature adjustment module is used to determine the duty cycle of the first primary color light source and the second primary color light source respectively based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources.
[0048] According to a third aspect, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the color temperature adjustment method for dual-primary-color mixing as described above.
[0049] According to a fourth aspect, embodiments of the present invention also provide a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the color temperature adjustment method for dual-primary-color mixing as described above.
[0050] The color temperature adjustment method, apparatus, device, and medium for dual-primary-color mixing of the present invention obtains a projection point by vertically projecting the target chromaticity coordinates onto a straight line determined by the first and second chromaticity coordinates. The computational complexity is simplified from multiple nonlinear operations to a single vector operation, which significantly reduces computational complexity and is suitable for embedded devices. Then, based on the position of the projection point on the straight line, a first color mixing ratio parameter is determined. Based on the projective transformation relationship between color spaces and the consistency of the projective transformation along the edge, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain a second color mixing ratio parameter. The first color mixing ratio parameter can be directly mapped to the second color mixing ratio parameter by a single geometric projection, further reducing coordinate transformation operations, reducing numerical drift and accuracy loss of the obtained second color mixing ratio parameter, and improving the stability of dual-primary-color mixing in boundary areas such as high color temperature and low brightness. Meanwhile, the projection method utilizes the first-order approximation property of the target color temperature in the target region and the local approximate consistency between the blackbody curve normal and the normal of the two primary color line segments. Furthermore, the projection method has the closest-to-distance characteristic in Euclidean space; by projecting the target chromaticity coordinates perpendicularly onto a straight line, the projected point is the color perceived by the human eye as closest to the target color temperature. This ensures that the final DUV is minimized, eliminating the need for additional DUV correction. The projection method is a closed-loop, one-time calculation method, independent of numerical iteration stability, and avoids issues of iteration non-convergence and uncontrollable convergence speed, making it suitable for fast-response dimming scenarios. Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively. Without increasing the number of primary colors, a color temperature control effect close to that of a three-primary-color or pseudo-dual-lamp scheme is achieved, ensuring that the dual-primary-color mixing scheme still meets strict brightness, color temperature, and consistency requirements, thus maintaining the engineering advantages of simple structure, low cost, and high reliability. Attached Figure Description
[0051] The features and advantages of the invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the invention in any way. In the drawings:
[0052] Figure 1 One of the flowcharts of the color temperature adjustment method for dual-primary-color mixing provided by the present invention is shown;
[0053] Figure 2 A schematic diagram of the projection method for solving the projection point in the color temperature adjustment method of dual-primary-color mixing provided by the present invention is shown.
[0054] Figure 3 This diagram illustrates the xy chromaticity diagram and blackbody curve in the color temperature adjustment method for dual-primary-color mixing provided by the present invention.
[0055] Figure 4A schematic diagram of pulse width modulation and duty cycle output based on solving the primary color channel using a color mixing matrix is shown in the prior art.
[0056] Figure 5 This diagram illustrates the pulse width adjustment duty cycle output of the primary color channel based on the projection method mapping parameters in the color temperature adjustment method for dual primary color mixing provided by the present invention.
[0057] Figure 6 The second schematic diagram of the color temperature adjustment method for dual-primary-color mixing provided by the present invention is shown.
[0058] Figure 7 A schematic diagram of the color temperature adjustment device for dual-primary-color mixing provided by the present invention is shown.
[0059] Figure 8 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0061] With the rapid growth in demand for adjustable CCT lighting, multi-color LED-based light mixing technology is widely used in architectural lighting, lighting technology, and health lighting. To obtain different color temperatures, it is usually necessary to adjust the driving duty cycle of different primary color LEDs so that the color point of the mixed light is as close as possible to the ideal position corresponding to the target correlated color temperature.
[0062] Currently, dual-primary-color LED mixing systems commonly employ offline testing and duty cycle recording to adjust color temperature in practical applications. This means that during the debugging process, the dual-primary-color LED mixing system approximates the target color temperature through continuous experimentation, and then fixes the corresponding channel duty cycle for subsequent control. However, this method of color temperature adjustment does not rely on real-time calculation of the dual-primary-color ratio based on the target color temperature, making it impossible to accurately calculate based on dynamically changing target color temperatures. Furthermore, the dimming process heavily depends on manual experience, making automated control difficult. More importantly, this method of color temperature adjustment lacks robustness to LED device temperature drift, aging, and individual device differences. Once the LED device's condition changes, the preset duty cycle often fails to maintain the original color temperature accuracy.
[0063] In the industry, some dual-color LED mixing systems adjust color temperature using empirical formulas to derive the dual-channel ratio. However, empirical models can typically only adjust the CCT within a certain range and cannot effectively control the color deviation of the color point relative to the Planck locus. Because empirical formulas lack a rigorous foundation in color science, their applicability to different LED devices, driving conditions, and ambient temperatures is poor, making it difficult to guarantee consistent color temperature accuracy, and their generalization ability is also significantly limited.
[0064] Therefore, how to provide a color temperature adjustment method that is more suitable for dual-primary-color LED mixing systems is an important issue that the industry urgently needs to address.
[0065] To address the aforementioned issues, this specification provides a color temperature adjustment method for dual-primary-color mixing. This method aims to calculate the duty cycle of the dual primary colors in real time based on the target color temperature and to calculate the mixing ratio in real time based on the primary color information and the target color. The color temperature is then adjusted based on the duty cycle and the mixing ratio. This method exhibits good performance under CCT and DUV constraints, has low computational complexity, and is suitable for embedded devices and algorithm deployment. Figure 1 This is a schematic flowchart of a color temperature adjustment method for dual-primary-color mixing according to an embodiment of the present invention, as shown below. Figure 1 As shown, the method may include the following steps:
[0066] S101. Obtain the first chromaticity coordinates of the first primary color light source and the second primary color light source in the specified chromaticity space. Second chromaticity coordinates The specified color space is the CIE-UV space, and the first chromaticity coordinates are... Second chromaticity coordinates It defines the line segments representing all colors that can be synthesized using two primary colors without luminance constraints in a specified color space. Represents the first chromaticity coordinate Mid-red-green hue component, Represents the first chromaticity coordinate The yellow-blue hue component in the text. Represents the second chromaticity coordinates Mid-red-green hue component, Represents the second chromaticity coordinates The yellow-blue hue component in the image.
[0067] For a dual-primary-color LED mixing system, there are two primary color light sources: a first primary color light source, such as a warm white LED, and a second primary color light source, such as a cool white LED. By measuring the chromaticity coordinates and luminous efficacy of the two primary colors, the tristimulus values corresponding to the first and second primary color light sources can be obtained. For any primary color, it can be represented as a tristimulus value in the CIE-XYZ space. ,in, This represents the relative response value to red light in the primary colors. This indicates the relative response value to green light in the primary color and its brightness (luminance). This represents the relative response value to blue light in the primary colors.
[0068] Color mixing is based on the additive color principle, where the tristimulus values of different primary color light sources are vector-added according to their luminance ratios. Therefore, color mixing essentially occurs in the three-dimensional CIE-XYZ space. When the luminances of the primary colors are combined in a certain proportion, the color mixing result in the CIE-XYZ space always falls within the plane spanned by the two primary colors. Therefore, after removing luminance information, transforming from the CIE-XYZ space to the CIE-xyY or CIE-uv space, the line connecting the two points represents all the color points that can be synthesized by the two primary colors without luminance constraints. Thus, whether on the xy chromaticity diagram or the uv chromaticity diagram, the color gamut that can be synthesized by the two primary colors is represented by a fixed line segment, and the three spatial coordinate systems mentioned above are projective, satisfying collinearity invariance. According to the collinearity property, the color line segment that can be synthesized by the two primary colors in the uv chromaticity diagram and the xy chromaticity diagram is the same line segment, and the points on the line segment are the points that the two primary colors can actually synthesize, and they represent the same points in each coordinate system.
[0069] Specifically, the CIE-XYZ space, CIE-xyY space, and CIE-uv space have the following transformation relationships:
[0070]
[0071]
[0072]
[0073]
[0074] in, This represents the chromaticity coordinates of the primary color in the CIE-xyY space. Used to describe the hue and saturation of the primary color. Represents chromaticity coordinates The red-green hue component in the text. Represents chromaticity coordinates The yellow-blue hue component in the text. and All of these are obtained by normalizing the primary colors to tristimulus values in the CIE-XYZ space. In the CIE-XYY space, color information is separated into chromaticity coordinates. and brightness These two independent dimensions; This represents the chromaticity coordinates of the primary color in the CIE-UV space. Used to describe the hue and saturation of primary colors on a visually more uniform UV chromaticity map. Represents chromaticity coordinates The red-green hue component in the text. Represents chromaticity coordinates In the CIE-UV color space, the yellow-blue hue component separates color information into chromaticity coordinates. and brightness These two independent dimensions are used to calculate color differences that are more consistent with human visual perception.
[0075] This represents the homogeneous chromaticity coordinate representation of the primary colors after transformation from the CIE-XYZ space to the CIE-xyY space. This represents the unnormalized red-green components of the primary color after conversion from the CIE-XYZ space to the CIE-xyY space. This represents the unnormalized yellow-blue components of the primary color after conversion from the CIE-XYZ space to the CIE-xyY space. This represents the projective normalized weights of the primary colors when transformed from the CIE-XYZ space to the CIE-xyY space, and , ; This represents the homogeneous chromaticity coordinate representation of the primary colors after transformation from the CIE-xyY space to the CIEuv space. This represents the unnormalized red-green components of the primary color after conversion from the CIE-XYZ space to the CIE-xyY space. This represents the unnormalized yellow-blue components of the primary color after conversion from the CIE-XYZ space to the CIE-xyY space. This represents the projective normalization weights of the primary colors when they are transformed from the CIE-XYZ space to the CIE-xyY space.
[0076] In this embodiment of the invention, by obtaining the first tristimulus value and the second tristimulus value of the first and second primary color light sources in the CIE-XYZ space, respectively, the first chromaticity coordinates and the second chromaticity coordinates of the first and second primary color light sources in the CIE-xyY space are determined. Then, the chromaticity coordinates in the CIE-xyY space are converted to the CIE-uv space, thus obtaining a more uniform color difference perception.
[0077] S102, Obtain the target color temperature Corresponding target color point Target chromaticity coordinates in a specified chromaticity space .
[0078] In this embodiment of the invention, the target color temperature needs to be converted into the corresponding target color point on the blackbody curve (blackbody trajectory), that is, converted into approximate chromaticity coordinates on the blackbody curve. Therefore, the target color point is also the coordinate point of the target color temperature on the blackbody curve. The blackbody curve is a fixed trajectory determined by the physical law of radiation, and the color line segments that can be synthesized by two primary colors also remain fixed after each primary color is determined. Due to the spatial structure limitations of two-point color mixing, the two-primary-color mixing points cannot cover all colors on the blackbody curve. Therefore, in actual engineering, the mixing points usually do not fall precisely on the blackbody curve, but are distributed within a certain acceptable DUV deviation range. As long as the mixing points satisfy the condition that the DUV deviation from the target blackbody point is controlled, the CCT deviation will not exceed the engineering limit, and good visual performance can still be obtained. At the same time, after meeting this condition, the two-primary-color LED mixing system has great advantages in terms of cost and system complexity.
[0079] The blackbody curve commonly used in existing technologies is also a fitted curve. The formula for calculating the target color point based on the target color temperature can be:
[0080]
[0081] in, This represents the target color point in the CIE-xyY color space. The red-green hue component; This represents the target color point in the CIE-xyY color space. The yellow-blue hue component; The color temperature value represents the target color temperature.
[0082] After obtaining the target color point Then, it is converted to a specified color space, and the target color coordinates can be obtained. ,in, Represents the target chromaticity coordinates The red-green hue component in the text. Represents the target chromaticity coordinates The yellow-blue hue component in the image.
[0083] S103, Set the target chromaticity coordinates The projection point is obtained by projecting perpendicularly onto the straight line determined by the first and second chromaticity coordinates. .
[0084] In this embodiment of the invention, the determined target chromaticity coordinates will be... Vertical projection onto a straight line Up, straight line The first and second primary colors are determined by their respective chromaticity coordinates. The next step is to find a straight line. Upper distance from target chromaticity coordinates The nearest point, also known as the perpendicular point, is the point relative to the target chromaticity coordinates. Projection points obtained by vertical projection By using the target chromaticity coordinates Vertical projection onto a straight line The projection points obtained above In human visual perception, the color temperature is closest to the target color temperature. The color is chosen to ensure that the final DUV is minimized.
[0085] It should be noted that straight lines any point on It can be represented as a linear combination of the first and second primary colors, that is... ,in, Indicates the first primary color. Indicates the second primary color. Represents the proportional parameter and .
[0086] S104, Based on the projection point At a position on the straight line, a first color mixing ratio parameter is determined. This first color mixing ratio parameter characterizes the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in a specified color space.
[0087] In this embodiment of the invention, based on the principle of vector geometry, the first color mixing ratio parameter is obtained by calculating the ratio of the projection length of the vector from the first chromaticity coordinates to the target chromaticity coordinates onto the vector from the first chromaticity coordinates to the second chromaticity coordinates to the length of the vector from the first chromaticity coordinates to the second chromaticity coordinates. That is, the first vector formed by the vector from the first chromaticity coordinates to the target chromaticity coordinates is first determined. Then determine the second vector formed by the first chromaticity coordinates to the second chromaticity coordinates. Then, the length from the first chromaticity coordinate to the second chromaticity coordinate is determined, and then the first vector is obtained. Second vector The projection length is calculated, and finally, the required first color mixing ratio parameter is obtained based on the ratio of the projection length to the length from the first chromaticity coordinate to the second chromaticity coordinate. Specifically, the calculation process of the first color mixing ratio parameter is as follows:
[0088]
[0089] in, This represents the first color mixing ratio parameter in the specified color space.
[0090] To ensure the calculated first color mixing ratio parameter is physically valid, this embodiment of the invention further restricts the value range of the calculated first color mixing ratio parameter. Specifically, if the first color mixing ratio parameter is determined to be less than 0, it is updated to 0, indicating that the closest mixing point is the first primary color itself. If the first color mixing ratio parameter is determined to be greater than 1, it is updated to 1, indicating that the closest mixing point is the second primary color itself. For a typical warm white-cool white dual-color LED combination, within the color temperature range of 2700K-6500K... The value range usually falls between 0 and 1.
[0091] Please see Figure 2 , Figure 2 middle Dot represents the target color point , The point represents the projection point, that is... Point and line The dangling foot, Point representation Point along the isotherm and the straight line The intersection point formed. From Figure 2 It can be seen from this that, Within the neighborhood of the point, the target color temperature It can be viewed as a continuously differentiable scalar field in the color space, the target color temperature. Its changes can be approximated by a first-order Taylor expansion.
[0092] It should also be noted that the target color temperature in this neighborhood area The gradient direction is highly consistent with the normal direction of the blackbody curve; therefore, the displacement generated along the normal direction of the blackbody curve is what causes the target color temperature. The main direction of change, and the straight line that can be synthesized by two primary colors. Within common engineering color temperature ranges, the angle between its local tangent and the blackbody curve is often small. Therefore, the angle between its normal direction and the normal direction of the blackbody curve is also very small. That is, based on Point and line The two intersections formed Points and Dot at the dominant target color temperature The components of the change in direction are almost identical, thus Points and Color temperature difference between points The color temperature difference is extremely small, affected only by local nonlinearity and higher-order curvature terms. express The color temperature of the point, express Color temperature of the point.
[0093] Please see Figure 3 , Figure 3 Medium parameters Representing the correlated color temperature, Newton's method is commonly used to determine the target point on a line segment that can be synthesized in color. Specifically, if the target chromaticity coordinates are deduced from the target color temperature, the following steps are typically taken:
[0094] 1) Select a curve with the target color temperature. 1) Find two points that are close to each other; 2) Transform these two points into CIE-UV space; 3) Obtain the tangent to the blackbody curve using the difference method; 4) Obtain the normal to the blackbody curve, i.e., the isotherm; 5) Calculate the intersection of this normal with the straight line determined by the first and second chromaticity coordinates. The intersection point, that is, the solution point.
[0095] Newton's method Finding a point is a process of solving for an extremum. This process involves various calculations such as coordinate transformation, differentiation, difference and linear algebra calculations. For embedded systems or real-time dimming systems, the computational load is large and the latency is difficult to meet.
[0096] Based on the two intersection points Points and Dot at the dominant target color temperature The characteristic that the components in the direction of change are almost identical is addressed in this embodiment of the invention by using a projection method to first determine the target chromaticity coordinates. The projection point is obtained by projecting perpendicularly onto the straight line determined by the first and second chromaticity coordinates. Then based on the projection point The first color mixing ratio parameter is determined by the position on the straight line.
[0097] Due to the solution The process of determining the points, or projection points, is based on the projection method, and its computational complexity is much less than that of solving the problem. Therefore, compared to the existing technology that uses Newton's method to solve for extrema, this method solves for the point. In this embodiment of the invention, the point is solved using the projection method. Points can significantly reduce the solution complexity.
[0098] S105. Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter. The second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value.
[0099] Since the final brightness needs to be superimposed in the CIE-XYZ color space, the first color mixing ratio parameter obtained in the specified color space cannot be directly used to drive the LED. In the CIE-XYZ color space, the second color mixing ratio parameter determines the proportion of the brightness of the two light sources in the total brightness. However, due to the nonlinear transformation of the color space and the transformation of the coordinate system... ,in, This represents the second color mixing ratio parameter in the CIE-XYZ color space.
[0100] In this embodiment of the invention, the projective transformation relationship between color spaces and the edge consistency of projective transformation are utilized. By explicitly introducing homogeneous coordinates and projective mapping in chromaticity transformation, the color mixing parameters of CIE-uv space and CIE-XYZ space are directly associated in the isomorphic projective space, reducing intermediate coordinate transformation and matrix solving steps, thereby significantly simplifying the calculation process and improving real-time performance and embedded feasibility.
[0101] S106. Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, determine the duty cycles of the first and second primary color light sources respectively.
[0102] In this embodiment of the invention, the duty cycle of the first primary color light source represents the pulse width modulation duty cycle output of the first primary color channel. Correspondingly, the duty cycle of the second primary color light source represents the pulse width modulation duty cycle output of the second primary color channel. After obtaining the pulse width modulation duty cycle outputs of each primary color channel of the dual primary colors, the duty cycles of the first and second primary color light sources can be converted into pulse width modulation control signals for the first and second primary color light sources, respectively. Then, the first and second primary color light sources are driven according to the pulse width modulation control signals of the first and second primary color light sources, respectively, so that the mixed light color output by the dual primary color LED mixing system approximates the target blackbody point in terms of chromaticity (the target blackbody point is the approximate chromaticity coordinate of the target color temperature on the blackbody curve) and reaches the user-preset target brightness value in terms of brightness.
[0103] It should be noted that the vertical projection process is carried out in a specified chromaticity space, namely the CIE-uv space, in order to obtain the best color temperature approximation effect and DUV constraint capability. However, the geometric solution based on the projection method is not limited to the CIE-uv space. In other color spaces, such as the CIE-XYZ space or the CIE-xyY space, similar projection methods can be constructed. By projecting the target color point along a certain direction onto the line segment that can be synthesized by the two primary colors, the mixing ratio and duty cycle parameters can be obtained.
[0104] That is, the vertical projection process also applies to CIE-XYZ space or CIE-xyY space. More specifically:
[0105] In the CIE-XYZ space, the mixing of two primary colors is essentially a vector linear superposition of tristimulus values. Therefore, after constraining Y, the XYZ values of the two primary colors form a line segment in three-dimensional space. By projecting the target color temperature onto this line segment in the CIE-XYZ space, the first and second mixing ratio parameters can be obtained directly. By projecting vertically onto the CIE-XYZ space, acceptable color temperature accuracy can be obtained, while maintaining computational simplicity, no iteration, and still having engineering usability.
[0106] In the CIE-xyY color space, after removing the luminance dimension, the coordinates of the two primary colors in the xy chromaticity diagram form a two-dimensional line segment. Projecting the target color point along a specified direction onto this two-dimensional line segment yields the first and second color mixing ratio parameters. Vertical projection onto the CIEuv color space maintains the simplicity of the computational process, eliminates the need for derivatives and isotherm solutions, and is suitable for scenarios with moderate performance requirements or limited computational resources.
[0107] The color temperature adjustment method for dual-primary-color mixing of the present invention obtains a projection point by vertically projecting the target chromaticity coordinates onto a straight line determined by the first and second chromaticity coordinates. The computational complexity is simplified from multiple nonlinear operations to a single vector operation, which significantly reduces computational complexity and is suitable for embedded devices. Then, based on the position of the projection point on the straight line, a first color mixing ratio parameter is determined. Based on the projective transformation relationship between color spaces and the consistency of the projective transformation along the edge, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain a second color mixing ratio parameter. The first color mixing ratio parameter can be directly mapped to the second color mixing ratio parameter by a single geometric projection, further reducing coordinate transformation operations, reducing numerical drift and accuracy loss of the obtained second color mixing ratio parameter, and improving the stability of dual-primary-color mixing in boundary areas such as high color temperature and low brightness. Meanwhile, the projection method utilizes the first-order approximation property of the target color temperature in the target region and the local approximate consistency between the blackbody curve normal and the normal of the two primary color line segments. Furthermore, the projection method has the closest-to-distance characteristic in Euclidean space; by projecting the target chromaticity coordinates perpendicularly onto a straight line, the projected point is the color perceived by the human eye as closest to the target color temperature. This ensures that the final DUV is minimized, eliminating the need for additional DUV correction. The projection method is a closed-loop, one-time calculation method, independent of numerical iteration stability, and avoids issues of iteration non-convergence and uncontrollable convergence speed, making it suitable for fast-response dimming scenarios. Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively. Without increasing the number of primary colors, a color temperature control effect close to that of a three-primary-color or pseudo-dual-lamp scheme is achieved, ensuring that the dual-primary-color mixing scheme still meets strict brightness, color temperature, and consistency requirements, thus maintaining the engineering advantages of simple structure, low cost, and high reliability.
[0108] The pulse width modulation and duty cycle output of the primary color channel based on the projection method for mapping parameters is achieved by first converting the primary color and target color points from the CIE-xyY space to the CIE-uv space, solving for the first color mixing ratio parameter, and then directly mapping the first color mixing ratio parameter to the CIE-XYZ space based on the color space projective transformation to obtain the second color mixing ratio parameter. The duty cycle of the first and second primary color light sources is then solved, ensuring that the color mixing geometry is not distorted from the source, making the calculation results more consistent with the physical superposition characteristics of the light source. This method can omit the calculation of the color mixing chromaticity coordinates and the process of substituting them into the color mixing matrix, improving the algorithm efficiency, reducing numerical drift and accuracy loss caused by repeated rational fraction transformations, and improving stability in high color temperature, low brightness, and boundary regions.
[0109] In this embodiment of the invention, step S101 includes:
[0110] S1011. Under standard ambient temperature (e.g., 25°C), determine the first maximum luminous power and the first tristimulus value of the first primary color light source, and determine the second maximum luminous power and the second tristimulus value of the second primary color light source. The first maximum luminous power is also the brightness of the first primary color corresponding to the first primary color light source, and the second maximum luminous power is also the brightness of the second primary color corresponding to the second primary color light source. The first tristimulus value is also the chromaticity coordinate of the first primary color in the CIE-XYZ space, and the second tristimulus value is also the chromaticity coordinate of the second primary color in the CIE-XYZ space.
[0111] By measuring the relative or absolute intensity of the primary colors at each wavelength using an integrating sphere spectroradiometer in the same environment, i.e., at standard ambient temperature, the most original performance data of the first and second primary colors can be obtained under standardized extreme conditions, thereby obtaining the first and second maximum luminous power and the first and second tristimulus values.
[0112] S1012. Based on the first and second tristimulus values of the first and second primary color light sources in the CIE-XYZ space, respectively, the first and second tristimulus values are transformed to the CIE-xyY space to obtain the chromaticity coordinates of the first primary color light source in the CIE-xyY space. and the chromaticity coordinates of the second primary color light source in the CIE-xyY space. .in, Represents chromaticity coordinates The red-green hue component in the text. Represents chromaticity coordinates The yellow-blue hue component in the text. Represents chromaticity coordinates The red-green hue component in the text. Represents chromaticity coordinates The yellow-blue hue component in the image.
[0113] S1013. Transform the chromaticity coordinates of the first and second primary color light sources in the CIE-xyY space to the specified chromaticity space to obtain the first chromaticity coordinates. Second chromaticity coordinates .in, Represents the first chromaticity coordinate The yellow-blue hue component in the text. Represents the first chromaticity coordinate The yellow-blue hue component in the text. Represents the second chromaticity coordinates The yellow-blue hue component in the text. Represents the second chromaticity coordinates The yellow-blue hue component in the image.
[0114] In this embodiment of the invention, step S102 includes:
[0115] S1021. Convert the target color temperature into approximate chromaticity coordinates on the blackbody curve to obtain the target color point. , i.e., target color point Let be the coordinates in the CIE-xyY space.
[0116] S1022, Move the target color point Convert to the specified color space to obtain the target color coordinates. .
[0117] In this embodiment of the invention, step S105 includes:
[0118] S1051. Determine the homogeneous projection matrix from the specified chromaticity space to the CIE-XYZ space.
[0119] S1052. Determine the homogeneous components of the first primary color and the second primary color in the homogeneous coordinate system.
[0120] S1053. Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, and according to the first color mixing ratio parameter, the projection homogeneous matrix, the homogeneous components of the first primary color and the second primary color in the homogeneous coordinate system, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter.
[0121] In Euclidean space, the Cartesian coordinate system representation of chromaticity coordinates is... In projective space, projective coordinates are derived from homogeneous coordinates. This indicates that the two are related. ,in, as well as Together they describe homogeneous coordinates directional or positional relationship Represents homogeneous components (weights). Includes homogeneous coordinates The depth or scaling information.
[0122] Since the CIE-XYZ, CIE-xyY, and CIE-uv spaces are mutually projective transformations, expressing their transformation relationships in a homogeneous linear form allows for the mapping of these color spaces to each other in a homogeneous coordinate system using linear projective homogeneous matrices. Furthermore, because projective transformations preserve collinearity and fractional ratios, the synthesizable color segments of the two primary colors in the xy and uv chromaticity diagrams are isomorphic in a projective sense, and the parameterized mixing ratios on the synthesizable color segments exhibit traceable consistency across different chromaticity spaces.
[0123] Since the calculation of the second color mixing ratio parameter needs to be performed in the CIE-XYZ space, and the CIE-XYZ and CIE-xyY spaces in chromaticity coordinates also have the following transformation relationship:
[0124]
[0125] Determine the user's target color temperature The preset target luminance value and chromaticity coordinates can be losslessly recovered from the CIE-xyY space to the CIE-XYZ space. This allows for the calculation of the first color mixing ratio parameter in the CIE-xyY space.
[0126] When a target luminance Y is specified, the chromaticity coordinates can be losslessly recovered from CIE-xyY to CIE-XYZ. Therefore, projective calculations only require mapping XZ and uv. Based on coordinate system transformation relationships, the projective homogeneous matrices of CIE-XYZ and CIE-uv can be deduced as follows:
[0127]
[0128] in, This indicates the desired brightness value to be synthesized.
[0129] The target color in the CIE-UV space and the CIE-XYZ (Y removed) space has the following relationship:
[0130]
[0131]
[0132] in, This represents the coordinates of the first primary color in the CIE-UV space; This represents the coordinates of the second primary color in the CIE-uv space; This represents the coordinates of the first primary color in the CIE-XYZ space after removing the Y value; This represents the coordinates of the second primary color in the CIE-XYZ space after removing the Y value.
[0133] Based on the consistency of the projective transformation along the edge, we can obtain:
[0134]
[0135] in, Represents the homogeneous component of the first primary color; This represents the homogeneous component of the second primary color. That is, the parameters can be obtained through edge uniformity of the projective transformation. and parameters The mapping relationship between them is used to map the first color mixing ratio parameter to the CIE-XYZ space, thereby obtaining the second color mixing ratio parameter.
[0136] The edge-consistency of the projective transformation establishes a functional relationship that directly maps the first color mixing ratio parameter to the second color mixing ratio parameter. It also demonstrates that when performing vector superposition in CIE-XYZ space, the contribution of each primary color depends not only on its chromaticity coordinates but also on the homogeneous components generated by each primary color during the transformation. The second color mixing ratio parameter obtained by mapping based on the edge-consistency of the projective transformation is an accurate derivation of the projective relationship, rather than an approximation, ensuring the accuracy of the subsequently obtained duty cycle.
[0137] In this embodiment of the invention, step S106 includes:
[0138] S1061. Obtain the first junction temperature parameter of the first primary color light source and the second junction temperature parameter of the second primary color light source, for example, by setting a temperature sensor to detect the junction temperature of each primary color light source, and then obtaining the first and second junction temperature parameters.
[0139] S1062. Based on the constructed light source junction temperature-brightness coefficient table and the first and second junction temperature parameters, temperature compensation is performed on the maximum luminous efficacy of the first and second primary color light sources to obtain their respective maximum luminous efficacy after compensation. The sum of the maximum luminous efficacy of the first and second primary color light sources after compensation equals the target brightness value. In the CIE-XYZ space, the target brightness value is the sum of the contributions from the maximum luminous efficacy of the first and second primary color light sources after compensation, i.e.:
[0140]
[0141] in, Indicates the target brightness value; This indicates the maximum luminous efficiency of the primary color light source after compensation. This indicates the maximum luminous efficiency after compensation by the second primary color light source.
[0142] Considering that an increase in junction temperature during actual LED operation leads to a decrease in luminous flux, which in turn causes a reduction in the maximum luminous efficacy of the primary color light source, this embodiment of the invention pre-constructs a light source temperature-brightness coefficient table. This table characterizes the mapping relationship between light source temperature and maximum luminous efficacy. Based on this pre-constructed table and the temperatures of the first and second primary color light sources, real-time temperature compensation is performed on the maximum luminous efficacy of the first and second primary color light sources to obtain parameters. and parameters This ensures that the results of mixing two primary colors at different temperatures will not show significant color deviation.
[0143] S1063. Based on the second color mixing ratio parameter, the target brightness value, and the maximum luminous efficiency of the first primary color light source after compensation, the duty cycle of the first primary color light source is determined, specifically:
[0144]
[0145] in, This indicates the duty cycle of the primary color light source.
[0146] S1064. Based on the second color mixing ratio parameter, the target brightness value, and the maximum luminous efficiency of the second primary color light source after compensation, determine the duty cycle of the second primary color light source. Specifically:
[0147]
[0148] in, This indicates the duty cycle of the primary color light source.
[0149] Please see Figure 4 In existing technologies, when calculating the pulse width and duty cycle output of the primary color channel based on the color mixing matrix, it is necessary to first convert the primary color and target color point from the CIE-xyY space to the CIE-uv space, solve for the first color mixing ratio parameter, calculate the color mixing chromaticity coordinates based on the first color mixing ratio parameter, convert the color mixing chromaticity coordinates to the CIE-XYZ space, and solve for the channel brightness and channel duty cycle using the color mixing matrix. The above process involves two coordinate system transformations, one back substitution of color mixing chromaticity coordinates, and one solution of the color mixing matrix, resulting in a high computational load.
[0150] Please see Figure 5 The method for determining the pulse width modulation (PWM) and duty cycle output of the primary color channels based on projection mapping parameters involves first transforming the primary and target color points from the CIE-xyY space to the CIE-uv space to solve for the first color mixing ratio parameter. Then, based on color space projective transformation, the first color mixing ratio parameter is directly mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter. The duty cycles of the first and second primary color light sources are then further calculated. This process eliminates the need to calculate the chromaticity coordinates of the mixing layer and substitute them into the color mixing matrix, significantly improving algorithm efficiency.
[0151] Please see Figure 6 In this embodiment of the invention, the method may further include the following steps:
[0152] S201. Obtain the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in the specified chromaticity space, respectively. Specific details are as follows: Figure 1 As shown in step S101.
[0153] S202. Obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space. Details are as follows: Figure 1 As shown in step S102.
[0154] S203. Project the target chromaticity coordinates vertically onto the straight line determined by the first and second chromaticity coordinates to obtain the projection point. Details are as follows: Figure 1 As shown in step S103.
[0155] S204. Determine the first color mixing ratio parameter based on the position of the projection point on the straight line; the first color mixing ratio parameter characterizes the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in a specified color space. Specific details are as follows: Figure 1 As shown in step S104.
[0156] S205. Based on color space projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter; the second color mixing ratio parameter characterizes the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve a preset target brightness value. Specific details are as follows: Figure 1 As shown in step S105.
[0157] S206. Determine the tristimulus values of the target color temperature in the CIE-XYZ space. Construct a pseudo-three-primary-color mixing matrix consisting of the pseudo-primary color, the first primary color, and the second primary color based on the preset pseudo-primary color. Solve for the maximum luminous efficiency of the first and second primary color light sources based on the tristimulus values of the target color temperature in the CIE-XYZ space and the pseudo-three-primary-color mixing matrix. Determine the duty cycle of the first and second primary color light sources based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous efficiency of the first and second primary color light sources.
[0158] In this embodiment of the invention, the pseudo three-primary-color mixing matrix is used to describe the three-primary-color mixing of the pseudo primary color, the first primary color, and the second primary color. The red-green hue component of the pseudo primary color in the CIE-XYZ space is 0, the yellow-blue hue component of the pseudo primary color in the CIE-XYZ space is 0, and the remaining hue component of the pseudo primary color after removing the red and green stimuli in the CIE-XYZ space is 1.
[0159] In traditional color theory models, the tristimulus values of the three primary colors in the CIE-XYZ color space are... It can be described by a system of 3×3 linear equations, where, This represents the relative response value to red light in the three primary color mixture. This represents the relative response value and brightness of green light in the three primary color mixing process. This represents the relative response value to blue light in the three primary color mixing processes. Specifically:
[0160]
[0161] in, This represents the red-green hue component of the first primary color in the CIE-XYZ color space. This represents the yellow-blue hue component of the first primary color in the CIE-XYZ color space; This indicates the chromaticity component remaining in the first primary color of the three primary colors after removing the red and green stimuli in the CIE-XYZ space; This represents the red-green hue component of the second primary color in the CIE-XYZ color space. This represents the yellow-blue hue component of the second primary color in the CIE-XYZ color space; This indicates the chromaticity component remaining in the second primary color of the three primary colors after removing the red and green stimuli in the CIE-XYZ space; This represents the red-green hue component of the third primary color in the CIE-XYZ color space; This represents the yellow-blue hue component of the third primary color in the CIE-XYZ color space; This indicates the chromaticity component remaining in the third primary color after removing the red and green stimuli in the CIE-XYZ space; It represents the brightness of the first primary color among the three primary colors; This represents the brightness of the second primary color among the three primary colors; It represents the brightness of the third primary color among the three primary colors.
[0162] When three-primary-color mixing is applied to color temperature adjustment in a dual-primary-color LED mixing system, the synthesizable colors will degenerate into a one-dimensional line segment in the CIE-XYZ space. In this embodiment of the invention, a pseudo-primary color (i.e., a formally existing but actually non-existent third primary color) is introduced to homogenize and extend this linear system. The pseudo-primary color... =0, =0, The value is 1.
[0163] Based on pseudo-primary colors, a pseudo-three-primary-color mixing matrix that preserves the third-order structure is constructed. Mathematically, the pseudo-three-primary-color mixing matrix is equivalent to homogeneous lifting of the two-primary-color mixing case, making the originally degenerate second-order color mixing relation revert to an invertible solution structure and ensuring that the color mixing equation can still be solved linearly in the CIE-XYZ space, i.e.:
[0164]
[0165]
[0166] in, This represents a pseudo-primary color mixing matrix, which becomes invertible again by introducing pseudo-primary colors. The tristimulus values of the target color temperature in the CIE-XYZ space are then determined. Then, through a pseudo-three-primary-color mixing matrix The maximum luminous capacity of the first and second primary color light sources can be directly determined. After processing through steps S201 to S205, the second color mixing ratio parameter can be obtained. Based on the method of solving the duty cycle in step S106, the duty cycles of the first and second primary color light sources can be further determined. Solving the duty cycle through the pseudo three-primary-color mixing matrix has stronger universality and can be further extended and calibrated for color mixing deviation, channel inconsistency, device aging compensation, etc. It is suitable for application scenarios that require stronger compensation capabilities or multi-dimensional color calibration.
[0167] The color temperature adjustment device for dual-primary-color mixing provided in the embodiments of the present invention will be described below. The color temperature adjustment device for dual-primary-color mixing described below can be referred to in correspondence with the color temperature adjustment method for dual-primary-color mixing described above.
[0168] To address the aforementioned issues, this specification provides a color temperature adjustment device for dual-primary-color mixing. This device aims to calculate the duty cycle of the dual primary colors in real time based on the target color temperature and to calculate the mixing ratio in real time based on the primary color information and the target color. It then adjusts the color temperature based on the duty cycle and the mixing ratio. Furthermore, it exhibits good performance under CCT and DUV constraints, has low computational complexity, and is suitable for embedded devices and algorithm deployment. Figure 7 This is a schematic diagram of the color temperature adjustment device for dual-primary-color mixing according to an embodiment of the present invention, as shown below. Figure 7 As shown, the device may include:
[0169] The coordinate acquisition module 10 is used to acquire the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space, respectively. The specified chromaticity space is the CIE-UV space, and the first and second chromaticity coordinates define the line segments of all colors that can be synthesized under the condition of no luminance constraint between the two primary colors in the specified chromaticity space.
[0170] For a dual-primary-color LED mixing system, there are two primary color light sources: a first primary color light source, such as a warm white LED, and a second primary color light source, such as a cool white LED. By measuring the chromaticity coordinates and luminous efficacy of the two primary colors, the tristimulus values corresponding to the first and second primary color light sources can be obtained. For any primary color, it can be represented as a tristimulus value in the CIE-XYZ space. ,in, This represents the relative response value to red light in the primary colors. This indicates the relative response value to green light in the primary color and its brightness (luminance). This represents the relative response value to blue light in the primary colors.
[0171] Color mixing is based on the additive color principle, where the tristimulus values of different primary color light sources are vector-added according to their luminance ratios. Therefore, color mixing essentially occurs in the three-dimensional CIE-XYZ space. When the luminances of the primary colors are combined in a certain proportion, the color mixing result in the CIE-XYZ space always falls within the plane spanned by the two primary colors. Therefore, after removing luminance information, transforming from the CIE-XYZ space to the CIE-xyY or CIE-uv space, the line connecting the two points represents all the color points that can be synthesized by the two primary colors without luminance constraints. Thus, whether on the xy chromaticity diagram or the uv chromaticity diagram, the color gamut that can be synthesized by the two primary colors is represented by a fixed line segment, and the three spatial coordinate systems mentioned above are projective, satisfying collinearity invariance. According to the collinearity property, the color line segment that can be synthesized by the two primary colors in the uv chromaticity diagram and the xy chromaticity diagram is the same line segment, and the points on the line segment are the points that the two primary colors can actually synthesize, and they represent the same points in each coordinate system.
[0172] In this embodiment of the invention, by obtaining the tristimulus values of the first and second primary color light sources in the CIE-XYZ space, the chromaticity coordinates of the first and second primary color light sources in the CIE-xyY space are determined, and then the chromaticity coordinates of the first and second primary color light sources are converted to the CIE-uv space according to the chromaticity coordinates of the CIE-xyY space, a more uniform color difference perception can be obtained.
[0173] Coordinate transformation module 20 is used to obtain the target color temperature. The target chromaticity coordinates of the corresponding target color point in the specified chromaticity space.
[0174] In this embodiment of the invention, the target color temperature needs to be converted into the corresponding target color point on the blackbody curve (blackbody trajectory), that is, converted into approximate chromaticity coordinates on the blackbody curve. Therefore, the target color point is also the coordinate point of the target color temperature on the blackbody curve. The blackbody curve is a fixed trajectory determined by the physical law of radiation, and the color line segments that can be synthesized by two primary colors also remain fixed after each primary color is determined. Due to the spatial structure limitations of two-point color mixing, the two-primary-color mixing points cannot cover all colors on the blackbody curve. Therefore, in actual engineering, the mixing points usually do not fall precisely on the blackbody curve, but are distributed within a certain acceptable DUV deviation range. As long as the mixing points satisfy the condition that the DUV deviation from the target blackbody point is controlled, the CCT deviation will not exceed the engineering limit, and good visual performance can still be obtained. At the same time, after meeting this condition, the two-primary-color LED mixing system has great advantages in terms of cost and system complexity.
[0175] After obtaining the target color point, it is then converted to a specified color space, and the target color coordinates can be obtained.
[0176] The vertical projection module 30 is used to vertically project the target chromaticity coordinates onto a straight line determined by the first chromaticity coordinates and the second chromaticity coordinates to obtain the projection point.
[0177] In this embodiment of the invention, the determined target chromaticity coordinates are vertically projected onto a straight line. The straight line is determined by the first and second chromaticity coordinates corresponding to the first and second primary colors, respectively. Next, the point on the straight line that is closest to the target chromaticity coordinates, i.e., the foot of the perpendicular, is found. This foot of the perpendicular is the projection point obtained by vertically projecting the target chromaticity coordinates onto the straight line. The projection point obtained by vertically projecting the target chromaticity coordinates onto the straight line is the color that is closest to the target color temperature in human eye perception. This ensures that the final DUV is minimized.
[0178] The parameter determination module 40 is used to determine the first color mixing ratio parameter based on the position of the projection point on the straight line. The first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in a specified color space.
[0179] In this embodiment of the invention, based on the principle of vector geometry, the first color mixing ratio parameter is obtained by calculating the ratio of the projection length of the vector from the first chromaticity coordinate to the target chromaticity coordinate onto the vector from the first chromaticity coordinate to the second chromaticity coordinate to the length of the vector from the first chromaticity coordinate to the second chromaticity coordinate. That is, firstly, the first vector formed by the vector from the first chromaticity coordinate to the target chromaticity coordinate is determined, then the second vector formed by the vector from the first chromaticity coordinate to the second chromaticity coordinate is determined, then the length of the vector from the first chromaticity coordinate to the second chromaticity coordinate is determined, then the projection length of the first vector onto the second vector is determined, and finally, the required first color mixing ratio parameter is obtained based on the ratio of the projection length to the length of the vector from the first chromaticity coordinate to the second chromaticity coordinate.
[0180] To ensure the calculated first color mixing ratio parameter is physically valid, this embodiment of the invention further restricts the value range of the calculated first color mixing ratio parameter. Specifically, if the first color mixing ratio parameter is determined to be less than 0, it is updated to 0, indicating that the closest mixing point is the first primary color itself. If the first color mixing ratio parameter is determined to be greater than 1, it is updated to 1, indicating that the closest mixing point is the second primary color itself. For a typical warm white-cool white dual-color LED combination, within the color temperature range of 2700K-6500K... The value range usually falls between 0 and 1.
[0181] The projective transformation module 50 is used to map the first color mixing ratio parameter to the CIE-XYZ space based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation to obtain the second color mixing ratio parameter. The second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value.
[0182] Since the final brightness needs to be superimposed in the CIE-XYZ color space, the first color mixing ratio parameter obtained in the specified color space cannot be directly used to drive the LED. In the CIE-XYZ color space, the second color mixing ratio parameter determines the proportion of the brightness of the two light sources in the total brightness. However, due to the nonlinear transformation of the color space and the transformation of the coordinate system... .
[0183] In this embodiment of the invention, the projective transformation relationship between color spaces and the edge consistency of projective transformation are utilized. By explicitly introducing homogeneous coordinates and projective mapping in chromaticity transformation, the color mixing parameters of CIE-uv space and CIE-XYZ space are directly associated in the isomorphic projective space, reducing intermediate coordinate transformation and matrix solving steps, thereby significantly simplifying the calculation process and improving real-time performance and embedded feasibility.
[0184] The color temperature adjustment module 60 is used to determine the duty cycle of the first primary color light source and the second primary color light source respectively based on the second color mixing ratio parameter, the preset target brightness value and the maximum luminous capacity of the first and second primary color light sources.
[0185] In this embodiment of the invention, the duty cycle of the first primary color light source represents the pulse width modulation duty cycle output of the first primary color channel. Correspondingly, the duty cycle of the second primary color light source represents the pulse width modulation duty cycle output of the second primary color channel. After obtaining the pulse width modulation duty cycle outputs of each primary color channel of the dual primary colors, the duty cycles of the first and second primary color light sources can be converted into pulse width modulation control signals for the first and second primary color light sources, respectively. Then, the first and second primary color light sources are driven according to the pulse width modulation control signals of the first and second primary color light sources, respectively, so that the mixed light color output by the dual primary color LED mixing system approximates the target blackbody point in terms of chromaticity (the target blackbody point is the approximate chromaticity coordinate of the target color temperature on the blackbody curve) and reaches the user-preset target brightness value in terms of brightness.
[0186] The color temperature adjustment device for dual-primary-color mixing of the present invention obtains a projection point by vertically projecting the target chromaticity coordinates onto a straight line determined by the first and second chromaticity coordinates. The computational workload is simplified from multiple nonlinear operations to a single vector operation, which significantly reduces computational complexity and is suitable for embedded devices. Then, based on the position of the projection point on the straight line, the first color mixing ratio parameter is determined. Based on the projective transformation relationship between color spaces and the consistency of the projective transformation along the edge, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter. The first color mixing ratio parameter can be directly mapped to the second color mixing ratio parameter by a single geometric projection, which further reduces coordinate transformation operations, reduces numerical drift and accuracy loss of the obtained second color mixing ratio parameter, and improves the stability of dual-primary-color mixing in boundary areas such as high color temperature and low brightness. Meanwhile, the projection method utilizes the first-order approximation property of the target color temperature in the target region and the local approximate consistency between the blackbody curve normal and the normal of the two primary color line segments. Furthermore, the projection method has the closest-to-distance characteristic in Euclidean space; by projecting the target chromaticity coordinates perpendicularly onto a straight line, the projected point is the color perceived by the human eye as closest to the target color temperature. This ensures that the final DUV is minimized, eliminating the need for additional DUV correction. The projection method is a closed-loop, one-time calculation method, independent of numerical iteration stability, and avoids issues of iteration non-convergence and uncontrollable convergence speed, making it suitable for fast-response dimming scenarios. Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively. Without increasing the number of primary colors, a color temperature control effect close to that of a three-primary-color or pseudo-dual-lamp scheme is achieved, ensuring that the dual-primary-color mixing scheme still meets strict brightness, color temperature, and consistency requirements, thus maintaining the engineering advantages of simple structure, low cost, and high reliability.
[0187] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical commands in the memory 830 to execute a color temperature adjustment method for dual-primary-color mixing, the method including:
[0188] Obtain the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space; the specified chromaticity space is the CIE-UV space.
[0189] Obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space;
[0190] The target chromaticity coordinates are vertically projected onto the straight line determined by the first and second chromaticity coordinates to obtain the projection point;
[0191] The first color mixing ratio parameter is determined based on the position of the projection point on the straight line; the first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in the specified color space.
[0192] Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter; the second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value.
[0193] Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively.
[0194] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0195] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the color temperature adjustment method for dual-primary-color mixing provided by the above methods, the method comprising:
[0196] Obtain the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space; the specified chromaticity space is the CIE-UV space.
[0197] Obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space;
[0198] The target chromaticity coordinates are vertically projected onto the straight line determined by the first and second chromaticity coordinates to obtain the projection point;
[0199] The first color mixing ratio parameter is determined based on the position of the projection point on the straight line; the first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in the specified color space.
[0200] Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter; the second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value.
[0201] Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively.
[0202] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described color temperature adjustment methods for performing dual-primary-color mixing, the method comprising:
[0203] Obtain the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space; the specified chromaticity space is the CIE-UV space.
[0204] Obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space;
[0205] The target chromaticity coordinates are vertically projected onto the straight line determined by the first and second chromaticity coordinates to obtain the projection point;
[0206] The first color mixing ratio parameter is determined based on the position of the projection point on the straight line; the first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in the specified color space.
[0207] Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter; the second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value.
[0208] Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively.
[0209] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0210] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0211] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for adjusting the color temperature of dual-primary-color mixing, characterized in that, The method includes: Obtain the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space; the specified chromaticity space is the CIE-UV space. Obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space; The target chromaticity coordinates are vertically projected onto the straight line determined by the first and second chromaticity coordinates to obtain the projection point; The first color mixing ratio parameter is determined based on the position of the projection point on the straight line; the first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in the specified color space. Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter; the second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value. Based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources, the duty cycles of the first and second primary color light sources are determined respectively.
2. The color temperature adjustment method for dual-primary-color mixing according to claim 1, characterized in that, The step of obtaining the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in the specified chromaticity space specifically includes: Under standard ambient temperature, determine the first maximum luminous power and the first tristimulus value of the first primary color light source, and determine the second maximum luminous power and the second tristimulus value of the second primary color light source; Based on the first and second tristimulus values of the first and second primary color light sources in the CIE-XYZ space, respectively, the first and second tristimulus values are converted to the CIE-xyY space to obtain the chromaticity coordinates of the first primary color light source in the CIE-xyY space and the chromaticity coordinates of the second primary color light source in the CIE-xyY space. The chromaticity coordinates of the first and second primary color light sources in the CIE-xyY space are transformed to the specified chromaticity space to obtain the first chromaticity coordinates and the second chromaticity coordinates, respectively.
3. The color temperature adjustment method for dual-primary-color mixing according to claim 1, characterized in that, The step of obtaining the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space specifically includes: The target color temperature is converted into approximate chromaticity coordinates on the blackbody curve to obtain the target color point; The target color point is converted to the specified color space to obtain the target color coordinates.
4. The color temperature adjustment method for dual-primary-color mixing according to claim 1, characterized in that, The step of determining the first color mixing ratio parameter based on the position of the projection point on the straight line specifically includes: Determine the first vector formed by the first chromaticity coordinates to the target chromaticity coordinates; Determine the second vector formed by the first chromaticity coordinates to the second chromaticity coordinates; Determine the length from the first chromaticity coordinate to the second chromaticity coordinate; Determine the projection length of the first vector onto the second vector; The first color mixing ratio parameter is obtained based on the ratio of the projection length to the length from the first chromaticity coordinate to the second chromaticity coordinate. If the first color mixing ratio parameter is determined to be less than 0, the first color mixing ratio parameter is updated to 0; If the first color mixing ratio parameter is determined to be greater than 1, the first color mixing ratio parameter is updated to 1.
5. The color temperature adjustment method for dual-primary-color mixing according to claim 1, characterized in that, Based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter, specifically including: Determine the homogeneous projection matrix from the specified chromaticity space to the CIE-XYZ space; Determine the homogeneous components of the first and second primary colors in the homogeneous coordinate system; Based on the projective transformation relationship between color spaces and the edge consistency of projective transformation, and according to the first color mixing ratio parameter, the projection homogeneous matrix, the homogeneous components of the first primary color and the second primary color in the homogeneous coordinate system, the first color mixing ratio parameter is mapped to the CIE-XYZ space to obtain the second color mixing ratio parameter.
6. The color temperature adjustment method for dual-primary-color mixing according to claim 1, characterized in that, The step of determining the duty cycles of the first and second primary color light sources based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources respectively includes: Determine the first junction temperature parameter of the first primary color light source and the second junction temperature parameter of the second primary color light source; Based on the constructed light source junction temperature-brightness coefficient table and the first and second junction temperature parameters, temperature compensation is performed on the maximum luminous capacity of the first and second primary color light sources to obtain the maximum luminous capacity of the first and second primary color light sources after compensation; the sum of the maximum luminous capacity of the first and second primary color light sources after compensation is equal to the target brightness value. The duty cycle of the first primary color light source is determined based on the second color mixing ratio parameter, the target brightness value, and the maximum luminous power of the first primary color light source after compensation. The duty cycle of the second primary color light source is determined based on the second color mixing ratio parameter, the target brightness value, and the maximum luminous capability of the second primary color light source after compensation.
7. The color temperature adjustment method for dual-primary-color mixing according to claim 1, characterized in that, The method also includes the following steps: The tristimulus values of the target color temperature in the CIE-XYZ space are determined. A pseudo-three-primary-color mixing matrix consisting of the pseudo-primary color, the first primary color, and the second primary color is constructed based on the preset pseudo-primary color. The maximum luminous efficiency of the first and second primary color light sources is obtained by solving the tristimulus values of the target color temperature in the CIE-XYZ space and the pseudo-three-primary-color mixing matrix. The duty cycles of the first and second primary color light sources are determined based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous efficiency of the first and second primary color light sources. The pseudo-primary color mixing matrix is used to describe the three-primary-color mixing of pseudo-primary color, primary color, and secondary color. The red-green hue component of the pseudo-primary color in the CIE-XYZ space is 0, the yellow-blue hue component of the pseudo-primary color in the CIE-XYZ space is 0, and the remaining chromaticity component of the pseudo-primary color in the CIE-XYZ space after removing red and green stimuli is 1.
8. A color temperature adjustment device for dual-primary-color mixing, characterized in that, The device includes: The coordinate acquisition module is used to acquire the first chromaticity coordinates and the second chromaticity coordinates of the first primary color light source and the second primary color light source in a specified chromaticity space; the specified chromaticity space is the CIE-UV space. The coordinate transformation module is used to obtain the target chromaticity coordinates of the target color point corresponding to the target color temperature in the specified chromaticity space; The vertical projection module is used to vertically project the target chromaticity coordinates onto a straight line determined by the first and second chromaticity coordinates to obtain the projection point; The parameter determination module is used to determine the first color mixing ratio parameter based on the position of the projection point on the straight line; the first color mixing ratio parameter represents the color mixing ratio of the first primary color corresponding to the first primary color light source and the second primary color corresponding to the second primary color light source in the specified color space; The projective transformation module is used to map the first color mixing ratio parameter to the CIE-XYZ space based on the projective transformation relationship between color spaces and the edge consistency of the projective transformation to obtain the second color mixing ratio parameter; the second color mixing ratio parameter represents the color mixing ratio required for brightness superposition in the CIE-XYZ space to achieve the preset target brightness value. The color temperature adjustment module is used to determine the duty cycle of the first primary color light source and the second primary color light source respectively based on the second color mixing ratio parameter, the preset target brightness value, and the maximum luminous capacity of the first and second primary color light sources.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the color temperature adjustment method for dual-primary-color mixing as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the color temperature adjustment method for dual-primary-color mixing as described in any one of claims 1 to 7.