A light gradient control method, system, electronic device and storage medium

By constructing a light gradient control method and using a preset minimum component change formula to build an actual brightness value change curve, the problem of color saturation decrease during light effect switching in intelligent lighting systems is solved, achieving smooth transition of light effects and color optimization, thus improving the user experience.

CN121463300BActive Publication Date: 2026-05-05BWEETECH ELECTRONICS TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BWEETECH ELECTRONICS TECH (SHANGHAI) CO LTD
Filing Date
2026-01-08
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing intelligent lighting systems are prone to producing white light during light effect switching, which leads to a decrease in color saturation and fails to meet users' demand for vibrant colors, especially in scenarios such as stage lighting and commercial displays.

Method used

By analyzing the current and target red, green and blue component parameters in the light gradient command and combining them with the preset minimum component change formula, the actual brightness value change curve of each component is constructed. This controls the light to gradually change from the current red, green and blue component parameters to the target red, green and blue component parameters, suppressing unexpected white light during the gradient process and maintaining color saturation.

Benefits of technology

It achieves a smooth transition of light effects and color optimization, significantly reduces the brightness of white light during the gradient process, maintains stable color saturation, and improves the user's visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121463300B_ABST
    Figure CN121463300B_ABST
Patent Text Reader

Abstract

This application provides a method, system, electronic device, and storage medium for controlling light gradient. The method includes: receiving a light gradient command; parsing the command to obtain current red-green-blue component parameters and target red-green-blue component parameters; constructing actual brightness value change curves for each of the three components based on a preset minimum component change formula, the current red-green-blue component parameters, and the target red-green-blue component parameters; and controlling the light to gradually change from the current red-green-blue component parameters to the target red-green-blue component parameters according to the actual brightness value change curves. This application, by parsing the current and target red-green-blue component parameters in the light gradient command, constructing actual brightness value change curves for each component based on the preset minimum component change formula, and controlling the gradient accordingly, can specifically suppress unwanted white light during the gradient process, ensure color saturation, and achieve a smooth transition of light effects and color optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of intelligent lighting control technology, and relates to a lighting gradient control method, system, electronic device and storage medium. Background Technology

[0002] With the rapid development of smart lighting technology, red, green, and blue (RGB) tri-color light sources, with their rich color adjustment capabilities, are widely used in smart homes, commercial spaces, stage performances, and other fields. Users are also increasingly demanding smooth switching of lighting effects and high color saturation.

[0003] However, existing intelligent lighting systems tend to produce white light when mixing three colors during light effect switching, which leads to a decrease in color saturation and fails to meet users' demand for vibrant colors. This problem is particularly prominent in scenarios with high color requirements, such as stage lighting and commercial displays.

[0004] Therefore, there is an urgent need for a method to control the gradual change of light effects that can achieve a smooth transition of light effects and maintain color saturation. Summary of the Invention

[0005] This application provides a lighting gradient control method, system, electronic device, and storage medium to solve the problems of white light and decreased color saturation that easily occur in lighting systems during light effect switching.

[0006] In a first aspect, this application provides a light gradation control method, comprising: receiving a light gradation command; parsing the command to obtain current red-green-blue component parameters (i.e., red-green-blue component parameters of the current light effect) and target red-green-blue component parameters (i.e., red-green-blue component parameters of the target light effect); constructing actual brightness value change curves for each of the three components based on a preset minimum component change formula, the current red-green-blue component parameters, and the target red-green-blue component parameters; and controlling the light to gradually change from the current red-green-blue component parameters to the target red-green-blue component parameters according to the actual brightness value change curves.

[0007] In one implementation of the first aspect, constructing the actual brightness value change curves of the three components based on the preset minimum component change formula, the current red-green-blue component parameters, and the target red-green-blue component parameters includes: fitting linear change curves of the three components according to the current red-green-blue component parameters and the target red-green-blue component parameters, wherein the linear change curves are determined by the current brightness point and the target brightness point of the corresponding component; determining the minimum brightness component in the current red-green-blue component parameters and the minimum brightness component in the target red-green-blue component parameters; generating a reference change curve of the minimum brightness component during the light gradient process based on the minimum brightness component in the current red-green-blue component parameters, the minimum brightness component in the target red-green-blue component parameters, and the preset minimum component change formula; and constructing the actual brightness value change curves of the three components according to the reference change curve and the linear change curves of the three components.

