Control parameter adjustment method and system for master-controlled atmosphere light and slave-controlled atmosphere light

The position information and scene information of the combined ambient light are obtained through preset pulse signals, and the lighting parameters are adjusted using the decision tree algorithm, which solves the problem that the combined ambient light is not personalized enough, and realizes an ideal lighting environment with the lighting effect consistent with the expectations. .

CN117615490BActive Publication Date: 2024-11-12CONONLUX TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311777459.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-11-12
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

The existing combined ambient lights lack personalization when adjusting the lighting effects, and cannot adjust the lighting effects according to different combination shapes and scene information, resulting in the lighting effects being not vivid and flexible enough.

Method used

The preset pulse signal is used to obtain the position information and relative position relationship of the atmosphere lamp, and the initial lighting control parameters are adjusted through the decision tree algorithm to ensure that the lighting effect is consistent with the expectations.

Benefits of technology

The ambient lighting effect is consistent with expectations, creating an ideal lighting environment for users, and enhancing the user experience and personalization of lighting effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117615490B_ABST
    Figure CN117615490B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of intelligent lighting technology, solves the problem of poor personalized experience of existing combined atmosphere lamps, and provides a control parameter adjustment method for a master atmosphere lamp and a slave atmosphere lamp, including: obtaining the position information of the master atmosphere lamp and each slave atmosphere lamp in the physical space of the scene and the relative position relationship between the master atmosphere lamp and each slave atmosphere lamp; determining the combined shape of the master atmosphere lamp and each slave atmosphere lamp; combining the scene information and the combined shape of the master atmosphere lamp and the slave atmosphere lamp, adjusting the initial lighting control parameters of the master atmosphere lamp and the initial lighting control parameters of each slave atmosphere lamp one by one to obtain the target lighting control parameters of the master atmosphere lamp and the target lighting control parameters of each slave atmosphere lamp; controlling the master atmosphere lamp and each slave atmosphere lamp to work. The present invention adjusts the atmosphere lamp by controlling the parameters to control the lighting, giving users a better personalized experience.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This invention is a divisional application of the invention application with application number 202311495642.9, application date November 10, 2023, and invention name “Intelligent debugging method and system for adaptive scenes of combined atmosphere lights”. Technical Field

[0002] The present invention relates to the field of smart lighting technology, and in particular to a method and system for adjusting control parameters of a master-controlled atmosphere lamp and a slave-controlled atmosphere lamp. Background Art

[0003] Combination atmosphere lights are a unique lighting solution that allows users to combine different atmosphere light units according to their preferences and needs. Combination atmosphere lights are usually composed of multiple independent light units, which can be used individually or in combination. Due to its modular characteristics, users can adjust the combination of lights according to their needs and preferences to create different lighting effects and styles. Combination atmosphere lights can not only provide basic lighting functions, but also provide different atmosphere effects according to user needs, such as warmth, romance, liveliness, etc.

[0004] In the prior art, the combined atmosphere lamp may only provide limited lighting effect playback instructions, resulting in limited flexibility for users in selecting lighting effects. For example, the patent with publication number CN116383915A discloses a method, device, equipment, and medium for controlling lighting effects of spliced ​​lamps. By abstracting the spatial position layout of the lamp body unit of the spliced ​​lamp into a spatial topological diagram, the user can modify the motion reference point corresponding to the motion process of the lighting effect as needed, flexibly define new lighting effects, expand the functions of the spliced ​​lamp products, and open the lighting effect customization capability to users, thereby improving the user experience of spliced ​​lamps. However, the solution of the above patent does not explicitly consider the relationship between the combined shape of the atmosphere lamp and the scene information and the lighting effect. In actual applications, different combined shapes may produce different lighting effects, and the same combined shape may also produce different lighting effects in different scenes. Adjusting the lighting parameters according to the scene information can create more vivid and interesting lighting effects, which is very important for creating a specific lighting atmosphere or meeting specific lighting needs.

[0005] In addition, publication number CN114666396A discloses a node control method, a master control node and a node, and its system architecture includes: a master control node and multiple nodes; wherein the multiple nodes of the node system can be divided into multiple levels, the node connected to the master control node for communication is a first-level node, the node connected to the first-level node for communication is a second-level node, the node connected to the second-level node for communication is a third-level node, and so on, the multiple nodes can be divided into multiple levels. The node system can be a system composed of any multiple nodes spliced ​​together and the connected nodes can realize communication interaction and data transmission, for example, it can be a spliced ​​lamp system. Taking the spliced ​​lamp system as an example, it includes a master control node and multiple lamp nodes, and each lamp node can be of any structural shape in terms of spatial structure, such as a hexagon, and of course it can also be other shapes, such as triangles, rhombuses, squares, strips, spheres and other plane figures or three-dimensional figures. These can all support and be applicable to short-distance, multi-node, and node hot-swappable application scenarios. This system can also be a spliced ​​lighting system, including a master control node and multiple lamp nodes. Each lamp node can be of any structural shape in space. The patent mainly focuses on the communication and data transmission between the node and the master control node, but does not explicitly mention how to adjust the lighting effect according to different combination shapes. Although the patent mentions a sensor module for sensing user triggers or obtaining environmental parameters, it does not explicitly mention how to adaptively adjust the lighting parameters based on these parameters or scene information. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides a control parameter adjustment method and system for a master-controlled atmosphere light and a slave-controlled atmosphere light, so as to solve the technical problem that the combined atmosphere light in the prior art is not personalized enough.

[0007] In a first aspect, the present invention provides a method for adjusting control parameters of a master-controlled atmosphere lamp and a slave-controlled atmosphere lamp, the method comprising:

[0008] The master-controlled atmosphere lights and the slave-controlled atmosphere lights are traversed by a preset pulse signal method to obtain the position information of the master-controlled atmosphere lights and each slave-controlled atmosphere light in the physical space of the scene and the relative position relationship between the master-controlled atmosphere light and each slave-controlled atmosphere light, wherein the dynamic lighting combination between the master-controlled atmosphere light and each slave-controlled atmosphere light is in a plurality of preset combination shapes;

[0009] Determine a combined shape of the master atmosphere light and each slave atmosphere light according to the position information, the relative position relationship, and the actual shapes of the master atmosphere light and the slave atmosphere light;

[0010] According to the combined shape and the relative position relationship after the combination, initial lighting control parameters of the master-controlled atmosphere lamp and each of the slave-controlled atmosphere lamps are acquired;

[0011] The initial lighting control parameters are adjusted according to the scene information of the scene physical space where the master atmosphere lamp and each slave atmosphere lamp are located to obtain the target lighting control parameters, including:

[0012] Acquire actual environmental parameters of the scene physical space, wherein the actual environmental parameters include temperature data, brightness data and audio data of the scene physical space;

[0013] Inputting the actual environment parameters into a pre-built scene recognition model to obtain scene information of the physical space of the scene, wherein the scene recognition model is built based on a decision tree algorithm, and the scene information includes scene type, activity level, and emotional state;

[0014] According to the scene information, obtaining parameter adjustment weights of the initial lighting control parameters in a preset scene-parameter weight matrix, wherein the preset scene-parameter weight matrix includes a plurality of preset scene information and corresponding parameter adjustment weights, different preset scene information has different scene types and / or activity levels and / or emotional states, and the parameter adjustment weights include color adjustment weights, brightness adjustment weights, and color temperature adjustment weights;

[0015] Adjusting the initial lighting control parameters according to the color adjustment weight, the brightness adjustment weight, and the color temperature adjustment weight to obtain target lighting control parameters;

