Lighting control method, device, equipment end and computer readable storage medium

By analyzing the required color and brightness components in the Yxy color space, determining the maximum brightness value of the RGB color component, and generating adjustment instructions based on this value, the problem of color changes and brightness cannot be adjusted when adjusting brightness is solved, and the user experience is improved.

CN114521036BActive Publication Date: 2024-11-29AI GEN SI TONG KE JI YOU XIAN GONG SI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011292358.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2024-11-29
Estimated Expiration
2040-11-18

AI Technical Summary

Technical Problem

In the prior art, when adjusting the brightness of the light, the color will change, and the brightness cannot be adjusted continuously after reaching a certain level, resulting in poor user experience.

Method used

By analyzing the demand color and brightness components in the Yxy color space, determining the maximum brightness value of the RGB color component, and determining the target RGB color component based on the demand color component, the demand brightness component and the maximum brightness value, generating adjustment instructions to adjust the light.

Benefits of technology

It avoids color changes when adjusting brightness, ensures that the brightness can continue to increase within the user's adjustment range, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114521036B_ABST
    Figure CN114521036B_ABST
Patent Text Reader

Abstract

The embodiment of the present application proposes a lighting control method, device, device end and computer-readable storage medium, which relates to the field of smart home technology. The method determines the maximum brightness value corresponding to the required color component, and determines the target RGB color component using the required color component, the required brightness component and the maximum brightness value, so that when the required brightness component is changed on the mobile terminal, its color component will not be affected, effectively solving the problem of color change caused by adjusting the brightness; at the same time, because the maximum brightness value is determined and mapped to the maximum brightness adjustment amount of the signal input module, the brightness can change with the user's adjustment operation within the brightness adjustment range on the signal input module, solving the problem that the brightness cannot be adjusted to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of smart home technology, and more specifically, to a lighting control method, apparatus, device end, and computer-readable storage medium. Background Art

[0002] In recent years, light emitting diodes (LEDs) have developed rapidly, and they have many advantages, among which dimming can achieve functions and effects that many traditional light sources could not achieve in the past. Therefore, there are many smart lighting products on the market that can be controlled by users, so that users can adjust the brightness and color of lighting products according to their personal needs.

[0003] However, in the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: first, when adjusting the brightness of the lighting product, its color will also change; second, once the brightness reaches a certain adjustment ratio, the brightness of the lighting product cannot continue to increase if the brightness value continues to be increased. Summary of the invention

[0004] The embodiments of the present application provide a lighting control method, apparatus, device end, and computer-readable storage medium method to solve the problem that the color changes due to brightness adjustment and the brightness cannot be adjusted to a certain extent.

[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0006] In a first aspect, an embodiment of the present application provides a lighting control method, which is applied to a device end, wherein the device end is communicatively connected with a lighting device, and the method includes:

[0007] Parse the obtained first adjustment instruction to obtain the required color component and required brightness component in the Yxy color space;

[0008] Determine the RGB color component value corresponding to the required color component in the Yxy color space, and determine the maximum brightness value corresponding to the required color component in the Yxy color space according to the RGB color component;

[0009] Determine a target RGB color component according to the required color component, the required brightness component, and the maximum brightness value;

[0010] A second adjustment instruction is generated according to the target RGB color components to adjust the light.

[0011] In a second aspect, an embodiment of the present application provides a lighting control device, which is applied to a device end, and the device end is communicatively connected with a lighting device, and the device includes:

[0012] An instruction parsing module, used to parse the acquired first adjustment instruction, and acquire a required color component and a required brightness component in a Yxy color space;

[0013] A maximum brightness determination module, used to determine the RGB color component value corresponding to the required color component in the Yxy color space, and determine the maximum brightness value corresponding to the required color component in the Yxy color space according to the RGB color component;

[0014] A target component determination module, used to determine a target RGB color component according to the required color component, the required brightness component, and the maximum brightness value;

[0015] The instruction generation module is used to generate a second adjustment instruction according to the target RGB color component to adjust the light.