[0008] In one implementation of the first aspect, constructing the actual brightness value change curve of the three components based on the reference change curve and the linear change curves of the three components includes: segmenting the entire gradation process based on the linear change curves of the three components, and determining the component with the lowest brightness value among the three components in each segment as the lowest brightness component of that segment; determining the segmented change curve corresponding to the lowest brightness component of each segment based on the reference change curve; and stitching together the segmented change curve of the lowest brightness component of each segment and the linear change curve of the corresponding component itself to obtain the actual brightness value change curve of each component in the entire gradation process.

[0009] In one implementation of the first aspect, the entire gradation process is segmented based on the linear change curves of the three components, and the component with the lowest brightness value among the three components is determined as the lowest brightness component of that segment within each segment. This includes: dividing the lighting effect gradation process into continuous segments based on the number of intersections of the linear change curves of the three components, combined with the starting node of the current red-green-blue component parameters (corresponding to the current lighting effect) and the ending node of the target red-green-blue component parameters (corresponding to the target lighting effect); and determining the lowest brightness component among the linear change curves of the three components within each segment.

[0010] In one implementation of the first aspect, for any component, the actual brightness value change curve of the component throughout the gradation process is obtained by splicing the current brightness point of the component, the minimum brightness start point and the minimum brightness end point of the corresponding segment of the component, and the target brightness point in sequence to obtain the actual brightness value change curve of the component throughout the gradation process, wherein the corresponding segment of the component refers to the segment with the component as the minimum brightness component.

[0011] In one implementation of the first aspect, the preset minimum component change formula includes a custom adjustment parameter, which is used to adjust the color saturation during the light gradient process.

[0012] In one implementation of the first aspect, the preset minimum component change formula is a linear function, expressed as:

[0013]

[0014] in, This represents the brightness value of the lowest brightness component at node x. Let be the slope of a linear function. is the intercept of a linear function, c is the custom adjustment parameter, and x is the number of intermediate nodes.

[0015] Secondly, this application provides a light gradient control system, comprising: a light receiving module for receiving light gradient instructions and parsing to obtain current red-green-blue component parameters and target red-green-blue component parameters; a light processing module for constructing actual brightness value change curves for each of the three components based on a preset minimum component change formula, the current red-green-blue component parameters, and the target red-green-blue component parameters; and a light driving module for controlling the light to gradually change from the current red-green-blue component parameters to the target red-green-blue component parameters according to the actual brightness value change curves.

[0016] Thirdly, this application provides an electronic device, comprising: a memory storing a computer program thereon; and a processor communicatively connected to the memory, which, when executing the computer program, implements the light gradient control method described in any implementation of the first aspect.

[0017] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the light gradient control method described in any implementation of the first aspect.

[0018] As described above, the lighting gradient control method, system, electronic device, and storage medium of this application have the following beneficial effects:

[0019] This application analyzes the current and target red, green and blue component parameters in the light gradient command, combines them with the preset minimum component change formula to construct the actual brightness value change curve of each component, and controls the gradient accordingly. This can specifically suppress unexpected white light during the gradient process, ensure color saturation, and achieve a smooth transition of light effect and color optimization.

[0020] This application requires no hardware modifications. Without altering the existing lighting hardware design, it can improve light efficiency solely through software algorithm optimization, reducing the cost of technology implementation and facilitating the upgrade and transformation of existing products.

[0021] This application is highly flexible. By adjusting the coefficients, color performance can be flexibly optimized according to different scenario requirements. It also supports various minimum brightness component change curve forms, such as straight lines and curves, to adapt to different gradient effect requirements.

[0022] This application has a wide range of applications and can be widely used in various scenarios such as smart homes, commercial space lighting, and stage lighting. It is especially suitable for scenarios with high requirements for color saturation and gradient smoothness, and has strong practicality and promotional value.

[0023] The light effect of this application is excellent. The brightness of white light is significantly reduced during the gradient process, the color saturation remains stable, and the light effect transition is smooth and natural, which greatly enhances the user's visual experience. Attached Figure Description

[0024] Figure 1 The diagram shown is a flowchart illustrating the light gradient control method described in an embodiment of this application.

[0025] Figure 2 The diagram shows a flowchart illustrating the process of constructing the actual brightness value change curves of the three components as described in the embodiments of this application.