[0016] The master controlled atmosphere lamp and each slave controlled atmosphere lamp are controlled to perform lighting according to the target lighting control parameter. Preferably, the step of inputting the actual environment parameter into a pre-built scene recognition model to obtain the scene information of the scene physical space includes:

[0017] Acquire an initial environmental parameter data set, wherein the initial environmental parameter data set includes multiple environmental parameters and corresponding scene information, and the environmental parameters include temperature parameters, brightness parameters, and audio parameters;

[0018] Preprocessing the initial environmental parameter data set to obtain a target environmental parameter data set; performing Gini impurity calculation based on the target environmental parameter data set to obtain the Gini impurities of the temperature parameter, brightness parameter, and audio parameter;

[0019] According to the decision tree algorithm, the environmental parameter with the lowest Gini impurity is used as the root node to construct an initial scene recognition model;

[0020] According to a preset segmentation ratio, the target environment parameter data set is divided into a training set and a validation set;

[0021] The initial scene recognition model is trained according to the training set to obtain an intermediate scene recognition model; the intermediate scene recognition model is evaluated according to the validation set to obtain an accuracy rate and a recall rate;

[0022] Adjusting the intermediate scene recognition model according to the accuracy and recall rate to obtain a scene recognition model;

[0023] The actual environment parameters are input into the scene recognition model to obtain scene information of the scene physical space.

[0024] Preferably, before traversing the master-controlled atmosphere lights and the slave-controlled atmosphere lights in a preset pulse signal manner to obtain the position information of the master-controlled atmosphere lights and each slave-controlled atmosphere light in the physical space of the scene and the relative position relationship between the master-controlled atmosphere light and each slave-controlled atmosphere light, the method further includes:

[0025] Get the quantity and shape information of the master-controlled atmosphere lights and slave-controlled atmosphere lights;

[0026] A preset layout database is queried according to the quantity information and the shape information to obtain recommended layout information, wherein the preset layout database contains layout information of atmosphere lights of different quantities and shapes.

[0027] Preferably, querying a preset layout database according to the quantity information and shape information to obtain recommended layout information includes:

[0028] Querying a preset layout database to obtain a number of initial recommended layout information matching the quantity information and the shape information;

[0029] Match relevant holidays and / or special events based on current date information;

[0030] The initial recommended layouts are screened according to the relevant festivals and / or special events to obtain recommended layout information.

[0031] Preferably, the control parameter adjustment method further comprises:

[0032] Calculate the difference between the actual layout information and the recommended layout information of the master control atmosphere light and each slave control atmosphere light;

[0033] When the difference is greater than a preset difference, performing a difference analysis on the actual layout information and the recommended layout information to obtain location information of the abnormal atmosphere light;

[0034] According to the position information of the abnormal atmosphere light, the abnormal atmosphere light is controlled to flash to remind the user to adjust the position of the abnormal atmosphere light.

[0035] Preferably, the initial lighting control parameters include: color parameters, color temperature parameters and brightness parameters of the master-controlled atmosphere lamp and each of the slave-controlled atmosphere lamps.

[0036] Preferably, the master-controlled atmosphere light and the slave-controlled atmosphere light are combined in one of a star shape, a flower shape and a heart shape.

[0037] In the second aspect, an embodiment of the present invention also provides a control parameter adjustment system for a master atmosphere light and a slave atmosphere light, the system comprising: a master atmosphere light, a plurality of slave atmosphere lights, a controller and a sensor, wherein the controller, the master atmosphere light, the plurality of slave atmosphere lights and the sensor are electrically connected, the sensor is used to obtain actual environmental information of the physical space of the scene of the master atmosphere light, and the controller is used to control the master atmosphere light, the plurality of slave atmosphere lights and the sensor to execute any of the aforementioned control parameter adjustment methods for the master atmosphere light and the slave atmosphere light.

[0038] In a third aspect, the present invention provides a storage medium having computer program instructions stored thereon, which, when executed by a processor, implements the control parameter adjustment method of the master-controlled atmosphere lamp and the slave-controlled atmosphere lamp as described in any of the above items.

[0039] The control parameter adjustment method and system of the master-controlled atmosphere light and the slave-controlled atmosphere light provided in the embodiment of the present invention ensure that the lighting effect of the atmosphere light is consistent with expectations by adjusting the control parameters, thereby creating an ideal lighting environment for the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0041] Figure 1 Schematic diagram of a combined atmosphere lamp according to an embodiment of the present invention.

[0042] Figure 2 It is a schematic diagram of an intelligent debugging system for a combined atmosphere lamp that is adaptive to scenes according to an embodiment of the present invention.

[0043] Figure 3 It is a schematic diagram of a process of obtaining a combined shape according to an embodiment of the present invention.

[0044] Figure 4a Schematic diagram of a flower-shaped combined atmosphere lamp according to an embodiment of the present invention.

[0045] Figure 4b Schematic diagram of a star-shaped combined atmosphere lamp according to an embodiment of the present invention.

[0046] Figure 4c Schematic diagram of a heart-shaped combined atmosphere lamp according to an embodiment of the present invention.

[0047] Figure 5 It is a schematic diagram of a process of obtaining initial lighting control parameters according to an embodiment of the present invention.

[0048] Figure 6 It is a schematic diagram of a process of obtaining target lighting control parameters according to an embodiment of the present invention.

[0049] Figure 7 It is a structural schematic diagram of an intelligent debugging system for a combined atmosphere lamp adaptive to a scene according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0051] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0052] Example 1

[0053] The embodiment of the present invention provides an intelligent debugging method for a combined atmosphere lamp to adapt to a scene, wherein the combined atmosphere lamp comprises at least one master atmosphere lamp and a plurality of slave atmosphere lamps, wherein the master atmosphere lamp and the slave atmosphere lamps are electrically connected, and the combined atmosphere lamp presents a plurality of preset combination shapes through a dynamic lighting combination between the master atmosphere lamp and the slave atmosphere lamps, wherein the master atmosphere lamp and the slave atmosphere lamp both have preset shapes, and the preset shapes of the master atmosphere lamp and the slave atmosphere lamp may be the same or different, so as to be combined into different shapes; in a specific embodiment, see Figure 1 , the combined atmosphere lamp comprises a plurality of atmosphere lamps, and the shapes of the master atmosphere lamp and the slave atmosphere lamp are both regular hexagons;

[0054] See also Figure 2 , the method comprising:

[0055] S1. Using a preset pulse signal method to traverse the master-controlled atmosphere lights and the slave-controlled atmosphere lights, and obtain the actual layout information of the master-controlled atmosphere lights and each slave-controlled atmosphere light in the physical space of the scene, wherein the actual layout information includes the position information of the master-controlled atmosphere light and each slave-controlled atmosphere light in the physical space of the scene and the relative position relationship between the master-controlled atmosphere light and each slave-controlled atmosphere light;