[0016] In a third aspect, an embodiment of the present application provides a device end, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned lighting control method when executed by the processor.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned lighting control method are implemented.

[0018] In the embodiment of the present invention, by determining the maximum brightness value corresponding to the required color component, and using the required color component, the required brightness component, and the maximum brightness value to determine the target RGB color component, when the required brightness component is changed on the mobile terminal, its color component will not be affected, effectively solving the problem of color change caused by adjusting the brightness; at the same time, since the maximum brightness value is determined and mapped to the maximum brightness adjustment amount of the signal input module with the maximum brightness value, within the brightness adjustment range on the signal input module, the brightness can change with the user's adjustment operation, solving the problem that the brightness cannot be adjusted to a certain extent.

[0019] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A schematic diagram showing an application environment applicable to the lighting control method provided in an embodiment of the present application is shown.

[0022] Figure 2 A schematic diagram showing another application environment applicable to the lighting control method provided in the embodiment of the present application is shown.

[0023] Figure 3 A flow chart of a lighting control method provided by an embodiment of the present application is shown.

[0024] Figure 4 Shows Figure 3 Specific flow chart of S202.

[0025] Figure 5 Shows Figure 3 Specific flow chart of S203.

[0026] Figure 6 A flow chart of a lighting control method provided by yet another embodiment of the present application is shown.

[0027] Figure 7 Shows Figure 6 Specific flow chart of S504.

[0028] Figure 8 A functional module diagram of a lighting control device provided in one embodiment of the present application is shown.

[0029] Fig. 9 A functional module diagram of a lighting control device provided in yet another embodiment of the present application is shown.

[0030] Fig.10 A structural block diagram of a device end for executing a lighting control method according to an embodiment of the present application is shown.

[0031] Icons: 10-processor; 20-signal input module; 30-light-emitting device; 100-device end; 120-storage medium; 121-operating system; 122-data; 123-application; 130-memory; 140-input and output interface; 150-wired or wireless network interface; 160-power supply; 200-mobile terminal; 300-lighting equipment; 400-lighting control device; 410-instruction parsing module; 420-maximum brightness determination module; 430-target component determination module; 440-instruction generation module; 450-mapping relationship determination module. DETAILED DESCRIPTION

[0032] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0033] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0034] One of the main functions of light is to create emotions and atmosphere through vision. With the continuous development of technology, smart lighting equipment has gradually occupied a very important position in daily life. Smart lighting equipment can automatically adjust lighting, atmosphere lights, etc. according to the user's personal needs, providing users with a healthy and comfortable lighting environment, making people more comfortable and enjoyable. Therefore, how to achieve precise control of the color and brightness of the light is very important.

[0035] The inventor discovered during the research that in order to ensure that the lighting equipment can display normally, the RGB components will be limited. For example, when any one of the three components R, G, and B exceeds the preset limit value, the component exceeding the limit value will be directly set to the limit value, which causes the ratio of the three components R, G, and B to change, thereby causing the color to change. That is, if the user adjusts the brightness, causing any one of the three components R, G, and B to exceed the preset limit value, thereby changing the color of the lighting equipment, causing a bad experience for the user.

[0036] In addition, the inventors also found in the research that when the brightness parameter adjusted by the user exceeds the preset automatic brightness adjustment range, the maximum value within the above brightness adjustment range will be recorded as the final brightness parameter. This results in the user continuing to increase the brightness parameter, but due to the limitation of the automatic brightness adjustment range, the brightness value of the lighting equipment cannot continue to increase, which will also make the user experience of the lighting equipment bad.

[0037] Therefore, the inventors proposed the lighting control method of the present application, which first determines the required color component and the required brightness component, then determines the maximum brightness value allowed for the required color component in the RGB color space, and determines the target RGB color component based on the required color component, the required brightness component and the maximum brightness value, and generates an adjustment instruction for adjusting the light based on the target RGB color component. Since the maximum brightness value is determined first, and the target RGB color component is determined based on the maximum brightness value, the problem of the target RGB color component exceeding the preset amplitude after the conversion from the Yxy space to the RGB space, resulting in a change in the proportion of the three components R, G, and B, is avoided, so that the color of the light is not affected when the user adjusts the brightness; at the same time, the maximum brightness value is mapped to the maximum brightness adjustment amount of the signal input module, so that within the brightness adjustment range on the signal input module, the brightness can change with the user's adjustment operation, avoiding the problem of the brightness being unable to be adjusted to a certain extent.