[0026] Figure 3 The diagram shows the linear and actual change curves of the three components described in the embodiments of this application.

[0027] Figure 4 The diagram shown is a structural schematic of the lighting gradient control system described in an embodiment of this application.

[0028] Figure 5 The diagram shown is a structural schematic of an electronic device according to an embodiment of this disclosure. Detailed Implementation

[0029] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.

[0030] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0031] The technical solutions in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0032] like Figure 1 As shown, this embodiment provides a method for controlling the gradual change of light, including:

[0033] S1: Receives the light gradient command, parses the command to obtain the RGB component parameters of the current light effect (R... c G c B c ) and the RGB component parameters of the target lighting effect (R d G d B d In this diagram, R, G, and B correspond to the red, green, and blue components, respectively. The subscript c represents the current lighting effect, and the subscript d represents the target lighting effect.

[0034] Simultaneously, the change time t or the number of intermediate state nodes x is determined, where x is a non-negative integer, to characterize the progress of the lighting effect gradation process. Below, we will use the number of intermediate state nodes x and the total number of nodes in the lighting effect gradation as x. max Let's take an example to illustrate.

[0035] S2: Based on the preset minimum component change formula, the current RGB component parameters (R) c G c B c ) and the target RGB component parameters (R d G d B d This constructs the actual brightness value change curves for each of the three components. The preset formula for the lowest brightness component is used to determine the change pattern of the lowest brightness component throughout the entire gradient process.

[0036] For example, such as Figure 2 As shown, the above-mentioned construction of the actual brightness value change curves of the three components includes the following steps S21-S24.

[0037] S21: Based on the current light effect (R) c G c B c ) and target light effect (R) d G d B dThe formulas for determining the linear variation curves (i.e., default variation trajectories) of R, G, and B respectively are as follows:

[0038]

[0039]

[0040]

[0041] in, , , These are the brightness values ​​for the red, green, and blue components, respectively. , , These are the slopes of the linear curves of each component; , , These are the intercepts of the linear curves for each component. The slope k and intercept b are calculated based on the current component value, the target component value, and the number of intermediate nodes (or the change time). For example, for the red component, ,in The number of starting nodes for the change (usually 0). This represents the number of nodes at the end of the change (i.e., the total number of nodes); the calculation method for other components is similar and will not be elaborated here.

[0042] S22: Determine (R) respectively c G c B c ) and (R d G d B d The lowest component min in ) c and minimum component min d The formula is determined as follows:

[0043]

[0044]

[0045] in, This is a minimum value function used to select the smallest value from three component values.

[0046] S23: Based on the preset minimum component change formula and minimum component min c and minimum component min d Construct a baseline variation curve for the lowest luminance component. Specifically, based on a preset formula for the lowest luminance component variation... and Determine the variation pattern (e.g., linear or curvilinear) of the lowest RGB component during the light effect gradient process.

[0047] The following description will use the above-mentioned preset minimum component change formula as an example, which is a linear function (straight line). The specific formula is as follows:

[0048]

[0049] in, This represents the brightness value of the lowest brightness component at node x. The slope of the curve representing the change in the lowest luminance component; is the intercept; x is the number of intermediate nodes in the transition (or the transition time); c is a custom adjustment parameter that can be flexibly adjusted according to actual scene requirements (such as color saturation preferences, scene brightness requirements, etc.). Adjusting the c value can further optimize the color performance during the gradient process. Slope and intercept The calculation method is as follows: .

[0050] S24: Determine the segmented gradual change process and the actual brightness value change curve of each component in each segment based on the linear change curve and the reference change curve. Specifically, this includes:

[0051] S241: Based on the linear change curves of the three RGB components in S21, solve for the intersection points (usually 0-2) of the three components within the range of change, and determine the segments of the gradient process and the component with the lowest brightness value in each segment.

[0052] For example, the process of solving for the intersection points specifically includes:

[0053] First, establish the equations for the linear changes of the two components simultaneously, and solve for the solution x. If x lies in [x0, x...] max If the x-axis is within the range of x, then the point corresponding to x is the intersection point.