[0056] Specifically, a preset pulse signal is generated by the master atmosphere light. This pulse signal can be an electromagnetic wave of a specific frequency and intensity, or a light pulse of a specific pattern. When the master atmosphere light sends out the preset pulse signal, due to the electrical connection between the master atmosphere lights and the telecommunication connection between the slave atmosphere lights, all the slave atmosphere lights in the combined atmosphere light will receive this signal. Since the propagation of electromagnetic waves or light pulses in space will be affected by distance, the signal strength and delay received by slave atmosphere lights at different positions will be different. After receiving the pulse signal, the slave atmosphere light will send a feedback signal to the master atmosphere light, which includes the strength and delay information of the received pulse signal. The master atmosphere light collects the feedback signals of all the slave atmosphere lights. By analyzing these feedback signals, the relative position of each slave atmosphere light and the master atmosphere light can be calculated. The relative distance between the lights, according to the relative distance between each slave-controlled atmosphere light and the master-controlled atmosphere light, combined with the relative position relationship between the slave-controlled atmosphere lights, can generate the actual layout information of the combined atmosphere light in the physical space of the scene. By means of a preset pulse signal, the layout information of the combined atmosphere light can be obtained in real time without additional hardware or external measurement tools. By utilizing the propagation characteristics of electromagnetic waves or light pulses, the relative distance between each slave-controlled atmosphere light and the master-controlled atmosphere light can be accurately calculated, thereby ensuring the accuracy of the layout information. When the layout of the atmosphere light changes, it only needs to resend the pulse signal and parse the feedback information to obtain the new layout information, thereby realizing the adaptive acquisition of the layout information. When the layout of the atmosphere light changes, it only needs to resend the pulse signal and parse the feedback information to obtain the new layout information, thereby realizing the adaptive acquisition of the layout information.

[0057] In one embodiment, the preset shape is a regular polygon, the side lengths of the master atmosphere light and all the slave atmosphere lights are the same, each side of the master atmosphere light and the slave atmosphere light is provided with a connection interface, the slave atmosphere light electrically connected to the master atmosphere light is referred to as the first slave atmosphere light, the slave atmosphere light electrically connected to the first slave atmosphere light is referred to as the second slave atmosphere light, and so on, the slave atmosphere light connected to the i-1th slave atmosphere light is referred to as the i-th atmosphere light, wherein i is a positive integer greater than or equal to 2;

[0058] Specifically, in this embodiment, the preset shape is a regular polygon, which means that each atmosphere light (whether it is a master or slave) has a regular shape, such as a square, a regular triangle, etc. Such a design allows each atmosphere light to be evenly connected to other atmosphere lights, ensuring the stability and consistency of the connection, and the side lengths of the master atmosphere light and all the slave atmosphere lights are the same, which ensures that even if there are different preset shapes in the combined atmosphere lights, they have the same side length, which means that they are physically completely interchangeable, which provides users with greater layout flexibility because they can freely rearrange the lamps without worrying about shape and size mismatches. Users can add more atmosphere lights to their layout at any time without worrying about whether the new lamps are compatible with the existing lamps; in a specific embodiment, the connection interface is set at the midpoint of each side of the atmosphere light to facilitate connection with other atmosphere lights;

[0059] The step of traversing the master-controlled atmosphere lights and the slave-controlled atmosphere lights by using a preset pulse signal to obtain actual layout information of the master-controlled atmosphere lights and each slave-controlled atmosphere light in the physical space of the scene includes:

[0060] S11, controlling each connection interface of the main control atmosphere light to send a preset pulse signal one by one;

[0061] Specifically, the master atmosphere light sends preset pulse signals one by one through each of its connection interfaces to determine which slave atmosphere lights are connected to it and obtain their location information. By sending pulse signals one by one, the connection relationship between each slave atmosphere light and the master atmosphere light can be accurately identified. If signals are sent at the same time, signal interference or confusion may occur, making it impossible to accurately determine the position of each slave atmosphere light; and electronic devices may generate interference when sending or receiving signals. Sending one by one can ensure that only one slave atmosphere light responds at a time, thereby avoiding signal interference caused by multiple devices responding at the same time. Sending preset pulse signals one by one is to ensure that the system can accurately and efficiently obtain the connection information of each slave atmosphere light, thereby providing a reliable data basis for subsequent layout analysis and lighting effect adjustment;

[0062] S12, in response to the preset pulse signal, controlling the first slave-controlled atmosphere lamp to send a confirmation pulse signal to the master-controlled atmosphere lamp, and sending the preset pulse signal to the second slave-controlled atmosphere lamps one by one through each connection interface;

[0063] S13, in response to the preset pulse signal, controlling the second slave-controlled atmosphere lamp to send a confirmation pulse signal to the master-controlled atmosphere lamp, and sending the preset pulse signal to the third slave-controlled atmosphere lamp one by one through each connection interface;

[0064] …

[0065] S14, in response to the preset pulse signal, controlling the i-1th slave-controlled atmosphere lamp to send a confirmation pulse signal to the master-controlled atmosphere lamp, and sending the preset pulse signal to the i-th slave-controlled atmosphere lamp one by one through each connection interface, and so on, until all the master-controlled atmosphere lamps obtain the pulse confirmation signals of all the slave-controlled atmosphere lamps, wherein the confirmation pulse signal includes the reception time of the preset pulse signal and the unique identifier of the first slave-controlled atmosphere lamp;

[0066] Specifically, the master atmosphere lamp sends a preset pulse signal to the first slave atmosphere lamp directly connected thereto. After receiving the signal, the first slave atmosphere lamp first sends a confirmation pulse signal to the master atmosphere lamp. The confirmation signal includes the reception time of the preset pulse signal and the unique identifier of the first slave atmosphere lamp. Then, the first slave atmosphere lamp sends the preset pulse signal to other slave atmosphere lamps (i.e., the second slave atmosphere lamp) one by one through each of its connection interfaces.

[0067] Subsequently, the second slave-controlled atmosphere light receives the preset pulse signal from the first slave-controlled atmosphere light, and the second slave-controlled atmosphere light first sends a confirmation pulse signal to the master-controlled atmosphere light, the confirmation signal includes the reception time of the preset pulse signal and the unique identifier of the second slave-controlled atmosphere light, and then the second slave-controlled atmosphere light continues to send the preset pulse signal to other slave-controlled atmosphere lights (i.e., the third slave-controlled atmosphere light) one by one through each of its connection interfaces, and this process will continue, and each slave-controlled atmosphere light will send a confirmation pulse signal to the master-controlled atmosphere light after receiving the preset pulse signal, and continue to send the preset pulse signal to the next slave-controlled atmosphere light until all the slave-controlled atmosphere lights are traversed; When the master atmosphere light receives the confirmation pulse signal from all the slave atmosphere lights, the process ends. At this time, the master atmosphere light has obtained the position and identification information of all the slave atmosphere lights. Through this step-by-step signal transmission and confirmation mechanism, the system can accurately obtain the position and identification information of each slave atmosphere light. Even if some slave atmosphere lights do not respond correctly or fail, the process can still continue, because each slave atmosphere light independently transmits and confirms signals, and each slave atmosphere light will respond immediately after receiving the preset pulse signal, which ensures that the system can obtain the layout information of the combination atmosphere light in real time.

[0068] S15, acquiring shapes and connection relationships of all slave-controlled atmosphere lights according to all the confirmation pulse signals;

[0069] By analyzing all the confirmation pulse signals, the master atmosphere light can determine the shapes of all the slave atmosphere lights and the connection relationship between them. The unique identifiers of slave atmosphere lights or master atmosphere lights of different shapes belong to different ranges. The shape of the slave atmosphere light can be determined according to the range of the unique identifier, and the connection relationship of the combined atmosphere light can be determined by the reception time of the confirmation pulse signal;

[0070] Specifically, step S15 includes:

[0071] S151, creating an empty connection matrix, wherein the size of the connection matrix is ​​n*n, wherein n is the number of slave-controlled atmosphere lamps, and each element of the matrix represents the connection status between two slave-controlled atmosphere lamps;

[0072] S152, determining the connection status of each slave-controlled atmosphere lamp with the slave-controlled atmosphere lamp or the master-controlled atmosphere lamp according to the reception time of all the preset pulse signals, and updating the connection matrix;

[0073] S154, determining the neighbors of each slave-controlled atmosphere lamp according to the connection list, and determining the connection relationship between the slave-controlled atmosphere lamps by recursively traversing the connection list;