[0038] In order to facilitate the detailed description of the present application, the application environment of the embodiments of the present application will be introduced below with reference to the accompanying drawings.

[0039] See also Figure 1 , is an application environment of a lighting control method provided in an embodiment of the present application, and the application environment includes a signal input module 20, a processor 10, and a light-emitting device 30. The processor 10 is connected to the signal input module 20 and the light-emitting device 30 respectively. A user can generate a lighting adjustment instruction through the signal input module 20 and transmit the lighting adjustment instruction to the processor 10. The signal input module 20 can be, but is not limited to, a touch screen, a button, and other devices. The processor 10 can control the light of the light-emitting device 30 in response to the lighting adjustment instruction. The light-emitting device 30 can be, but is not limited to, a light strip, an LED lamp, and other devices.

[0040] In an alternative embodiment, see Figure 2 , the signal input module 20 can be integrated into a mobile terminal 200, the processor 10 can be integrated into a device end 100, and the light-emitting device 30 can be integrated into a lighting device 300. Among them, the device end 100 is respectively connected to the mobile terminal 200 and the lighting device 300 in communication. The mobile terminal 200 is installed with an application that can control the lighting device 300. The mobile terminal 200 can be a terminal device such as a mobile phone, a tablet computer, a personal computer (PC), a laptop computer, a smart wearable device, a smart TV, a car terminal, etc. The device end 100 can be connected to the mobile terminal 200 through a network, such as through a 2G, 3G, 4G, 5G and WiFi network. Among them, the device end 100 can be a gateway or a server. The lighting device 300 is the device that the user wants to control, and the brightness and color of the light can be changed under the control of the user.

[0041] In another optional embodiment, the signal input module 20, the processor 10 and the light emitting device 30 can all be integrated into a device end 100. That is, the device end 100 itself can be installed with an application program that can control the light, a signal input module 20 (which can be but not limited to a touch screen, a button, etc.), and the user can change the brightness and color of the light by interacting with the device end 100 itself. Among them, the device end 100 is the light device 300.

[0042] The embodiments of the present application will be described in detail below.

[0043] See also Figure 3 , is a flow chart of a lighting control method provided in an embodiment of the present application, and the execution subject of the processing flow described in the embodiment is the above-mentioned device end 100. Specifically, the lighting control method includes:

[0044] S201, parsing the obtained first adjustment instruction to obtain a required color component and a required brightness component in a Yxy color space.

[0045] In an optional implementation, the user may input the first adjustment instruction through the signal input module 20. In another optional implementation, the first adjustment instruction may also be generated by the signal input module 20 of the smart device 100 in response to the user's input operation.

[0046] It should be noted that the interactive interface of the application can be displayed in a color space that conforms to the intuitive perception of the human eye, such as the HSV color space, the HSI color space, etc. Therefore, the user can adjust the color and brightness of the lighting device 300 in the interactive interface of the application based on visual intuition, thereby generating a first adjustment instruction.

[0047] In an optional embodiment, the first adjustment instruction includes an xy color component and a Y brightness component. After obtaining the first adjustment instruction, the device end 100 only needs to parse it to obtain the required color component and the required brightness component, wherein the required color component is the xy color component, and the required brightness component is the Y brightness component.

[0048] Among them, taking the HSV color space as an example, the process of generating the first adjustment instruction can be: in response to the user's operation, the hue (Hue, H) component, the saturation (Saturation, S) component and the value (Value, V) component are selected. In order to effectively adjust the brightness of the light without affecting the color of the light, it is necessary to first separate the brightness component and the color component, so it is necessary to convert the HSV color space into the RGB color space. It should be noted that the intermediate converted RGB color space and the RGB color space displayed by the lamp (i.e., the target RGB color component) use different standards; the H, S, and V components are converted into RGB color components, and then the RGB color space is converted into the XYZ color space, so that the RGB color components are converted into XYZ color components, and finally the XYZ color space is converted into the Yxy color space, so that the XYZ color components are converted into xy color components and Y brightness components to separate the brightness component and the color component, and the first adjustment instruction is generated based on the xy color component and the Y brightness component.