[0054] Secondly, based on the number of intersections and the positions of the current and target lighting effects in the image, the entire gradient process is divided into multiple segments. For example, if the solutions to the equation are x1 and x2, and... The entire gradual change process is then divided into [x0, x1], [x1, x2], [x2, x... max Three segments.

[0055] Finally, for each segment, determine the lowest brightness component in the linear change curve of the three RGB components within that segment, that is, determine which component always has the lowest brightness value within that segment.

[0056] S242: Based on the above reference change curve, determine the change curve of the component with the lowest brightness value in each segment, and reconstruct the actual brightness value change curve of each component based on the change curve and the corresponding component's own linear change curve in other segments.

[0057] Specifically, the linear variation curve of the component with the lowest brightness in each segment is replaced with the value of the reference variation curve of the lowest brightness component constructed in S23. For example, if the red component is always the lowest brightness component among the three RGB components within the segment [x1, x2], then the brightness value of the red component in this interval is taken as... The value at the corresponding x, where x1 and x2 are the start and end points of this segment (corresponding to the number of nodes), respectively. The red component is in the segments [x0, x1] and [x2, x...]. max The red component is not the lowest brightness component; it is located in segments [x0, x1] and [x2, x]. max The curve on the [x1, x2] segment is determined by connecting the endpoints of the segment [x1, x2] in sequence. Specifically, it connects the current value of the component (corresponding to node x0), the starting point of the lowest brightness of the segment (corresponding to node x1), the ending point of the lowest brightness (corresponding to node x2), and the target value (corresponding to node x2). max This forms the actual brightness value variation curve for that component. Within segments where the component is not the lowest brightness component, it is not necessary to replace it with the value of the reference variation curve. In some implementations, a smooth transition can be achieved through key node connections, but this application is not limited to this. The actual brightness value variation curve can be connected by straight lines or curves as needed. The following explanation uses a straight line connection as an example, where each connection segment is fitted using a linear fitting method.

[0058] Based on the overlap of key nodes in the actual brightness value change curve, there are five scenarios, each corresponding to a different component change formula.

[0059] Scenario 1: The actual brightness value change curve simultaneously contains the current brightness point x0, the starting point of the lowest brightness x1, the ending point of the lowest brightness x2, and the target brightness point x. max ,and The formula for the actual change of the component is:

[0060] y

[0061] in, , Current brightness point Starting point of lowest brightness The slope and intercept of the segment; , End point of lowest brightness To the target brightness point The slope and intercept of the segment.

[0062] Scenario 2: The actual brightness value change curve simultaneously contains the current brightness point x0, the starting point of the lowest brightness x1, the ending point of the lowest brightness x2, and the target brightness point x. max ,and The formula for the actual change of the component is:

[0063] y

[0064] in, , From the lowest brightness endpoint x2 to the target brightness endpoint x max The slope and intercept of the segment.

[0065] Scenario 3: The actual brightness value change curve simultaneously contains the current brightness point x0, the starting point of the lowest brightness x1, the ending point of the lowest brightness x2, and the target brightness point x. max ,and The formula for the actual change of the component is:

[0066] y

[0067] Scenario 4: The actual brightness value change curve only contains the current brightness point x0 and the target brightness point x. max This means that the component has no intersection with other components and is never the lowest brightness component. Therefore, there is no need to replace its change trajectory with the lowest brightness component curve; it can directly follow its own trajectory. arrive The linear change of the component is then expressed by the formula for the actual change of the component:

[0068] y

[0069] in, , The current brightness point of this component To the target brightness point The slope and intercept of this component indicate that the curve of this component is not the curve of the lowest brightness component.

[0070] Scenario 5: The current brightness point a and the target brightness point d are the starting point b and ending point c of the lowest brightness, respectively. This means that throughout the entire gradient process, this component remains the lowest brightness component. In this case, segmentation is unnecessary; its change is entirely controlled by the lowest brightness component curve. The component change formula is:

[0071] y

[0072] S243: Calculate the intermediate RGB brightness value based on the actual brightness value change curve of each component in each segment. Specifically, based on the actual brightness value change curve of each component determined above, combined with the change time or the number of intermediate nodes, calculate the actual brightness value of the three RGB components of each node during the gradation process, providing data support for the control of light effect gradation.

[0073] S3: According to the actual brightness value change curve, control the light to gradually change from the current RGB component parameters to the target RGB component parameters.

[0074] Specifically, the lighting driver module gradually transforms the current lighting effect into the target lighting effect based on the actual brightness value change curve of each component in each segment and the intermediate RGB brightness value: the brightness value corresponding to each node of the actual brightness value change curve of each RGB component is used as the actual display value of the lighting effect gradient.

[0075] In this embodiment, this application establishes a dynamic adjustment mechanism that prioritizes the brightness of the lowest component by using the lowest component brightness value reference change curve. The three RGB components change collaboratively around the lowest brightness component, which effectively reduces the brightness value of white light generated during the change process, ensures the vividness of the color, and achieves a smooth transition of light effect.

[0076] Next, combine Figure 3 The RGB component parameters of the current lighting effect are (R c =200,G c =0,B c =150), the RGB component parameters of the target lighting effect are (R d =50,G d =250,B d =75), the number of intermediate nodes x in the gradual change process is 20 (i.e. ( =1, Taking (e.g., =20) as an example, the lighting gradient control method of this application will be described in detail.

[0077] Based on the current RGB component values ​​of the lighting effect (200, 0, 150) and the target lighting effect's RGB component values ​​(R... c G c B c The process of dynamically adjusting the minimum component change based on (50, 250, 75) and the preset minimum component change formula specifically includes:

[0078] Step 1: Receive the light gradient command, parse the command to obtain the current light effect RGB components (200, 0, 150) and the target light effect RGB components (50, 250, 75), and determine the number of nodes x to be in the range of 1-20.

[0079] Step 2: Dynamically adjust the value of the lowest component as the RGB component values ​​gradually change from the current lighting effect (200, 0, 150) to the target lighting effect (50, 250, 75). Specifically, this includes:

[0080] Step 21: Based on the current light effect (200, 0, 150) and the target light effect (50, 250, 75), determine the default linear variation relationship of R, G, and B as follows:

[0081] For the red component R, with the brightness value decreasing from 200 to 50 and the number of nodes being 20, calculate... ,get .

[0082] For the green component G, with brightness values ​​increasing from 0 to 250 and 20 nodes, calculate... ,get .

[0083] For the blue component B, with the brightness value decreasing from 150 to 75 and the number of nodes being 20, calculate... ,get .

[0084] Step 22: Determine the minimum component min in (200, 0, 150) and (50, 250, 75) respectively. c and minimum component min d .

[0085] =0 (green component)

[0086] =50 (red component)

[0087] Step 23: Construct the variation curve of the lowest brightness component.

[0088] For example, the formula for the minimum component change is assumed to be in the form of a linear function. If the adjustment coefficient c = 0, the formula for the minimum brightness component change curve is: .

[0089] Step 24: Determine the segments of the gradient process and the actual brightness value change curves of each component in each segment. Specifically, this includes:

[0090] Step 241: Based on the linear change curves of the three RGB components in S21, determine the segments of the gradient process and the component with the lowest brightness value in each segment.

[0091] Specifically, by simultaneously solving the linear variation curve equations of the three RGB components, the intersection points are obtained, and then... Figure 3It can be seen that within the range of nodes 1-9, the green component has the lowest brightness value in its own linear change curve, making it the lowest brightness component in this segment. Within the range of nodes 10-13, the blue component has the lowest brightness value in its own linear change curve, making it the lowest brightness component in this segment. Within the range of nodes 14-20, the red component has the lowest brightness value in its own linear change curve, making it the lowest brightness component in this segment.

[0092] Step 242: Reconstruct the actual brightness value change curve of each component in each segment based on the minimum brightness value of the minimum brightness component in each segment and the change curve of the minimum brightness component mentioned above.

[0093] For the green component G: nodes 1-9 are replaced with the minimum brightness component change curve value, and nodes 10-20 are connected to the minimum brightness end point and the G brightness value of the target light effect to form the actual brightness value change curve CG.

[0094] For the blue component B: segments 10-13 are replaced with the minimum brightness component change curve value, and the remaining segments are connected to key nodes (segments 1-9 connect the current light effect's B brightness value and the minimum brightness start point, and segments 14-20 connect the minimum brightness end point and the target light effect's B brightness value), forming the actual brightness value change curve CB.

[0095] For the red component R: segments 14-20 are replaced with the minimum brightness component change curve value, and segments 1-13 connect the current light effect's R brightness value and the minimum brightness starting point to form the actual brightness value change curve CR.

[0096] Step 243: Calculate the intermediate RGB brightness value based on the actual brightness value change curve of each component in each segment. Based on the actual brightness value change curve of each component, calculate the brightness value corresponding to each node on the CR curve, CG curve, and CB curve.

[0097] Step 3: Based on the actual brightness value change curve of each component in each segment and the intermediate RGB brightness value, the current light effect gradually changes to the target light effect. The light driving module outputs the brightness value according to the actual brightness value change curve of each component and each node, realizing the gradual change from the current light effect (200, 0, 150) to the target light effect (50, 250, 75).

[0098] In this embodiment, the lowest brightness component of each node during the gradient process is above the lowest brightness change curve, which significantly reduces the intermediate white light brightness. The intermediate white light brightness is reduced from about 120 in the traditional method to below 50, effectively suppressing the whitening phenomenon in the process. At the same time, the color saturation remains stable, and the color is bright throughout, achieving a smooth transition of light effect and color optimization.

[0099] This application provides a method for controlling the gradual change of light, which specifically solves the problems of process whitening and saturation reduction in existing intelligent light gradual change systems, and has the following beneficial effects:

[0100] This application analyzes the current and target red, green and blue component parameters in the light gradient command, combines them with the preset minimum component change formula to construct the actual brightness value change curve of each component, and controls the gradient accordingly. This can specifically suppress unexpected white light during the gradient process, ensure color saturation, and achieve a smooth transition of light effect and color optimization.

[0101] This application requires no hardware modifications. Without altering the existing lighting hardware design, it can improve light efficiency solely through software algorithm optimization, reducing the cost of technology implementation and facilitating the upgrade and transformation of existing products.

[0102] This application is highly flexible. By adjusting the coefficients, color performance can be flexibly optimized according to different scenario requirements. It also supports various minimum brightness component change curve forms, such as straight lines and curves, to adapt to different gradient effect requirements.

[0103] This application has a wide range of applications and can be widely used in various scenarios such as smart homes, commercial space lighting, and stage lighting. It is especially suitable for scenarios with high requirements for color saturation and gradient smoothness, and has strong practicality and promotional value.

[0104] The light effect of this application is excellent. The brightness of white light is significantly reduced during the gradient process, the color saturation remains stable, and the light effect transition is smooth and natural, which greatly enhances the user's visual experience.

[0105] The scope of protection of the light gradient control method described in this application is not limited to the execution order of the steps listed in this embodiment. Any solution implemented by adding, subtracting, or replacing steps in the prior art based on the principles of this application is included within the scope of protection of this application.

[0106] This application also provides a lighting gradient control system, which can implement the lighting gradient control method described in this application. However, the implementation device of the lighting gradient control method described in this application includes, but is not limited to, the structure of the lighting gradient control system listed in this embodiment. All structural modifications and substitutions of the prior art made based on the principles of this application are included within the protection scope of this application.

[0107] like Figure 4As shown, this embodiment provides a light gradient control system, a light receiving module for receiving light gradient commands and parsing to obtain the RGB component parameters of the current light effect and the RGB component parameters of the target light effect; a light processing module for constructing the actual brightness value change curves of each of the three components based on a preset minimum component change formula, the current RGB component parameters, and the target RGB component parameters; and a light driving module for controlling the light to gradually change from the current RGB component parameters to the target RGB component parameters according to the actual brightness value change curves.

[0108] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, or methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules / units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of apparatuses or modules or units may be electrical, mechanical, or other forms.

[0109] The modules / units described as separate components may or may not be physically separate. The components shown as modules / units may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules / units can be selected to achieve the objectives of the embodiments of this application, depending on actual needs. For example, the functional modules / units in the various embodiments of this application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0110] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0111] Figure 5 The diagram shown is a structural schematic of an electronic device according to an embodiment of this application. Figure 5As shown in the embodiments of this application, the electronic device includes a processor and a memory. The memory is configured to store an executable program. The processor is configured to execute the program to cause the electronic device to perform the light gradation control method according to any of the above embodiments.

[0112] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0113] This embodiment also includes one or more of the following: a multimedia component, an input / output (I / O) interface, and a communication component.