[0074] S155, determining the shape of each slave-controlled atmosphere lamp according to the unique identifiers of all the preset pulse signals;

[0075] By using the connection matrix, the connection relationship between slave-controlled atmosphere lights can be flexibly managed and updated. This provides a strong foundation for subsequent lighting control or other related operations. By recursively traversing the connection list, the system can handle complex connection relationships and ensure that the connection relationship between slave-controlled atmosphere lights can be accurately obtained under various configurations. The whole process is automated, from obtaining the connection status of slave-controlled atmosphere lights to determining their shapes, which greatly simplifies the configuration process, reduces the possibility of human error, and improves the accuracy and efficiency of configuration.

[0076] S16. Acquire actual layout information of the combined atmosphere lamp in the physical space according to the shapes and connection relationships of all slave-controlled atmosphere lamps.

[0077] Specifically, according to the shapes and connection relationships of all slave-controlled atmosphere lamps, the actual layout information of the combined atmosphere lamp in the physical space can be obtained. In a virtual space, the master-controlled atmosphere lamp is first placed as a reference point, and the appropriate position is determined by the shape of the master-controlled atmosphere lamp; then, each slave-controlled atmosphere lamp is gradually placed from the master-controlled atmosphere lamp by obtaining the connection relationship in step S15, so as to obtain the actual layout information of the combined atmosphere lamp in the physical space; through the above steps, it can be ensured that the layout of the combined atmosphere lamp in the physical space is both beautiful and practical, while taking into account the shape and connection relationship of each slave-controlled atmosphere lamp;

[0078] S2. acquiring a combination shape of the combined atmosphere lamp according to the actual layout information;

[0079] Specifically, the actual layout information includes the positional relationship between the master-controlled atmosphere light and all the slave-controlled atmosphere lights, and the combined shape of the combined atmosphere light can be obtained according to the specific actual shapes of the master-controlled atmosphere light and all the slave-controlled atmosphere lights;

[0080] Preferably, see Figure 3 , the step of obtaining the combined shape of the combined atmosphere lamp according to the actual layout information further includes:

[0081] S21, obtaining a preset shape of the master-controlled atmosphere light and each of the slave-controlled atmosphere lights;

[0082] The purpose of this step is to obtain the preset shape of each ambient light, and read the shape of each ambient light from the internal memory of the master ambient light or the external database according to the unique identifier of each ambient light;

[0083] S22, taking the position of the master atmosphere light as the starting point, drawing the shape of each atmosphere light according to the relative position and shape of each slave atmosphere light, to obtain an actual layout image of the combined atmosphere light;

[0084] The purpose of this step is to draw the actual layout of the combined atmosphere lights on a virtual plane or three-dimensional space according to the relative position and shape of each atmosphere light, set the position of the master atmosphere light as the origin or reference point, and draw the slave atmosphere lights one by one on the plane or three-dimensional space according to the relative position of the slave atmosphere lights and the master atmosphere light, as well as the shape of the slave atmosphere lights, and repeat the above process until all the atmosphere lights are drawn on the image;

[0085] S23. Acquire a combination shape of the combined atmosphere lamp according to the actual layout image.

[0086] Specifically, the actual layout image is analyzed to identify the outer contour or boundary of the combined atmosphere lamp, and the overall shape of the combined atmosphere lamp is determined using an existing contour recognition algorithm, such as a Sobel operator, a Prewitt operator, a Canny operator, etc., so as to obtain the combined shape;

[0087] S3. Acquire initial lighting control parameters of the combined atmosphere lamp according to the combined shape and the actual layout information, wherein the initial lighting control parameters include color parameters, color temperature parameters, and brightness parameters of the master atmosphere lamp and each of the slave atmosphere lamps;

[0088] Specifically, the purpose of this step is to set initial lighting control parameters for each master and slave atmosphere lights according to the overall shape and actual layout information of the combined atmosphere lights. These initial lighting control parameters include color parameters, color temperature parameters, and brightness parameters. The combined shape of the combined atmosphere lights has a great influence on the lighting effect. Different combined shapes will create different visual and emotional experiences for the space, so corresponding lighting effects are needed to enhance or supplement these experiences;

[0089] By way of example and not limitation, Figure 4a As shown, when the combination shape is a flower shape, the color parameter can select warm red, pink or yellow to imitate the color of real flowers and create a warm and romantic atmosphere for the space. The color temperature parameter selects a warmer color temperature to make the light softer. The brightness parameter can be set to be brighter in the center of the combined atmosphere light, i.e., the pistil part, and the edge, i.e., the petal part, can be set to be darker to imitate the three-dimensional sense of real flowers.

[0090] like Figure 4b As shown, when the combination shape is a star shape, the color parameter can select a cool color, such as blue or white, to imitate the stars in the night sky; the color temperature parameter can select a cooler color temperature to make the light clearer; brightness parameter: the center of the combination atmosphere light can be set to be darker, while the edge of the combination atmosphere light (i.e., the tip of the star) can be set to be brighter to imitate the twinkling effect of the stars in the night sky;

[0091] Figure 4c , When the combination shape is a heart shape, the color parameter can be selected to select red or pink to convey a feeling of love and warmth, the color temperature parameter can be selected to select a warmer color temperature to make the light softer and warmer, and the brightness parameter can be set to a uniform brightness as a whole to make the heart shape more obvious and prominent, thereby creating a romantic atmosphere;

[0092] After the initial lighting control parameters are acquired according to the combined shape, the initial lighting control parameters can be distributed to the master controlled atmosphere lamp and all slave controlled atmosphere lamps of the combined atmosphere lamp through the actual layout information;

[0093] The combined shape can also be other shapes. Since each combined atmosphere lamp is a regular polygon and the shape of each atmosphere lamp is the same, users can combine multiple atmosphere lamps to create a variety of shapes. For example, the sun uses a regular hexagonal master atmosphere lamp in the center, and connects a regular triangle slave atmosphere lamp to each side of the regular hexagon to imitate the sun's rays. The shape can be expanded and modified as needed to create more combined shapes. The aligned edges of regular polygons make them very suitable for combination, and a variety of interesting patterns can be created.

[0094] Preferably, the step of acquiring the initial lighting control parameters of the combined atmosphere lamp according to the combined shape and the actual layout information comprises:

[0095] S31, acquiring geometric features of the combined shape and each preset combined shape in a preset shape library, wherein the preset shape library includes a plurality of different preset combined shapes, and the preset combined shape includes a plurality of combined areas;

[0096] Specifically, firstly, the geometric features of the combined shape of the combined atmosphere lamp are obtained, and at the same time, the geometric features of each preset combined shape are obtained from the preset shape library. The preset shape library is a predefined database, which contains a variety of different preset combined shapes. Each preset combined shape is composed of several combined areas. For example, the sun shape includes a central area (representing the sun core) and a ray area (representing the sun ray), and the flower shape includes a flower area and a petal area. The geometric features include but are not limited to: area, perimeter, symmetry, maximum and minimum diameters, angle distribution, concavity, etc.; the extraction of geometric features can be achieved by existing image processing technology;

[0097] S32, acquiring feature vectors of the combined shape and each of the preset combined shapes according to the geometric features;

[0098] In this step, the geometric features of the combined shape and each preset combined shape are converted into feature vectors. Feature vectors are a mathematical representation that can convert the geometric features of a shape into a set of numbers that can be used for subsequent calculations and analysis. Since different geometric features may have different dimensions and numerical ranges, these eigenvalues ​​need to be standardized so that their mean is 0 and their standard deviation is 1. By converting geometric features into feature vectors, the distance or similarity between vectors can be used to quickly compare and match different shapes. Feature vectors provide a simplified shape representation, which can greatly reduce the computational complexity in subsequent steps. By using feature vectors, different shapes can be matched and compared more accurately, thereby improving the matching accuracy of the system.