[0049] In another optional implementation, the first adjustment instruction may include H, S, and V components, so that the device end 100 can convert the H, S, and V components in color space to determine the required color component and the required brightness component.

[0050] S202, determining RGB color component values ​​corresponding to the required color components in the Yxy color space, and determining the maximum brightness value corresponding to the required color components in the Yxy color space according to the RGB color components.

[0051] It should be noted that, in general, the range of the brightness component in the Yxy color space is [0,1], but since the size of the brightness component will also affect the value of the RGB color component, and the range of the RGB color component in the RGB color space is also [0,1], if the brightness component is too large, it may cause the RGB color component to exceed the range, causing the lighting device 300 to be unable to illuminate according to the brightness component, therefore, it is necessary to determine the maximum brightness value of the brightness component. That is, the maximum brightness value is actually the maximum brightness value allowed by the required color component in the RGB color space.

[0052] In an optional implementation, S202 may include: Figure 4 The specific steps shown are:

[0053] S2021, determine the current brightness value.

[0054] It should be noted that in the process of determining the maximum brightness value, an initial value can be assigned to the brightness component, and then the color space can be converted to determine the corresponding RGB color components. If the three RGB color components are all less than 1, a step is given to the brightness component and the corresponding RGB color components are re-determined.

[0055] That is, the current brightness value may be a preset initial brightness value, or may be a brightness value obtained after at least one stepping of the preset initial brightness value, and no specific limitation is made here.

[0056] S2022, determining corresponding RGB color components according to the required color components and the current brightness value, where the RGB color components include an R color component, a G color component, and a B color component.

[0057] It can be understood that the process of determining the corresponding RGB color component according to the required color component and the current brightness value is the process of converting the Yxy color space into the RGB color space.

[0058] First, the Yxy color space needs to be converted to the XYZ color space. The conversion process satisfies the following formula:

[0059]

[0060] Wherein, Y is the brightness component in the Yxy color space, x and y are the color components in the Yxy color space, and Y', X', and Z' are the color components in the YXY color space.

[0061] Optionally, the XYZ color space is converted to the RGB color space, and the conversion process satisfies the following formula:

[0062]

[0063] Among them, R, G, and B are color components in the RGB color space.

[0064] S2023, determine whether the value of each color component in the RGB color component is less than 1, if yes, execute S2024; if no, execute S2025.

[0065] By determining whether the value of each color component in the RGB color component is less than 1, it can be determined whether the RGB color space can normally represent the current brightness component.

[0066] S2024, determining the current brightness value in the next cycle according to the current brightness value and a preset brightness adjustment function until the value of any color component in the RGB color components corresponding to the current brightness value is greater than or equal to 1, and determining the corresponding current brightness value as the maximum brightness value.

[0067] That is, if the value of each color component in the RGB color component is less than 1, it indicates that the current brightness value does not exceed the range allowed by the RGB color space, and it is necessary to continue to increase the current brightness value to obtain a new brightness value until the maximum brightness value is determined.

[0068] In an optional implementation, the preset brightness adjustment function may satisfy the formula:

[0069] Y 预测 =Y 当前 +Y set

[0070] Among them, Y 当前 That is the current brightness value, the Y 预测 That is the current brightness value in the next cycle, Y set The preset brightness steps.

[0071] S2025, determine the current brightness value as the maximum brightness value.

[0072] That is, if the value of any color component in the RGB color components is greater than or equal to 1, the current brightness value is determined as the maximum brightness value.

[0073] It can be understood that if the value of any color component in the RGB color components is greater than or equal to 1, it indicates that the current brightness value exceeds the range allowed by the RGB color space, so the current brightness value is directly determined as the maximum brightness value and is no longer adjusted.