[0114] The multimedia component may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is configured to output and / or input audio signals. For example, the audio component may include a microphone configured to receive external audio signals. The received audio signals may be further stored in memory or transmitted via a communication component. The audio component also includes at least one speaker configured to output audio signals. The I / O interface provides an interface between the processor and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. The communication component is configured to enable wired or wireless communication between the timer and other devices. Wireless communication may include Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination thereof; therefore, the corresponding communication component may include a Wi-Fi module, a Bluetooth module, or an NFC module.

[0115] This application also provides a computer-readable storage medium. Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing a processor. The program can be stored in a computer-readable storage medium, which is a non-transitory medium, such as random access memory, read-only memory, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof. The storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state drive (SSD)).

[0116] This application embodiment may also provide a computer program product comprising one or more computer instructions. When the computer instructions are loaded and executed on a computing device, all or part of the processes or functions described in this application embodiment are generated. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0117] When the computer program product is executed by a computer, the computer performs the method described in the foregoing method embodiments. The computer program product can be a software installation package; when the foregoing method is required, the computer program product can be downloaded and executed on the computer.

[0118] The descriptions of the processes or structures corresponding to the above figures each have their own emphasis. For parts of a process or structure that are not described in detail, please refer to the relevant descriptions of other processes or structures.

[0119] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.