[0099] S33, calculating the similarity between the combined shape and each of the preset combined shapes according to a preset similarity calculation method and the feature vector;

[0100] Specifically, the preset similarity calculation method includes Euclidean distance, cosine similarity, Manhattan distance, etc. In a specific embodiment, the preset similarity calculation method is cosine similarity, because cosine similarity is more effective for high-order data and is insensitive to the length of the vector;

[0101] The calculation method of cosine similarity is as follows: Where A and B are the feature vectors of the combined shape and the preset shape, respectively. is the dot product of A and B, ||A|| and ||B|| are the moduli of vector A and vector B respectively; by calculating the similarity of the feature vectors, the preset combined shape that is most similar to the given combined shape can be quickly found. Using the feature vector and similarity calculation method, different shapes can be compared more accurately, thereby improving the matching accuracy.

[0102] S34, taking a preset combined shape whose similarity is greater than a preset similarity threshold as a target combined shape;

[0103] Specifically, a preset combined shape that is highly similar to the current combined shape is screened out, which is achieved by comparing the calculated similarity with a preset similarity threshold. Only when the similarity of a preset combined shape is greater than the threshold, it will be selected as the target combined shape. In a specific embodiment, the preset similarity threshold is the similarity threshold adjusted according to the actual situation;

[0104] By setting a similarity threshold, the system can ensure that only preset combined shapes that are highly similar to the current combined shape are selected, thereby improving the accuracy of matching. Users do not need to manually select from a large number of preset combined shapes. The system will automatically recommend them preset combined shapes that are most similar to the current combined shape, thereby improving the user experience.

[0105] S35, acquiring preset lighting control parameters according to the target combination shape, wherein the preset lighting control parameters include color parameters, brightness parameters, and color temperature parameters of each combination area in the target combination shape;

[0106] The corresponding lighting control parameters are obtained from the preset database according to the selected target combination shape. These parameters are preset to ensure that the combined atmosphere lamp can produce the best lighting effect under a specific combination shape. Each preset combination shape has corresponding lighting control parameters, which include the color, brightness and color temperature of each combination area; by providing specific lighting control parameters for each preset combination shape, the system can ensure that each combination shape has its own unique lighting effect, thereby meeting the personalized needs of users.

[0107] S36. Acquire color parameters, color temperature parameters, and brightness parameters of the master-controlled atmosphere light and each of the slave-controlled atmosphere lights according to the actual layout information and the preset lighting control parameters to obtain the initial lighting control parameters.

[0108] Specifically, the preset lighting control parameters correspond to the target combination shape, including the color parameters, brightness parameters and color temperature parameters of each combination area in the target combination shape. Through this step, the color, color temperature and brightness parameters of the master atmosphere light and all the slave atmosphere lights can be determined according to the actual combination atmosphere light layout and the preset lighting control parameters, thereby ensuring that under the actual layout conditions, the combination atmosphere light can produce the expected lighting effect, through the actual layout information, the actual position and direction of each atmosphere light in the combination; according to the preset lighting control parameters, the color parameters, color temperature parameters and brightness parameters of each atmosphere light are set according to the actual position and direction, thereby obtaining the initial lighting control parameters.

[0109] Preferably, see Figure 5 The step of acquiring the color parameters, color temperature parameters, and brightness parameters of the master-controlled atmosphere lamp and each of the slave-controlled atmosphere lamps according to the actual layout information and the preset lighting control parameters to obtain the initial lighting control parameters includes:

[0110] S361, acquiring, according to the actual layout information, a first center position of a master-controlled atmosphere lamp or a slave-controlled atmosphere lamp having a smallest straight-line distance to a geometric center of the combined atmosphere lamp;

[0111] In order to ensure the uniformity and harmony of the overall lighting effect, the geometric center of the combined atmosphere lamp needs to be determined first. The geometric center of the combined atmosphere lamp is determined by calculating the average value of the coordinates of all the atmosphere lamps. Then, the atmosphere lamp closest to this center is found, which will be used as the reference point.

[0112] S362, acquiring a second center position according to the geometric center of the target combined shape;

[0113] Similar to S361, this step is to determine the center for the preset target combined shape, calculate the average value of the coordinates of all combined areas of the target combined shape, and obtain the second center position.

[0114] S363, calculating a first distance and a first direction between each atmosphere light in the combined atmosphere light and the first center position;

[0115] Specifically, in order to know the relative position of each ambient light in the combination, it is necessary to calculate the distance and direction between them and the first center position, and use the Euclidean distance formula to calculate the distance between each ambient light and the first center position. Use vector operations or trigonometric functions to calculate the direction.

[0116] S364, calculating a second distance and a second direction between each combined area in the target combined shape and the second center position;

[0117] Similar to S363, this step is to determine the relative position of each combination area of ​​the preset target combination shape, and also use the Euclidean distance formula and vector operation or trigonometric function to calculate the distance and direction.

[0118] S365, establishing a mapping relationship between each atmosphere lamp and each combination area in the combination atmosphere lamp according to the first distance, the first direction, the second distance and the second direction;

[0119] In order to apply the preset lighting parameters to the actual combination atmosphere light, it is necessary to establish a mapping relationship between the actual atmosphere light and the target combination shape area, compare the distances and directions obtained in S353 and S354, find the combination area that best matches each atmosphere light, and thus establish a mapping relationship.

[0120] S366. According to the mapping relationship, obtain the color parameter, color temperature parameter, and brightness parameter of the master-controlled atmosphere light and each of the slave-controlled atmosphere lights to obtain the initial lighting control parameters.

[0121] Finally, according to the mapping relationship established by S365, the preset lighting parameters are applied to each atmosphere light;

[0122] In this embodiment, even if the actual combination atmosphere lamp is composed of atmosphere lamps of different numbers or shapes, the lighting parameters can be automatically adjusted according to the target combination shape to achieve the best lighting effect; since the scheme of this embodiment not only depends on the number of atmosphere lamps, but also depends on their relative position and direction with the geometric center, it can adapt to various different actual layouts, which means that even if the user uses different numbers of atmosphere lamps to try to simulate the same target combination shape, the scheme can provide consistent lighting effects. By establishing a mapping relationship between the atmosphere lamp and the target combination area, the technical scheme ensures that the lighting effects under different actual layouts are consistent with the expected effects of the target combination shape.

[0123] For example, suppose the target combined shape is a flower with a central pistil and six petals, where the pistil part can be composed of a regular hexagonal master ambient light, and the petals are composed of six slave ambient lights. First, the relative position and direction of these seven ambient lights and the geometric center are identified. Through the mapping relationship with the preset flower shape, the system automatically adjusts the lighting parameters of each ambient light to match the lighting effect of the target flower shape;

[0124] But the pistil can also be composed of six equilateral triangle-shaped ambient lights, and the same is true for the petals. Although different numbers and shapes of ambient lights are used this time, the system still automatically adjusts the lighting parameters of each ambient light through the mapping relationship with the preset flower shape to match the lighting effect of the target flower shape;

[0125] In both examples, even though users used different numbers and shapes of ambient lights, the technical solution ensured that the lighting effect was consistent with the target flower shape. This is because the technical solution does not rely solely on the number of ambient lights, but on their relative position and orientation to the geometric center. This provides users with a consistent user experience regardless of the number or shape of ambient lights used.