[0074] Assuming that the preset initial brightness value is 0 and the preset brightness step is 0.001, the process of determining the maximum brightness value is: first determine 0 as the current brightness value, and use the xy color component as the required color component and the brightness component as 0 to perform color space conversion, determine the corresponding RGB color component, and determine whether the three RGB color components are all less than 1. If so, add the preset brightness step to the current brightness value to determine the new current brightness value as 0.001; then use the xy color component as the required color component and the brightness component as 0.001 to perform color space conversion, determine the corresponding RGB color component, and determine whether the three RGB color components are all less than 1... and so on, until the maximum brightness value is determined.

[0075] S203, determining a target RGB color component according to a required color component, a required brightness component, and a maximum brightness value.

[0076] See also Figure 5 , which is a specific flow chart of S203.

[0077] S2031: Determine the product of the required brightness component and the maximum brightness value as the target brightness.

[0078] It can be understood that the required brightness component input by the signal input module 20 is used as the brightness adjustment coefficient, and the range of the brightness adjustment coefficient is [0, 1]. Therefore, when determining the target brightness, the maximum target brightness can be the maximum brightness value, and the minimum target brightness can be 0, which can effectively avoid the situation where the ratio of the three components of R, G, and B changes due to the RGB color component being greater than 1 after the color space conversion based on the target brightness; at the same time, no matter how the user changes the brightness on the signal input module 20, the final target brightness is always less than or equal to the maximum brightness value, so that the user can change the brightness on the signal input module 20 at will, and the brightness of the lighting device 300 will also change accordingly, and the color will not change.

[0079] S2032, calculating the target RGB color components according to the required color components, the target brightness and a preset conversion formula.

[0080] It can be understood that the pre-set conversion formula is the two formulas mentioned in S2022, which will not be repeated here.

[0081] S204, generating a second adjustment instruction according to the target RGB color components to adjust the light.

[0082] In an optional implementation, the second adjustment instruction may be a pulse width modulation (PWM) signal. The device end 100 may generate a PWM signal according to the target RGB color components, and control the lighting device 300 with the PWM signal so that the lighting device 300 emits R, G, and B three-color lights and mixes them to display various colors.

[0083] See also Figure 6 Another embodiment of the present application provides a lighting control method. Based on the above embodiment, this embodiment updates the process of determining the target RGB color components. The method may include:

[0084] S501, parsing the obtained first adjustment instruction to obtain the required color component and required brightness component in the Yxy color space.

[0085] S502, determining RGB color component values ​​corresponding to the required color components in the Yxy color space, and determining the maximum brightness value corresponding to the required color components in the Yxy color space according to the RGB color components.

[0086] It should be noted that, S501 and S502 may refer to the corresponding parts of the aforementioned embodiment, which will not be described in detail here.

[0087] S503, determining a mapping relationship between the Yxy color space and the RGB color space based on the required color component, wherein the mapping relationship represents a corresponding relationship between a brightness component in the Yxy color space and an RGB color component when the color component in the Yxy color space is the required color component.

[0088] It should be noted that since the device end 100 may have established a mapping relationship corresponding to the required color component before obtaining the first adjustment instruction, a mapping relationship corresponding to the required color component exists in the device end 100 at this time, and therefore the mapping relationship between the Yxy color space and the RGB color space can be directly read.

[0089] If the device end 100 obtains the first adjustment instruction including the required color component for the first time (that is, the device end 100 has never established a mapping relationship corresponding to the required color component before obtaining the first adjustment instruction), and thus there is no mapping relationship corresponding to the required color component in the device end 100, then a mapping relationship between the Yxy color space and the RGB color space is established based on the required color component.

[0090] Specifically, after determining the maximum brightness value in S502, the device end 100 can directly establish a mapping relationship according to the required color component, each current brightness value, and the RGB color component corresponding to each current brightness value.

