Light source control method, controller of light emitting device, and light emitting device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-08-11
AI Technical Summary
[0003]然而,由于色温曲线为固定设定,在同一色温区间内,其对应的颜色表现形式非常单一,即相同色温值仅对应唯一的色度坐标
首先,本申请通过引入目标色相旋转角度,根据与之对应的色相旋转映射关系,使得在保持目标色温不变的前提下,可以对普朗克黑体辐射色温曲线所对应的第一颜色参数进行方向性偏移调节(例如通过实时计算获得目标颜色以实现调节,或者通过查表获得目标颜色以实现调节),从而获得与目标色温对应的目标颜色参数。由此打破了传统控制方式中“色温与颜色参数固定一一对应”的映射关系,实现了综合色温与颜色风格调节的分离控制。在相同色温条件下,可获取不同的目标颜色参数,从而实现多样化的光色表现形式。
Smart Images

Figure CN122555008A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of light source control, and more specifically, to a light source control method, a controller for a light-emitting device, and a light-emitting device. Background Technology
[0002] In existing lighting control technologies, the color temperature adjustment of luminaires is typically achieved based on a pre-set fixed color temperature change curve. Specifically, the luminaire's control system pre-establishes the correspondence between color temperature and luminaire driving parameters, and adjusts the temperature according to a predetermined color temperature change trajectory (e.g., using the Planck color temperature curve) to achieve a gradual transition from low to high color temperature. Under this control method, the color temperature change path is pre-fixed, and the luminaire's control system can only output according to this fixed curve during operation.
[0003] However, because the color temperature curve is fixed, the corresponding color representation within the same color temperature range is very limited; that is, the same color temperature value corresponds to only one chromaticity coordinate. While this method can achieve basic warm and cool variations in lighting color, in practical applications, when different color styles or subtle tonal differences need to be presented within the same color temperature range, a fixed color temperature curve (such as using a Planck blackbody radiation color temperature curve) is difficult to meet diverse light color representation requirements. Summary of the Invention
[0004] In view of this, this application proposes a light source control method, a controller for a light-emitting device, and a light-emitting device to improve the above-mentioned deficiencies.
[0005] In a first aspect, this application provides a light source control method, comprising: acquiring a target hue rotation angle; acquiring a target color temperature; determining a hue rotation mapping relationship corresponding to the target hue rotation angle, and determining a target color parameter corresponding to the target color temperature based on the hue rotation mapping relationship; the hue rotation mapping relationship is used to describe the correspondence between the color temperature of the light source and the color parameter of the light source under the target hue rotation angle, wherein the hue rotation mapping relationship is a mapping relationship established by rotating the hue component corresponding to the basic color parameter corresponding to the Planck blackbody radiation color temperature curve based on a preset hue rotation angle; and generating a control signal for the light source according to the target color parameter.
[0006] Secondly, this application also provides a controller for a light-emitting device, including a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the above-described light source control method.
[0007] Thirdly, this application also provides a light-emitting device, including a light source and a controller for the light-emitting device, wherein the light source and the controller are electrically connected.
[0008] Compared with the prior art, the light source control method provided in this application has at least the following beneficial effects: First, this application introduces a target hue rotation angle and, based on the corresponding hue rotation mapping relationship, allows for directional adjustment of the first color parameter corresponding to the Planck blackbody radiation color temperature curve (e.g., by obtaining the target color in real-time calculation or by looking up a table) while maintaining the target color temperature. This obtains the target color parameter corresponding to the target color temperature. This breaks the traditional one-to-one mapping relationship between color temperature and color parameters, achieving separate control of integrated color temperature and color style adjustment. Under the same color temperature conditions, different target color parameters can be obtained, thus achieving diverse light and color expressions.
[0009] Secondly, in some examples, the hue rotation mapping relationship proposed in this application is based on the angular rotation processing of the hue component in the first color parameter corresponding to the Planck blackbody radiation color temperature curve, generating new color parameter mapping rules without needing to establish an independent and complete color temperature-color parameter lookup table for each light color style. Compared with the existing technology that achieves extended control by storing multiple sets of color data tables, the method provided in this application only needs to store the basic color temperature adjustment rules and the angular rotation processing model corresponding to the hue rotation mapping relationship to generate multiple sets of target color parameters. For example, it can obtain color values with full color gamut changes, thereby reducing system storage overhead and improving the resource utilization efficiency of the control system.
[0010] In other examples, when the hue rotation mapping relationship exists in the form of a preset mapping table, multiple hue rotation mapping relationships can be formed by setting multiple different hue rotation angles, corresponding to multiple sets of color parameter sequences. The controller can select the appropriate hue rotation mapping relationship according to different application modes or scenario requirements, realizing rapid switching between different light color styles and improving the flexibility and scalability of light source control.
[0011] Furthermore, since the angle rotation processing in this application only affects the color direction dimension and does not change the overall color temperature value, it can maintain the stability and consistency of color temperature control while achieving light color style adjustment. This control mechanism, which decouples the overall color temperature from the color style, helps to improve the adjustment freedom and application adaptability of light source devices, etc. As an example, the "target color temperature" in this application refers to the control parameter used to indicate the overall color temperature value of the light source. Therefore, it is possible to ensure that the "warm or cool tone" of the color is preserved while the target color temperature remains basically unchanged, and only the hue of the color is adjusted.
[0012] In summary, the light source control method provided in this application achieves diversified light and color output within the same color temperature range without significantly increasing system complexity and storage burden, thereby realizing richer color expression forms. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a schematic diagram of the light-emitting device provided in the embodiments of this application.
[0015] Figure 2 This is a flowchart illustrating a light source control method provided in an embodiment of this application.
[0016] Figure 3 This is a flowchart illustrating another light source control method provided in an embodiment of this application.
[0017] Figure 4 yes Figure 3 A schematic diagram of the circular color wheel in the light source control method shown.
[0018] Figure 5 yes Figure 3 The illustrated light source control method shows a schematic flow of the conversion from the first color parameter to the target color parameter.
[0019] Figure 6 This is a flowchart illustrating the process of establishing the hue rotation mapping relationship provided in the embodiments of this application.
[0020] Figure 7 This is a schematic diagram of the angle rotation processing in the color gamut space in the light source control method of this application embodiment.
[0021] Figure 8 These are some practical application processes of the light source control method provided in the embodiments of this application.
[0022] Figure 9 This is a schematic diagram of the functional modules of the control device provided in the embodiments of this application.
[0023] Figure 10 This is a block diagram of a controller for a light-emitting device used to perform a light source control method according to an embodiment of this application. Detailed Implementation
[0024] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0025] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0026] To facilitate a detailed explanation of the present application, the application environment of the light source control method provided in the embodiments of this application will be described below with reference to the accompanying drawings. The light source control method of the embodiments of this application is applied to a light source, which can be a light source in a home lighting device, a light source in a professional photography light, stage light, etc., a light source in a display device such as a monitor or projector, or a light source in an automotive ambient light or lighting fixture. Therefore, it can be considered that the light source provided in the embodiments of this application is used as a light-emitting device, or that the light source can be applied in a light-emitting device, which can include at least one of the following devices: home lighting devices, photography lights, stage lights, monitors, projectors, automotive ambient lights, automotive lighting fixtures, etc.
[0027] Please see Figure 1This diagram illustrates the application environment of the light source control method provided in this embodiment. As an example, the light source control method is applied to a light-emitting device 500. The light-emitting device 500 may include a controller 501 and a light source 503. The controller 501 and the light source 503 are electrically connected. The controller 501 acts as the controller of the light-emitting device 500, controlling the operation of the light source 503 according to the light source control method provided in this embodiment. The light source 503 is exemplified by a smart bulb (such as an RGB-LED lamp), which supports color temperature and / or color adjustment. Accordingly, the user can achieve the above-mentioned adjustment function through a control device. The control device can be a smart home control system or other control devices, such as a smart home gateway, a central controller, a remote control, or control software on a portable electronic device. The controller 501 may include a central processing unit, and the controller 501 may be built into the aforementioned control device. The controller 501 integrates the light source control method provided in this embodiment and communicates with the light source 503 to transmit control commands. In some examples, the light-emitting device 500 may also include a communication module 505, and the communication connection and / or electrical connection between the controller 501 and the light source 503 may be implemented based on the communication module 505. The communication module 505 may include at least one of the following transmission devices: a communication wire, a Wi-Fi transmission module, a Zigbee transmission module, and a Bluetooth transmission module.
[0028] As an application example, a user sets the desired target color temperature range and / or target color style using a control device such as a remote control. For example, the user selects a color temperature value and further selects a warmer style, a cooler style, or other color modes. The controller 501 in the control device determines the corresponding hue rotation mapping relationship based on the target color temperature input by the user. The hue rotation mapping relationship describes the correspondence between the color temperature of the light source and the color parameters of the light source at the target hue rotation angle.
[0029] Based on this, the controller determines the corresponding target hue rotation angle according to the user's selected color style, and obtains the target color parameters corresponding to the target hue rotation angle based on the determined hue rotation mapping relationship. Then, it generates a light source control signal based on the target color parameters and transmits the control signal to each light-emitting channel of the light source, such as the red, green, and blue channels. The light source can then adjust the driving current or duty cycle of each light-emitting unit according to the control signal, thereby outputting the corresponding light color and achieving diverse color representation at the target color temperature.
[0030] Please see Figure 2Specifically, the light source control method provided in the first embodiment of this application can be applied to a light source or a light-emitting device including a light source, such as the light source 503 or light-emitting device 500 mentioned above. Specifically, the light source control method in this embodiment can obtain the target hue rotation angle and target color temperature of the light source based on specific needs, and determine the target color parameters of the light source according to the set hue rotation mapping relationship. The method can specifically include the following steps S101 to S104.
[0031] Step S101: Obtain the target hue rotation angle.
[0032] In step S101, the controller acquires the target hue rotation angle. The target hue rotation angle is used to provide control parameters for subsequent steps to adjust the color performance of the light source while keeping the target color temperature constant, so as to achieve different light color styles.
[0033] In this embodiment, "target hue rotation angle" refers to a control parameter used to adjust the directional shift of the light source's color representation. The target hue rotation angle represents the angle by which the color tendency of the light source is adjusted while maintaining a constant target color temperature. Therefore, the target hue rotation angle can characterize the direction and magnitude of the color shift; its value is typically expressed in angles and can take values within a preset range. The target hue rotation angle can be input by the user, preset mode parameters, external control signals, or automatically generated by the system.
[0034] In one implementation, the target hue rotation angle can be determined based on the user's desired color style selection or mode setting. For example, when a user selects a preset atmosphere mode or color style, the controller obtains the corresponding hue rotation angle from a preset set of hue offset parameters as the target hue rotation angle. As a specific application example, in a smart home lighting scenario, a user selects different atmosphere modes on a mobile terminal or control panel, such as "reading mode," "leisure mode," or "movie mode." In these modes, the color temperature value of the light source can remain unchanged, but the user expects different light color tendencies at the same color temperature, such as slightly warmer, slightly cooler, or slightly softer. The controller in a remote control or other control device can obtain the corresponding target hue rotation angle from a preset set of hue rotation angles based on the user's selected mode.
[0035] In another implementation, the target hue rotation angle can also be determined based on external control signals, scene mode parameters, or control parameters automatically generated by the system. As a specific application example, in commercial display or catering lighting scenarios, the controller can preset multiple light color style parameters according to the display themes corresponding to different display needs. When switching display themes, the controller automatically calls the target hue rotation angle corresponding to the theme to change the color performance of the light source without changing the current color temperature.
[0036] In another implementation, the target hue rotation angle can be issued by an external control system or automatically generated based on environmental detection results. It should be noted that the target hue rotation angle characterizes the direction and magnitude of light color shift. It can be determined directly using the methods described above, or it can be obtained through calculation. The specific calculation method will be explained in subsequent embodiments of this specification.
[0037] After obtaining the target hue rotation angle in step S101, it can provide a control basis for the subsequent adjustment of the light color of the light source.
[0038] Step S102: Obtain the target color temperature.
[0039] In this embodiment, "target color temperature" refers to a control parameter used to indicate the overall color temperature value of the light source. The target color temperature characterizes the overall hue of the white light emitted by the light source, and its value is usually expressed in Kelvin (K). In step S102, the controller acquires the target color temperature to set the overall color temperature output of the light source, and uses the target color temperature as a basic reference parameter for subsequent color adjustment processes.
[0040] In one implementation, the target color temperature can be input by the user. For example, the user can set a specific color temperature value through a controller device such as a remote control, or determine the target color temperature by adjusting a color temperature control slider or selecting a preset color temperature mode (such as warm light mode, natural light mode, or cool light mode). The controller obtains the corresponding target color temperature parameters based on the user input information received by the control device. In another implementation, the target color temperature can be determined automatically by the system. For example, in an intelligent lighting system, the controller can automatically set the target color temperature based on time period, ambient brightness, human circadian rhythm strategies, preset scene modes, or external control commands.
[0041] In some other implementations, the target color temperature may be issued by an external control system or automatically generated based on environmental monitoring results. Environmental monitoring results may include ambient light intensity, ambient color temperature, time information, or other parameters used to characterize the environmental state.
[0042] Furthermore, the target color temperature can be a single color temperature value or a dynamically changing value within a color temperature range. For example, in a gradual dimming scenario, the controller can gradually update the target color temperature according to a preset time curve or control strategy, thereby achieving continuous change in the overall color temperature.
[0043] It should be noted that in this embodiment, the target color temperature is only used to determine the set value of the light source in the overall color temperature dimension, and it does not involve the offset processing of color direction attributes. Overall color temperature control and hue rotation adjustment belong to different control dimensions. By obtaining the target color temperature and target hue rotation angle respectively, independent adjustment of color style can be achieved while keeping the overall color temperature unchanged, thereby decoupling overall color temperature control and color style control. In addition, the target color temperature can be expressed in numerical form, hierarchical form, or equivalent parameter form. As long as the information can be used to characterize the overall color temperature of the light source, it falls within the scope of the target color temperature of this application. After obtaining the target color temperature in step S102, the controller can combine the target hue rotation angle obtained in step S101 to determine the corresponding target color parameters in subsequent steps based on the target color temperature, and realize the overall adjustment of the light source color.
[0044] It should be noted that, in the embodiments of this application, there is no strict execution order between steps S101 and S102. They can be executed in any order or in parallel according to actual application requirements. The description of step S101 preceding step S102 in this specification is for illustrative purposes only and does not constitute a limitation on the execution order of the technical solution of this application.
[0045] Step S103: Determine the hue rotation mapping relationship corresponding to the target hue rotation angle, and based on the hue rotation mapping relationship, determine the target color parameters corresponding to the target color temperature.
[0046] In this embodiment, the hue rotation mapping relationship is used to describe the correspondence between the color temperature and color parameters of the light source at a target hue rotation angle, that is, to describe the color adjustment rules under different color temperature conditions. The hue rotation mapping relationship changes the color output of the light source by adjusting the angular offset of the hue components, thus enabling diverse light color style adjustments.
[0047] The target color parameter refers to the color output parameter determined through the hue rotation mapping relationship. It represents the color characteristics that the light source needs to output under the target color temperature and the target hue rotation angle. To achieve the process of "target hue rotation angle - hue rotation mapping relationship - target color temperature - target color parameter", embodiments of this application provide various implementation methods, such as: Lookup method: By querying a pre-stored hue rotation mapping table, the corresponding hue rotation mapping relationship and target color parameters are obtained; and / or Real-time calculation method: Based on the obtained target hue rotation angle and target color temperature, the target color parameters are calculated in real time according to the hue rotation mapping relationship.
[0048] Regardless of the implementation method, the hue rotation mapping relationship in this application is established based on a preset hue rotation angle and by rotating the hue components corresponding to the basic color parameters of the Planck blackbody radiation color temperature curve. The hue rotation mapping relationship can be represented in various forms, such as tables, curves or curve expressions, and calculation processes. Specifically, the values in the tables, the data points on the curves, or the operational rules in the calculation process are all based on the aforementioned rotation of the hue components. For example, the values in the tables are obtained based on the aforementioned rotation of the hue components, the values of the points on the curves are obtained based on the aforementioned rotation of the hue components, and the calculation process uses the aforementioned rotation of the hue components as a representation.
[0049] In this application specification, "hue component" refers to a parameter component used to characterize color tendency or color direction information. Hue components are used to distinguish different color categories or color biases, and their numerical changes reflect the directional changes of color based on a comprehensive hue. In one embodiment, the hue component can be a parameter with periodic angular representation characteristics, whose value typically changes cyclically within a preset range, for example, representing a complete color direction change from 0° to 360°. This embodiment uses a hue rotation mapping relationship to perform angular offset (or rotation) processing on the hue component, which can change the color tendency direction while maintaining a constant comprehensive color temperature. In other embodiments, the hue component can also be an equivalent parameter capable of characterizing color direction changes, such as a parameter component used to describe color direction or hue attributes in different color spaces. Specifically, the hue component can exist in the HSV color gamut, HSL color gamut, or other color spaces with hue dimension representation. It should be noted that the hue component is not used to characterize color brightness or comprehensive color temperature attributes, but rather to determine color style or color expression direction under a given comprehensive color temperature condition. Therefore, in the embodiments of this application, the processing of hue components is an adjustment of the color style dimension, without changing the overall color temperature value. Without departing from the technical concept of this application, any parameter that can characterize the color direction attribute and support directional offset calculation can be regarded as the "hue component" of this application.
[0050] As one example, the base color parameter can be a CIE-xy coordinate value or an RGB value, while the hue component can be considered as a parameter from a color gamut space (HSV or HSL color gamut space). In this case, the hue rotation mapping relationship is established by rotating the hue component in the color gamut space parameter based on a preset hue rotation angle. The color gamut space parameter is obtained by converting the base color parameter (such as the CIE-xy coordinate value or RGB value mentioned above) corresponding to the Planck blackbody radiation color temperature curve. As another example, the base color parameter can be a color gamut space (HSV or HSL color gamut space) parameter. In this case, the hue rotation mapping relationship is established by rotating the hue component in the color gamut space parameter based on a preset hue rotation angle. The process of converting the CIE-xy coordinate value or RGB value to a color gamut space (HSV or HSL color gamut space) parameter can be omitted.
[0051] Therefore, the hue rotation mapping relationship proposed in this application establishes a mapping rule (calculation relationship or correspondence) between color temperature parameters and the color parameters of the light source. Unlike the fixed mapping relationship of "one-to-one correspondence between color temperature and color parameters" in traditional light source control methods, this application introduces a target hue rotation angle, that is, shifts the color in terms of hue, so that different color parameter output rules can be formed under the same color temperature conditions, or the color output rules corresponding to the required color temperature can be determined under a specified hue condition, thereby achieving diversified light and color performance under the same color temperature.
[0052] In some embodiments of this application, the specific implementation of determining the hue rotation mapping relationship corresponding to the target hue rotation angle and determining the target color parameters may include: querying a stored hue rotation mapping relationship table to obtain the target color parameters, and / or calculating the target color parameters based on an expression for generating the hue rotation mapping relationship according to the determined target hue rotation angle and target color temperature.
[0053] In some embodiments, the controller of the light-emitting device stores multiple hue rotation mapping relationships as a mapping table, and each hue rotation mapping relationship corresponds to a different hue rotation angle. Therefore, the controller queries and determines the hue rotation mapping relationship corresponding to the target hue rotation angle based on the target hue rotation angle obtained in step S101.
[0054] The hue rotation mapping table pre-set within the controller can be generated by the controller calculating the color parameters of the light source based on different hue rotation angles and color temperatures, and storing these hue rotation angles, color temperatures, and light source color parameters in a table to establish a correspondence and mapping relationship. Alternatively, the pre-calculated hue rotation mapping table can be pre-stored in the controller's memory without requiring the controller to perform the calculation process. Specifically, the hue rotation mapping relationship is established based on the basic color temperature adjustment rules. In the practical example, the hue rotation mapping relationship is established by rotating the hue component in the first color parameter corresponding to the Planck blackbody radiation color temperature curve based on a preset hue rotation angle. As an example, the process of establishing a hue rotation mapping relationship includes: determining the basic color parameters corresponding to multiple discrete color temperature points based on the Planck blackbody radiation color temperature curve; based on the basic color parameters, rotating the hue components corresponding to the basic color parameters according to a preset hue rotation angle, thereby establishing a correspondence between the color temperature at the preset hue rotation angle and the new color parameters, which constitutes the hue rotation mapping relationship corresponding to the target hue rotation angle.
[0055] In the embodiments of this application, "angle rotation processing" refers to the operation of directionally shifting the hue component, which characterizes the color direction attribute, while keeping the overall color temperature of the light source constant. Specifically, angle rotation processing applies a preset angle shift to the hue component, causing the color to change along the color direction dimension based on the overall hue. The angle rotation processing can be a forward or reverse shift, and its shift magnitude is determined by the rotation angle of the target hue. It should be noted that angle rotation processing does not change the overall color temperature value, but rather adds a degree of freedom for color style adjustment outside the overall color temperature dimension, thereby achieving the separation of overall color temperature control and color style control. Therefore, without departing from the technical concept of this application, any method that shifts the color direction dimension to form a new color output rule falls within the scope of "angle rotation processing" of this application.
[0056] Furthermore, the controller can preset multiple different hue rotation angles and establish corresponding hue rotation mapping relationships for each, to correspond to different color styles or application modes. Once the controller obtains the target hue rotation angle, it can query to determine the corresponding hue rotation mapping relationship based on the target hue rotation angle, and then query the hue rotation mapping relationship based on the target color temperature to determine the target color parameters.
[0057] In other embodiments, the controller may not need to pre-store the hue rotation mapping relationship as a mapping table. Instead, it can directly calculate the target color parameters based on the acquired target color temperature and target hue rotation angle, according to the color adjustment rules defined by the hue rotation mapping relationship. As a specific example, the above real-time calculation process may include: determining the first color parameter corresponding to the target color temperature under the Planck blackbody radiation color temperature curve based on the target color temperature; and performing angle rotation processing on the hue components of the first color parameter according to the target hue rotation angle to obtain the corresponding target color parameters. In this example, the hue rotation mapping relationship does not exist in the form of a pre-stored data table, but is dynamically formed through the above calculation process. The hue rotation mapping relationship is reflected in the operation rules for angle rotation processing of the hue components, which is essentially a color conversion algorithm rule based on hue offset. Therefore, in the real-time calculation embodiment, the controller directly calculates and generates the target color parameters corresponding to the target color temperature and target hue rotation angle by performing hue component angle rotation and color space conversion operations, without needing to query a pre-stored mapping table.
[0058] In some other embodiments, the hue rotation mapping relationship can be represented as a function that establishes the conversion relationship between the target color temperature and the target color parameters. For example, the hue rotation mapping relationship can be represented as: Target color parameter = F (target color temperature, target hue rotation angle); In this implementation, function F characterizes the operational rules for converting color temperature into color parameters under the influence of a target hue rotation angle. The internal implementation of function F may include color space conversion operations, hue component angle offset operations, and color parameter reverse conversion operations. In this embodiment, the hue rotation mapping relationship does not exist in the form of a static data table, but rather in the form of operational rules or an algorithm model. The controller calls function F to perform calculations based on the input target color temperature and target hue rotation angle, thereby generating the target color parameters in real time. It should be understood that the above-mentioned functional relationship can be implemented through formula expressions, program code, matrix operation models, or other equivalent computational models. As long as the basic color temperature adjustment rules can be directionally offset under the influence of the target hue rotation angle, and new color output rules can be generated, it falls under the real-time calculation method of this application. Therefore, in this example, the hue rotation mapping relationship is embodied as an executable computational model, which is essentially an operational process of applying hue dimension offset to the basic color temperature adjustment rules, rather than relying on the static correspondence of a pre-stored mapping table.
[0059] The above embodiments have provided specific examples of how hue rotation mapping relationships can be represented in various forms. It should be understood that regardless of whether the hue rotation mapping relationship exists in the form of discrete data (tables), continuous functions, or calculation rules, its essence is to perform directional offset processing on the hue component of the basic color parameter / first color parameter corresponding to the Planck blackbody radiation color temperature curve under the action of a preset hue rotation angle, thereby establishing a new correspondence between the color temperature parameter and the target color parameter. Any method that uses equivalent means to implement this directional offset operation and form a mapping rule between color temperature and color parameters falls within the protection scope of the hue rotation mapping relationship of this application. In the embodiments of this application, after determining the hue rotation mapping relationship, the controller can determine the target color parameter based on the mapping relationship, thereby achieving diverse light color adjustment effects while maintaining a constant overall color temperature.
[0060] Step S104: Generate a control signal for the light source based on the target color parameters.
[0061] In step S104, the controller generates a control signal for driving the light source based on the target color parameters determined in step S103.
[0062] The target color parameter characterizes the color information that the light source should output under the current target color temperature and target hue rotation angle. Based on the target color parameter, the controller determines the driving control quantity corresponding to each emission channel of the light source and generates a control signal corresponding to the driving control quantity. The target color parameter can be represented in various forms, and in practical applications, it can be converted between different representations. For example, the target color parameter can be converted from chromaticity coordinates to driving parameters, or from color gamut parameters to emission channel control parameters, or from RGB parameters to emission channel control parameters. The angle rotation processing described in the embodiments of this application can be applied to parameter forms that include hue components, while the final control parameters output to the light source can be parameter forms suitable for the actual driving structure. Therefore, without departing from the technical concept of this application, the specific representation of the target color parameter does not constitute a limitation on the scope of protection of this application.
[0063] In some embodiments, when the light source includes multiple light-emitting units of different colors, such as red, green, and blue light-emitting units, the target color parameter may include RGB values. After acquiring the RGB values, the controller generates three independent parameters based on the RGB values, which are used to control the current of the red (R), green (G), and blue (B) channels of the light source, respectively. The intensity of each signal represents the brightness of the corresponding color channel. For example, RGB=(255, 180, 80) indicates that the brightness of the red channel is maximum (255), the green channel is medium brightness (180), and the blue channel is low brightness (80). In this embodiment, the control signal may include a PWM signal corresponding to the target color parameter, and the controller generates a PWM signal corresponding to each color channel (red, green, blue). Specifically, for each color channel (red, green, blue), the controller calculates the corresponding PWM duty cycle based on the range of RGB values (e.g., 0 to 255). The PWM duty cycle determines the current passage time of that color channel, i.e., the brightness.
[0064] For example, when RGB=(255, 180, 80), the controller generates the following PWM signal: Red channel: duty cycle approximately 100% (fully lit); Green channel: duty cycle approximately 70.6% (medium brightness); Blue channel: duty cycle approximately 31.4% (lower brightness).
[0065] The PWM signal generated by the controller is sent to the drive circuit of the light source to adjust the current of each color channel of the light source, thereby precisely controlling the color output of the light source.
[0066] In other embodiments, the target color parameters may include HSL / HSV (hue, saturation, brightness) values. The controller then determines the corresponding color channel output ratio using the hue (H), saturation (S), and brightness / lightness (L / V) parameters, and then generates the corresponding PWM signal. Specifically, the controller is used to: adjust the RGB values according to the hue angle (e.g., from 0° to 360°) and control the output ratio of each color channel via the PWM signal; adjust the brightness of each color channel according to the saturation value to control the vividness of the color, where high saturation (S close to 1) means a more vivid color, and low saturation (S close to 0) means a duller color; and adjust the brightness control signal of the light source according to the brightness or lightness value, such as by adjusting the PWM duty cycle to control the brightness of the light source.
[0067] The control signal in the above embodiment is illustrated using a PWM signal as an example. In other embodiments, the control signal may include at least one of the following signals: a PWM signal, a digital signal, and an analog signal. The signal generated by the controller is transmitted to the driving circuit of the light source. The driving circuit adjusts the current of each color channel according to the received signal, ultimately controlling the color, brightness, and color temperature of the light source.
[0068] As an example, if the control signal includes a digital signal, the controller generates the corresponding digital signal based on the target color parameters (such as RGB values, color temperature, etc.). For instance, for controlling RGB parameters, the controller converts the color intensity (typically within the range of 0 to 255) of the target red, green, and blue channels into corresponding digital signals. The generated digital signals can be transmitted to the light source driver circuit via a bus protocol (such as I2C, SPI, or DALI). In the light source driver circuit, the digital signals are decoded and used to control the current of the corresponding color channel, thereby adjusting the color and brightness of the light source.
[0069] As another example, if the control signal includes an analog signal, the controller generates the corresponding analog signal based on the target color parameters (such as RGB values, color temperature, etc.). For example, for controlling color temperature or brightness parameters, the controller generates a corresponding analog voltage signal based on the brightness or color temperature value; for example, for color temperature adjustment, the controller generates a voltage signal of 0 to 10V based on the set color temperature (CCT), representing the transition from cool light to warm light. By adjusting the analog signal, the controller controls the brightness and color temperature of the light source, thereby controlling the RGB output of the light source.
[0070] Through step S104, the controller can generate a light source control signal based on the target color parameters to achieve the target light color output. Therefore, based on the above steps S101 to S104, compared with the prior art, the light source control method provided by the embodiments of this application has at least the following beneficial effects: First, this application introduces a target hue rotation angle and, based on the corresponding hue rotation mapping relationship, allows for directional adjustment of the first color parameter corresponding to the Planck blackbody radiation color temperature curve (e.g., by obtaining the target color in real-time calculation or by looking up a table) while maintaining the target color temperature. This obtains the target color parameter corresponding to the target color temperature. This breaks the traditional one-to-one mapping relationship between color temperature and color parameters, achieving separate control of integrated color temperature and color style adjustment. Under the same color temperature conditions, different target color parameters can be obtained, thus achieving diverse light and color expressions.
[0071] Secondly, in some examples, the hue rotation mapping relationship proposed in this application is based on the angular rotation processing of the hue component in the first color parameter corresponding to the Planck blackbody radiation color temperature curve, generating new color parameter mapping rules without having to establish an independent and complete color temperature-color parameter lookup table for each light color style. Compared with the prior art's method of achieving extended control by storing multiple sets of color data tables, the method provided in this application only needs to store the basic color temperature adjustment rules and the angular rotation processing model corresponding to the hue rotation mapping relationship to generate multiple sets of target color parameters. For example, it can obtain color values with full color gamut changes, thereby reducing system storage overhead and improving the resource utilization efficiency of the control system.
[0072] In other examples, when the hue rotation mapping relationship exists in the form of a preset mapping table, multiple hue rotation mapping relationships can be formed by setting multiple different hue rotation angles, corresponding to multiple sets of color parameter sequences. The controller can select the appropriate hue rotation mapping relationship according to different application modes or scenario requirements, realizing rapid switching between different light color styles and improving the flexibility and scalability of light source control.
[0073] Furthermore, since the angle rotation processing in this embodiment only applies to the color direction dimension and does not change the overall color temperature value, it can maintain the stability and consistency of color temperature control while achieving light color style adjustment. This control mechanism, which decouples the overall color temperature from the color style, helps to improve the adjustment freedom and application adaptability of light source devices, etc.
[0074] In summary, the light source control method provided in this application achieves diversified light and color output within the same color temperature range without significantly increasing system complexity and storage burden, thereby realizing richer color expression forms.
[0075] Please see Figure 3 This document illustrates a light source control method provided in a second embodiment of this application. This method is applied to a light source or to an electronic device having a light source, such as the light source 503 or the light-emitting device 500 mentioned above. Specifically, the light source control method in this embodiment can obtain the target hue rotation angle and target color temperature of the light source based on specific needs, and perform calculations according to the color rules defined by the hue rotation mapping relationship to determine the target color parameters of the light source. This method may specifically include steps S201 to S204.
[0076] Step S201: Obtain the target hue rotation angle.
[0077] In some embodiments, the specific implementation of step S201 in this embodiment can be found in the detailed description of step S101 in the embodiments above, and will not be repeated here.
[0078] In other embodiments, the controller can obtain the target hue rotation angle based on the hue to be displayed by the light-emitting device. The target hue rotation angle can be calculated using geometric angles. Based on this, in this embodiment, step S201, "obtaining the target hue rotation angle", can specifically include: obtaining the target hue; determining a first line connecting the position point of the target hue on the circular color wheel and the center white point of the circular color wheel; determining a second line connecting a preset reference color point and the center white point; and determining the target hue rotation angle based on the angle between the first line and the second line.
[0079] In this embodiment, the circular color wheel is used to represent the distribution relationship of color direction attributes under a comprehensive color temperature reference. For specific examples, please refer to... Figure 4 The circular color wheel is a planar graphic structure with a central white dot O1. The point corresponding to the center of the circular color wheel is the "central white dot O1," also known as the comprehensive color temperature reference point. The circumference is used to represent changes in color direction. In the circular color wheel, different azimuth angles correspond to different color direction attributes, and continuous changes along the circumference represent continuous changes in color direction. The circular color wheel can be an actual display interface, where users select elements; or it can be a logical color distribution model, mapped onto the circular color wheel by the controller based on user actions.
[0080] Specifically, in this embodiment, the target hue can be determined by user input, mode parameter invocation, or external control signals. After acquiring the target hue, the controller maps it onto a circular color wheel to determine the corresponding position point O2 on the circular color wheel. Position point O2 represents the directional attribute of the target hue under the comprehensive color temperature reference. The controller determines a first line L1 between the position point O2 corresponding to the target hue and the center white point O1. The first line L1 represents the direction of the target hue relative to the comprehensive color temperature reference point.
[0081] The controller is also used to determine the position of a preset reference color point O3 on the circular color wheel, and to determine the second line L2 connecting the preset reference color point O3 and the center white point O1. The reference color point O3 can be the position of the base color (i.e., the reference color) under the base color temperature adjustment rule. As an example, the preset reference color point O3 can be selected as a preset reference direction on the circular color wheel, such as the red direction. In this case, the preset reference color point O3 can be set as the point where red is located, and its RGB parameters can be represented as (255, 0, 0). The second line L2 is used to represent the directional attribute of the preset reference color. In this embodiment, the second line L2 can be defined as a 0-degree reference direction.
[0082] After determining the first connecting line L1 and the second connecting line L2, the controller calculates the included angle b between the two lines. Angle b is the target hue rotation angle, which characterizes the circumferential offset of the target hue's position point O2 on the circular color wheel relative to the reference color point O3. Angle b can be calculated based on the minimum angular difference in the circumferential direction, distinguishing between clockwise and counterclockwise directions to determine the direction and magnitude of the hue rotation. In this way, the controller can determine the target hue rotation angle based on the geometric position of the color corresponding to the target hue on the circular color wheel.
[0083] In the embodiments provided in this application, the target color tone can be obtained through at least one of the following methods: user input, preset mode parameters, external control commands, or environmental perception results.
[0084] For example, the target hue can be obtained through user input. As an application example, in a smart lighting control interface, the control device (e.g., a remote control, control interface, etc.) can provide a circular color wheel interface for the user to select the target hue. When the user clicks or slides on the circular color wheel to select a color, the controller within the control device obtains the location point of the target hue and determines the corresponding target hue rotation angle according to the steps described above, thereby adjusting the light color style. Based on this, the step of "obtaining the target hue" in this embodiment may include: receiving the target color point selected by the user on the circular color wheel, and determining the target hue from the target color point. As another application example, the target hue can be obtained by the user through input or selection via a control interface. For example, the user can select the desired color style or hue through a touch interface, button device, remote control, or mobile terminal.
[0085] For example, the target hue can be obtained through preset mode parameters. As an application example, the controller can preset multiple application scenarios, such as reading, leisure, movie watching, or display scenarios. Each preset scenario corresponds to a preset target hue. When the controller needs to control the light-emitting device to switch to a certain preset scenario, the controller automatically determines the target hue corresponding to that preset scenario. After determining the target hue, the controller maps the target hue to the corresponding position point on the circular color wheel, i.e., obtains the "position point O2 of the target hue on the circular color wheel" mentioned above. The mapping process can be determined based on preset color direction parameters or color coordinates. The controller further determines the target hue rotation angle corresponding to the preset scenario according to the above steps, thereby realizing the adjustment of the light color style of the light-emitting device.
[0086] For example, the target color tone can be determined by external control commands. As an application example, a host control system, network control platform, or other intelligent device can send control commands to the controller, which then determines the target color tone based on the control commands.
[0087] Therefore, in this embodiment, by establishing the geometric relationship between the target hue's position point O2 on the circular color wheel and the reference color point O3, and determining the target hue rotation angle using the angle b between the two relative to the central white point O1, the determination process of the target hue rotation angle has a clear geometric meaning. Since angle b can correspond the color direction attribute to a circumferential azimuth angle, changes in color direction can be directly converted into angular offsets, thereby simplifying the calculation of the hue rotation angle and improving the intuitiveness and controllability of the determination process. Simultaneously, since the circular color wheel uses the central white point O1 as the comprehensive color temperature reference, determining the angle b does not change the comprehensive color temperature, only adjusting the color direction dimension, further strengthening the separation effect between comprehensive color temperature control and color style adjustment. Therefore, this embodiment determines the target hue rotation angle geometrically, making the acquisition of hue offset clearer, more accurate, and easier to implement.
[0088] Step S202: Obtain the target color temperature.
[0089] The specific implementation of step S202 in this embodiment can be found in the detailed description of step S102 in the embodiment above in the specification. It will not be repeated here. There is no strict execution order between step S201 and step S202.
[0090] Step S203: Determine the hue rotation mapping relationship corresponding to the target hue rotation angle, and based on the hue rotation mapping relationship, determine the target color parameters corresponding to the target color temperature.
[0091] In some embodiments, the specific implementation of step S203 in this embodiment can be found in the detailed description of step S103 in the embodiments above, and will not be repeated here.
[0092] In some embodiments, step S203 may include the following sub-steps S2031 and S2032.
[0093] Step S2031: Based on the target color temperature, determine the first color parameter corresponding to the target color temperature using the Planck blackbody radiation color temperature curve.
[0094] The first color parameter is a fundamental color parameter in the Planck blackbody radiation color temperature curve. Specifically, in this embodiment, after obtaining the target color temperature, the controller first needs to determine the fundamental color parameter corresponding to the target color temperature without introducing hue parameter angle rotation processing. The fundamental color parameter is the first color parameter. The fundamental color output rule without introducing hue parameter angle rotation processing can be illustrated using the Planck blackbody radiation color temperature curve as an example. The first color parameter may include at least one of the following parameters: CIE-xy chromaticity coordinates, RGB values.
[0095] In one implementation, the first color parameter is the CIE xy chromaticity coordinates. The first color parameter can be determined based on the Planckian Locus (hereinafter referred to as the Planck locus) of the Planck blackbody color temperature curve in the CIE chromaticity diagram. The Planck locus represents the chromaticity coordinate trajectory of an ideal blackbody radiator at different temperatures. For a given target color temperature value, a unique chromaticity coordinate point can be determined on the Planck locus, and the controller can obtain the chromaticity coordinates corresponding to the target color temperature by looking up a table or mathematical expression.
[0096] In another implementation, the first color parameter is an RGB value. The controller can determine the first color parameter in one of the following ways: by looking up a preset color temperature-color parameter RGB value correspondence table to obtain the first color parameter corresponding to the target color temperature; based on the Planck blackbody radiation color temperature curve (or calculated based on the mathematical expression of the Planck blackbody radiation model), obtain the chromaticity coordinates (such as CIE-xy chromaticity coordinates) corresponding to the target color temperature, and then convert the chromaticity coordinates into the corresponding RGB value of the first color parameter (e.g., through standard chromaticity conversion relations or matrix operations, or table lookup, etc.) to convert CIE-xy into RGB values; or by performing interpolation operations on known discrete color temperature points to determine the RGB value of the first color parameter corresponding to the target color temperature. All of the above methods belong to the implementation methods of this application for determining the first color parameter based on the target color temperature.
[0097] It is important to note that when the first color parameter is CIE-xy chromaticity coordinates, these coordinates should be further converted to RGB values for subsequent processing. Specifically, CIE-xy chromaticity coordinates can be converted to RGB values using standard chromaticity conversion relationships. One example of the CIE-xy chromaticity coordinate conversion process is: first, convert the CIE-xy coordinates to the CIE-XYZ color space, and then convert the CIE-XYZ to RGB values based on the white point and the conversion matrix. Another example of the CIE-xy chromaticity coordinate conversion process is: based on the target color temperature T, the controller can obtain the corresponding CIE-xy chromaticity coordinates by looking up a color temperature curve table. Then, based on the obtained CIE-xy chromaticity coordinates, a further lookup table can be used to convert them to the corresponding RGB values for the first color parameter. For example, within the color temperature range of 1800K to 15000K, the table below can be used to find the chromaticity coordinates and RGB values corresponding to the target color temperature. This table provides the correspondence between color temperature T (in Kelvin) and CIE-xy chromaticity coordinates and RGB values.
[0098] Table 1. Color temperature curves from 1800K to 15000K (CIE-xy coordinates to RGB conversion) 1800 0.5492 0.4082 255 140 17 5200 0.3397 0.3472 255 238 220 1900 0.5378 0.4112 255 147 34 5300 0.3372 0.3451 255 239 223 2000 0.5267 0.4133 255 153 46 5400 0.3348 0.3431 255 240 226 2100 0.5160 0.4146 255 159 56 5500 0.3325 0.3411 255 241 229 2200 0.5056 0.4152 255 164 65 5600 0.3302 0.3391 255 242 232 2300 0.4957 0.4152 255 169 73 5700 0.3281 0.3372 255 243 235 2400 0.4861 0.4147 255 174 81 5800 0.3260 0.3354 255 244 238 2500 0.4770 0.4137 255 178 88 5900 0.3240 0.3336 255 245 241 2600 0.4682 0.4123 255 182 96 6000 0.3221 0.3318 255 246 243 2700 0.4599 0.4106 255 186 102 6100 0.3203 0.3301 255 247 246 2800 0.4519 0.4086 255 189 109 6200 0.3185 0.3284 255 248 248 2900 0.4442 0.4064 255 193 115 6300 0.3168 0.3268 255 249 251 3000 0.4369 0.4041 255 196 122 6400 0.3151 0.3252 255 249 253 3100 0.4300 0.4016 255 199 128 6500 0.3135 0.3237 254 249 255 3200 0.4234 0.3990 255 202 133 6600 0.3120 0.3222 252 248 255 3300 0.4171 0.3963 255 205 139 6700 0.3105 0.3207 250 246 255 3400 0.4110 0.3935 255 207 144 6800 0.3091 0.3193 248 245 255 3500 0.4053 0.3907 255 210 150 6900 0.3077 0.3179 246 244 255 3600 0.3999 0.3879 255 212 155 7000 0.3064 0.3166 244 242 255 3700 0.3946 0.3851 255 214 160 7100 0.3051 0.3152 242 241 255 3800 0.3897 0.3823 255 216 165 7200 0.3039 0.3140 240 240 255 3900 0.3850 0.3795 255 218 169 7300 0.3027 0.3127 238 239 255 4000 0.3805 0.3768 255 220 174 7400 0.3015 0.3115 237 238 255 4100 0.3761 0.3740 255 222 178 7500 0.3004 0.3103 235 236 255 4200 0.3720 0.3714 255 224 183 7600 0.2993 0.3092 234 235 255 4300 0.3681 0.3687 255 226 187 7700 0.2982 0.3080 232 234 255 4400 0.3644 0.3661 255 227 191 7800 0.2972 0.3069 231 233 255 4500 0.3608 0.3636 255 229 195 7900 0.2962 0.3059 229 232 255 4600 0.3574 0.3611 255 230 199 8000 0.2952 0.3048 228 231 255 4700 0.3541 0.3586 255 232 203 8100 0.2943 0.3038 227 231 255 4800 0.3510 0.3562 255 233 206 8200 0.2934 0.3028 226 230 255 4900 0.3480 0.3539 255 234 210 8300 0.2925 0.3018 224 229 255 5000 0.3451 0.3516 255 236 213 8400 0.2916 0.3009 223 228 255 5100 0.3424 0.3494 255 237 217 8500 0.2908 0.3000 222 227 255 8600 0.2900 0.2991 221 226 255 12000 0.2718 0.2776 197 209 255 8700 0.2892 0.2982 220 226 255 12100 0.2715 0.2772 197 209 255 8800 0.2884 0.2973 219 225 255 12200 0.2711 0.2768 196 208 255 8900 0.2877 0.2965 218 224 255 12300 0.2708 0.2764 196 208 255 9000 0.2869 0.2956 217 223 255 12400 0.2705 0.2759 195 208 255 9100 0.2862 0.2948 216 223 255 12500 0.2701 0.2755 195 207 255 9200 0.2856 0.2941 215 222 255 12600 0.2698 0.2751 194 207 255 9300 0.2849 0.2933 214 222 255 12700 0.2695 0.2748 194 207 255 9400 0.2842 0.2925 213 221 255 12800 0.2692 0.2744 194 206 255 9500 0.2836 0.2918 212 220 255 12900 0.2689 0.2740 193 206 255 9600 0.2830 0.2911 212 220 255 13000 0.2686 0.2736 193 206 255 9700 0.2824 0.2904 211 219 255 13100 0.2683 0.2733 193 205 255 9800 0.2818 0.2897 210 219 255 13200 0.2680 0.2729 192 205 255 9900 0.2812 0.2890 209 218 255 13300 0.2678 0.2725 192 205 255 10000 0.2807 0.2884 208 217 255 13400 0.2675 0.2722 191 205 255 10100 0.2801 0.2877 208 217 255 13500 0.2672 0.2719 191 204 255 10200 0.2796 0.2871 207 216 255 13600 0.2670 0.2715 191 204 255 10300 0.2791 0.2865 206 216 255 13700 0.2667 0.2712 190 204 255 10400 0.2786 0.2859 206 215 255 13800 0.2665 0.2709 190 204 255 10500 0.2781 0.2853 205 215 255 13900 0.2662 0.2706 190 203 255 10600 0.2776 0.2847 204 214 255 14000 0.2660 0.2702 190 203 255 10700 0.2771 0.2841 204 214 255 14100 0.2657 0.2699 189 203 255 10800 0.2766 0.2835 203 214 255 14200 0.2655 0.2696 189 203 255 10900 0.2762 0.2830 203 213 255 14300 0.2653 0.2693 189 202 255 11000 0.2757 0.2825 202 213 255 14400 0.2650 0.2690 188 202 255 11100 0.2753 0.2819 201 212 255 14500 0.2648 0.2687 188 202 255 11200 0.2749 0.2814 201 212 255 14600 0.2646 0.2685 188 202 255 11300 0.2745 0.2809 200 211 255 14700 0.2644 0.2682 187 202 255 11400 0.2741 0.2804 200 211 255 14800 0.2641 0.2679 187 201 255 11500 0.2737 0.2799 199 211 255 14900 0.2639 0.2676 187 201 255 11600 0.2733 0.2795 199 210 255 15000 0.2637 0.2674 187 201 255 11700 0.2729 0.2790 198 210 255 11800 0.2725 0.2785 198 210 255 11900 0.2722 0.2781 197 209 255 Based on the table above, the controller finds the chromaticity coordinates (CIE-xy) corresponding to the target color temperature and converts them into the corresponding RGB values to obtain the first color parameter. In this way, the controller ensures that the color parameter corresponding to the target color temperature is accurately calculated and provides a basis for subsequent steps. If the value of the selected target color temperature does not appear directly in the table, the closest RGB value can be obtained through interpolation to ensure accuracy.
[0099] In this embodiment, the first color parameter is used to characterize the light source color output rule under the basic color temperature adjustment rule (e.g., Planck trajectory). At this time, the first color parameter does not include the result after hue shift processing; the hue shift will be processed in the subsequent step S2032. Therefore, the goal of this step is to determine the first color parameter without introducing hue rotation based on the target color temperature, as the basis for subsequent hue rotation calculations.
[0100] Step S2032: Based on the target hue rotation angle, perform angle rotation processing on the hue component of the first color parameter to obtain the target color parameter corresponding to the target color temperature.
[0101] In this embodiment, the purpose of step S2032 is to rotate the hue component in the first color parameter according to the target hue rotation angle, thereby adjusting the color output of the light source. This allows the color tone attribute to be changed according to the target hue rotation angle while keeping the target color temperature constant. The angle rotation processing refers to shifting the hue component of the color by angle based on the target hue rotation angle (ΔH), thereby adjusting the color style or tone. During this process, the values of the hue components change, but the saturation and brightness (or lightness) remain unchanged.
[0102] As a specific example, step S2032 may specifically include: converting the first color parameter into a color gamut space parameter, wherein the color gamut space parameter is a parameter in the HSV color gamut space or a parameter in the HSL color gamut space; based on the target hue rotation angle, performing angle rotation processing on the hue component in the color gamut space parameter to obtain the updated color gamut space parameter, and converting the updated color gamut space parameter into the target color parameter. A color gamut space parameter is a spatial representation used to describe the attributes of color, typically including hue components, saturation components, and lightness / brightness components. In this embodiment, the color gamut space parameter is represented using the HSV (hue, saturation, lightness) color gamut space or the HSL (hue, saturation, lightness) color gamut space.
[0103] In this embodiment, similar to the first color parameter, the target color parameter includes at least one of the following parameters: CIE-xy chromaticity coordinates or RGB values.
[0104] Specifically, in step S2032, the controller is used to convert the first color parameter into a color gamut space parameter, wherein the first color parameter includes CIE-xy chromaticity coordinates or RGB values. If the first color parameter is CIE-xy chromaticity coordinates, the controller can be used to convert the first color parameter into the CIE-XYZ color space, and then convert the CIE-XYZ to RGB values (wherein, the conversion process from CIE-xy chromaticity coordinates to CIE-XYZ color space and then to RGB can apply existing conversion expressions or conversion matrices, which will not be elaborated in this specification), or look up the RGB value corresponding to the CIE-xy chromaticity coordinates of the first color parameter according to Table 1 above.
[0105] After obtaining the RGB values of the first color parameter, the controller converts the RGB values into color gamut space parameters. Color gamut space parameters include hue (H), saturation (S), and other components, namely lightness (V) or brightness (L). The hue (H) component reflects the basic hue of the color, the saturation (S) component describes the purity of the color, and the lightness or brightness (V or L) component characterizes the brightness or lightness of the color. The specific conversion steps involved in converting RGB values to color gamut space parameters may include the following process: Calculate the maximum and minimum values in the RGB values as max(R, G, B) and min(R, G, B), respectively. Calculate the luminance component or lightness component (V or L): For the HSV color gamut space, calculation ;or, For the HSL color gamut space, calculation ; Calculate the saturation component (S): For the HSV color gamut space, calculation ;or, For the HSL color gamut space, calculation ; Calculate the hue component (H): Hue is calculated based on the hue range containing the maximum value among the RGB values. If R is the maximum value among the RGB values, then: ; If G is the maximum value in the RGB values, then:
[0106] If B is the maximum value in the RGB values, then:
[0107] Through these specific steps, the first color parameter (whether RGB value or CIE-xy chromaticity coordinates) is converted into parameters in the HSV or HSL color gamut space to facilitate subsequent hue rotation and color adjustment processing. Ultimately, the color gamut space parameters include hue components, saturation components, and lightness components, which provide flexible color adjustment capabilities and lay the foundation for subsequent color transformation processes.
[0108] After obtaining the hue component from the first color parameter, the controller further performs angular rotation processing on the hue component. In this embodiment, the rotation of the hue component is achieved by angular offsetting it. Specifically, the target hue rotation angle (ΔH) determines the required rotation magnitude of the hue component H. The rotation processing of the hue component is based on the following expression (1): ....................................(1) Where H is the hue component in the color gamut parameter corresponding to the first color parameter, ΔH is the target hue rotation angle, and H' is the updated hue component. This expression means that the hue component H of the first color parameter is rotated based on the target hue rotation angle ΔH to obtain a new hue component H'. The mod operation ensures that the rotation result of the hue component always remains between 0 and 360 degrees, thus guaranteeing that the hue value is within the valid range.
[0109] This angle rotation process can change the directional attribute of the first color parameter, but it does not change the saturation or brightness of the first color parameter. Therefore, during the angle rotation process, the saturation component (S) and the brightness / lightness component (V or L) remain unchanged, only the hue component changes.
[0110] After obtaining the updated hue components, the updated color gamut space parameters are obtained based on the updated hue components, saturation components, and other components.
[0111] As an example, the hue component after the aforementioned angle rotation, together with the original saturation component and other original components (lightness or luminance components), forms a new color gamut space parameter, i.e., the updated color gamut space parameter. In this example, during the aforementioned angle rotation process, the saturation component and other components (lightness or luminance components) remain unchanged. When forming the new color gamut space parameter, the values of the saturation component and other components (lightness or luminance components) directly use the corresponding original values of the first color parameter. When the target color parameter obtained in this way is applied to control the color of a light source, the basic hue of the light source can be adjusted, but the intensity and brightness of the color will not be affected.
[0112] As another example, after obtaining the updated hue component, the controller, while keeping other components in the color gamut space parameters unchanged or adjusting them according to preset optical parameter rules, obtains the updated color gamut space parameters corresponding to the target color temperature based on the updated hue component. Specifically, in certain specific cases, the controller can also adjust the saturation component or other components (luminance component or lightness component) according to preset rules. These rules can be based on the needs of actual application scenarios, such as adjusting the brightness or saturation of the light source to adapt to different ambient lighting conditions, or fine-tuning the color performance based on user settings.
[0113] In this example, "adjust according to preset rules" means that in certain application scenarios, the controller adjusts the saturation component (S) and the brightness / lightness component (V or L) according to certain rules, rather than simply keeping them unchanged. This adjustment can be achieved based on different target colors, environmental requirements, or user settings. For example, in some applications, the target brightness may need to be maintained within a certain range, such as maintaining high brightness in low-light environments. In this case, the controller is used to automatically generate a target brightness value based on the user-defined target brightness value or based on environmental conditions (e.g., light intensity), and the brightness / lightness component (V or L) will be adjusted to the target brightness value. For example, if the original luminance component of the first color parameter is lower than the preset luminance value, the controller can increase the original luminance component (e.g., increase luminance by 20%) after obtaining the updated hue component, and use the updated hue component, updated luminance component, and original saturation component as the updated color gamut space parameters to ensure that the brightness of the light source output is not too dim; or, if the luminance corresponding to the target color temperature is lower than the set preset luminance value, the controller can increase the luminance / lightness component (V or L, e.g., increase luminance / lightness by 20%), and use the updated hue component, updated luminance component, and original saturation component as the updated color gamut space parameters to ensure that the luminance is not lower than the specified threshold (e.g., 80%).
[0114] After obtaining the updated color gamut space parameters, the controller further converts the updated color gamut space parameters into target color parameters. Specifically, the controller converts the updated color gamut space parameters into corresponding updated chromaticity coordinates, and then converts the updated chromaticity coordinates into corresponding target color parameters. Similar to the first color parameter, the target color parameter may include at least one of the following parameters: CIE-xy chromaticity coordinates, or RGB values.
[0115] In one implementation, if the target color parameter is a CIE-xy chromaticity coordinate, the controller converts the updated color gamut space parameters (including hue, saturation, and other components (lightness or value)) into CIE-xy chromaticity coordinates. The converted CIE-xy chromaticity coordinates are the target color parameter. Specific conversion steps may include: converting the updated color gamut space parameters (HSV or HSL) to RGB values, based on the standard formula from the HSV or HSL model to the RGB model; converting the RGB values to the CIE-XYZ color space, a common color space conversion step to provide more standardized color data; and converting the CIE-XYZ tristimulus values to CIE-xy chromaticity coordinates using the following formula:
[0116] Where X, Y, and Z are CIE-XYZ tristimulus values, and x and y are the calculated CIE-xy chromaticity coordinates.
[0117] In another implementation, if the target color parameter is an RGB value, the controller can convert the updated color gamut space parameters (including hue, saturation, and other components (luminance or lightness component)) into CIE-xy chromaticity coordinates, and then convert the CIE-xy chromaticity coordinates back to RGB values; alternatively, the updated color gamut space parameters can be directly converted to RGB values, and the converted RGB values are the target color parameters. The process of converting the color gamut space parameters to CIE-xy chromaticity coordinates can be referred to above. For example, after obtaining the CIE-xy chromaticity coordinates, the controller can convert the CIE-XYZ coordinates back to RGB values based on the RGB transformation matrix.
[0118] For a summary, please refer to Figure 5 , Figure 5 This document illustrates a schematic flow of conversion from a first color parameter to a target color parameter in some embodiments of this application. In this flow, both the first color parameter and the target color parameter are RGB values. The controller first obtains the first color parameter corresponding to the target color temperature. Specifically, in the color coordinates corresponding to the color temperature, the first color parameter corresponding to the target color temperature T can be represented as the red component. Green components Blue component The combination, namely Subsequently, the controller uses an RGB to HSV color space conversion algorithm (an RGB to HSL color space conversion algorithm may be used in other embodiments) to convert the color space to HSV. Convert to the corresponding color gamut parameters , , ,in For hue components, For saturation components, This refers to the luminance component. After obtaining the color gamut parameters, the controller adjusts the hue component according to a preset hue rotation angle ΔH. Perform rotation processing to obtain the rotated hue components. The hue rotation angle ΔH can be positive or negative, representing the clockwise or counterclockwise shift of the hue along the color gamut space. The rotated hue components... It can be calculated using the following expression (2): ........................(2) The mod operation ensures that the hue value remains within a period of 0° to 360°, thus guaranteeing that the result after angle rotation remains within a valid hue representation range. After completing the hue rotation, the controller will combine... and the original , Combine the obtained updated color gamut space parameters, and then use the updated color gamut space parameters , , The color space is converted from HSV to RGB using an HSV to RGB color space conversion algorithm, and then converted back to RGB color space to obtain the new color parameters, which are the target color parameters. , , , recorded as . This represents the color value obtained after rotating the color parameters at the target color temperature T by an angle ΔH. Furthermore, the trajectory formed by the color points obtained by rotating the color parameters (also called color temperature curves) corresponding to multiple color temperature points by the same hue rotation angle ΔH constitutes a hue-rotated color temperature curve. Similarly, for multiple color parameters corresponding to multiple color temperature points, rotating them by multiple hue rotation angles yields multiple sets of color points. The trajectory formed by each set of color points constitutes a hue-rotated color temperature curve at a fixed hue rotation angle ΔH. Multiple trajectories can be referenced. Figure 7 The curve is formed by multiple dashed lines composed of black dots. In other words, this curve can be understood as a rotated version of the color temperature curve formed under a fixed hue rotation angle ΔH, and therefore can also be called the color temperature curve corresponding to the hue rotation angle ΔH.
[0119] Through the aforementioned conversion process, the controller can transform the updated color gamut space parameters (HSV or HSL) into target color parameters. These target color parameters can be CIE-xy chromaticity coordinates or RGB values, and a series of standardized conversion steps ensure the accuracy of the color data, meeting the needs of light source adjustment. Based on the above, the angle rotation processing operation provided in this embodiment enables the controller to adjust the light source color based on the target hue rotation angle. While ensuring stable color temperature and brightness, it changes the basic hue direction of the color, thereby achieving diverse color style adjustments. This method has high flexibility and can be applied to different light source control scenarios, meeting users' personalized needs for color expression.
[0120] Step S204: Generate a control signal for the light source based on the target color parameters.
[0121] In this embodiment, after calculating the target color parameters based on the target color temperature and the target hue rotation angle, the controller further generates a control signal for the light source based on the target color parameters to drive the light source to output the corresponding target light color. For the specific method of generating the control signal, please refer to the relevant description of step S104 in the embodiment above, which will not be repeated here.
[0122] The light source control method for calculating hue rotation mapping relationships provided in this embodiment has at least the following beneficial effects: The color conversion process is relatively simple: This embodiment uses angle rotation instead of geometric angle rotation in the CIE-xy chromaticity coordinate space. Since color display systems typically use RGB encoding, this embodiment achieves color adjustment by converting RGB to HSV / HSL color gamut parameters, rotating the hue components, and then converting back to RGB, thus avoiding complex curve transformations in the CIE-xy chromaticity coordinate space. Compared to geometric angle rotation, this method reduces computational complexity and minimizes error accumulation caused by complex curve transformations. The implementation is also highly efficient: By converting color parameters to the HSV / HSL color gamut space, performing angle offset processing on the hue components, and then converting back to RGB parameters, color style adjustments can be easily achieved. The hue components are directly related to color direction attributes, while the saturation and brightness / lightness components can remain unchanged or be adjusted according to preset rules. Therefore, independent adjustment of color direction can be achieved without changing the overall color temperature, thus avoiding reliance on complex geometric angle calculations.
[0123] The color adjustment offers high flexibility and controllability: by directly shifting the hue components at different angles, the controller can achieve different color outputs under the same color temperature. Compared to traditional geometric rotation methods, this approach allows for more flexible adjustment of color styles, thus providing a richer range of light and color expressions.
[0124] In summary, this embodiment achieves hue rotation mapping through calculation, which reduces the computational burden caused by complex curve transformations and enables independent adjustment of color style while keeping the overall color temperature constant, thereby improving the flexibility and feasibility of the light source control method.
[0125] The third embodiment of this application also provides a light source control method, which is applied to a light source or to an electronic device having a light source, such as the light source 503 or the light-emitting device 500 mentioned above. Specifically, the light source control method in this embodiment can obtain the target hue rotation angle and target color temperature of the light source based on specific needs, and determine the target color parameters of the light source by querying a set hue rotation mapping relationship table. The hue rotation mapping relationship can be a mapping table pre-stored in memory, or it can be a function relationship dynamically generated by calculation rules. For example, it can be dynamically generated or generated in real time by rules of color space conversion and hue rotation calculation during the operation of this method. The light source control method provided in this embodiment may specifically include steps S301 to S304.
[0126] Step S301: Obtain the target hue rotation angle.
[0127] In some embodiments, the specific implementation of step S301 in this embodiment can be found in the detailed description of steps S101 and S201 in the embodiments above in the specification, and will not be repeated here.
[0128] Step S302: Obtain the target color temperature.
[0129] The specific implementation of step S302 in this embodiment can be found in the detailed description of step S102 in the embodiment above in the specification. It will not be repeated here. There is no strict execution order between step S301 and step S303.
[0130] Step S303: Determine the hue rotation mapping relationship corresponding to the target hue rotation angle, and based on the hue rotation mapping relationship, determine the target color parameters corresponding to the target color temperature.
[0131] In some embodiments, the specific implementation of step S303 in this embodiment can be found in the detailed description of steps S103 and S203 in the embodiments above in the specification, and will not be repeated here.
[0132] In one implementation, the controller determines a first color parameter corresponding to the target color temperature on the Planck blackbody radiation color temperature curve; then, based on the hue rotation mapping relationship, it performs an angle shift (angle rotation) process on the hue component in the first color parameter to generate a new color parameter. The new color parameter is the target color parameter corresponding to the target color temperature at the target hue rotation angle, as specifically described in the embodiment of step S203 above.
[0133] In another implementation, the hue rotation mapping relationship can be stored or represented in the form of a mapping table. The mapping table describes the basic color parameter and the corresponding second color parameter for each discrete color temperature point at a specific hue rotation angle. After obtaining the target color temperature, the controller can look up the second color parameter corresponding to the target color temperature in the corresponding hue rotation mapping table as the target color parameter. An example of the mapping table described above can be found in Table 2 below.
[0134] Table 2 Hue Rotation Mapping Relationship Table (Example)
[0135] As shown in Table 2, different second color parameters correspond to the same color temperature under different hue rotation angles. Similarly, under the same color temperature, the corresponding second color parameters gradually shift as the hue rotation angle changes, so that different hue rotation angles correspond to different color expressions, while the overall color temperature remains unchanged. The method provided by the embodiments of this application can achieve diverse light and color styles.
[0136] This can be understood as follows: in traditional control methods, there is a fixed correspondence between the target color temperature and color parameters; however, in this application, by introducing a hue rotation mapping relationship, under the same target color temperature condition, different second color parameters can be determined as target color parameters based on different hue rotation angles, thereby achieving the separation of comprehensive color temperature control and color style control. It should be understood that the aforementioned hue rotation mapping relationship can be pre-set in the controller's memory. After obtaining the target hue rotation angle and target color temperature, the controller can directly query and obtain the second target color parameter as the target color parameter, which helps to reduce the controller's computational burden.
[0137] In some examples, when the hue rotation angle has multiple different values, multiple corresponding hue rotation mapping relationships or mapping rules can be established. The controller selects the corresponding hue rotation mapping relationship based on the obtained target hue rotation angle, thereby determining the target color parameter corresponding to the target color temperature.
[0138] In the above embodiments, the basic color parameter, the second color parameter, and the target color parameter can all be represented by RGB values for exemplary description, that is, the color information of the light source is characterized by the numerical combination of the red component (R), the green component (G), and the blue component (B).
[0139] In other embodiments, the basic color parameter, the second color parameter, and the target color parameter may also be represented in any one or more of the following forms: CIE chromaticity coordinates (e.g., CIE-xy chromaticity coordinates, CIE-XYZ parameters, or other parameter forms based on the CIE standard chromaticity system), color gamut parameters (e.g., HSV color gamut parameters, HSL color gamut parameters, or other color space parameters with hue component representation), luminance and chromaticity separation parameters (e.g., parameter combinations that separately represent luminance and chromaticity components), etc.
[0140] When the hue rotation mapping relationship is a mapping table, some embodiments of this application also provide examples of the specific process for establishing the hue rotation mapping relationship. Please refer to... Figure 6 The process of establishing the hue rotation mapping relationship may include the following steps SA501 to SA507.
[0141] Step SA501 converts the multiple discrete color temperature points corresponding to the Planck blackbody radiation color temperature curve into their corresponding basic color parameters.
[0142] In this embodiment, establishing the hue rotation mapping table requires describing the correspondence between color temperature and color using multiple discrete color temperature points. In step SA501, the controller first needs to determine multiple discrete color temperature points based on the Planck blackbody radiation color temperature curve and convert these discrete color temperature points into corresponding basic color parameters for subsequent generation of the hue rotation mapping relationship. Specifically, step SA501 may include the following sub-steps: determining multiple discrete color temperature points based on the Planck blackbody radiation color temperature curve; obtaining multiple chromaticity coordinates corresponding to the multiple discrete color temperature points; and converting the multiple chromaticity coordinates into corresponding basic color parameters.
[0143] Specifically, the controller is used to determine a series of discrete color temperature values (e.g., 1800K, 2000K, 2200K, etc.) based on the Planck blackbody radiation color temperature curve. The Planck blackbody radiation color temperature curve describes the chromaticity variation of an ideal blackbody radiator at different color temperatures. These discrete color temperature points reflect key nodes in the color change process from low to high color temperatures. These discrete color temperature points are reasonably selected; for example, they can be selected at preset intervals (e.g., 100K) within the range of 1800K to 15000K (inclusive) to cover the predetermined color temperature range and ensure that the generated hue rotation mapping relationship can effectively adapt to the entire color temperature variation range.
[0144] Furthermore, the controller is used to determine the chromaticity coordinates corresponding to each discrete color temperature point based on the Planck blackbody radiation color temperature curve. Chromaticity coordinates are a way to represent the basic attributes of color (such as hue and saturation). Commonly used chromaticity coordinate systems include the CIE-xy or CIE-XYZ coordinate systems; this embodiment uses the CIE-xy chromaticity coordinates as an example. The Planck blackbody radiation color temperature curve can provide corresponding chromaticity coordinates for each discrete color temperature point. In this process, the controller can be used to calculate the chromaticity coordinates corresponding to each color temperature point by looking up a table or using a mathematical model. For example, at a color temperature of 3000K, the corresponding CIE-xy chromaticity coordinates can be obtained, which reflect the color characteristics at that color temperature.
[0145] After obtaining the chromaticity coordinates corresponding to multiple discrete color temperature points, the controller converts these chromaticity coordinates into basic color parameters. The basic color parameters may include RGB values. The calculation steps or table lookup steps involved in the conversion process from CIE-xy chromaticity coordinates to RGB values can be referred to the above embodiment, and will not be repeated in this embodiment.
[0146] Step SA503 converts the basic color parameters into color gamut space parameters.
[0147] In this embodiment, the basic color parameters are the color parameters corresponding to the specified color temperature without hue rotation. In this embodiment, the basic color parameters can be RGB values or CIE-xy chromaticity coordinates. To facilitate subsequent hue parameter angle rotation processing, the controller converts the basic color parameters into parameters within a color gamut space. The color gamut space can be either the HSV color gamut space or the HSL color gamut space. Therefore, the color gamut space parameters in this embodiment are parameters within the HSV color gamut space or the HSL color gamut space.
[0148] Step SA505: Based on the preset hue rotation angle, perform angle rotation processing on the hue components in the color gamut space parameters to obtain the updated color gamut space parameters.
[0149] In this embodiment of the application, after step SA503, the controller has converted the basic color parameters corresponding to each discrete color temperature point into color gamut space parameters, wherein the color gamut space parameters include hue component (H), saturation component (S) and lightness or brightness component (V or L). The main purpose of step SA505 is to adjust the color gamut space parameters of each discrete color temperature point based on a preset hue rotation angle (ΔH) - that is, to perform angle rotation processing, so that the light source can produce different color styles under the same color temperature conditions, thereby achieving diversified light and color performance.
[0150] Specifically, in step SA505, the controller is specifically used to: update the hue component H1 in the color gamut parameters corresponding to each discrete color temperature point based on the preset hue rotation angle ΔH1 according to the following expression (3); and obtain the updated color gamut parameters corresponding to the discrete color temperature point while keeping other components in the color gamut parameters unchanged or adjusting them according to the preset optical parameter rules. The preset optical parameter rules may include at least one of the following rules: preset saturation component adjustment rules, lightness component adjustment rules, or brightness component adjustment rules. The specific operation process for obtaining the updated color gamut parameters based on the updated hue components, saturation components, and other components after obtaining the updated hue components can be referred to the content described in the above embodiments. For example, for each updated color gamut parameter, the hue component after the angle rotation processing of the above hue parameters can be combined with the original saturation component and the original other components (lightness components or brightness components) to form a new color gamut parameter. Alternatively, after adjusting the saturation component or other components (lightness components or brightness components) according to preset rules, they can be combined with the hue component after the angle rotation processing of the above hue parameters to form a new color gamut parameter. This embodiment will not elaborate further.
[0151] H′=mod(H1+ΔH1,360)................................(3) In expression (2), H1 is the hue component in the color gamut parameters corresponding to the basic color parameters, ΔH1 is the preset hue rotation angle ΔH1, and H' is the updated hue component. This expression means that the hue component H1 of the basic color parameters is rotated based on the preset hue rotation angle ΔH1 to obtain a new hue component H'. The mod operation ensures that the rotation result of the hue component always remains between 0 and 360 degrees, thus guaranteeing that the hue value is within the valid range.
[0152] In this embodiment, during the angle rotation processing of the color gamut space parameters corresponding to each discrete color temperature point, the hue components in the color gamut space parameters are further rotated based on multiple preset hue rotation angles to obtain multiple updated color gamut space parameters. Therefore, for each discrete color temperature point, there will be different hue expressions, laying the foundation for subsequent separation and control of hue and color temperature. For example... Figure 7 As shown, Figure 7 This is a schematic diagram of the angle rotation processing in the color gamut space of the light source control method in this application embodiment, used to visually demonstrate the color changes of each discrete color temperature point under different hue rotation angles. Figure 7In the diagram, the background color of the entire image is a chromaticity diagram of the CIE-xy chromaticity space, representing the range of colors visible to the human eye. Different regions correspond to different color directions and color attributes.
[0153] exist Figure 7 In the diagram, the center point represents the white point (standard color temperature point) at the reference color temperature, also known as the comprehensive color temperature reference point. The color corresponding to this point is the reference color without hue rotation. The rotation of all discrete color temperature points is based on this point. The black dashed line or curve extending outward from the center point represents the change path of each discrete color temperature point under different hue rotation angles. Each trajectory corresponds to a preset hue rotation angle ΔH1, showing the output difference caused by the change of color with the hue rotation angle under the same color temperature conditions. Each point on the trajectory corresponds to the updated color gamut space parameter or second color parameter of a discrete color temperature point. As an example, Figure 7 The different trajectories represent different hue rotation angles, offset clockwise or counterclockwise by a preset angle, such as ΔH1, which can be 20°. By comparing different trajectories, it is easy to understand how changes in the hue rotation angle alter the direction of the color output from the light source at the same color temperature, without changing the color temperature of the light source. Figure 7 This demonstrates the effect of hue rotation mapping, showing that under the same color temperature, a light source can output diverse color parameters when subjected to different hue rotation angles. In practical applications, the controller can select the closest second color parameter from the corresponding trajectory as the target color parameter based on the target color temperature and target hue rotation angle. This provides a visual explanation for subsequently selecting the appropriate mapped color parameter based on the target color temperature and target hue rotation angle.
[0154] After the aforementioned angle rotation processing, the color gamut parameters corresponding to each discrete color temperature point are updated, forming the updated color gamut parameters of that discrete color temperature point under the target hue rotation angle. These updated color gamut parameters will serve as the basis for subsequent steps to generate target color parameters, enabling the controller to achieve diverse color outputs under a fixed color temperature, thereby providing a rich selection of light color styles.
[0155] Step SA507: Convert the updated color gamut space parameters into corresponding second color parameters to obtain second color parameters that correspond one-to-one with multiple discrete color temperature points; After step SA505, the basic color parameters corresponding to each discrete color temperature point have been updated to color gamut parameters through angle rotation processing. The purpose of step SA507 is to convert these updated color gamut parameters into second color parameters that can be used for light source control, and to form a complete mapping relationship corresponding one-to-one with each discrete color temperature point, so as to quickly select the required color output when determining the target color temperature. Further, for each discrete color temperature point, the above step SA505 performs angle rotation processing according to multiple preset hue rotation angles to obtain multiple updated color gamut parameters corresponding to that discrete color temperature point. It can be understood that each discrete color temperature point corresponds to multiple updated color gamut parameters (these multiple updated color gamut parameters form a group), where each group of updated color gamut parameters corresponds to a preset hue rotation angle. In step SA507, the controller is used to convert the multiple updated color gamut parameters into corresponding second color parameters, thereby obtaining multiple groups of second color parameters corresponding one-to-one with multiple discrete color temperature points, where each group of second color parameters corresponds to a hue rotation angle. In specific application examples, multiple hue rotation angles correspond to multiple different light emission modes of the light source. The light hues of different light emission modes are different, thus enabling the output of different hues of color at the same color temperature point. The multiple light emission modes may include any one or more of the following modes: ambient lighting mode, rhythmic lighting mode, or scene lighting mode.
[0156] Specifically, in step SA507, the controller first converts each updated color gamut parameter (e.g., HSV or HSL parameters, including the rotated hue component H′, saturation component S, and lightness or brightness component V or L) corresponding to each discrete color temperature point into a corresponding second color parameter. The second color parameter can be represented by RGB values, CIE-xy chromaticity coordinates, or other methods, and its value is directly used to control the output color of the light source. For example, using the standard color space conversion formula, the HSV / HSL parameters are converted into corresponding RGB values to obtain the color output parameters of each discrete color temperature point at a preset hue rotation angle. For the specific process of converting the updated color gamut parameters into the second color parameter, refer to the above embodiment's process of "converting the updated color gamut parameters into corresponding updated chromaticity coordinates, and converting the updated chromaticity coordinates into corresponding target color parameters." When referring to this, the role of the target color parameter mentioned above is the same as the role of the second color parameter in this embodiment. To save space, this embodiment will not elaborate further.
[0157] In step SA507, the controller generates a corresponding second color parameter for each discrete color temperature point and a preset hue rotation angle, and stores the second color parameter in a hue rotation mapping table, forming a complete discrete mapping relationship (a mapping table between color temperature, preset hue rotation angle, and second color parameter). In this way, each discrete color temperature value and different hue rotation angles correspond to a specific second color parameter, achieving precise matching between color temperature and color output.
[0158] In practical applications, when the controller needs to determine the target color parameter corresponding to a target color temperature, it can select a second color parameter corresponding to the target color temperature from the hue rotation map table as the target color parameter based on the acquired target color temperature. The target color parameter can be selected from multiple second color parameters corresponding to the target color temperature. In other words, the determination of the target color parameter is completed by selecting a parameter matching the target color temperature from multiple second color parameters, without re-performing the hue rotation calculation, thereby improving system operating efficiency. An example of the hue rotation map table can be found in Table 2 above.
[0159] Step SA507 successfully converts the updated color gamut parameters into second color parameters, forming a complete mapping table between color temperature and second color parameters. This allows the controller to quickly obtain the target color parameters under different color temperature conditions by looking up the table, achieving diversified control of light and color styles. This method not only simplifies the color output calculation process but also enables different hue rotation angles to correspond to different color representations under the same color temperature, thus separating color temperature control from color style adjustment.
[0160] Step S304: Generate a control signal for the light source based on the target color parameters.
[0161] In some embodiments, the specific implementation of step S304 in this embodiment can be found in the detailed description of steps S104 and S204 in the embodiments above in the specification, and will not be repeated here.
[0162] In the light source control method provided in the third embodiment, by pre-establishing the hue rotation mapping relationship as a mapping table and storing it in the controller, the target color parameters can be obtained simply by looking up the table based on the target color temperature and the target hue rotation angle during actual operation. This avoids performing color space conversion and hue rotation calculations during operation. This method effectively reduces the computational complexity and processing burden of the controller, improves the system's response speed, and reduces the operational burden. It also facilitates rapid switching between different light color styles and is suitable for lighting control systems with limited computing resources or high real-time response requirements.
[0163] As a summary of the above embodiments, the following is a brief description of some practical application processes of the light source control method provided in this application. Please refer to... Figure 8 , Figure 8 The flowchart describes the overall processing from the user selecting the light source's emission parameters to the final generation of the light source dimming signal. In this process, the user first selects a specific target color temperature T and a target hue rotation angle ΔH. The target color temperature T is used to determine the overall color temperature of the light source, while the target hue rotation angle ΔH represents the amount of offset made to the color direction under that overall color temperature condition.
[0164] Subsequently, the controller looks up a pre-established color temperature T to RGB table based on the target color temperature T (such as the CIE-xy coordinate to RGB table for the 1800K-15000K color temperature curve shown in Table 1 above). By looking up this table, the controller can obtain the RGB value corresponding to the target color temperature T, i.e., the RGB values. T .
[0165] In obtaining RGB T Next, the controller performs angular rotation processing on the hue parameters. Specifically, the controller is used to rotate the RGB values. T Convert to HSV color gamut space parameters to obtain the corresponding , , Subsequently, the hue components are adjusted according to the target hue rotation angle ΔH. A rotation transformation is performed, for example, updating the hue components of the HSV color space parameters according to the above expression (1) to obtain the rotated hue components, thereby obtaining the updated HSV parameters. After completing the angular rotation processing of the hue parameters, the updated HSV parameters are converted back to the RGB color space to obtain the new RGB values, which are the target color parameters RGB. TΔH .
[0166] RGB TΔH This represents the first color parameter (or basic color parameter) RGB corresponding to the target color temperature T, rotated by a target hue angle ΔH, under the condition of target color temperature T. T The color parameters obtained after angular rotation correspond to the color points on the hue-rotated color temperature curve. Finally, the controller determines the color parameters based on the obtained RGB values. TΔH It generates dimming control signals for each color channel, such as dimming signals for the red, green, and blue channels, thereby controlling the light source to output the corresponding target light color.
[0167] It should be noted that, Figure 8The dashed box in the diagram represents the transformation process of rotating the hue component of the first color parameter / base color parameter. This process can be implemented using multiple features or combinations of features provided in the above embodiments, and will not be elaborated further here. Through the above process, the method of this embodiment can adjust the color style of the light source by adjusting the hue rotation angle ΔH while maintaining the overall color temperature T, thereby enabling the light source to present different color expressions under the same color temperature conditions, achieving separation of overall color temperature control and color style adjustment.
[0168] In different embodiments of this application, the hue rotation mapping relationship can be obtained either through real-time calculation or by pre-establishing a mapping table. In the real-time calculation embodiment, the controller generates target color parameters in real time based on the target color temperature and target hue rotation angle through color space conversion and hue rotation calculation. This method offers high flexibility; when the target hue rotation angle or target color temperature changes, new color parameters can be dynamically generated through calculation, making it suitable for systems requiring high scalability.
[0169] In the lookup table implementation, a hue rotation mapping table is pre-established, and the color parameters corresponding to different color temperatures and different hue rotation angles are calculated and stored in the controller. During actual operation, the controller only needs to perform a lookup operation based on the target color temperature and target hue rotation angle to determine the target color parameters, thus avoiding color space conversion and hue rotation calculations during operation. This method effectively reduces the controller's computational burden, improves system response speed, and reduces the controller's operational load, making it particularly suitable for lighting control systems with limited computing resources or high real-time response requirements.
[0170] Therefore, this application provides both real-time calculation and lookup table methods, enabling the system to generate color parameters by calculation when needed and to achieve rapid response by lookup table during actual operation, thereby improving the overall adaptability and efficiency of the light source control system.
[0171] Please see Figure 9 Based on the light source control method provided in the above embodiments, this application provides a control device 300. Figure 9 A structural block diagram of the control device 300 is shown. The control device 300 operates as follows: Figure 1 The light-emitting device 500 shown is used to execute the light source control method described above. In this embodiment, the control device 300 is stored in the memory of the controller 501 of the light-emitting device 500 and is configured to be executed by one or more processors of the controller 501.
[0172] In this embodiment, the control device 300 includes a target hue rotation angle acquisition module 310, a target color temperature acquisition module 330, a target color parameter determination module 350, and a control module 370. The target hue rotation angle acquisition module 310 is used to acquire the target hue rotation angle; the target color temperature acquisition module 330 is used to acquire the target color temperature; the target color parameter determination module 350 is used to determine the hue rotation mapping relationship corresponding to the target hue rotation angle, and based on the hue rotation mapping relationship, determine the target color parameters corresponding to the target color temperature. The hue rotation mapping relationship describes the correspondence between the color temperature of the light source and the color parameters of the light source under the target hue rotation angle. The hue rotation mapping relationship is a mapping relationship established by rotating the hue component in the first color parameter corresponding to the Planck blackbody radiation color temperature curve based on a preset hue rotation angle. The control module 370 is used to generate a control signal for the light source according to the target color parameters.
[0173] In some embodiments, the target hue rotation angle acquisition module 310 is specifically used for: acquiring a target hue; determining a first line connecting the position point of the target hue on the circular color wheel and the center white point of the circular color wheel; determining a second line connecting a preset reference color point and the center white point; and determining the target hue rotation angle based on the angle between the first line and the second line. Acquiring the target hue includes: receiving a target color point selected by the user on the circular color wheel, and determining the target hue from the target color point.
[0174] In some embodiments, the target color temperature acquisition module 330 is specifically used to obtain the color temperature through at least one of the following methods: user input, preset mode parameters, external control instructions, and environmental perception results.
[0175] The target color parameter determination module 350 is specifically used for: determining a first color parameter corresponding to the target color temperature based on the Planck blackbody radiation color temperature curve, where the first color parameter is a basic color parameter in the Planck blackbody radiation color temperature curve; and performing an angle rotation process on the hue component of the first color parameter according to the target hue rotation angle to obtain the target color parameter corresponding to the target color temperature. Specifically, the target color parameter determination module 350 is specifically used for performing an angle rotation process on the hue component of the first color parameter according to the target hue rotation angle. The specific process can be referred to in the above-described specific embodiments, and will not be elaborated further here.
[0176] In some other embodiments, the control device 300 may further include a mapping relationship establishment module (not shown in the figure). The mapping relationship establishment module is used to establish a hue rotation mapping relationship table. The specific process of establishing the hue rotation mapping relationship can be referred to the specific embodiments described above, and will not be repeated here.
[0177] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0178] In the several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or other forms.
[0179] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0180] Please see Figure 10 Based on the above-described light source control method, this application embodiment also provides a controller 501 for a light-emitting device. The controller 501 may include one or more central processing units 510 and a memory 520. The central processing unit 510 is used to invoke a computer program stored in the memory 520 to execute the steps of any of the light source control methods described in the above embodiments. As a specific example, one or more application programs are stored in the memory 520 and configured to be executed by one or more central processing units 510. These one or more application programs are configured to execute the methods described in the above embodiments.
[0181] The central processing unit 510 may include one or more processing cores. The central processing unit 510 executes various functions of the controller 501 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 520, and by calling data stored in the memory 520. Optionally, the central processing unit 510 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
[0182] The memory 520 may include random access memory (RAM) or read-only memory (ROM). The memory 520 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 520 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the light-emitting device 500 during use.
[0183] This application also provides a computer-readable storage medium storing computer program instructions that can be invoked by a processor to execute the methods described in the above embodiments.
[0184] Computer-readable storage media can be, for example, flash memory, electrically erasable programmable read-only memory (EEPROM), electrically programmable read-only memory (EPROM), hard disk, or read-only memory (ROM). Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for computer program instructions that perform any of the method steps described above. These computer program instructions can be read from or written to one or more computer program products.
[0185] In this application, "multiple" refers to two or more.
[0186] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it includes one or a combination of the steps of the method embodiments. Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0187] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A light source control method characterized by, include: Obtain the rotation angle of the target hue; Obtain the target color temperature; The hue rotation mapping relationship corresponding to the target hue rotation angle is determined, and the target color parameters corresponding to the target color temperature are determined based on the hue rotation mapping relationship. The hue rotation mapping relationship is used to describe the correspondence between the color temperature of the light source and the color parameters of the light source under the target hue rotation angle. The hue rotation mapping relationship is a mapping relationship established by rotating the hue components corresponding to the basic color parameters of the Planck blackbody radiation color temperature curve based on a preset hue rotation angle. Based on the target color parameters, a control signal for the light source is generated.
2. The method of claim 1, wherein, The step of determining the hue rotation mapping relationship corresponding to the target hue rotation angle, and determining the target color parameters corresponding to the target color temperature based on the hue rotation mapping relationship, includes: Based on the target color temperature, a first color parameter corresponding to the target color temperature is determined based on the Planck blackbody radiation color temperature curve. The first color parameter belongs to the basic color parameter in the Planck blackbody radiation color temperature curve. Based on the target hue rotation angle, the hue component corresponding to the first color parameter is rotated to obtain the target color parameter corresponding to the target color temperature.
3. The method according to claim 2, characterized in that, The step of rotating the hue component of the first color parameter according to the target hue rotation angle includes: The first color parameter is converted into a color gamut space parameter, which is a parameter in the HSV color gamut space or a parameter in the HSL color gamut space. The first color parameter includes CIE-xy chromaticity coordinates or RGB values. Based on the target hue rotation angle, the hue components in the color gamut space parameters are rotated to obtain the updated color gamut space parameters. The updated color gamut parameters are converted into target color parameters, which include CIE-xy chromaticity coordinates or RGB values.
4. The method according to claim 3, characterized in that, The color gamut parameters include hue components, saturation components, and other components, wherein the other components are lightness components or brightness components. The step of rotating the hue components in the color gamut space parameters based on the target hue rotation angle to obtain updated color gamut space parameters includes: The hue components in the color gamut space parameters are rotated according to the following expression: H′=mod(H+ΔH,360); Wherein, H is the hue component in the color gamut space parameters, ΔH is the target hue rotation angle, and H′ is the updated hue component; Based on the updated hue component, the saturation component, and the other components, the updated color gamut space parameters are obtained.
5. The method according to claim 2, characterized in that, The first color parameter includes RGB values, and the target color parameter includes RGB values; The step of determining the first color parameter corresponding to the target color temperature under the Planck blackbody radiation color temperature curve based on the target color temperature includes: Based on the Planck blackbody radiation color temperature curve, obtain the chromaticity coordinates corresponding to the target color temperature; Convert the chromaticity coordinates into the corresponding first color parameters; The step of converting the updated color gamut parameters into target color parameters includes: The updated color gamut parameters are converted into corresponding updated chromaticity coordinates; The updated chromaticity coordinates are then converted into the corresponding target color parameters.
6. The method according to claim 1, characterized in that, The hue rotation mapping relationship is a mapping table, and the process of establishing the hue rotation mapping relationship includes: Convert the discrete color temperature points corresponding to the Planck blackbody radiation color temperature curve into the corresponding basic color parameters. The basic color parameters are converted into color gamut space parameters, which are parameters in the HSV color gamut space or parameters in the HSL color gamut space. Based on a preset hue rotation angle, the hue components in the color gamut space parameters are rotated to obtain updated color gamut space parameters. And convert the updated color gamut space parameters into corresponding second color parameters, thereby obtaining second color parameters that correspond one-to-one with multiple discrete color temperature points; Specifically, when determining the target color parameter corresponding to the target color temperature, the target color parameter is selected from a plurality of second color parameters based on the target color temperature.
7. The method according to claim 6, characterized in that, The process of converting multiple discrete color temperature points corresponding to the Planck blackbody radiation color temperature curve into corresponding basic color parameters includes: Multiple discrete color temperature points were determined based on the Planck blackbody radiation color temperature curve. Obtain the multiple chromaticity coordinates corresponding to the multiple discrete color temperature points; The multiple chromaticity coordinates are converted into corresponding basic color parameters, wherein the basic color parameters include RGB parameters.
8. The method according to claim 6, characterized in that, Based on a preset hue rotation angle, the hue components in the color gamut space parameters are rotated to obtain updated color gamut space parameters, including: For each discrete color temperature point, the hue component H1 in the color gamut space parameters is updated based on a preset hue rotation angle ΔH1 according to the following expression: H′=mod(H1+ΔH1,360); Where H′ is the updated hue component; While keeping other components in the color gamut space parameters unchanged or adjusting them according to preset optical parameter rules, the updated color gamut space parameters corresponding to the discrete color temperature points are obtained.
9. The method according to any one of claims 1 to 8, characterized in that, The process of obtaining the target hue rotation angle includes: Obtain the target color tone; Determine the first line connecting the position point of the target hue on the circular color wheel and the center white point of the circular color wheel; Determine the second line connecting the preset reference color point and the center white point; The target hue rotation angle is determined based on the angle between the first and second lines.
10. The method according to claim 9, characterized in that, The process of obtaining the target hue includes: receiving a target color point selected by the user on a circular color wheel, and determining the target hue based on the target color point.
11. A controller for a light-emitting device, characterized in that, It includes a central processing unit and a memory, wherein the central processing unit is used to invoke and run a computer program stored in the memory to perform the steps of the light source control method as described in any one of claims 1 to 10.
12. A light-emitting device, characterized in that, It includes a light source and a controller for the light-emitting device as described in claim 11, wherein the light source and the controller are electrically connected.