[0126] S4, adjusting the initial lighting control parameters according to the scene information of the physical space of the scene where the combined atmosphere lamp is located, so as to obtain target lighting control parameters;

[0127] Specifically, the core of this step is to optimize and adjust the lighting effect of the ambient light according to the actual scene information. The scene information may include the light intensity, time, color scheme, occupancy, etc. of the physical space of the scene. If the room is already well-lit, the ambient lighting may need to be dimmed or its color adjusted to supplement the existing light. The color in the decoration of the physical space of the scene will affect how the ambient lighting should be adjusted to supplement or contrast the existing color scheme. The occupancy is the number of people in the physical space of the scene. When the number of people is greater than the preset number, the brightness can be increased, and when the number of people is low, the brightness can be dimmed.

[0128] In one embodiment, the scene information is obtained based on actual environmental parameters, which include temperature data, brightness data, and audio data of the physical space of the scene. Based on the analysis of the scene information, the system adjusts the initial lighting control parameters of the atmosphere lamp. For example, if the physical space of the scene is dark, the brightness parameter may be increased; if the main color of the room is cool, the color temperature parameter may be adjusted to be warmer; by adjusting the lighting parameters according to the actual scene information, users can obtain more personalized lighting effects to meet their specific needs and preferences; the brightness can be intelligently adjusted according to the actual lighting needs, thereby saving energy. Users no longer need to manually adjust the settings of each lamp, making the lighting experience more seamless and intelligent.

[0129] Preferably, see Figure 6 The step of adjusting the initial lighting control parameters according to the scene information of the physical space of the scene where the combined atmosphere lamp is located to obtain the target lighting control parameters includes:

[0130] S41. Acquire actual environmental parameters of the physical space of the scene, wherein the actual environmental parameters include temperature data, brightness data, and audio data of the physical space of the scene; by acquiring the environmental parameters in real time, the system can more accurately understand the current lighting environment and provide basic data for subsequent scene recognition and lighting adjustment.

[0131] Collect actual environmental parameters of the scene's physical space, such as temperature, brightness, and audio data, which can be obtained through various sensors such as temperature sensors, light sensors, microphones, etc.

[0132] S42, inputting the actual environment parameters into a pre-built scene recognition model to obtain scene information of the physical space of the scene, wherein the scene recognition model is built based on a decision tree algorithm, and the scene information includes scene type, activity level, and emotional state;

[0133] In this step, the actual environmental parameters are input into a scene recognition model based on the decision tree algorithm. The model will judge the current scene information based on the input parameters, such as scene type (such as reading, resting, partying), activity level (such as quiet, active) and emotional state (such as relaxed, nervous), etc. The decision tree is a supervised learning algorithm, which is mainly used for classification problems. It obtains decision results by performing a series of tests on the characteristics of the data. Each test is based on a certain feature, and the results of these tests will lead to different branches of the tree until a decision result is reached. First, the actual environmental parameters are input into the decision tree model. Once the data reaches a leaf node of the decision tree, the scene recognition result will be output. By using the decision tree model, the system can automatically and quickly identify the scene information of the physical space of the scene without manual intervention. Since the decision tree model makes decisions based on the actual environmental parameters, it can adapt well to different lighting environments and user needs. Through the identified scene information, the system can provide users with a more personalized lighting experience. For example, when it is recognized that the user is reading, the system may provide a softer and more focused lighting effect.

[0134] Preferably, the step of inputting the actual environment parameters into a pre-built scene recognition model to obtain scene information of the scene physical space includes:

[0135] S421, obtaining an initial environmental parameter data set, wherein the initial environmental parameter data set includes multiple environmental parameters and corresponding scene information, and the environmental parameters include temperature parameters, brightness parameters, and audio parameters;

[0136] First, a dataset containing multiple environmental parameters is collected. These parameters may come from different scene physical spaces and scenes, where each data contains temperature, brightness, and audio parameters, as well as corresponding scene information.

[0137] S422, preprocessing the initial environmental parameter data set to obtain a target environmental parameter data set;

[0138] Data preprocessing is a key step in machine learning, which may include removing outliers, filling missing values, standardizing or normalizing data, etc. to ensure the quality and consistency of the dataset;

[0139] S423, performing Gini impurity calculation according to the target environment parameter data set to obtain the Gini impurities of the temperature parameter, brightness parameter, and audio parameter;

[0140] In the decision tree algorithm, the features that contribute most to scene classification are those that can most effectively distinguish different scenes. These features play a key role in the construction of decision trees because they can minimize the uncertainty of classification;

[0141] Gini impurity is a method used in decision tree algorithms to select the best splitting attribute to determine which parameter (temperature, brightness, or audio) is most effective in distinguishing different scenes; for example, consider a simple scene classification problem where the scene can be "work" or "leisure". If there are temperature, brightness, and audio data as features, then it is possible that one of the features, such as the audio data (which may represent music or people talking), is more effective in distinguishing between the two scenes. If in work scenes, the audio data usually shows silence or only slight background noise, while in leisure scenes, the audio data may show music or people talking, then the audio data can be considered the feature that contributes most to the classification of this scene;

[0142] To determine which feature contributes most, the decision tree algorithm calculates the Gini impurity of each feature and selects those features that maximize information gain or minimize Gini impurity as decision nodes;

[0143] S424, according to the decision tree algorithm, taking the environmental parameter with the lowest Gini impurity as the root node, and constructing an initial scene recognition model;

[0144] Use the parameter with the lowest Gini impurity as the root node to start building a decision tree. Start with the selected root node and divide the data set into two or more subsets according to the threshold of the node. For each subset divided by the root node, repeatedly calculate the Gini impurity, select the best segmentation parameter, set the node, and recursively build the subtree until the preset stop condition is met. The preset stop condition is to the predetermined maximum depth or the amount of data in the subset is less than the quantity threshold. When all subsets become leaf nodes or meet the stop condition, the construction of the decision tree is completed. By using Gini impurity as the segmentation criterion, the decision tree can quickly divide the data set into subsets with high purity, thereby improving the accuracy of classification. The decision tree provides a clear decision-making process, making the decision logic of the model easy to understand.

[0145] S425, dividing the target environment parameter data set into a training set and a validation set according to a preset segmentation ratio;

[0146] To evaluate the performance of the model, the dataset was divided into two parts: one for training the model and the other for validating the accuracy of the model;

[0147] S426, training the initial scene recognition model according to the training set to obtain an intermediate scene recognition model;

[0148] Training a model is a core step in machine learning. In this process, a training set is used to adjust the parameters of the model so that it can provide the correct output for a given input;

[0149] S427, evaluating the intermediate scene recognition model according to the verification set to obtain accuracy and recall;

[0150] Use an independent dataset validation set to evaluate the performance of the model to obtain accuracy and recall. Accuracy and recall are two commonly used evaluation indicators. Accuracy is the ratio of the number of correctly predicted samples to the total number of samples, while recall focuses on the proportion of correctly predicted samples in the positive class.

[0151] S428, adjusting the intermediate scene recognition model according to the accuracy and recall rate to obtain a scene recognition model;

[0152] Tuning models is a critical step in machine learning, especially when the model’s performance does not meet expectations. If the precision is high but the recall is low, this could mean that the model does a good job of avoiding false positives but has problems detecting true positives. If the recall is high but the precision is low, this could mean that the model often predicts positives but many of them are false positives.

[0153] Model parameters can be adjusted based on recall rate and accuracy, such as decision threshold, tree depth, minimum leaf node size, minimum segmentation sample, etc., and they are continuously verified and adjusted until the accuracy and recall rate of the model meet expectations, thus obtaining the final scene recognition model.