[0091] It can be understood that since the current brightness value and the RGB color components corresponding to each current brightness value need to be determined in the aforementioned process of determining the maximum brightness value, directly establishing a mapping relationship based on the required color components, each current brightness value and the RGB color components corresponding to each current brightness value will not occupy additional computing resources.

[0092] For example, the mobile terminal 200 first sends a first adjustment instruction to the device end 100. After the device end 100 establishes a corresponding mapping relationship based on the first adjustment instruction, the user adjusts the brightness value on the mobile terminal 200 and generates a new first adjustment instruction. At this time, the device end 100 does not need to re-establish the mapping relationship and can directly read the established mapping relationship.

[0093] For another example, the user utilizes the signal input module 20 of the device end 100 to generate a first adjustment instruction. After the processor 10 of the device end 100 establishes a corresponding mapping relationship according to the first adjustment instruction, the user adjusts the brightness value on the signal input module 20 of the device end 100 and generates a new first adjustment instruction. At this time, the processor 10 of the device end 100 does not need to re-establish the mapping relationship and can directly read the established mapping relationship.

[0094] S504, determining a target RGB color component according to the required color component, the required brightness component, the maximum brightness value and the mapping relationship.

[0095] See also Figure 7 , which is a specific flow chart of S504.

[0096] S5041: Determine the product of the required brightness component and the maximum brightness value as the target brightness.

[0097] S5042, determining the target RGB color components according to the required color components, target brightness and mapping relationship.

[0098] It can be understood that directly determining the target RGB color components based on the color components, target brightness and mapping relationship avoids the need to recalculate the target RGB color components each time the target brightness is determined, saves calculation amount and calculation time, and makes the process of determining the target RGB color components more efficient.

[0099] S505: Generate a second adjustment instruction according to the target RGB color components to adjust the light.

[0100] It should be noted that, for S505, reference may be made to the corresponding part of the aforementioned embodiment, which will not be described in detail here.

[0101] In an embodiment of the present application, after determining the maximum brightness value, the mapping relationship between the Yxy color space and the RGB color space can be determined, and the target RGB color can be determined by a table lookup method subsequently, which can simplify the process of determining the target RGB color, save time and improve efficiency.

[0102] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing the lighting control device 400 is provided below. Figure 8 , Figure 8 This is a functional module diagram of a lighting control device 400 provided in an embodiment of the present invention. It should be noted that the basic principle and technical effects of the lighting control device 400 provided in this embodiment are the same as those of the above embodiments. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments. The lighting control device 400 includes: an instruction parsing module 410, a maximum brightness determination module 420, a target component determination module 430, and an instruction generation module 440.

[0103] The instruction parsing module 410 is used to parse the acquired first adjustment instruction to acquire the required color component and required brightness component in the Yxy color space.

[0104] It can be understood that, in an optional implementation, the instruction parsing module 410 can be used to execute S201 to implement corresponding functions.

[0105] The maximum brightness determination module 420 is used to determine the RGB color component values ​​corresponding to the required color components in the Yxy color space, and determine the maximum brightness value corresponding to the required color components in the Yxy color space according to the RGB color components.

[0106] Specifically, the maximum brightness determination module 420 is used to determine the current brightness value, and determine the corresponding RGB color component according to the required color component and the current brightness value; the maximum brightness determination module 420 is used to determine the current brightness value in the next cycle according to the current brightness value and a preset brightness adjustment function when the value of each color component in the RGB color component is less than 1 until the value of any one of the RGB color components corresponding to the current brightness value is greater than or equal to 1, and determine the corresponding current brightness value as the maximum brightness value; the maximum brightness determination module 420 is also used to determine the current brightness value as the maximum brightness value when the value of any one of the RGB color components is greater than or equal to 1.

[0107] It can be understood that, in an optional implementation, the maximum brightness determination module 420 can be used to execute S202, S2021, S2022, S2023, S2024 and S2025 to achieve corresponding functions.

[0108] The target component determination module 430 is used to determine the target RGB color component according to the required color component, the required brightness component, and the maximum brightness value.