Claims

1. A method for controlling the gradual change of light, characterized in that, include: Receive a light gradient command, parse the command to obtain the current red-green-blue component parameters and the target red-green-blue component parameters; Based on the current red-green-blue component parameters and the target red-green-blue component parameters, linear change curves for each of the three components are fitted respectively. The linear change curves are determined by the current brightness point and the target brightness point of the corresponding component. The lowest brightness component in the current red-green-blue component parameters and the lowest brightness component in the target red-green-blue component parameters are determined respectively. Based on the lowest brightness component in the current red-green-blue component parameters, the lowest brightness component in the target red-green-blue component parameters, and the preset lowest component change formula for the entire gradient process, a reference change curve of the lowest brightness component during the light gradient process is generated. Based on the linear change curves of the three components, the entire gradient process is segmented, and the component with the lowest brightness value among the three components in each segment is determined as the lowest brightness component of that segment. Based on the aforementioned reference variation curve, determine the segment variation curve corresponding to the lowest brightness component of each segment; Based on the segmented change curve of the lowest brightness component of each segment and the linear change curve of the corresponding component itself, the actual brightness value change curve of each component in the whole gradient process is obtained by splicing together. According to the actual brightness value change curve, the light is controlled to gradually change from the current red-green-blue component parameters to the target red-green-blue component parameters.