[0154] S429: Input the actual environment parameters into the scene recognition model to obtain scene information of the scene physical space.

[0155] Finally, the actual environment parameters are input into the scene recognition model to obtain scene information of the scene physical space.

[0156] S43, according to the scene information, obtaining parameter adjustment weights of the initial lighting control parameters in a preset scene-parameter weight matrix, wherein the preset scene-parameter weight matrix includes a plurality of preset scene information and corresponding parameter adjustment weights, different preset scene information has different scene types and / or activity levels and / or emotional states, and the parameter adjustment weights include color adjustment weights, brightness adjustment weights, and color temperature adjustment weights;

[0157] S44: Adjust the initial lighting control parameters according to the color adjustment weight, the brightness adjustment weight, and the color temperature adjustment weight to obtain target lighting control parameters.

[0158] Specifically, the matrix is ​​a predefined matrix that lists various possible scene information (such as scene type, activity level, and emotional state) and parameter adjustment weights associated with each scene information, and the weights determine how to adjust the lighting parameters to adapt to a specific scene;

[0159] Table 1 Preset scenario-parameter weight matrix

[0160] Refer to Table 1, which is a schematic table of the preset scene-parameter weight matrix. The data in the table are only examples and not limited. According to the current scene type, activity level and emotional state, the corresponding weight is found from the weight matrix; the color parameter, brightness parameter and color temperature parameter in the initial lighting control parameter are used as the initial value, and the adjustment value of each parameter is calculated using the following formula: For example, if the initial color value is 200 (assuming the range is 0-255) and the corresponding color weight is 0.7, the adjusted color value is: 200×0.7=140200×0.7=140; Apply the calculated adjustment value to the initial lighting control parameter. This means that if the initial color value is 200 and the adjusted color value is 140, the new color value is 140; Use the same method to adjust the color temperature and brightness parameters; When applying the adjustment value, make sure that the new parameter value does not exceed its maximum and minimum allowed values. For example, if the color value range is 0-255, make sure that the adjusted color value is within this range;

[0161] By looking up a preset scene-parameter weight matrix, the system can quickly determine how to adjust the lighting parameters to suit the current scene; since the matrix provides different parameter weights for various possible scenarios, users can get lighting effects that match their current activities and emotional states; the preset scene-parameter weight matrix can be updated and expanded as needed to adapt to new scenarios or user preferences.

[0162] S5. Control the combined atmosphere lamp to perform lighting according to the target lighting control parameter.

[0163] Finally, the combined atmosphere lamp is controlled to perform lighting according to the acquired target lighting control parameters.

[0164] Preferably, before traversing the master-controlled atmosphere lights and the slave-controlled atmosphere lights in a preset pulse signal manner to obtain actual layout information of the master-controlled atmosphere lights and each slave-controlled atmosphere light in the physical space of the scene, the method further includes:

[0165] S01, obtaining the quantity information and shape information of the master-controlled atmosphere lights and the slave-controlled atmosphere lights;

[0166] First, the quantity information and shape information of the master-controlled atmosphere lights and the slave-controlled atmosphere lights are obtained, which can be obtained by manual input by the user;

[0167] S02. Query a preset layout database according to the quantity information and shape information to obtain recommended layout information, wherein the preset layout database contains layout information of atmosphere lights of different quantities and shapes.

[0168] The preset layout database stores various possible light layouts, which are created based on best practices or common configurations of lights of different numbers and shapes. After obtaining how many lights the user has and their shapes, it can query this database to find one or more recommended layouts; it provides a user-friendly way to start setting up the light layout, especially for those users who are not sure how to start; by providing optimized layout suggestions, it ensures the quality and uniformity of the lighting effect and speeds up the entire setup process, and users do not need to think about the layout from scratch;

[0169] Preferably, the step of querying a preset layout database according to the quantity information and the preset shape to obtain recommended layout information includes:

[0170] S021, querying a preset layout database to obtain a number of initial recommended layout information matching the quantity information and the preset shape;

[0171] In this step, the system will query the preset layout database based on the number and shape information of the ambient lights provided by the user. This database stores multiple layout solutions for ambient lights of different numbers and shapes. For example, if the user has 5 ambient lights and wants to create a star-shaped layout, the system will search the database for all layout solutions that match this condition and provide them to the user as the initial recommended layout information.

[0172] S022. Match relevant holidays and / or special events according to current date information;

[0173] In this step, the system will search for relevant holidays and special events based on the current date information.

[0174] S023. Screening each of the initial recommended layouts according to the relevant festivals and / or special events to obtain recommended layout information.

[0175] Based on the identified holidays and special events, the system will filter through the initial recommended layout information to find the layout solution that best suits the current holiday or event.

[0176] In this way, the system can provide more personalized and festive atmosphere lighting layout recommendations based on the user's specific needs and the current date.

[0177] Preferably, after traversing the master-controlled atmosphere lights and the slave-controlled atmosphere lights in a preset pulse signal manner to obtain actual layout information of the master-controlled atmosphere lights and each slave-controlled atmosphere light in the physical space of the scene, the method further includes:

[0178] S03, calculating the difference between the actual layout information and the recommended layout information;

[0179] The difference can be obtained by Euclidean distance and cosine similarity to compare the difference between the actual layout and the recommended layout;

[0180] S04. When the difference is greater than a preset difference, performing a difference analysis on the actual layout information and the recommended layout information to obtain location information of abnormal atmosphere lights;

[0181] If the calculated difference exceeds a preset threshold (e.g., 0.2 or 0.3), further analyze the specific differences between the two layouts, and determine which lights do not match the recommended layout by comparing the positions of each ambient light;

[0182] S05. According to the position information of the abnormal atmosphere light, control the abnormal atmosphere light to flash, so as to remind the user to adjust the position of the abnormal atmosphere light.

[0183] Once the abnormally positioned ambient lights are identified, the system sends a control signal to make these lights start flashing. The flashing pattern can be preset, such as flashing twice per second, or can be adjusted according to the severity of the difference; providing intuitive feedback to users, allowing them to immediately identify the ambient lights that need to be adjusted. In this way, users can more easily optimize their light layout for better lighting effects and user experience.

[0184] Example 2

[0185] See also Figure 7An embodiment of the present invention provides an intelligent debugging system for a combination atmosphere lamp to adapt to scenes, the system comprising: a combination atmosphere lamp, a controller and a sensor, wherein the controller is electrically connected to the combination atmosphere lamp and the sensor, the sensor is used to obtain actual environmental information of the physical space of the scene of the combination atmosphere lamp, and the controller is used to control the combination atmosphere lamp and the sensor to execute the intelligent debugging method for the combination atmosphere lamp to adapt to scenes described in the first embodiment.

[0186] In addition, in combination with the intelligent debugging method for adaptive scene of the combined atmosphere lamp in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the intelligent debugging methods for adaptive scene of the combined atmosphere lamp in the above embodiment is implemented.