[0109] Specifically, the target component determination module 430 is used to determine the product of the required brightness component and the maximum brightness value as the target brightness, and calculate the target RGB color component according to the required color component, the target brightness and a preset conversion formula.

[0110] It can be understood that, in an optional implementation, the target component determination module 430 can be used to execute S203.

[0111] The instruction generation module 440 is used to generate a second adjustment instruction according to the target RGB color components to adjust the light.

[0112] It can be understood that, in an optional implementation, the instruction generation module 440 can be used to execute S204.

[0113] See also Fig. 9 Another embodiment of the present application provides a lighting control device 400 , which further includes a mapping relationship determination module 450 .

[0114] The mapping relationship determination module 450 is used to determine the mapping relationship between the Yxy color space and the RGB color space based on the required color component, wherein the mapping relationship represents the corresponding relationship between the brightness component in the Yxy color space and the RGB color component when the color component in the Yxy color space is the required color component.

[0115] It can be understood that, in an optional implementation, the mapping relationship determination module 450 can be used to execute S503.

[0116] The target component determination module 430 is used to determine the target RGB color component according to the required color component, the required brightness component, the maximum brightness value and the mapping relationship.

[0117] Specifically, the target component determination module 430 is used to determine the product of the required brightness component and the maximum brightness value as the target brightness, and determine the target RGB color component according to the required color component, the target brightness and the mapping relationship.

[0118] It can be understood that, in an optional implementation, the target component determination module 430 can be used to execute S504, S5041 and S5042.

[0119] In summary, the lighting control method provided by the present application obtains the required color component and the required brightness component in the Yxy color space by parsing the obtained first adjustment instruction, and determines the RGB color component value corresponding to the required color component in the Yxy color space, determines the maximum brightness value corresponding to the required color component in the Yxy color space according to the RGB color component, and then determines the target RGB color component according to the required color component, the required brightness component, and the maximum brightness value, thereby generating a second adjustment instruction according to the target RGB color component, and sending the second adjustment instruction to the lighting device 300 to adjust the lighting of the lighting device 300. Since the maximum brightness value corresponding to the required color component is determined, and the target RGB color component is determined by using the required color component, the required brightness component, and the maximum brightness value, when the required brightness component is changed on the signal input module 20, its color component will not be affected, which effectively solves the problem of color change caused by adjusting the brightness; at the same time, since the maximum brightness value is determined and the maximum brightness value is mapped to the maximum brightness adjustment amount of the signal input module 20, the brightness can change with the user's adjustment operation within the brightness adjustment range on the signal input module 20, which solves the problem that the brightness cannot be adjusted to a certain extent.

[0120] In several embodiments provided in the present 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 interfaces, devices or modules, which may be electrical, mechanical or other forms.

[0121] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0122] See also Fig.10 , which shows a hardware structure block diagram of a device end 100 provided in an embodiment of the present application. The device end 100 may be a server, a gateway, a smart lighting device, etc. Fig.10 As shown, the device end 100 may have relatively large differences due to different configurations or performances, and may include one or more processors 10 (Central Processing Unit, CPU), a memory 130 for storing data 122, and one or more storage media 120 for storing applications 123 or data 122 (for example, one or more mass storage devices).

[0123] Among them, the memory 130 and the storage medium 120 can be short-term storage or permanent storage. The program stored in the storage medium 120 may include one or more modules, and each module may include a series of instruction operations in the device end 100. Furthermore, the processor 10 can be configured to communicate with the storage medium 120 and execute a series of instruction operations in the storage medium 120 on the device end 100. The processor 10 may include, but is not limited to, a processing device such as a microprocessor (Microcontroller Unit, MCU) or a field programmable logic device (Field Programmable Gate Array, FPGA).

[0124] The device end 100 may also include one or more power supplies 160, one or more wired or wireless network interfaces 150, one or more input and output interfaces 140, and / or one or more operating systems 121, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM, etc.

[0125] The input / output interface 140 may be used to receive or send data 122 via a network. The specific example of the network may include a wireless network provided by a communication provider of the device end 100. In one example, the input / output interface 140 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the input / output interface 140 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0126] It can be understood by those skilled in the art that Fig.10 The structure shown is only for illustration and does not limit the structure of the above-mentioned device end 100. For example, the device end 100 may also include Fig.10 More or fewer components as shown, or with Fig.10 Different configurations are shown.

