Color temperature processing method and device, lighting equipment, storage medium and program product
By calculating the brightness ratio of the lighting equipment and adjusting the brightness of the LEDs in the lighting equipment, and using red, green and blue LEDs to supplement light and correct color temperature deviation, the problem of low color temperature adjustment accuracy of traditional lighting equipment is solved, and a higher color temperature adjustment accuracy and range are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2026-03-13
AI Technical Summary
Traditional lighting equipment, when adjusting color temperature, obtains a color temperature by mixing cool-light and warm-light LEDs, which results in a deviation and low adjustment accuracy. It is also limited by the color temperature range of the LEDs themselves.
By determining the target color temperature of the lighting equipment, the brightness ratio of the first and second LED beads is calculated, and their brightness is adjusted to achieve the target color temperature. The second LED bead is used for supplementary lighting to correct color temperature deviation, including the combined use of red, green, and blue LED beads.
It achieves precise control of color temperature adjustment, expands the color temperature adjustment range, improves adjustment accuracy, and avoids the problem of low accuracy caused by relying solely on cold and warm light LED beads for adjustment.
Smart Images

Figure CN121665416A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and in particular to a color temperature processing method, apparatus, lighting equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of smart home technology, a lighting device has emerged that includes both cool-light and warm-light LEDs and features color temperature adjustment.
[0003] In traditional technology, color temperature adjustment is mainly achieved by mixing cool-light and warm-light LEDs in lighting equipment. However, color temperature is a non-linear curve, and the color temperature obtained by mixing cool-light and warm-light LEDs deviates from the true color temperature. Furthermore, the color temperature obtained by mixing is limited by the color temperature of the cool-light and warm-light LEDs themselves, resulting in low accuracy in color temperature adjustment. Summary of the Invention
[0004] Therefore, it is necessary to provide a color temperature processing method, apparatus, lighting equipment, computer-readable storage medium, and computer program product that can improve the accuracy of color temperature adjustment in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a color temperature processing method, including:
[0006] The brightness ratio of the first LED in the lighting device is determined based on the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is intended to achieve.
[0007] Based on the brightness ratio of the first LED, determine the mixed color temperature corresponding to the brightness ratio of the first LED;
[0008] The brightness ratio of the second LED in the lighting device is determined based on the target color temperature and the mixed color temperature.
[0009] According to the brightness ratio of the first LED bead and the brightness ratio of the second LED bead, adjust the brightness of the first LED bead and the second LED bead so that the current color temperature of the lighting device reaches the target color temperature.
[0010] In one embodiment, the first LED includes a cold light LED and a warm light LED, and the brightness ratio of the first LED includes a first brightness ratio of the cold light LED and a second brightness ratio of the warm light LED, the sum of the first brightness ratio and the second brightness ratio being 1.
[0011] Determining the brightness ratio of the first LED in the lighting device based on the target color temperature of the lighting device includes:
[0012] If the target color temperature is between the warm light color temperature and the cool light color temperature of the first LED, then the first brightness ratio is determined based on the difference between the target color temperature and the warm light color temperature, and the difference between the cool light color temperature and the warm light color temperature; the warm light color temperature is used to represent the lowest color temperature of the warm light LED, and the cool light color temperature is used to represent the highest color temperature of the cool light LED.
[0013] or,
[0014] If the target color temperature is greater than the cool light color temperature, then the first brightness ratio is determined to be 1;
[0015] or,
[0016] If the target color temperature is less than the warm light color temperature, then the second brightness ratio is determined to be 1.
[0017] In one embodiment, determining the mixed color temperature corresponding to the brightness ratio of the first LED chip, based on the brightness ratio of the first LED chip, includes:
[0018] The first LED bead is subjected to color temperature decomposition processing for its cool light color temperature and warm light color temperature, respectively, to obtain the first red brightness value, the first green brightness value and the first blue brightness value corresponding to the cool light color temperature, and the second red brightness value, the second green brightness value and the second blue brightness value corresponding to the warm light color temperature.
[0019] Based on the first brightness ratio and the second brightness ratio, the first red brightness value and the second red brightness value, the first green brightness value and the second green brightness value, and the first blue brightness value and the second blue brightness value are respectively fused to obtain a mixed red brightness value, a mixed green brightness value, and a mixed blue brightness value.
[0020] The mixed color temperature is determined based on the mixed red brightness value, the mixed green brightness value, and the mixed blue brightness value.
[0021] In one embodiment, determining the brightness ratio of the second LED in the lighting device based on the target color temperature and the mixed color temperature includes:
[0022] Obtain the color brightness value corresponding to the target color temperature, and the color brightness value corresponding to the mixed color temperature;
[0023] The compensation color brightness value is determined based on the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature.
[0024] The brightness ratio of the second LED in the lighting device is determined based on the compensated color brightness value.
[0025] In one embodiment, obtaining the color brightness value corresponding to the target color temperature includes:
[0026] The target color temperature is decomposed to obtain the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature;
[0027] The color brightness value corresponding to the target color temperature is obtained based on the target red brightness value, the target green brightness value, and the target blue brightness value corresponding to the target color temperature.
[0028] In one embodiment, the color brightness values corresponding to the target color temperature include target red brightness values, target green brightness values, and target blue brightness values; the color brightness values corresponding to the mixed color temperature include mixed red brightness values, mixed green brightness values, and mixed blue brightness values.
[0029] The step of determining the compensation color brightness value based on the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature includes:
[0030] The compensation red brightness value is determined based on the difference between the target red brightness value and the mixed red brightness value;
[0031] The compensation green brightness value is determined based on the difference between the target green brightness value and the mixed green brightness value;
[0032] The compensation blue brightness value is determined based on the difference between the target blue brightness value and the mixed blue brightness value;
[0033] The compensated color brightness value is obtained based on the compensated red brightness value, the compensated green brightness value, and the compensated blue brightness value.
[0034] In one embodiment, the second LED includes a red LED, a green LED, and a blue LED, and the brightness ratio of the second LED includes a third brightness ratio of the red LED, a fourth brightness ratio of the green LED, and a fifth brightness ratio of the blue LED.
[0035] Determining the brightness ratio of the second LED in the lighting device based on the compensated color brightness value includes:
[0036] The third brightness ratio is determined based on the compensated red brightness value and the total brightness value of the red LED beads; the total brightness value is used to represent the maximum value among the brightness values.
[0037] The fourth brightness ratio is determined based on the compensated green brightness value and the total brightness value of the green LED beads;
[0038] The fifth brightness ratio is determined based on the compensated blue brightness value and the total brightness value of the blue LED beads.
[0039] In one embodiment, adjusting the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device reaches the target color temperature, includes:
[0040] If the brightness ratio of the first LED bead is 0, then the brightness ratio of the second LED bead in the lighting device is re-determined according to the target color temperature.
[0041] Adjust the brightness of the second LED according to the newly determined brightness ratio of the second LED, so that the current color temperature of the lighting device reaches the target color temperature.
[0042] Secondly, this application also provides a color temperature processing device, comprising:
[0043] The first determining module is used to determine the brightness ratio of the first LED in the lighting device based on the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is to achieve.
[0044] The color temperature determination module is used to determine the mixed color temperature corresponding to the brightness ratio of the first LED based on the brightness ratio of the first LED.
[0045] The second determining module is used to determine the brightness ratio of the second LED in the lighting device based on the target color temperature and the mixed color temperature;
[0046] The brightness adjustment module is used to adjust the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device reaches the target color temperature.
[0047] Thirdly, this application also provides a lighting device, including: a first LED, a second LED, and a controller;
[0048] The first LED chip includes both cold light LED chips and warm light LED chips;
[0049] The second LED includes red LEDs, green LEDs, and blue LEDs;
[0050] The controller is configured to: determine the brightness ratio of the first LED bead based on the target color temperature of the lighting device; determine a mixed color temperature corresponding to the brightness ratio of the first LED bead based on the brightness ratio of the first LED bead; determine the brightness ratio of the second LED bead based on the target color temperature and the mixed color temperature; and adjust the brightness of the first LED bead and the brightness of the second LED bead according to the brightness ratios of the first LED bead and the second LED bead, so that the current color temperature of the lighting device reaches the target color temperature; the target color temperature represents the color temperature that the lighting device is intended to achieve.
[0051] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0052] The brightness ratio of the first LED in the lighting device is determined based on the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is intended to achieve.
[0053] Based on the brightness ratio of the first LED, determine the mixed color temperature corresponding to the brightness ratio of the first LED;
[0054] The brightness ratio of the second LED in the lighting device is determined based on the target color temperature and the mixed color temperature.
[0055] According to the brightness ratio of the first LED bead and the brightness ratio of the second LED bead, adjust the brightness of the first LED bead and the second LED bead so that the current color temperature of the lighting device reaches the target color temperature.
[0056] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0057] The brightness ratio of the first LED in the lighting device is determined based on the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is intended to achieve.
[0058] Based on the brightness ratio of the first LED, determine the mixed color temperature corresponding to the brightness ratio of the first LED;
[0059] The brightness ratio of the second LED in the lighting device is determined based on the target color temperature and the mixed color temperature.
[0060] According to the brightness ratio of the first LED bead and the brightness ratio of the second LED bead, adjust the brightness of the first LED bead and the second LED bead so that the current color temperature of the lighting device reaches the target color temperature.
[0061] The aforementioned color temperature processing method, apparatus, lighting equipment, computer-readable storage medium, and computer program product first determine the brightness ratio of the first LED in the lighting equipment based on the target color temperature to be achieved by the lighting equipment. Then, based on the brightness ratio of the first LED, a mixed color temperature corresponding to the brightness ratio of the first LED is determined. Next, based on the target color temperature and the mixed color temperature, the brightness ratio of the second LED in the lighting equipment is determined. Finally, the brightness of the first LED and the brightness of the second LED are adjusted according to the brightness ratio of the first LED and the brightness ratio of the second LED, so that the current color temperature of the lighting equipment reaches the target color temperature. In this way, when adjusting the color temperature of the lighting equipment, the brightness ratio of the first and second LEDs in the equipment is comprehensively determined based on the target color temperature to be achieved. The brightness of both LEDs is then adjusted accordingly. In other words, by adjusting the brightness of the first LED and supplementing it with the second LED, the original color temperature obtained by mixing cool and warm LEDs can be effectively corrected. This achieves precise control of the target color temperature, thereby improving the accuracy of color temperature adjustment and avoiding the low accuracy that occurs when adjusting color temperature solely using cool and warm LEDs. Furthermore, the target color temperature is achieved through comprehensive dimming of the first and second LEDs, not limited to the individual color temperatures of the cool and warm LEDs, which further enhances the accuracy of color temperature adjustment. Attached Figure Description
[0062] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0063] Figure 1 This is a diagram illustrating the application environment of a color temperature processing method in one embodiment.
[0064] Figure 2 This is a flowchart illustrating a color temperature processing method in one embodiment;
[0065] Figure 3 This is a flowchart illustrating the steps of determining the mixed color temperature corresponding to the brightness ratio of the first LED in one embodiment.
[0066] Figure 4 This is a flowchart illustrating the steps for determining the brightness ratio of a second LED in a lighting device in one embodiment.
[0067] Figure 5 This is a flowchart illustrating the steps of adjusting the brightness of the first LED and the second LED in one embodiment.
[0068] Figure 6 This is a flowchart illustrating the color temperature processing method in another embodiment;
[0069] Figure 7 This is a structural block diagram of a color temperature processing device in one embodiment;
[0070] Figure 8 This is an internal structural diagram of a lighting device in one embodiment. Detailed Implementation
[0071] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0072] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0073] The color temperature processing method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the lighting device 101 connects to the first device 102 via ZIGBEE (a low-power LAN protocol based on the IEEE 802.15.4 standard) or Bluetooth. The first device 102 and the second device 103 can each connect to the router via Wi-Fi. Additionally, the second device 103 can also establish a network connection with the cloud / cloud server 104 via 2G / 3G / 4G / 5G / Wi-Fi, thereby obtaining data sent by the cloud / cloud server 104. For example, refer to... Figure 1 The second device 103 sends the color temperature adjustment request triggered by the user to the first device 102. The first device 102 determines the target color temperature to be achieved by the lighting device 101 according to the color temperature adjustment request, and determines the brightness ratio of the first LED in the lighting device 101 according to the target color temperature. Then, it determines the mixed color temperature corresponding to the brightness ratio of the first LED. Next, it determines the brightness ratio of the second LED in the lighting device 101 according to the target color temperature and the mixed color temperature. Finally, it adjusts the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device 101 reaches the target color temperature.
[0074] In addition, the first device 102 can also send a color temperature adjustment request to the lighting device 101. The controller in the lighting device 101 determines the target color temperature to be achieved by the lighting device 101 according to the color temperature adjustment request, and determines the brightness ratio of the first LED in the lighting device 101 according to the target color temperature. Then, it determines the mixed color temperature corresponding to the brightness ratio of the first LED. Next, it determines the brightness ratio of the second LED in the lighting device 101 according to the target color temperature and the mixed color temperature. Finally, it adjusts the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device 101 reaches the target color temperature.
[0075] Lighting device 101 refers to a lighting device including a first LED and a second LED, wherein the first LED includes cool light LEDs and warm light LEDs, and the second LED includes red light LEDs, green light LEDs, and blue light LEDs; in addition, lighting device 101 can also refer to a lighting system including the first LED, the second LED, and a controller. First device 102 refers to a smart home central control device, used to integrate and manage various lighting devices 101 and smart home devices. The smart home central control device can be a smart home gateway, a smart home controller, etc., and the smart home devices can be smart TVs, smart speakers, smart air conditioners, smart fans, smart refrigerators, smart sockets, smart switches, smart curtains, etc. Second device 103 refers to the terminal used by the user. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Cloud / cloud server 104 can be implemented using a standalone server or a server cluster composed of multiple servers.
[0076] It should be noted that this application can be applied to various scenarios where the color temperature of lighting equipment needs to be adjusted, such as bedrooms, living rooms, studies, conference rooms, offices, classrooms, etc., to correct the color temperature of the original dual-color temperature LEDs and widen the original color temperature range by using RGB (red, green, blue) LEDs to supplement light.
[0077] In one exemplary embodiment, such as Figure 2 As shown, a color temperature processing method is provided, which is applied to... Figure 1 Taking the first device as an example, the explanation includes the following steps S201 to S204. Wherein:
[0078] Step S201: Determine the brightness ratio of the first LED in the lighting device according to the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is to achieve.
[0079] Color temperature is a physical quantity used in lighting optics to define the color of a light source, and its unit is Kelvin (K). Target color temperature refers to the color temperature that the lighting equipment is expected to achieve in the future, such as 5000K, 6000K, 7000K, etc.
[0080] The lighting equipment refers to the intelligent lighting to be controlled, specifically including the first LED and the second LED. The first LED refers to a combination of cool light LEDs and warm light LEDs, specifically dual-color temperature LEDs. The second LED refers to a combination of red light LEDs, green light LEDs and blue light LEDs, specifically RGB LEDs.
[0081] It's important to note that dual-color temperature LEDs can provide two basic color temperatures: a cool light color temperature (e.g., 6500K) and a warm light color temperature (e.g., 2700K). Both cool and warm light color temperatures can be individually decomposed into the brightness values of the three RGB color channels. RGB LEDs can independently control the brightness of the red, green, and blue color channels, providing more precise control over color temperature adjustment. For example, they can compensate for color differences that occur when dual-color temperature LEDs are mixed, thus achieving more accurate color temperature adjustment.
[0082] The brightness ratio of the first LED chip is used to characterize the luminous intensity of the first LED chip, such as 40% or 50%. The brightness ratio of the first LED chip includes a first brightness ratio for cool-light LED chips and a second brightness ratio for warm-light LED chips. The first brightness ratio of the cool-light LED chips characterizes the luminous intensity of the cool-light LED chips, such as 40% or 50%; the second brightness ratio of the warm-light LED chips characterizes the luminous intensity of the warm-light LED chips, such as 40% or 50%. The sum of the first brightness ratio and the second brightness ratio is 1; for example, the first brightness ratio is 65% and the second brightness ratio is 35%.
[0083] For example, refer to Figure 1 The second device responds to the user's operation on adjusting the color temperature of the lighting device, generates a color temperature adjustment request for the lighting device, and sends the color temperature adjustment request to the first device; the first device parses the received color temperature adjustment request to obtain the target color temperature to be achieved by the lighting device, and then determines the first brightness ratio of the cold light lamp beads and the second brightness ratio of the warm light lamp beads in the first lamp beads according to the target color temperature, thereby obtaining the brightness ratio of the first lamp beads.
[0084] For example, see reference. Figure 1On the lighting control page displayed on the second device, the user selects the lighting device to be controlled (e.g., living room lighting device A) and the target color temperature (e.g., 6000K), triggering the second device to generate a color temperature adjustment request for the lighting device and send the request to the first device; or, the user sends a color temperature adjustment command for the lighting device (e.g., bedroom lighting device B) to the first device via intelligent voice; then, the first device parses the color temperature adjustment request or command to obtain the target color temperature, and determines the brightness ratio of the first LED in the lighting device based on the target color temperature.
[0085] Step S202: Determine the mixed color temperature corresponding to the brightness ratio of the first LED bead.
[0086] The mixed color temperature refers to the color temperature that can be achieved after the first LED emits light according to its brightness ratio. Specifically, it refers to the color temperature that can be achieved after the cool light LED emits light according to its first brightness ratio and the warm light LED emits light according to its second brightness ratio, such as 5000K, 5500K, etc.
[0087] It should be noted that by adjusting the first brightness ratio of the cool light LEDs and the second brightness ratio of the warm light LEDs in the first LED chip, a light source with a mixed color temperature close to the target color temperature can be produced. However, the color temperature range of the first LED chip is limited, and there is a deviation between the obtained mixed color temperature and the target color temperature. Therefore, it is necessary to use a second LED chip (i.e., an RGB LED chip) for supplementary lighting to solve the color difference problem caused by the mixing of the cool light LEDs and warm light LEDs in the first LED chip.
[0088] It should be noted that when determining the mixed color temperature here, we are only assuming that if the cool light color temperature and warm light color temperature of the first LED bead are mixed according to the first brightness ratio of the cool light LED bead and the second brightness ratio of the warm light LED bead, we can achieve the mixed color temperature. It does not mean that we first adjust the brightness of the cool light LED bead and the brightness of the warm light LED bead according to the first brightness ratio of the cool light LED bead and the second brightness ratio of the warm light LED bead.
[0089] For example, the first device analyzes the brightness ratio of the first LED to obtain the first brightness ratio of the cool light LED and the second brightness ratio of the warm light LED, and mixes the cool light color temperature and warm light color temperature of the first LED according to the first brightness ratio of the cool light LED and the second brightness ratio of the warm light LED to obtain the mixed color temperature corresponding to the brightness ratio of the first LED.
[0090] For example, the first device performs fusion processing on the first red brightness value and the second red brightness value after decomposing the cold light color temperature, the first green brightness value and the second green brightness value after decomposing the warm light color temperature, and the first blue brightness value and the second blue brightness value after decomposing the cold light color temperature, according to the first brightness ratio of the cold light LED beads and the second brightness ratio of the warm light LED beads, respectively, to obtain a mixed red brightness value, a mixed green brightness value, and a mixed blue brightness value. Finally, based on the mixed red brightness value, the mixed green brightness value, and the mixed blue brightness value, the mixed color temperature corresponding to the brightness ratio of the first LED beads is obtained.
[0091] Step S203: Determine the brightness ratio of the second LED in the lighting device based on the target color temperature and the mixed color temperature.
[0092] The brightness ratio of the second LED is used to characterize the luminous intensity of the second LED, such as 40% or 50%. The brightness ratio of the second LED includes a third brightness ratio for red LEDs, a fourth brightness ratio for green LEDs, and a fifth brightness ratio for blue LEDs. The third brightness ratio of red LEDs characterizes the luminous intensity of red LEDs (e.g., 40% or 50%) and can be used to control the brightness of the red channel. The fourth brightness ratio of green LEDs characterizes the luminous intensity of green LEDs (e.g., 40% or 50%) and can be used to control the brightness of the green channel. The fifth brightness ratio of blue LEDs characterizes the luminous intensity of blue LEDs (e.g., 40% or 50%) and can be used to control the brightness of the blue channel.
[0093] The brightness ratio of the second LED is determined based on the difference between the target color temperature and the mixed color temperature.
[0094] For example, the first device first determines the difference between the target color temperature and the mixed color temperature, then queries the correspondence between the difference and the brightness ratio to obtain the brightness ratio corresponding to the difference, which is used as the brightness ratio of the second LED in the lighting device.
[0095] For example, the first device determines the compensation color brightness value (e.g., compensation red brightness value, compensation green brightness value, and compensation blue brightness value) based on the difference between the color brightness value corresponding to the target color temperature (e.g., target red brightness value, target green brightness value, and target blue brightness value) and the color brightness value corresponding to the mixed color temperature (e.g., mixed red brightness value, mixed green brightness value, and mixed blue brightness value). Based on the compensation color brightness value, the device determines the third brightness ratio of the red LED, the fourth brightness ratio of the green LED, and the fifth brightness ratio of the blue LED in the second LED, thereby obtaining the brightness ratio of the second LED.
[0096] Step S204: Adjust the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device reaches the target color temperature.
[0097] The brightness of the first LED includes the brightness of the cool light LED and the brightness of the warm light LED; the brightness of the second LED includes the brightness of the red light LED, the brightness of the green light LED, and the brightness of the blue light LED.
[0098] The current color temperature refers to the color temperature currently reached by the lighting equipment, such as 3000K, 4000K, 5000K, etc.
[0099] It should be noted that in traditional technology, dual-color temperature LEDs use both cool-light and warm-light LEDs to display all color temperatures. However, color temperature is not a linear relationship but a non-linear curve. Therefore, the color temperature obtained by mixing these two types of LEDs deviates from the true color temperature, and the mixed color temperature is limited by the color temperature of the individual LEDs. This application, however, introduces RGB LEDs for supplementary lighting on top of dual-color temperature LEDs, enabling precise control of color temperature, including accuracy and adjustment range. For example, it offers greater flexibility and accuracy in color temperature adjustment, while also expanding the color temperature adjustment range (i.e., displaying a wider range of color temperatures) to meet diverse lighting needs. For example, the color temperature adjustment range of traditional technology is 2700K-6500K, while the color temperature adjustment range of this application is 1500K-9000K. That is, the adjusted color temperature can be lower than the warm light color temperature (such as 2700K) or higher than the warm light color temperature (such as 6500K), and in actual testing, the color temperature adjustment range can reach 1500K-16000K.
[0100] It should be noted that when the target color temperature exceeds the adjustment range of dual-color-temperature LEDs (e.g., the target color temperature is higher than the cool light color temperature or lower than the warm light color temperature), the color difference can be compensated by using cool light LEDs or warm light LEDs individually, in conjunction with red, green, and blue LEDs, thereby expanding the color temperature adjustment range. For example, if the target color temperature is higher than the cool light color temperature, only cool light LEDs are used, and RGB LEDs are used to compensate for the color difference to increase the color temperature; if the target color temperature is lower than the warm light color temperature, only warm light LEDs are used, and RGB LEDs are used to compensate for the color difference to decrease the color temperature.
[0101] For example, the first device adjusts the brightness of the cold light LEDs, warm light LEDs, red light LEDs, green light LEDs, and blue light LEDs according to a first brightness ratio of cold light LEDs, a second brightness ratio of warm light LEDs, a third brightness ratio of red light LEDs, a fourth brightness ratio of green light LEDs, and a fifth brightness ratio of blue light LEDs, so that the current color temperature of the lighting device reaches the target color temperature. For example, by adjusting the brightness of the cold light LEDs, warm light LEDs, red light LEDs, green light LEDs, and blue light LEDs in the lighting device, the current color temperature of the lighting device can reach the target color temperature of 6000K.
[0102] For example, if the target color temperature (e.g., 6000K) is between the warm light color temperature (2700K) and the cool light color temperature (6500K) of the first LED, then based on the target color temperature, determine the first brightness ratio (greater than 0 and less than 1) of the cool light LED and the second brightness ratio (greater than 0 and less than 1) of the warm light LED. That is, both the cool light and warm light LEDs need to be turned on simultaneously. Then, based on the first brightness ratio (greater than 0 and less than 1) and the second brightness ratio (greater than 0 and less than 1) of the cool light LED, Determine the mixed color temperature, and then, based on the target color temperature and the mixed color temperature, determine the third brightness ratio of the red LEDs, the fourth brightness ratio of the green LEDs, and the fifth brightness ratio of the blue LEDs. Adjust the brightness of the cool LEDs, warm LEDs, red LEDs, green LEDs, and blue LEDs according to the first brightness ratio of the cool LEDs, the second brightness ratio of the warm LEDs, the third brightness ratio of the red LEDs, the fourth brightness ratio of the green LEDs, and the fifth brightness ratio of the blue LEDs, so that the current color temperature of the lighting equipment reaches the target color temperature.
[0103] For example, if the target color temperature (e.g., 7500K) is greater than the cool light color temperature (6500K), then the first brightness ratio of the cool light LED is set to 1, and the second brightness ratio of the warm light LED is set to 0. That is, only the cool light LED is used, because at this time the color temperature needs to be increased, while turning on the warm light LED will only decrease the color temperature. Therefore, only the cool light LED needs to be turned on, and the warm light LED does not need to be turned on. Next, based on the first brightness ratio (i.e., 1) of the cool light LEDs and the second brightness ratio (i.e., 0) of the warm light LEDs, the mixed color temperature is determined. Then, based on the target color temperature and the mixed color temperature, the third brightness ratio of the red light LEDs, the fourth brightness ratio of the green light LEDs, and the fifth brightness ratio of the blue light LEDs are determined. Finally, based on the first brightness ratio (i.e., 1) of the cool light LEDs, the second brightness ratio (i.e., 0) of the warm light LEDs, the third brightness ratio of the red light LEDs, the fourth brightness ratio of the green light LEDs, and the fifth brightness ratio of the blue light LEDs, the brightness of the cool light LEDs, warm light LEDs, red light LEDs, green light LEDs, and blue light LEDs is adjusted. That is, the cool light LEDs are turned on and adjusted to their brightest setting, the warm light LEDs are turned off, and the brightness of the red light LEDs, green light LEDs, and blue light LEDs is controlled to reach the required brightness, so that the current color temperature of the lighting equipment reaches the target color temperature.
[0104] For example, if the target color temperature (e.g., 2000K) is less than the warm light color temperature (2700K), then the first brightness ratio of the cool light LED is set to 0, and the second brightness ratio of the warm light LED is set to 1. That is, the warm light LED is used alone, because at this time the color temperature needs to be lowered, while turning on the cool light LED will only increase the color temperature. Therefore, only the warm light LED needs to be turned on, and the cool light LED does not need to be turned on. Next, based on the first brightness ratio (0) of the cool light LEDs and the second brightness ratio (1) of the warm light LEDs, the mixed color temperature is determined. Then, based on the target color temperature and the mixed color temperature, the third brightness ratio of the red LEDs, the fourth brightness ratio of the green LEDs, and the fifth brightness ratio of the blue LEDs are determined. Finally, based on the first brightness ratio (0) of the cool light LEDs, the second brightness ratio (1) of the warm light LEDs, the third brightness ratio of the red light LEDs, the fourth brightness ratio of the green light LEDs, and the fifth brightness ratio of the blue LEDs, the brightness of the cool light LEDs, warm light LEDs, red light LEDs, green light LEDs, and blue light LEDs is adjusted. That is, the cool light LEDs are turned off, the warm light LEDs are turned on and adjusted to their brightest setting, and the brightness of the red light LEDs, green light LEDs, and blue light LEDs is controlled to reach the required brightness, so that the current color temperature of the lighting equipment reaches the target color temperature.
[0105] In the aforementioned color temperature processing method, the brightness ratio of the first LED in the lighting equipment is first determined based on the target color temperature to be achieved. Then, based on the brightness ratio of the first LED, the corresponding mixed color temperature is determined. Next, based on the target color temperature and the mixed color temperature, the brightness ratio of the second LED in the lighting equipment is determined. Finally, the brightness of the first and second LEDs is adjusted according to their respective brightness ratios to bring the current color temperature of the lighting equipment to the target color temperature. In this way, when adjusting the color temperature of the lighting equipment, the brightness ratio of the first and second LEDs is comprehensively determined based on the target color temperature, and the brightness of both LEDs is adjusted accordingly. That is, by adjusting the brightness of the first LED and supplementing the light with the second LED, the original color temperature obtained by mixing cool and warm LEDs can be effectively corrected, thus achieving precise control of the target color temperature. This improves the accuracy of color temperature adjustment and avoids the drawback of low accuracy caused by adjusting the color temperature solely with cool and warm LEDs. Moreover, the target color temperature to be achieved by the lighting equipment is achieved by comprehensively dimming the first and second LED beads, and is not limited to the color temperature of the cool light LED beads and the warm light LED beads themselves, which is conducive to further improving the accuracy of color temperature adjustment.
[0106] In an exemplary embodiment, the first LED includes a cool-light LED and a warm-light LED. The brightness ratio of the first LED includes a first brightness ratio of the cool-light LED and a second brightness ratio of the warm-light LED, and the sum of the first brightness ratio and the second brightness ratio is 1. Therefore, step S201, determining the brightness ratio of the first LED in the lighting device based on the target color temperature of the lighting device, specifically includes the following: If the target color temperature is between the warm-light color temperature and the cool-light color temperature of the first LED, then the first brightness ratio is determined based on the difference between the target color temperature and the warm-light color temperature, and the difference between the cool-light color temperature and the warm-light color temperature; the warm-light color temperature represents the lowest color temperature of the warm-light LED, and the cool-light color temperature represents the highest color temperature of the cool-light LED. Alternatively, if the target color temperature is greater than the cool-light color temperature, then the first brightness ratio is determined to be 1. Alternatively, if the target color temperature is less than the warm-light color temperature, then the second brightness ratio is determined to be 1.
[0107] In this context, the warm light color temperature of the first LED refers to its lowest color temperature, such as 2700K. The cool light color temperature of the first LED refers to its highest color temperature, such as 6500K. Furthermore, the first brightness ratio + the second brightness ratio = 1, meaning the second brightness ratio = 1 - the first brightness ratio.
[0108] The target color temperature being between the warm and cool light color temperatures of the first LED can mean that the target color temperature is within the range of [2700K, 6500K]. A target color temperature greater than the cool light color temperature can mean that the target color temperature is greater than 6500K. A target color temperature less than the warm light color temperature can mean that the target color temperature is less than 2700K.
[0109] The first brightness ratio is determined based on the difference between the target color temperature and the warm light color temperature, and the difference between the cool light color temperature and the warm light color temperature. That is, the first brightness ratio = (the difference between the target color temperature and the warm light color temperature) / (the difference between the cool light color temperature and the warm light color temperature) = (target color temperature - warm light color temperature) / (cool light color temperature - warm light color temperature).
[0110] It should be noted that the color temperature adjustment range of the lighting equipment in this application has been widened, meaning it can be lower than the warm light color temperature or higher than the cool light color temperature.
[0111] For example, in the first case: if the first device detects that the target color temperature is between the warm light color temperature and the cool light color temperature of the first LED, it obtains the difference between the target color temperature and the warm light color temperature, and the difference between the cool light color temperature and the warm light color temperature. Based on the difference between the target color temperature and the warm light color temperature, and the difference between the cool light color temperature and the warm light color temperature, it calculates the first brightness ratio of the cool light LED, i.e., the first brightness ratio = (target color temperature - warm light color temperature) / (cool light color temperature - warm light color temperature), and the second brightness ratio of the warm light LED = 1 - the first brightness ratio = 1 - (target color temperature - warm light color temperature) / (cool light color temperature - warm light color temperature). In the second case: if the first device detects that the target color temperature is greater than the cool light color temperature, i.e., only the cool light LED needs to be turned on and the warm light LED does not need to be turned on, it determines that the first brightness ratio of the cool light LED is 1 and the second brightness ratio of the warm light LED is 0. The third scenario: If the first device detects that the target color temperature is lower than the warm light color temperature, that is, only the warm light LED needs to be turned on and the cool light LED does not need to be turned on, then the first brightness ratio of the cool light LED is determined to be 0 and the second brightness ratio of the warm light LED is determined to be 1.
[0112] For example, if the target color temperature is between the warm and cool color temperatures of the first LED, the first brightness ratio of the cool LED and the second brightness ratio of the warm LED can be calculated using the following formula:
[0113] K = (t - t_w) / (t_c - t_w);
[0114] M = 1 - K;
[0115] Where K represents the first brightness ratio of the cool light LED, t represents the target color temperature, t_w represents the warm light color temperature of the first LED, t_c represents the cool light color temperature of the first LED, and M represents the second brightness ratio of the warm light LED.
[0116] For example, if the target color temperature is greater than the cool light color temperature, then K = 1 and M = 0.
[0117] For example, if the target color temperature is lower than the warm light color temperature, then K = 0 and M = 1.
[0118] In this embodiment, when determining the first brightness ratio of the cold light LEDs and the second brightness ratio of the warm light LEDs based on the target color temperature of the lighting equipment, different calculation methods are used according to the color temperature range of the target color temperature to determine the first brightness ratio of the cold light LEDs and the second brightness ratio of the warm light LEDs. That is, by comprehensively considering different situations, the accuracy of determining the first brightness ratio of the cold light LEDs and the second brightness ratio of the warm light LEDs can be effectively improved, thereby making the determination of the brightness ratio of the second LED more accurate and thus improving the accuracy of color temperature adjustment.
[0119] In one exemplary embodiment, such as Figure 3As shown, step S202 above, which determines the mixed color temperature corresponding to the brightness ratio of the first LED, specifically includes steps S301 to S303. Wherein:
[0120] Step S301: Perform color temperature decomposition processing on the cool light color temperature and warm light color temperature of the first LED bead to obtain the first red brightness value, the first green brightness value and the first blue brightness value corresponding to the cool light color temperature, and the second red brightness value, the second green brightness value and the second blue brightness value corresponding to the warm light color temperature.
[0121] Step S302: According to the first brightness ratio and the second brightness ratio, the first red brightness value and the second red brightness value, the first green brightness value and the second green brightness value, the first blue brightness value and the second blue brightness value are respectively fused to obtain the mixed red brightness value, the mixed green brightness value and the mixed blue brightness value.
[0122] Step S303: Determine the mixed color temperature based on the mixed red brightness value, mixed green brightness value, and mixed blue brightness value.
[0123] Any color temperature can be individually decomposed into the brightness values of the three RGB color channels. Color temperature decomposition processing refers to the process based on the principle of linear superposition of light, where light of any color temperature can be decomposed into red, green, and blue brightness values; red brightness value refers to the brightness value of the red channel, green brightness value refers to the brightness value of the green channel, and blue brightness value refers to the brightness value of the blue channel. For example, cool light color temperature can be decomposed into first red brightness value, first green brightness value, and first blue brightness value, i.e., cool light color temperature = first red brightness value + first green brightness value + first blue brightness value; warm light color temperature can be decomposed into second red brightness value, second green brightness value, and second blue brightness value, i.e., warm light color temperature = second red brightness value + second green brightness value + second blue brightness value.
[0124] Here, the mixed red brightness value refers to the red brightness value obtained by fusing the first red brightness value and the second red brightness value; the mixed green brightness value refers to the green brightness value obtained by fusing the first green brightness value and the second green brightness value; and the mixed blue brightness value refers to the blue brightness value obtained by fusing the first blue brightness value and the second blue brightness value. For example, the mixed red brightness value = first brightness ratio × first red brightness value + second brightness ratio × second red brightness value; the mixed green brightness value = first brightness ratio × first green brightness value + second brightness ratio × second green brightness value; and the mixed blue brightness value = first brightness ratio × first blue brightness value + second brightness ratio × second blue brightness value.
[0125] The resulting mixed color temperature can be expressed by mixing the red, green, and blue luminance values: Mixed Color Temperature = Mixed Red Luminance Value + Mixed Green Luminance Value + Mixed Blue Luminance Value. It should be noted that the sum here represents the luminance values of the mixed color temperature in the red, green, and blue channels respectively.
[0126] For example, the first device performs color temperature decomposition processing on the cool light color temperature and warm light color temperature of the first LED bead according to the color temperature decomposition instruction, to obtain the first red luminance value, the first green luminance value, and the first blue luminance value corresponding to the cool light color temperature, and the second red luminance value, the second green luminance value, and the second blue luminance value corresponding to the warm light color temperature, that is, cool light color temperature = first red luminance value + first green luminance value + first blue luminance value, and warm light color temperature = second red luminance value + second green luminance value + second blue luminance value; then, according to the first luminance ratio and the second luminance ratio, the first red luminance value and the second red luminance value are fused to obtain a mixed red luminance value, that is, the mixed red luminance value = first luminance ratio. Example: × First red brightness value + Second brightness ratio × Second red brightness value; Based on the first brightness ratio and the second brightness ratio, the first green brightness value and the second green brightness value are fused to obtain a mixed green brightness value, i.e., Mixed green brightness value = First brightness ratio × First green brightness value + Second brightness ratio × Second green brightness value; Based on the first brightness ratio and the second brightness ratio, the first blue brightness value and the second blue brightness value are fused to obtain a mixed blue brightness value, i.e., Mixed blue brightness value = First brightness ratio × First blue brightness value + Second brightness ratio × Second blue brightness value; Finally, based on the mixed red brightness value, the mixed green brightness value, and the mixed blue brightness value, the mixed color temperature is determined.
[0127] For example, if the target color temperature is between the warm and cool color temperatures of the first LED, the mixed red brightness value, mixed green brightness value, and mixed blue brightness value are calculated using the following formula:
[0128] Mixed red brightness value = K × R_c + (1-K) × R_w;
[0129] Mixed green brightness value = K × G_c + (1-K) × G_w;
[0130] Mixed blue brightness value = K × B_c + (1-K) × B_w;
[0131] Wherein, R_c, G_c and B_c represent the first red luminance value, the first green luminance value and the first blue luminance value corresponding to the cool light color temperature, respectively, and R_w, G_w and B_w represent the second red luminance value, the second green luminance value and the second blue luminance value corresponding to the warm light color temperature, respectively.
[0132] For example, if the target color temperature is greater than the cool light color temperature of the first LED, indicating K=1, then the mixed red brightness value, mixed green brightness value, and mixed blue brightness value are calculated using the following formula:
[0133] Mixed red brightness value = R_c;
[0134] Mixed green brightness value = G_c;
[0135] Mixed blue brightness value = B_c;
[0136] That is, the mixed red brightness value = the first red brightness value, the mixed green brightness value = the first green brightness value, and the mixed blue brightness value = the first blue brightness value.
[0137] For example, if the target color temperature is less than the warm light color temperature of the first LED, indicating K=0, then the mixed red brightness value, mixed green brightness value, and mixed blue brightness value are calculated using the following formula:
[0138] Mixed red brightness value = R_w;
[0139] Mixed green brightness value = G_w;
[0140] Mixed blue brightness value = B_w;
[0141] That is, the mixed red brightness value = the second red brightness value, the mixed green brightness value = the second green brightness value, and the mixed blue brightness value = the second blue brightness value.
[0142] In this embodiment, when determining the mixed color temperature, the first brightness ratio of the cold light LEDs and the second brightness ratio of the warm light LEDs are comprehensively considered, as well as the first red brightness value, the first green brightness value, and the first blue brightness value after the decomposition of the cold light color temperature, and the second red brightness value, the second green brightness value, and the second blue brightness value after the decomposition of the warm light color temperature, which helps to improve the accuracy of the determination of the mixed color temperature.
[0143] In one exemplary embodiment, such as Figure 4 As shown, step S203 above, which determines the brightness ratio of the second LED in the lighting device based on the target color temperature and the mixed color temperature, specifically includes steps S401 to S403. Wherein:
[0144] Step S401: Obtain the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature.
[0145] Step S402: Determine the compensation color brightness value based on the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature.
[0146] Step S403: Determine the brightness ratio of the second LED in the lighting device based on the compensated color brightness value.
[0147] The color brightness value corresponding to the target color temperature refers to the brightness value of the three RGB color channels corresponding to the target color temperature, namely the target red brightness value, the target green brightness value, and the target blue brightness value.
[0148] The color brightness value corresponding to the mixed color temperature refers to the brightness value of the three RGB color channels corresponding to the mixed color temperature, namely the mixed red brightness value, the mixed green brightness value, and the mixed blue brightness value.
[0149] Specifically, the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature includes the difference between the target red brightness value and the mixed red brightness value, the difference between the target green brightness value and the mixed green brightness value, and the difference between the target blue brightness value and the mixed blue brightness value.
[0150] The compensated color brightness value refers to the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature. Specifically, it includes the compensated red brightness value, the compensated green brightness value, and the compensated blue brightness value.
[0151] Specifically, the compensated red brightness value refers to the difference between the target red brightness value and the mixed red brightness value, used to represent the compensated brightness value of the red LED, and can be used to determine the third brightness ratio of the red LED. The compensated green brightness value refers to the difference between the target green brightness value and the mixed green brightness value, used to represent the compensated brightness value of the green LED, and can be used to determine the fourth brightness ratio of the green LED. The compensated blue brightness value refers to the difference between the target blue brightness value and the mixed blue brightness value, used to represent the compensated brightness value of the blue LED, and can be used to determine the fifth brightness ratio of the blue LED.
[0152] It should be noted that, in order to solve the color difference problem caused by mixing dual-color temperature LEDs, RGB LEDs are introduced for compensation. The compensation color brightness values (i.e., compensation red brightness value, compensation green brightness value, and compensation blue brightness value) between the target color temperature and the mixed color temperature are calculated, and the brightness of the RGB LEDs is adjusted accordingly to compensate for these compensation color brightness values, thereby achieving a more accurate color temperature.
[0153] For example, the first device performs color temperature decomposition processing on the target color temperature and the mixed color temperature respectively to obtain the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature. Then, it calculates the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature, and determines the corresponding compensation color brightness value based on the difference. Finally, based on the compensation color brightness value, it determines the third brightness ratio of the red light LED, the fourth brightness ratio of the green light LED, and the fifth brightness ratio of the blue light LED in the second LED, thereby obtaining the brightness ratio of the second LED.
[0154] In this embodiment, the compensation color brightness value is first determined based on the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature. Then, the brightness ratio of the second LED in the lighting device is determined based on the compensation color brightness value. This helps to improve the accuracy of determining the brightness ratio of the second LED and facilitates subsequent supplementary lighting through the second LED to resolve the difference between the mixed color temperature and the target color temperature, thereby achieving precise color temperature adjustment.
[0155] In an exemplary embodiment, step S401, obtaining the color brightness value corresponding to the target color temperature, specifically includes the following: performing color temperature decomposition processing on the target color temperature to obtain the target red brightness value, target green brightness value, and target blue brightness value corresponding to the target color temperature; and obtaining the color brightness value corresponding to the target color temperature based on the target red brightness value, target green brightness value, and target blue brightness value corresponding to the target color temperature.
[0156] The target color temperature can be represented by the target red luminance value, target green luminance value, and target blue luminance value, i.e., target color temperature = target red luminance value + target green luminance value + target blue luminance value. It should be noted that the sum here represents the luminance values of the target color temperature in the red, green, and blue channels respectively.
[0157] For example, the first device performs color temperature decomposition processing on the target color temperature according to the color temperature decomposition instruction to obtain the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature. Then, the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature are confirmed as the color luminance value corresponding to the target color temperature. That is, the color luminance value corresponding to the target color temperature includes the target red luminance value, the target green luminance value and the target blue luminance value.
[0158] In this embodiment, the target color temperature is decomposed into the brightness values of multiple color channels, namely the target red brightness value, the target green brightness value, and the target blue brightness value. This facilitates the subsequent determination of the compensation color brightness value corresponding to each color channel, thereby accurately determining the third brightness ratio of the red LED, the fourth brightness ratio of the green LED, and the fifth brightness ratio of the blue LED in the second LED. This enables precise control of the brightness of the red, green, and blue LEDs, which is beneficial for achieving precise color temperature adjustment.
[0159] In an exemplary embodiment, the color brightness values corresponding to the target color temperature include target red brightness values, target green brightness values, and target blue brightness values; the color brightness values corresponding to the mixed color temperature include mixed red brightness values, mixed green brightness values, and mixed blue brightness values. Therefore, step S402, which determines a compensation color brightness value based on the difference between the color brightness values corresponding to the target color temperature and the color brightness values corresponding to the mixed color temperature, specifically includes the following: determining a compensation red brightness value based on the difference between the target red brightness value and the mixed red brightness value; determining a compensation green brightness value based on the difference between the target green brightness value and the mixed green brightness value; determining a compensation blue brightness value based on the difference between the target blue brightness value and the mixed blue brightness value; and obtaining the compensation color brightness value based on the compensation red brightness value, compensation green brightness value, and compensation blue brightness value.
[0160] Among them, the compensated red brightness value is the difference between the target red brightness value and the mixed red brightness value; the compensated green brightness value is the difference between the target green brightness value and the mixed green brightness value; and the compensated blue brightness value is the difference between the target blue brightness value and the mixed blue brightness value.
[0161] For example, the first device uses the difference between the target red brightness value and the mixed red brightness value as the compensated red brightness value; the difference between the target green brightness value and the mixed green brightness value as the compensated green brightness value; the difference between the target blue brightness value and the mixed blue brightness value as the compensated blue brightness value; and finally, the compensated red brightness value, the compensated green brightness value, and the compensated blue brightness value are confirmed as the compensated color brightness value, that is, the compensated color brightness value includes the compensated red brightness value, the compensated green brightness value, and the compensated blue brightness value.
[0162] For example, if the target color temperature is between the warm and cool color temperatures of the first LED, the compensation values for red, green, and blue brightness are calculated using the following formula:
[0163] R_difference = R_t - [K × R_c + (1-K) × R_w];
[0164] G_difference = G_t - [K × G_c + (1-K) × G_w];
[0165] B_difference = B_t - [K×B_c + (1-K)×B_w];
[0166] Wherein, R_difference, G_difference, and B_difference represent the compensation values for red, green, and blue brightness, respectively; R_t, G_t, and B_t represent the target red brightness value, target green brightness value, and target blue brightness value, respectively.
[0167] For example, if the target color temperature is greater than the cool light color temperature of the first LED, indicating K=1, then the compensation values for red brightness, green brightness, and blue brightness are calculated using the following formula:
[0168] R_difference = R_t - R_c;
[0169] G_difference = G_t - G_c;
[0170] B_difference = B_t - B_c;
[0171] That is, the compensation red brightness value = target red brightness value - first red brightness value; the compensation green brightness value = target green brightness value - first green brightness value; the compensation blue brightness value = target blue brightness value - first blue brightness value.
[0172] For example, if the target color temperature is less than the warm light color temperature of the first LED, meaning K=0, then the compensation values for red brightness, green brightness, and blue brightness are calculated using the following formula:
[0173] R_difference=R_t-R_w;
[0174] G_difference = G_t - G_w;
[0175] B_difference = B_t - B_w;
[0176] That is, the compensation red brightness value = target red brightness value - second red brightness value; the compensation green brightness value = target green brightness value - second green brightness value; the compensation blue brightness value = target blue brightness value - second blue brightness value.
[0177] In this embodiment, the target red luminance value, target green luminance value, and target blue luminance value corresponding to the target color temperature are respectively subtracted from the mixed red luminance value, mixed green luminance value, and mixed blue luminance value corresponding to the mixed color temperature. This helps to accurately determine the compensated red luminance value, compensated green luminance value, and compensated blue luminance value, thereby making the subsequent determination of the third luminance ratio of the red LED, the fourth luminance ratio of the green LED, and the fifth luminance ratio of the blue LED based on the compensated red luminance value, compensated green luminance value, and compensated blue luminance value more accurate, which is conducive to further improving the accuracy of color temperature adjustment.
[0178] In an exemplary embodiment, the second LED includes red, green, and blue LEDs, and the brightness ratio of the second LED includes a third brightness ratio of the red LEDs, a fourth brightness ratio of the green LEDs, and a fifth brightness ratio of the blue LEDs. Therefore, step S403, which determines the brightness ratio of the second LED in the lighting device based on the compensated color brightness values, specifically includes the following: determining the third brightness ratio based on the compensated red brightness value and the total brightness value of the red LEDs; the total brightness value represents the maximum value among the brightness values; determining the fourth brightness ratio based on the compensated green brightness value and the total brightness value of the green LEDs; and determining the fifth brightness ratio based on the compensated blue brightness value and the total brightness value of the blue LEDs.
[0179] The total brightness value of the red LEDs refers to the maximum brightness value among all red LEDs, i.e., the maximum brightness value of the red LEDs. Similarly, the total brightness value of the green LEDs refers to the maximum brightness value among all green LEDs, i.e., the maximum brightness value of the green LEDs. The total brightness value of the blue LEDs refers to the maximum brightness value among all blue LEDs, i.e., the maximum brightness value of the blue LEDs.
[0180] Among them, the third brightness ratio = compensation red brightness value / total brightness value of red LED beads; the fourth brightness ratio = compensation green brightness value / total brightness value of green LED beads; and the fifth brightness ratio = compensation blue brightness value / total brightness value of blue LED beads.
[0181] For example, the first device calculates the ratio between the compensated red brightness value and the total brightness value of the red LED, and uses it as the third brightness ratio of the red LED; calculates the ratio between the compensated green brightness value and the total brightness value of the green LED, and uses it as the fourth brightness ratio of the green LED; calculates the ratio between the compensated blue brightness value and the total brightness value of the blue LED, and uses it as the fifth brightness ratio of the blue LED.
[0182] In this embodiment, the third brightness ratio of the red LED, the fourth brightness ratio of the green LED, and the fifth brightness ratio of the blue LED are determined by the compensated color brightness values of each color channel. This facilitates precise supplementary lighting using red, green, and blue LEDs, effectively correcting the original color temperature obtained by mixing cool and warm LEDs, thus achieving precise color temperature adjustment. Furthermore, precise supplementary lighting using red, green, and blue LEDs helps to broaden the color temperature adjustment range, avoiding the limited color temperature range obtained by mixing cool and warm LEDs.
[0183] In one exemplary embodiment, such as Figure 5As shown, step S204 above, adjusting the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device reaches the target color temperature, specifically includes steps S501 to S502. Wherein:
[0184] Step S501: If the brightness ratio of the first LED is 0, then the brightness ratio of the second LED in the lighting device is re-determined according to the target color temperature.
[0185] Step S502: Adjust the brightness of the second LED according to the newly determined brightness ratio of the second LED to make the current color temperature of the lighting device reach the target color temperature.
[0186] In this configuration, the brightness ratio of the first LED is 0, meaning that the first brightness ratio of the cool-light LED and the second brightness ratio of the warm-light LED are both 0. This means the color temperature is entirely displayed by the second LED (RGB LED), without the need for either cool-light or warm-light LEDs. In this case, the compensated red brightness value equals the target red brightness value; the compensated green brightness value equals the target green brightness value; and the compensated blue brightness value equals the target blue brightness value.
[0187] The redefined brightness ratios for the second LED include the redefined third, fourth, and fifth brightness ratios. Furthermore, the redefined third brightness ratio = target red brightness value / total brightness value of the red LEDs; the redefined fourth brightness ratio = target green brightness value / total brightness value of the green LEDs; and the redefined fifth brightness ratio = target blue brightness value / total brightness value of the blue LEDs.
[0188] For example, when the brightness ratio of the first LED is 0, the first device performs color temperature decomposition processing on the target color temperature to obtain the target red brightness value, target green brightness value, and target blue brightness value corresponding to the target color temperature; then, the target red brightness value is confirmed as the compensated red brightness value, the target green brightness value is confirmed as the compensated green brightness value, and the target blue brightness value is confirmed as the compensated blue brightness value; next, the ratio between the compensated red brightness value and the total brightness value of the red LED is calculated, and this ratio is used as the new third brightness ratio of the red LED, i.e., the new third brightness ratio of the red LED = target red brightness value / total brightness value of the red LED; the compensated green brightness value and the total brightness value of the green LED are then calculated. The ratio between the target green LED and the total green LED is calculated and used as the new fourth brightness ratio for the green LED, i.e., the new fourth brightness ratio for the green LED = target green brightness value / total brightness value of the green LED. The ratio between the compensated blue brightness value and the total brightness value of the blue LED is calculated and used as the new fifth brightness ratio for the blue LED, i.e., the new fifth brightness ratio for the blue LED = target blue brightness value / total brightness value of the blue LED. Finally, according to the new third brightness ratio for the red LED, the new fourth brightness ratio for the green LED, and the new fifth brightness ratio for the blue LED, the brightness of the red, blue, and green LEDs is adjusted, and the cool and warm LEDs are turned off to bring the current color temperature of the lighting equipment to the target color temperature.
[0189] For example, when the first brightness ratio of the cool light LED and the second brightness ratio of the warm light LED are both 0, the first device redetermines the new third brightness ratio of the red LED, the new fourth brightness ratio of the green LED, and the new fifth brightness ratio of the blue LED based on the target red brightness value, target green brightness value, and target blue brightness value corresponding to the target color temperature of the lighting device. Based on this, the brightness of the red, green, and blue LEDs is controlled to reach the required brightness, while the cool light LED and the warm light LED are turned off, so that the current color temperature of the lighting device reaches the target color temperature.
[0190] In this embodiment, when the brightness ratio of the first LED is 0, the brightness ratio of the second LED in the lighting device is re-determined based on the target color temperature. The brightness of the second LED is then adjusted according to the re-determined brightness ratio, so that the current color temperature of the lighting device reaches the target color temperature. That is, the brightness of each color channel required for the target color temperature is achieved through the red, green, and blue LEDs in the second LED, thereby enabling the lighting device to reach the target color temperature. This achieves the purpose of precise color temperature adjustment through the second LED, without the need to calculate the brightness ratio and mixed color temperature of the first LED, which is beneficial to improving the efficiency of color temperature adjustment.
[0191] In one exemplary embodiment, such as Figure 6 As shown, another color temperature processing method is provided, which can be applied to... Figure 1Taking the first device as an example, the explanation includes the following steps S601 to S611. Wherein:
[0192] Step S601: Determine the brightness ratio of the first LED in the lighting device according to the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is to achieve.
[0193] The first LED includes cold light LEDs and warm light LEDs. The brightness ratio of the first LED includes a first brightness ratio of cold light LEDs and a second brightness ratio of warm light LEDs. The sum of the first brightness ratio and the second brightness ratio is 1.
[0194] Step S602: Perform color temperature decomposition processing on the cool light color temperature and warm light color temperature of the first LED bead to obtain the first red brightness value, the first green brightness value and the first blue brightness value corresponding to the cool light color temperature, and the second red brightness value, the second green brightness value and the second blue brightness value corresponding to the warm light color temperature.
[0195] Among them, warm light color temperature is used to indicate the lowest color temperature of warm light LED beads, and cool light color temperature is used to indicate the highest color temperature of cool light LED beads.
[0196] Step S603: According to the first brightness ratio and the second brightness ratio, the first red brightness value and the second red brightness value, the first green brightness value and the second green brightness value, and the first blue brightness value and the second blue brightness value are respectively fused to obtain the mixed red brightness value, the mixed green brightness value and the mixed blue brightness value.
[0197] Step S604: Determine the mixed color temperature based on the mixed red brightness value, mixed green brightness value, and mixed blue brightness value.
[0198] Step S605: Perform color temperature decomposition processing on the target color temperature to obtain the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature; based on the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature, obtain the color luminance value corresponding to the target color temperature.
[0199] Step S606: Perform color temperature decomposition processing on the mixed color temperature to obtain the mixed red luminance value, mixed green luminance value and mixed blue luminance value corresponding to the mixed color temperature; based on the mixed red luminance value, mixed green luminance value and mixed blue luminance value corresponding to the mixed color temperature, obtain the color luminance value corresponding to the mixed color temperature.
[0200] Step S607: Determine the compensation red brightness value based on the difference between the target red brightness value and the mixed red brightness value; determine the compensation green brightness value based on the difference between the target green brightness value and the mixed green brightness value; determine the compensation blue brightness value based on the difference between the target blue brightness value and the mixed blue brightness value.
[0201] Step S608: Determine the third brightness ratio of the red LEDs based on the compensated red brightness value and the total brightness value of the red LEDs included in the second LED in the lighting device; the total brightness value is used to represent the maximum value among the brightness values.
[0202] Step S609: Determine the fourth brightness ratio of the green LEDs based on the compensated green brightness value and the total brightness value of the green LEDs included in the second LED in the lighting device.
[0203] Step S610: Determine the fifth brightness ratio of the blue LEDs based on the compensated blue brightness value and the total brightness value of the blue LEDs included in the second LED in the lighting device.
[0204] Step S611: Adjust the brightness of the cold light LEDs, warm light LEDs, red light LEDs, green light LEDs and blue light LEDs according to the first brightness ratio of the cold light LEDs, the second brightness ratio of the warm light LEDs, the third brightness ratio of the red light LEDs, the fourth brightness ratio of the green light LEDs and the fifth brightness ratio of the blue light LEDs, so that the current color temperature of the lighting device reaches the target color temperature.
[0205] It should be noted that if the brightness ratio of the first LED is 0, the brightness ratio of the second LED in the lighting device is re-determined according to the target color temperature; the brightness of the second LED is adjusted according to the re-determined brightness ratio of the second LED so that the current color temperature of the lighting device reaches the target color temperature.
[0206] In the aforementioned color temperature processing method, when adjusting the color temperature of the lighting equipment, the brightness ratio of the first and second LEDs in the lighting equipment is comprehensively determined based on the target color temperature to be achieved. The brightness of the first and second LEDs is then adjusted accordingly. In other words, by adjusting the brightness of the first LED and supplementing it with the second LED, the original color temperature obtained by mixing cool and warm LEDs can be effectively corrected. This achieves precise control of the target color temperature, thereby improving the accuracy of color temperature adjustment and avoiding the low accuracy resulting from adjusting the color temperature solely with cool and warm LEDs. Furthermore, the target color temperature is achieved through comprehensive dimming of the first and second LEDs, not limited to the individual color temperatures of the cool and warm LEDs, which further enhances the accuracy of color temperature adjustment.
[0207] In an exemplary embodiment, to more clearly illustrate the color temperature processing method provided by this application, the following specific embodiment will be used to describe the color temperature processing method in detail. In one embodiment, this application also provides a supplementary lighting method based on RGB to increase the color temperature range. This method utilizes a combination of dual-color temperature LEDs and RGB LEDs to precisely control the brightness of various color channels, thereby achieving precise adjustment of the lighting color temperature of the lighting device and expanding the color temperature adjustment range. The specific steps are as follows:
[0208] 1. Color temperature decomposition: Decompose color temperature into three basic color channels: red (R), green (G), and blue (B).
[0209] 2. Dual-color temperature LED mixing: Using LEDs with two color temperatures, cool light (t_c) and warm light (t_w), the ratio of them is adjusted to mix and create a light source that is close to the target color temperature.
[0210] 3. Ratio Calculation: Based on the relationship between the target color temperature and the cool light color temperature and warm light color temperature, calculate the mixing ratio coefficient K to determine the mixing ratio of cool light and warm light.
[0211] 4. Color difference calculation: Calculate the RGB difference between the target color temperature and the mixed color temperature to determine the color difference that needs to be compensated.
[0212] 5. Color difference compensation: RGB LEDs are used to compensate for color differences. By adjusting the brightness of the RGB LEDs, the red, green and blue color channels are precisely controlled to achieve the target color temperature.
[0213] 6. Color temperature range expansion: When the target color temperature exceeds the adjustment range of the dual color temperature LED beads, the color temperature adjustment range can be expanded by using cool light or warm light separately and cooperating with RGB LED beads to compensate for color difference.
[0214] 7. Final color temperature control: Precise color temperature control is achieved by simultaneously controlling the brightness of five LEDs: C (cool light LED), W (warm light LED), R (red light LED), G (green light LED), and B (blue light LED).
[0215] To more clearly describe the supplementary lighting method based on RGB to increase the color temperature range, three examples will be used for specific illustration.
[0216] Taking the first scenario as an example, when the target color temperature is within the color temperature range (i.e., 2700K-6500K), color temperature adjustment can be achieved through the following steps:
[0217] The first step is color temperature decomposition, which is performed separately for cool light (t_c) and warm light (t_w):
[0218] Using LEDs with two color temperatures, namely cool light (t_c) and warm light (t_w), a color temperature between them can be created by adjusting the brightness ratio of these two types of LEDs. For example, the warm light (t_w) and cool light (t_c) of a dual-color temperature LED can be decomposed as follows: t_w = R_w + G_w + B_w, t_c = R_c + G_c + B_c
[0219] The second step is to mix the warm light t_w and the cool light t_c in a certain proportion:
[0220] The color temperature t of the dual-color temperature LED beads is obtained by mixing cool light t_c and warm light t_w in a ratio k, where k = (t - t_w) / (t_c - t_w). By calculating the ratio k = (t - t_w) / (t_c - t_w), the required ratio of cool light (k) and warm light (1 - k) can be determined to mix the target color temperature t. Here, t is the target color temperature, t_c is the cool light color temperature, t_w is the warm light color temperature, k is the brightness ratio of the cool light LED beads, and 1 - k is the brightness ratio of the warm light LED beads.
[0221] The third step is to calculate the difference between the RGB values after decomposing the target color temperature and the actual mixed RGB values to obtain the color difference:
[0222] After decomposing the target color temperature t, we can obtain R_t, G_t, and B_t, i.e., t = R_t + G_t + B_t. The RGB values corresponding to the mixed color temperature are (k*R_c + (1-k)*R_w), (k*G_c + (1-k)*G_w), and (k*B_c + (1-k)*B_w), i.e., the mixed color temperature = (k*R_c + (1-k)*R_w) + (k*G_c + (1-k)*G_w) + (k*B_c + (1-k)*B_w). Then, by subtracting the RGB values after decomposing the target color temperature from the actual mixed RGB values, we can obtain:
[0223] R_difference = R_t - (k*R_c + (1-k)*R_w);
[0224] G_difference=G_t-(k*G_c+(1-k)*G_w);
[0225] B_difference = B_t - (k*B_c + (1-k)*B_w);
[0226] The fourth step is to compensate for color differences and obtain the standard color temperature.
[0227] By compensating for this difference with RGB LEDs, a more accurate target color temperature can be obtained, thus achieving a standard color temperature. New RGB LEDs are added to compensate for the difference; by adjusting the brightness of the RGB LEDs, the intensity of the red, green, and blue colors can be precisely adjusted to compensate for the color difference generated when mixing dual-color-temperature LEDs.
[0228] Through the above four steps, the final color temperature is adjusted using five LED beads: C, W, R, G, and B.
[0229] Taking the second scenario as an example, when the target color temperature is higher than the cool light color temperature (i.e., 6500K), the color temperature can be adjusted through the following steps:
[0230] The first step is to decompose the warm light t_w and cool light t_c of the dual-color temperature LED beads, i.e., w = R_w + G_w + B_w, c = R_c + G_c + B_c.
[0231] The second step is to increase the color temperature. However, turning on the warm light t_w will only lower the color temperature, so we only need to turn on the cool light t_c, i.e., R_c+G_c+B_c.
[0232] The third step is to decompose the target color temperature t into t = R_t + G_t + B_t.
[0233] The fourth step is to subtract the RGB values after decomposing the target color temperature t from the RGB values after decomposing the cool light t_c, which yields:
[0234] R_difference = R_t - R_c;
[0235] G_difference = G_t - G_c;
[0236] B_difference = B_t - B_c;
[0237] The fifth step is to compensate for this difference using RGB LEDs to obtain the standard color temperature.
[0238] Taking the third scenario as an example, when the target color temperature is lower than the warm light color temperature (i.e., 2700K), the color temperature can be adjusted through the following steps:
[0239] The first step is to decompose the warm light t_w and cool light t_c of the dual-color temperature LED beads, i.e., w = R_w + G_w + B_w, c = R_c + G_c + B_c.
[0240] The second step is to lower the color temperature. However, turning on the cool light t_c will only increase the color temperature, so we only need to turn on the warm light t_w. Let's assume we turn on the warm light t_w, which is R_w + G_w + B_w.
[0241] The third step is to decompose the target color temperature t into t = R_t + G_t + B_t.
[0242] The fourth step is to subtract the RGB values of the target color temperature t from the RGB values of the warm light t_w, which yields the following result:
[0243] R_difference=R_t-R_w;
[0244] G_difference = G_t - G_w;
[0245] B_difference = B_t - B_w;
[0246] The fifth step is to compensate for this difference using RGB LEDs to obtain the standard color temperature.
[0247] The above-mentioned supplementary lighting method based on RGB to increase the color temperature range can achieve the following technical effects: (1) By using RGB supplementary lighting, the lighting color temperature can be adjusted more flexibly and accurately to meet the lighting effects under different scenarios and needs; (2) By utilizing the principle of linear superposition of colors and RGB decomposition of color temperature, by accurately controlling the intensity of each color, it is beneficial to correct the color temperature of the original dual-color temperature lamp beads, thereby realizing the precise adjustment of color temperature, thereby expanding the adjustment range of color temperature and improving the accuracy of color temperature adjustment; (3) It avoids the defect that the color temperature mixed by the two lamp beads of the existing dual-color temperature lamp beads is different from the real color temperature, and the mixed color temperature is limited by the color temperature of the lamp beads themselves, resulting in a low accuracy of color temperature adjustment.
[0248] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0249] Based on the same inventive concept, this application also provides a color temperature processing apparatus for implementing the color temperature processing method described above. The solution provided by this apparatus is similar to the solution described in the above method; therefore, the specific limitations in one or more color temperature processing apparatus embodiments provided below can be found in the limitations of the color temperature processing method described above, and will not be repeated here.
[0250] In one exemplary embodiment, such as Figure 7 As shown, a color temperature processing device 700 is provided, including: a first determining module 710, a color temperature determining module 720, a second determining module 730, and a brightness adjustment module 740, wherein:
[0251] The first determining module 710 is used to determine the brightness ratio of the first LED in the lighting device according to the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is to achieve.
[0252] The color temperature determination module 720 is used to determine the mixed color temperature corresponding to the brightness ratio of the first LED bead based on the brightness ratio of the first LED bead.
[0253] The second determining module 730 is used to determine the brightness ratio of the second LED in the lighting device based on the target color temperature and the mixed color temperature.
[0254] The brightness adjustment module 740 is used to adjust the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device reaches the target color temperature.
[0255] In an exemplary embodiment, the first LED includes a cold light LED and a warm light LED, and the brightness ratio of the first LED includes a first brightness ratio of the cold light LED and a second brightness ratio of the warm light LED, the sum of the first brightness ratio and the second brightness ratio being 1.
[0256] The first determining module 710 is further configured to, if the target color temperature is between the warm light color temperature and the cool light color temperature of the first lamp bead, determine the first brightness ratio based on the difference between the target color temperature and the warm light color temperature, and the difference between the cool light color temperature and the warm light color temperature; the warm light color temperature is used to represent the lowest color temperature of the warm light lamp bead, and the cool light color temperature is used to represent the highest color temperature of the cool light lamp bead; or, if the target color temperature is greater than the cool light color temperature, determine the first brightness ratio as 1; or, if the target color temperature is less than the warm light color temperature, determine the second brightness ratio as 1.
[0257] In an exemplary embodiment, the color temperature determination module 720 is further configured to perform color temperature decomposition processing on the cool light color temperature and warm light color temperature of the first LED bead respectively, to obtain a first red brightness value, a first green brightness value, and a first blue brightness value corresponding to the cool light color temperature, and a second red brightness value, a second green brightness value, and a second blue brightness value corresponding to the warm light color temperature; according to a first brightness ratio and a second brightness ratio, to perform fusion processing on the first red brightness value and the second red brightness value, the first green brightness value and the second green brightness value, and the first blue brightness value and the second blue brightness value respectively, to obtain a mixed red brightness value, a mixed green brightness value, and a mixed blue brightness value; and to determine the mixed color temperature based on the mixed red brightness value, the mixed green brightness value, and the mixed blue brightness value.
[0258] In an exemplary embodiment, the second determining module 730 is further configured to obtain the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature; determine the compensation color brightness value based on the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature; and determine the brightness ratio of the second LED in the lighting device based on the compensation color brightness value.
[0259] In an exemplary embodiment, the second determining module 730 is further configured to perform color temperature decomposition processing on the target color temperature to obtain the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature; and to obtain the color luminance value corresponding to the target color temperature based on the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature.
[0260] In an exemplary embodiment, the color brightness values corresponding to the target color temperature include target red brightness values, target green brightness values, and target blue brightness values; the color brightness values corresponding to the mixed color temperature include mixed red brightness values, mixed green brightness values, and mixed blue brightness values.
[0261] The second determining module 730 is further configured to determine a compensated red brightness value based on the difference between the target red brightness value and the mixed red brightness value; determine a compensated green brightness value based on the difference between the target green brightness value and the mixed green brightness value; determine a compensated blue brightness value based on the difference between the target blue brightness value and the mixed blue brightness value; and obtain a compensated color brightness value based on the compensated red brightness value, the compensated green brightness value, and the compensated blue brightness value.
[0262] In an exemplary embodiment, the second LED includes a red LED, a green LED, and a blue LED, and the brightness ratio of the second LED includes a third brightness ratio of the red LED, a fourth brightness ratio of the green LED, and a fifth brightness ratio of the blue LED.
[0263] The second determining module 730 is further configured to determine a third brightness ratio based on the compensated red brightness value and the total brightness value of the red LED beads; the total brightness value is used to represent the maximum value among the brightness values; a fourth brightness ratio is determined based on the compensated green brightness value and the total brightness value of the green LED beads; and a fifth brightness ratio is determined based on the compensated blue brightness value and the total brightness value of the blue LED beads.
[0264] In an exemplary embodiment, the brightness adjustment module 740 is further configured to, if the brightness ratio of the first LED bead is 0, redetermine the brightness ratio of the second LED bead in the lighting device according to the target color temperature; and adjust the brightness of the second LED bead according to the redetermined brightness ratio of the second LED bead so that the current color temperature of the lighting device reaches the target color temperature.
[0265] Each module in the aforementioned color temperature processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0266] In one exemplary embodiment, such as Figure 8 As shown, a lighting device 800 is provided, including: a first LED 810, a second LED 820, and a controller 830; wherein:
[0267] The first LED chip 810 includes a cool light LED chip 811 and a warm light LED chip 812.
[0268] The second LED chip 820 includes a red LED chip 821, a green LED chip 822, and a blue LED chip 823.
[0269] The controller 830 is used to determine the brightness ratio of the first LED bead 810 according to the target color temperature of the lighting device 800; determine the mixed color temperature corresponding to the brightness ratio of the first LED bead 810 according to the brightness ratio of the first LED bead 810; determine the brightness ratio of the second LED bead 820 according to the target color temperature and the mixed color temperature; and adjust the brightness of the first LED bead 810 and the second LED bead 820 according to the brightness ratio of the first LED bead 810 and the second LED bead 820 so that the current color temperature of the lighting device 800 reaches the target color temperature; the target color temperature represents the color temperature that the lighting device 800 wants to achieve.
[0270] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0271] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.
[0272] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0273] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0274] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0275] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A color temperature processing method, characterized in that, The method includes: The brightness ratio of the first LED in the lighting device is determined based on the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is intended to achieve. Based on the brightness ratio of the first LED, determine the mixed color temperature corresponding to the brightness ratio of the first LED; The brightness ratio of the second LED in the lighting device is determined based on the target color temperature and the mixed color temperature. According to the brightness ratio of the first LED bead and the brightness ratio of the second LED bead, adjust the brightness of the first LED bead and the second LED bead so that the current color temperature of the lighting device reaches the target color temperature.
2. The method according to claim 1, characterized in that, The first LED bead includes a cold light LED bead and a warm light LED bead. The brightness ratio of the first LED bead includes a first brightness ratio of the cold light LED bead and a second brightness ratio of the warm light LED bead. The sum of the first brightness ratio and the second brightness ratio is 1. Determining the brightness ratio of the first LED in the lighting device based on the target color temperature of the lighting device includes: If the target color temperature is between the warm light color temperature and the cool light color temperature of the first LED, then the first brightness ratio is determined based on the difference between the target color temperature and the warm light color temperature, and the difference between the cool light color temperature and the warm light color temperature; the warm light color temperature is used to represent the lowest color temperature of the warm light LED, and the cool light color temperature is used to represent the highest color temperature of the cool light LED. or, If the target color temperature is greater than the cool light color temperature, then the first brightness ratio is determined to be 1; or, If the target color temperature is less than the warm light color temperature, then the second brightness ratio is determined to be 1.
3. The method according to claim 2, characterized in that, The step of determining the mixed color temperature corresponding to the brightness ratio of the first LED bead, based on the brightness ratio of the first LED bead, includes: The first LED bead is subjected to color temperature decomposition processing for its cool light color temperature and warm light color temperature, respectively, to obtain the first red brightness value, the first green brightness value and the first blue brightness value corresponding to the cool light color temperature, and the second red brightness value, the second green brightness value and the second blue brightness value corresponding to the warm light color temperature. Based on the first brightness ratio and the second brightness ratio, the first red brightness value and the second red brightness value, the first green brightness value and the second green brightness value, and the first blue brightness value and the second blue brightness value are respectively fused to obtain a mixed red brightness value, a mixed green brightness value, and a mixed blue brightness value. The mixed color temperature is determined based on the mixed red brightness value, the mixed green brightness value, and the mixed blue brightness value.
4. The method according to claim 1, characterized in that, Determining the brightness ratio of the second LED in the lighting device based on the target color temperature and the mixed color temperature includes: Obtain the color brightness value corresponding to the target color temperature, and the color brightness value corresponding to the mixed color temperature; The compensation color brightness value is determined based on the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature. The brightness ratio of the second LED in the lighting device is determined based on the compensated color brightness value.
5. The method according to claim 4, characterized in that, The step of obtaining the color brightness value corresponding to the target color temperature includes: The target color temperature is decomposed to obtain the target red luminance value, target green luminance value and target blue luminance value corresponding to the target color temperature; The color brightness value corresponding to the target color temperature is obtained based on the target red brightness value, the target green brightness value, and the target blue brightness value corresponding to the target color temperature.
6. The method according to claim 4, characterized in that, The color brightness values corresponding to the target color temperature include target red brightness values, target green brightness values, and target blue brightness values; the color brightness values corresponding to the mixed color temperature include mixed red brightness values, mixed green brightness values, and mixed blue brightness values. The step of determining the compensation color brightness value based on the difference between the color brightness value corresponding to the target color temperature and the color brightness value corresponding to the mixed color temperature includes: The compensation red brightness value is determined based on the difference between the target red brightness value and the mixed red brightness value; The compensation green brightness value is determined based on the difference between the target green brightness value and the mixed green brightness value; The compensation blue brightness value is determined based on the difference between the target blue brightness value and the mixed blue brightness value; The compensated color brightness value is obtained based on the compensated red brightness value, the compensated green brightness value, and the compensated blue brightness value.
7. The method according to claim 6, characterized in that, The second LED includes a red LED, a green LED, and a blue LED, and the brightness ratio of the second LED includes a third brightness ratio of the red LED, a fourth brightness ratio of the green LED, and a fifth brightness ratio of the blue LED. Determining the brightness ratio of the second LED in the lighting device based on the compensated color brightness value includes: The third brightness ratio is determined based on the compensated red brightness value and the total brightness value of the red LED beads; the total brightness value is used to represent the maximum value among the brightness values. The fourth brightness ratio is determined based on the compensated green brightness value and the total brightness value of the green LED beads; The fifth brightness ratio is determined based on the compensated blue brightness value and the total brightness value of the blue LED beads.
8. The method according to any one of claims 1 to 7, characterized in that, The step of adjusting the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device reaches the target color temperature, includes: If the brightness ratio of the first LED bead is 0, then the brightness ratio of the second LED bead in the lighting device is re-determined according to the target color temperature. Adjust the brightness of the second LED according to the newly determined brightness ratio of the second LED, so that the current color temperature of the lighting device reaches the target color temperature.
9. A color temperature processing device, characterized in that, The device includes: The first determining module is used to determine the brightness ratio of the first LED in the lighting device based on the target color temperature of the lighting device; the target color temperature represents the color temperature that the lighting device is to achieve. The color temperature determination module is used to determine the mixed color temperature corresponding to the brightness ratio of the first LED based on the brightness ratio of the first LED. The second determining module is used to determine the brightness ratio of the second LED in the lighting device based on the target color temperature and the mixed color temperature; The brightness adjustment module is used to adjust the brightness of the first LED and the second LED according to the brightness ratio of the first LED and the second LED, so that the current color temperature of the lighting device reaches the target color temperature.
10. A lighting device, characterized in that, include: First LED, second LED, and controller; The first LED chip includes both cold light LED chips and warm light LED chips; The second LED includes red LEDs, green LEDs, and blue LEDs; The controller is configured to determine the brightness ratio of the first LED bead based on the target color temperature of the lighting device; and to determine the mixed color temperature corresponding to the brightness ratio of the first LED bead based on the brightness ratio of the first LED bead. The brightness ratio of the second LED bead is determined based on the target color temperature and the mixed color temperature. According to the brightness ratio of the first LED and the brightness ratio of the second LED, the brightness of the first LED and the second LED is adjusted so that the current color temperature of the lighting device reaches the target color temperature; the target color temperature represents the color temperature that the lighting device is to achieve.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.