[0187] In summary, the intelligent debugging method and system for adaptive scenes of combination atmosphere lights provided in the embodiments of the present invention, through an intelligent debugging method for adaptive scenes of combination atmosphere lights, traverses the master-controlled atmosphere lights and the slave-controlled atmosphere lights according to preset pulse signals to obtain actual layout information of the combination atmosphere lights in the physical space, wherein the actual layout information includes the relative position relationship between the master-controlled atmosphere lights and the slave-controlled atmosphere lights, thereby realizing automatic acquisition of actual layout information of the combination atmosphere lights in the physical space, ensuring comprehensive detection of all atmosphere lights, and providing accurate layout information for subsequent steps, thereby ensuring accuracy and consistency of lighting effects; according to the actual layout information, the combination shape of the combination atmosphere lights is obtained, and by analyzing the layout information, the combination form of the atmosphere lights can be clarified, providing a basis for subsequent lighting parameter settings; according to the combination shape and the actual layout information, obtaining initial lighting control parameters of the combination atmosphere lamp, wherein the initial lighting control parameters include color parameters, color temperature parameters and brightness parameters of the master atmosphere lamp and each of the slave atmosphere lamps, taking into account the relationship between the combination shape of the combination atmosphere lamp and the lighting effect, ensuring that the lighting effect is adaptively adjusted according to the combination shape, thereby providing users with a more personalized and comfortable lighting experience; adjusting the initial lighting control parameters according to the scene information of the physical space of the scene where the combination atmosphere lamp is located, to obtain target lighting control parameters, by parsing and utilizing the scene information, ensuring that the lighting effect is more closely matched with the actual environment and user needs, thereby improving user experience: controlling the combination atmosphere lamp for lighting according to the target lighting control parameters, ensuring that the lighting effect of the atmosphere lamp is consistent with expectations, thereby creating an ideal lighting environment for users.

[0188] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0189] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0190] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0191] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for adjusting control parameters of a master-controlled atmosphere light and a slave-controlled atmosphere light, characterized in that: The method comprises: The master-controlled atmosphere lights and the slave-controlled atmosphere lights are traversed by a preset pulse signal method to obtain the position information of the master-controlled atmosphere lights and each slave-controlled atmosphere light in the physical space of the scene and the relative position relationship between the master-controlled atmosphere light and each slave-controlled atmosphere light, wherein the dynamic lighting combination between the master-controlled atmosphere light and each slave-controlled atmosphere light is in a plurality of preset combination shapes; Determine a combined shape of the master atmosphere light and each slave atmosphere light according to the position information, the relative position relationship, and the actual shapes of the master atmosphere light and the slave atmosphere light; According to the combined shape and the relative position relationship after the combination, initial lighting control parameters of the master-controlled atmosphere lamp and each of the slave-controlled atmosphere lamps are acquired; The initial lighting control parameters are adjusted according to the scene information of the scene physical space where the master atmosphere lamp and each slave atmosphere lamp are located to obtain the target lighting control parameters, including: Acquire actual environmental parameters of the scene physical space, wherein the actual environmental parameters include temperature data, brightness data and audio data of the scene physical space; Inputting the actual environment parameters into a pre-built scene recognition model to obtain scene information of the physical space of the scene, wherein the scene recognition model is built based on a decision tree algorithm, and the scene information includes scene type, activity level, and emotional state; According to the scene information, obtaining parameter adjustment weights of the initial lighting control parameters in a preset scene-parameter weight matrix, wherein the preset scene-parameter weight matrix includes a plurality of preset scene information and corresponding parameter adjustment weights, different preset scene information has different scene types and / or activity levels and / or emotional states, and the parameter adjustment weights include color adjustment weights, brightness adjustment weights, and color temperature adjustment weights; Adjusting the initial lighting control parameters according to the color adjustment weight, the brightness adjustment weight, and the color temperature adjustment weight to obtain target lighting control parameters; The master-controlled atmosphere lamp and each slave-controlled atmosphere lamp are controlled to perform lighting according to the target lighting control parameter.

2. The control parameter adjustment method of the master-controlled atmosphere lamp and the slave-controlled atmosphere lamp according to claim 1, characterized in that: The step of inputting the actual environment parameters into a pre-built scene recognition model to obtain scene information of the scene physical space includes: Acquire an initial environmental parameter data set, wherein the initial environmental parameter data set includes multiple environmental parameters and corresponding scene information, and the environmental parameters include temperature parameters, brightness parameters, and audio parameters; Preprocessing the initial environmental parameter data set to obtain a target environmental parameter data set; performing Gini impurity calculation based on the target environmental parameter data set to obtain the Gini impurities of the temperature parameter, brightness parameter, and audio parameter; According to the decision tree algorithm, the environmental parameter with the lowest Gini impurity is used as the root node to construct an initial scene recognition model; According to a preset segmentation ratio, the target environment parameter data set is divided into a training set and a validation set; The initial scene recognition model is trained according to the training set to obtain an intermediate scene recognition model; the intermediate scene recognition model is evaluated according to the validation set to obtain an accuracy rate and a recall rate; Adjusting the intermediate scene recognition model according to the accuracy and recall rate to obtain a scene recognition model; The actual environment parameters are input into the scene recognition model to obtain scene information of the scene physical space.

3. The control parameter adjustment method of the master-controlled atmosphere lamp and the slave-controlled atmosphere lamp according to claim 1, characterized in that: Before traversing the master atmosphere light and the slave atmosphere light by using a preset pulse signal method to obtain the position information of the master atmosphere light and each slave atmosphere light in the physical space of the scene and the relative position relationship between the master atmosphere light and each slave atmosphere light, the method further includes: Get the quantity and shape information of the master-controlled atmosphere lights and slave-controlled atmosphere lights; A preset layout database is queried according to the quantity information and the shape information to obtain recommended layout information, wherein the preset layout database contains layout information of atmosphere lights of different quantities and shapes.

4. The control parameter adjustment method of the master-controlled atmosphere lamp and the slave-controlled atmosphere lamp according to claim 3, characterized in that: The querying of a preset layout database according to the quantity information and the shape information to obtain recommended layout information includes: Querying a preset layout database to obtain a number of initial recommended layout information matching the quantity information and the shape information; Match relevant holidays and / or special events based on current date information; The initial recommended layouts are screened according to the relevant festivals and / or special events to obtain recommended layout information.

5. The control parameter adjustment method of the master-controlled atmosphere lamp and the slave-controlled atmosphere lamp according to claim 3, characterized in that: The control parameter adjustment method further comprises: Calculate the difference between the actual layout information and the recommended layout information of the master control atmosphere light and each slave control atmosphere light; When the difference is greater than a preset difference, performing a difference analysis on the actual layout information and the recommended layout information to obtain location information of the abnormal atmosphere light; According to the position information of the abnormal atmosphere light, the abnormal atmosphere light is controlled to flash to remind the user to adjust the position of the abnormal atmosphere light.

6. The control parameter adjustment method of the master-controlled atmosphere lamp and the slave-controlled atmosphere lamp according to any one of claims 1 to 5, characterized in that: The initial lighting control parameters include: color parameters, color temperature parameters, and brightness parameters of the master-controlled atmosphere lamp and each of the slave-controlled atmosphere lamps.

7. The control parameter adjustment method of the master-controlled atmosphere lamp and the slave-controlled atmosphere lamp according to any one of claims 1 to 5, characterized in that: The master control atmosphere light and the slave control atmosphere light are combined into one of a star shape, a flower shape and a heart shape.

8. A control parameter adjustment system for a master-controlled atmosphere light and a slave-controlled atmosphere light, characterized in that: The system includes: a master atmosphere light, a plurality of slave atmosphere lights, a controller and a sensor, wherein the controller, the master atmosphere light, the plurality of slave atmosphere lights and the sensor are electrically connected, the sensor is used to obtain actual environmental information of the physical space of the scene of the master atmosphere light, and the controller is used to control the master atmosphere light, the plurality of slave atmosphere lights and the sensor to execute the control parameter adjustment method of the master atmosphere light and the slave atmosphere light according to any one of claims 1 to 7.

9. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by the processor, the control parameter adjustment method of the master-controlled atmosphere light and the slave-controlled atmosphere light according to any one of claims 1 to 7 is implemented.