2. The light gradient control method according to claim 1, characterized in that, Based on the linear change curves of the three components, the entire gradation process is segmented, and within each segment, the component with the lowest brightness value is determined as the lowest brightness component of that segment, including: Based on the number of intersections of the linear change curves of the three components, and combined with the starting node of the current red, green and blue component parameters and the ending node of the target red, green and blue component parameters, the lighting effect gradient process is divided into continuous segments; within each segment, the lowest brightness component in the linear change curves of the three components is determined.

3. The lighting gradient control method according to claim 1, characterized in that, For any component, the actual brightness value change curve of the component throughout the gradation process is obtained by splicing the current brightness point of the component, the minimum brightness start point and the minimum brightness end point of the corresponding segment of the component, and the target brightness point in sequence, so as to obtain the actual brightness value change curve of the component throughout the gradation process. The corresponding segment of the component refers to the segment with the component as the minimum brightness component.

4. The lighting gradient control method according to claim 1, characterized in that, The preset minimum component change formula includes a custom adjustment parameter, which is used to adjust the color saturation during the light gradient process.

5. The lighting gradient control method according to claim 4, characterized in that, The preset minimum component change formula is a linear function, expressed as: in, This represents the brightness value of the lowest brightness component at node x. Let be the slope of a linear function. is the intercept of a linear function, c is the custom adjustment parameter, and x is the number of intermediate nodes.

6. A lighting gradient control system, characterized in that, include: The light receiving module is used to receive light gradient commands and parse them to obtain the current red, green and blue component parameters and the target red, green and blue component parameters; The lighting processing module is used to construct the actual brightness value change curves of each of the three components according to the lighting gradient control method according to any one of claims 1 to 5; The light driving module is used to control the light to gradually change from the current red-green-blue component parameters to the target red-green-blue component parameters according to the actual brightness value change curve.

7. An electronic device, characterized in that, include: A memory on which computer programs are stored; The processor, which is communicatively connected to the memory, implements the light gradient control method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the light gradient control method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Light brightness control method and related equipment thereof

    CN112601329A

  • Backlight control method, display equipment and computer readable storage medium

    CN121075275A