[0127] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor 10, each process of the above-mentioned lighting control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0128] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0130] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A lighting control method, It is characterized in that The method comprises: Parse the obtained first adjustment instruction to obtain the required color component and required brightness component in the Yxy color space; According to the required color component and the current brightness value, determine the RGB color component value corresponding to the required color component in the Yxy color space, the RGB color component includes an R color component, a G color component and a B color component; the RGB color component is a color component in the RGB color space; If the value of any color component in the RGB color components is greater than or equal to 1, the current brightness value is determined as the maximum brightness value corresponding to the required color component in the Yxy color space; Determine a mapping relationship between a Yxy color space and an RGB color space based on the required color component, wherein the mapping relationship represents a corresponding relationship between a brightness component in the Yxy color space and an RGB color component when the color component in the Yxy color space is the required color component; Determine the product of the required brightness component and the maximum brightness value as the target brightness; Determine the target RGB color component according to the required color component, the target brightness and the mapping relationship; A second adjustment instruction is generated according to the target RGB color components to adjust the light.

2. The lighting control method according to claim 1, It is characterized in that The lighting control method further comprises: If the value of each color component in the RGB color components is less than 1, the current brightness value in the next period is determined according to the current brightness value and the preset brightness adjustment function until the value of any color component in the RGB color components corresponding to the current brightness value is greater than or equal to 1, and the corresponding current brightness value is determined as the maximum brightness value.

3. The lighting control method according to claim 1, It is characterized in that The step of determining the mapping relationship between the Yxy color space and the RGB color space based on the required color component comprises: If a mapping relationship corresponding to the required color component exists in the device end, then the mapping relationship between the Yxy color space and the RGB color space is read; If a mapping relationship corresponding to the required color component does not exist in the device end, a mapping relationship between the Yxy color space and the RGB color space is established according to the required color component.

4. The lighting control method according to claim 3, It is characterized in that The step of establishing and acquiring a mapping relationship between the Yxy color space and the RGB color space according to the required color component comprises: The mapping relationship is established according to the required color component, each of the current brightness values, and the RGB color component corresponding to each of the current brightness values.

5. The lighting control method according to any one of claims 1 to 2, It is characterized in that After the step of determining the current brightness value as the maximum brightness value corresponding to the required color component in the Yxy color space if the value of any one of the RGB color components is greater than or equal to 1, the method further includes: Determine the product of the required brightness component and the maximum brightness value as the target brightness; The target RGB color component is calculated according to the required color component, the target brightness and a preset conversion formula.

6. A lighting control device, It is characterized in that The device comprises: An instruction parsing module, used to parse the acquired first adjustment instruction, and acquire a required color component and a required brightness component in a Yxy color space; A maximum brightness determination module, used to determine, according to the required color component and the current brightness value, the RGB color component value corresponding to the required color component in the Yxy color space, wherein the RGB color component includes an R color component, a G color component, and a B color component; the RGB color component is a color component in the RGB color space; if the value of any color component in the RGB color component is greater than or equal to 1, the current brightness value is determined as the maximum brightness value corresponding to the required color component in the Yxy color space; based on the required color component, a mapping relationship between the Yxy color space and the RGB color space is determined, wherein the mapping relationship represents the corresponding relationship between the brightness component in the Yxy color space and the RGB color component when the color component in the Yxy color space is the required color component; a target component determination module, configured to determine the product of the required brightness component and the maximum brightness value as the target brightness; and to determine the target RGB color component according to the required color component, the target brightness and the mapping relationship; The instruction generation module is used to generate a second adjustment instruction according to the target RGB color component to adjust the light.

7. A device end, It is characterized in that The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the lighting control method according to any one of claims 1 to 5 when executed by the processor.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the lighting control method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and system for determining maximum brightness of RGB LED light source matching target chromaticity

    CN110677955A