CN117615490A - Control parameter adjusting method and system for master control atmosphere lamp and slave control atmosphere lamp - Google Patents

Control parameter adjusting method and system for master control atmosphere lamp and slave control atmosphere lamp Download PDF

Info

Publication number
CN117615490A
CN117615490A CN202311777459.8A CN202311777459A CN117615490A CN 117615490 A CN117615490 A CN 117615490A CN 202311777459 A CN202311777459 A CN 202311777459A CN 117615490 A CN117615490 A CN 117615490A
Authority
CN
China
Prior art keywords
atmosphere lamp
parameters
control atmosphere
slave
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311777459.8A
Other languages
Chinese (zh)
Inventor
宋磊
叶渊渊
冯英
彭赛龙
吴成杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cononlux Technology Co ltd
Original Assignee
Cononlux Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cononlux Technology Co ltd filed Critical Cononlux Technology Co ltd
Priority to CN202311777459.8A priority Critical patent/CN117615490A/en
Publication of CN117615490A publication Critical patent/CN117615490A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/155Coordinated control of two or more light sources
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention belongs to the technical field of intelligent lighting, solves the problem of poor personalized experience of the traditional combined atmosphere lamp, and provides a control parameter adjusting method of a master control atmosphere lamp and a slave control atmosphere lamp, which comprises the following steps: acquiring position information of a master control atmosphere lamp and each slave control atmosphere lamp in a scene management space, and acquiring a relative position relation between the master control atmosphere lamp and each slave control atmosphere lamp; determining the combined shape of the master control atmosphere lamp and each slave control atmosphere lamp after being combined; combining the scene information and the combined shape of the master control atmosphere lamp and the slave control atmosphere lamp, and adjusting the initial lighting control parameters of the master control atmosphere lamp and the initial lighting control parameters of the slave control atmosphere lamps one by one to obtain target lighting control parameters of the master control atmosphere lamp and target lighting control parameters of the slave control atmosphere lamps; and controlling the master control atmosphere lamp and each slave control atmosphere lamp to work. According to the invention, the atmosphere lamp is regulated by the control parameters to perform illumination control, so that better personalized experience is given to the user.

Description

Control parameter adjusting method and system for master control atmosphere lamp and slave control atmosphere lamp
The invention relates to an intelligent debugging method and system for a self-adaptive scene of a combined atmosphere lamp, which are applied for patent application with application number 202311495642.9 and application date 2023, 11, 10 and are named as' split application of the invention.
Technical Field
The invention relates to the technical field of intelligent lighting, in particular to a control parameter adjusting method and system for a master control atmosphere lamp and a slave control atmosphere lamp.
Background
The combined atmosphere lamp is a unique lighting solution, which allows a user to combine different atmosphere lamp units according to own preference and needs, and is generally composed of a plurality of independent lamp units, the lamp units can be used independently or combined together, and due to the modularized characteristic, the user can adjust the combination mode of the lamps according to own needs and preference, so as to create different lighting effects and styles, and the combined atmosphere lamp can provide basic lighting functions and different atmosphere effects such as warmth, romance, liveness and the like according to the needs of the user.
In the prior art, a combined atmosphere lamp may only provide limited lamp effect playing instructions, so that flexibility of a user in selecting a lamp effect is limited, for example, in the scheme of the patent with publication number of CN116383915a, a method, a device, equipment and a medium for controlling the lamp effect of a spliced lamp are disclosed, by abstracting space position layout of a lamp body unit of the spliced lamp into a space topology map, a user can modify a motion reference point corresponding to a motion flow of the lamp effect as required, a new lamp effect is flexibly defined, functions of a spliced lamp product are expanded, and a lamp effect self-defining capability is opened for the user, and user experience of the spliced lamp is improved. Adjusting the lighting parameters according to the scene information may create a more vivid and interesting lighting effect, which is very important for creating a specific lighting atmosphere or meeting specific lighting requirements.
In addition, publication number CN114666396a discloses a node control method, a master control node, and a system architecture thereof includes: a master control node and a plurality of nodes; the nodes of the node system can be classified into a plurality of grades, the nodes in communication connection with the main control node are primary nodes, the nodes in communication connection with the primary nodes are secondary nodes, the nodes in communication connection with the secondary nodes are tertiary nodes, and the like, so that the nodes can be classified into a plurality of grades. The node system can be a system formed by splicing any plurality of nodes, and communication interaction and data transmission can be realized among the connected nodes, for example, the system can be a spliced lamp system. Taking a spliced lamp system as an example, the spliced lamp system comprises a main control node and a plurality of lamp nodes, wherein each lamp node can be any structural shape in terms of space structure, such as a hexagon, and can be any other shape, such as a plane graph or a three-dimensional graph of triangle, diamond, square, strip, sphere and the like. These can support and adapt to application scenarios of short-distance, multi-node and node hot plug, the system can also be a spliced lamp system, which comprises a master control node and a plurality of lamp nodes, each lamp node can be of any structural shape in terms of spatial structure, the patent mainly focuses on communication and data transmission between the nodes and the master control node, but does not explicitly mention how to adjust illumination effects according to different combination shapes, although the patent mentions a sensor module for sensing triggering of a user or acquiring environmental parameters, but does not explicitly mention how to adaptively debug illumination parameters according to these parameters or scene information.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method and a system for adjusting control parameters of a master control atmosphere lamp and a slave control atmosphere lamp, so as to solve the technical problem that the combined atmosphere lamp is not personalized enough in the prior art.
In a first aspect, the present invention provides a method for adjusting control parameters of a master control atmosphere lamp and a slave control atmosphere lamp, the method comprising:
acquiring position information of a master control atmosphere lamp and each slave control atmosphere lamp in a scene management space and relative position relation between the master control atmosphere lamp and each slave control atmosphere lamp, wherein dynamic lighting combination between the master control atmosphere lamp and each slave control atmosphere lamp is in a plurality of preset combination shapes, and the master control atmosphere lamp is communicated with each slave control atmosphere lamp through pulse signals;
acquiring initial lighting control parameters of the master control atmosphere lamp and each slave control atmosphere lamp;
determining a combined shape of the master control atmosphere lamp and each slave control atmosphere lamp according to the position information, the relative position relation and the actual shapes of the master control atmosphere lamp and the slave control atmosphere lamp;
combining the scene information of the master control atmosphere lamp, the scene information of the slave control atmosphere lamp and the combined shape, and adjusting the initial lighting control parameters of the master control atmosphere lamp and the initial lighting control parameters of the slave control atmosphere lamps one by one to obtain target lighting control parameters of the master control atmosphere lamp and target lighting control parameters of the slave control atmosphere lamps;
And controlling the master control atmosphere lamp and each slave control atmosphere lamp to work according to the target lighting control parameters of the master control atmosphere lamp and the target lighting control parameters of each slave control atmosphere lamp.
Preferably, the step of adjusting the initial lighting control parameters of the master control atmosphere lamp and the initial lighting control parameters of the slave control atmosphere lamps one by one to obtain the target lighting control parameters of the master control atmosphere lamp and the target lighting control parameters of the slave control atmosphere lamps in combination with the scene information of the master control atmosphere lamp and the slave control atmosphere lamp and the combination shape includes:
acquiring actual environment parameters of the scene physical space, wherein the actual environment parameters comprise temperature data, brightness data and audio data of the scene physical space;
inputting the actual environment parameters into a pre-constructed scene recognition model to acquire scene information of the scene physical space, wherein the scene recognition model is constructed based on a decision tree algorithm, and the scene information comprises scene types, activity levels and emotion states;
acquiring parameter adjustment weights of initial lighting control parameters in a preset scene-parameter weight matrix according to the scene information, wherein the preset scene-parameter weight matrix comprises a plurality of preset scene information and corresponding parameter adjustment weights, scene types and/or activity levels and/or emotion states of different preset scene information are different, and the parameter adjustment weights comprise color adjustment weights, brightness adjustment weights and color temperature adjustment weights;
And 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.
Preferably, the step of inputting the actual environmental parameters into a pre-constructed scene recognition model to obtain scene information of the scene physical space includes:
acquiring an initial environmental parameter data set, wherein the initial environmental parameter data set comprises a plurality of environmental parameters and corresponding scene information, and the environmental parameters comprise temperature parameters, brightness parameters and audio parameters;
preprocessing the initial environmental parameter data set to obtain a target environmental parameter data set; performing the base non-purity calculation according to the target environment parameter data set to obtain the base non-purity of the temperature parameter, the brightness parameter and the audio parameter;
according to a decision tree algorithm, taking the environment parameter with the lowest non-purity of the kene as a root node, and constructing an initial scene recognition model;
dividing the target environment parameter data set into a training set and a verification set according to a preset dividing proportion;
training the initial scene recognition model according to the training set to obtain an intermediate scene recognition model; evaluating the intermediate scene recognition model according to the verification set to obtain accuracy and recall rate;
Adjusting the intermediate scene recognition model according to the accuracy rate and the recall rate to obtain a scene recognition model;
inputting the actual environment parameters into the scene recognition model to acquire scene information of the scene physical space.
Preferably, before the adjusting method for control parameters combines the scene information of the master control atmosphere lamp and the slave control atmosphere lamp with the combined shape, adjusts the initial lighting control parameters of the master control atmosphere lamp and the initial lighting control parameters of the slave control atmosphere lamps one by one to obtain the target lighting control parameters of the master control atmosphere lamp and the target lighting control parameters of the slave control atmosphere lamps, the adjusting method further includes:
acquiring the quantity information and the shape information of the master control atmosphere lamp and the slave control atmosphere lamp;
and inquiring a preset layout database according to the quantity information and the shape information to obtain recommended layout information, wherein the preset layout database contains layout information of atmosphere lamps with different quantities and shapes.
Preferably, the querying a preset layout database according to the quantity information and the shape information to obtain recommended layout information includes:
inquiring a preset layout database, and acquiring a plurality of initial recommended layout information matched with the quantity information and the preset shape;
Matching related holidays and/or special events according to the current date information;
and screening each initial recommended layout according to the related holidays and/or special events to obtain recommended layout information.
Preferably, the control parameter adjustment method further includes:
calculating the difference degree of the actual layout information and the recommended layout information;
when the difference degree is larger than a preset difference degree, performing difference analysis on the actual layout information and the recommended layout information to obtain the position information of the abnormal atmosphere lamp;
and controlling the abnormal atmosphere lamp to flash according to the position information of the abnormal atmosphere lamp so as to remind a user to adjust the position of the abnormal atmosphere lamp.
Preferably, the initial lighting control parameters include: the master control atmosphere lamp and each slave control atmosphere lamp are provided with color parameters, color temperature parameters and brightness parameters.
Preferably, the master control atmosphere lamp and the slave control atmosphere lamp are combined to form one or more of a star shape, a petal shape, a flower shape and a heart shape.
In a second aspect, the invention provides a control parameter adjusting system for a master control atmosphere lamp and a slave control atmosphere lamp, the system comprising: the system comprises a master control atmosphere lamp, a plurality of slave control atmosphere lamps, a controller and a sensor, wherein the controller, the master control atmosphere lamp, the plurality of slave control atmosphere lamps and the sensor are electrically connected, the sensor is used for acquiring actual environment information of a scene physical space of the master control atmosphere lamp, and the controller is used for controlling the combined atmosphere lamp and the sensor to execute the control parameter adjusting method of the master control atmosphere lamp and the slave control atmosphere lamp according to any one of claims 1 to 8.
In a third aspect, the present invention provides a storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method of controlling parameter adjustment of a master atmosphere lamp and a slave atmosphere lamp as described in any one of the preceding claims.
According to the control parameter adjusting method and system for the master control atmosphere lamp and the slave control atmosphere lamp, which are provided by the embodiment of the invention, the illumination effect of the atmosphere lamp is ensured to be consistent with the expected by adjusting the control parameter, and an ideal illumination environment is created for a user.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described, and it is within the scope of the present invention to obtain other drawings according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a combined atmosphere lamp according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an intelligent debugging system for a combined atmosphere lamp adaptive scene according to an embodiment of the invention.
FIG. 3 is a flow chart of the method for obtaining the combined shape according to the embodiment of the invention.
Fig. 4a is a schematic view of a flower-shaped combined atmosphere lamp according to an embodiment of the present invention.
Fig. 4b is a schematic view of a star-shaped combined atmosphere lamp according to an embodiment of the invention.
Fig. 4c is a schematic view of a heart-shaped combined atmosphere lamp according to an embodiment of the invention.
Fig. 5 is a flowchart illustrating an embodiment of the present invention for obtaining initial lighting control parameters.
Fig. 6 is a flowchart illustrating a process for obtaining a target lighting control parameter according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an intelligent debugging system for a combined atmosphere lamp adaptive scene according to an embodiment of the invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Example 1
The embodiment of the invention provides an intelligent debugging method for a self-adaptive scene of a combined atmosphere lamp, wherein the combined atmosphere lamp comprises at least one master control atmosphere lamp and a plurality of slave control atmosphere lamps, the master control atmosphere lamp and the slave control atmosphere lamps are electrically connected, the combined atmosphere lamp is in a plurality of preset combined shapes through dynamic illumination combination between the master control atmosphere lamp and the slave control atmosphere lamps, the master control atmosphere lamp and the slave control atmosphere lamp are respectively provided with the preset shapes, and the preset shapes of the master control atmosphere lamp and the slave control atmosphere lamp can be the same or different so as to be combined into different shapes; in an embodiment, referring to fig. 1, the combined atmosphere lamp includes a plurality of atmosphere lamps, and the master atmosphere lamp and the slave atmosphere lamp are all regular hexagons;
referring to fig. 2, the method includes:
s1, traversing the master control atmosphere lamp and the slave control atmosphere lamp by adopting a preset pulse signal mode, and acquiring actual layout information of the master control atmosphere lamp and each slave control atmosphere lamp in a scene management space, wherein the actual layout information comprises position information of the master control atmosphere lamp and each slave control atmosphere lamp in the scene management space and relative position relation between the master control atmosphere lamp and each slave control atmosphere lamp;
Specifically, a preset pulse signal is generated by using the master control atmosphere lamp, the pulse signal can be electromagnetic wave with specific frequency and intensity, or a specific mode of light pulse, after the master control atmosphere lamp sends the preset pulse signal, the slave control atmosphere lamp is in telecommunication connection with the slave control atmosphere lamp due to electric connection between the master control atmosphere lamp and the slave control atmosphere lamp, all the slave control atmosphere lamps in the combined atmosphere lamp can receive the signal, and the electromagnetic wave or the light pulse can be influenced by the distance in the space, so that the signal intensity and the delay received by the slave control atmosphere lamp at different positions are different, the slave control atmosphere lamp can send a feedback signal to the master control atmosphere lamp after receiving the pulse signal, wherein the intensity and the delay information of the received pulse signal are included, the master control atmosphere lamp collects the feedback signals of all the slave control atmosphere lamps, by analyzing the feedback signals, the relative distance between each slave control atmosphere lamp and the master control atmosphere lamp can be calculated, according to the relative distance between each slave control atmosphere lamp and the master control atmosphere lamp, the actual layout information of the combined atmosphere lamp in the scene management space can be generated by combining the relative position relation between the slave control atmosphere lamps, the layout information of the combined atmosphere lamp can be obtained in real time in a preset pulse signal mode, no additional hardware or external measuring tool is needed, the propagation characteristics of electromagnetic waves or light pulses are utilized, the relative distance between each slave control atmosphere lamp and the master control atmosphere lamp can be accurately calculated, so that the accuracy of the layout information is ensured, when the layout of the atmosphere lamps is changed, the new layout information can be obtained by only re-transmitting pulse signals and analyzing the feedback information, when the layout of the atmosphere lamp changes, the new layout information can be acquired by only resending the pulse signal and analyzing the feedback information, and the adaptive acquisition of the layout information is realized.
In an embodiment, the preset shape is a regular polygon, the side lengths of the master control atmosphere lamp and all the slave control atmosphere lamps are the same, each side of the master control atmosphere lamp and each side of the slave control atmosphere lamp are provided with a connection interface, the slave control atmosphere lamp electrically connected with the master control atmosphere lamp is a first slave control atmosphere lamp, the slave control atmosphere lamp electrically connected with the first slave control atmosphere lamp is a second slave control atmosphere lamp, and the slave control atmosphere lamp connected with the i-1 slave control atmosphere lamp is an i-th atmosphere lamp, wherein i is a positive integer greater than or equal to 2;
specifically, in this embodiment, the preset shape is a regular polygon, which means that each atmosphere lamp (whether master or slave) has a regular shape, such as a square, a regular triangle, etc. Such a design allows each atmosphere lamp to be connected evenly with the other atmosphere lamps, ensuring stability and consistency of the connection, and the master atmosphere lamp and all the slave atmosphere lamps are identical in side length, which ensures that even with different preset shapes in the combined atmosphere lamp they have identical side lengths, which means that they are physically completely interchanged, which provides the user with a greater flexibility of layout, since they can freely rearrange the lamps without fear of mismatch of shape and size, and the user can add more atmosphere lamps to their layout at any time without having to worry about whether the new lamp is compatible with the existing lamp; in a specific embodiment, the connection interface is arranged at the midpoint of each side of the atmosphere lamp, so that the connection interface is convenient to connect with other atmosphere lamps;
The step of traversing the master control atmosphere lamp and the slave control atmosphere lamp by adopting a preset pulse signal mode to acquire actual layout information of the master control atmosphere lamp and each slave control atmosphere lamp in a scene space comprises the following steps:
s11, controlling each connection interface of the master control atmosphere lamp to send preset pulse signals one by one;
specifically, the master control atmosphere lamp sends preset pulse signals one by one through each connection interface of the master control atmosphere lamp, the master control atmosphere lamp is used for determining which slave control atmosphere lamps are connected with the master control atmosphere lamp and obtaining position information of the slave control atmosphere lamps, and the connection relation between each slave control atmosphere lamp and the master control atmosphere lamp can be accurately identified by sending the pulse signals one by one. If signals are transmitted simultaneously, signal interference or confusion can be caused, so that the position of each slave atmosphere lamp cannot be accurately determined; and, the electronic device may generate interference when transmitting or receiving a signal. The method has the advantages that only one slave control atmosphere lamp can respond one by one at a time, so that signal interference caused by simultaneous response of a plurality of devices is avoided, and the preset pulse signals are sent one by one to ensure that the system can accurately and efficiently acquire the connection information of each slave control atmosphere lamp, so that a reliable data base is provided for subsequent layout analysis and illumination effect adjustment;
S12, responding to the preset pulse signals, controlling the first slave control atmosphere lamp to send a confirmation pulse signal to the master control atmosphere lamp and sending preset pulse signals to the second slave control atmosphere lamp one by one through each connection interface;
s13, responding to the preset pulse signals, controlling the second slave control atmosphere lamp to send a confirmation pulse signal to the master control atmosphere lamp, and sending the preset pulse signal to a third slave control atmosphere lamp one by one through each connection interface;
……
s14, responding to the preset pulse signals, controlling the i-1 slave control atmosphere lamp to send a confirmation pulse signal to the master control atmosphere lamp, and sending the preset pulse signal to the i-th slave control atmosphere lamp one by one through each connection interface, and the like until all master control atmosphere lamps acquire pulse confirmation signals of all slave control atmosphere lamps, wherein the confirmation pulse signals comprise the receiving time of the preset pulse signals and unique identifiers of the first slave control atmosphere lamps;
specifically, the master control atmosphere lamp sends a preset pulse signal to a first slave control atmosphere lamp directly connected with the master control atmosphere lamp, and after the first slave control atmosphere lamp receives the signal, the master control atmosphere lamp firstly sends a confirmation pulse signal which comprises the receiving time of the preset pulse signal and a unique identifier of the first slave control atmosphere lamp; then, the first slave controlled atmosphere lamp sends preset pulse signals to other slave controlled atmosphere lamps (namely the second slave controlled atmosphere lamp) one by one through each connection interface of the first slave controlled atmosphere lamp;
Then, the second slave atmosphere lamp receives the preset pulse signal from the first slave atmosphere lamp, the second slave atmosphere lamp firstly transmits a confirmation pulse signal to the master atmosphere lamp, the confirmation signal comprises the receiving time of the preset pulse signal and the unique identifier of the second slave atmosphere lamp, then the second slave atmosphere lamp continuously transmits the preset pulse signal to other slave atmosphere lamps (namely the third slave atmosphere lamp) one by one through each connection interface, the process is continuously carried out, each slave atmosphere lamp transmits the confirmation pulse signal to the master atmosphere lamp after receiving the preset pulse signal, and continuously transmits the preset pulse signal to the next slave atmosphere lamp until all the slave atmosphere lamps are traversed; when the master control atmosphere lamp receives the confirmation pulse signals of all the slave control atmosphere lamps, the process is ended, and the master control atmosphere lamp acquires the positions and the identification information of all the slave control atmosphere lamps; by means of the progressive signaling and confirming mechanism, the system can accurately acquire the position and identification information of each slave atmosphere lamp, and even if some slave atmosphere lamps do not respond correctly or fail, the process can still continue, because each slave atmosphere lamp independently conducts signaling and confirmation, each slave atmosphere lamp responds immediately after receiving a preset pulse signal, and the system can acquire layout information of the combined atmosphere lamp in real time.
S15, acquiring the shapes and the connection relations of all slave atmosphere lamps according to all the confirmation pulse signals;
the master control atmosphere lamp can determine the shapes of all slave control atmosphere lamps and the connection relation among the slave control atmosphere lamps by analyzing all the confirmation pulse signals, the unique identifiers of the slave control atmosphere lamps or the master control atmosphere lamps with different shapes belong to different ranges, the shapes of the slave control atmosphere lamps can be determined according to the range of the unique identifiers, and the connection relation of the combined atmosphere lamps can be determined by confirming the receiving time of the pulse signals;
specifically, the step S15 includes:
s151, creating an empty connection matrix, wherein the size of the connection matrix is n, n is the number of slave atmosphere lamps, and each element of the matrix represents the connection state between two slave atmosphere lamps;
s152, determining the connection state of each slave control atmosphere lamp and the slave control atmosphere lamp or the master control atmosphere lamp according to the receiving time of all the preset pulse signals, and updating the connection matrix;
s154, determining the neighbor of each slave control atmosphere lamp according to the connection list, and determining the connection relation between the slave control atmosphere lamps by recursively traversing the connection list;
S155, determining the shape of each slave control atmosphere lamp according to the unique identifiers of all the preset pulse signals;
by using the connection matrix, the connection relation between the slave atmosphere lamps can be flexibly managed and updated. The method provides a strong foundation for subsequent lighting control or other related operations, and by recursively traversing the connection list, the system can process complex connection relations, ensure that the connection relations between the slave atmosphere lamps can be accurately acquired under various configurations, the whole process is automatic, and the configuration flow is greatly simplified, the possibility of human errors is reduced, and the configuration accuracy and efficiency are improved from the acquisition of the connection states of the slave atmosphere lamps to the determination of the shapes of the slave atmosphere lamps.
S16, acquiring actual layout information of the combined atmosphere lamp in a physical space according to the shapes and the connection relations of all the slave atmosphere lamps.
Specifically, according to the shapes and connection relations of all slave atmosphere lamps, the actual layout information of the combined atmosphere lamps in a physical space can be obtained, and in a virtual space, a master atmosphere lamp is firstly placed as a reference point, and the appropriate position is reserved through the shape atmosphere of the master atmosphere lamp; subsequently, gradually placing each slave control atmosphere lamp from the master control atmosphere lamp by acquiring the connection relation in the step S15, thereby acquiring the actual layout information of the combined atmosphere lamp in the physical space; through the steps, the layout of the combined atmosphere lamp in the physical space can be ensured to be attractive and practical, and meanwhile, the shape and the connection relation of each slave atmosphere lamp are considered;
S2, acquiring the combined shape of the combined atmosphere lamp according to the actual layout information;
specifically, the actual layout information comprises the position relation between the master control atmosphere lamp and all the slave control atmosphere lamps, and the combined shape of the combined atmosphere lamp can be obtained according to the specific actual shapes of the master control atmosphere lamp and all the slave control atmosphere lamps;
preferably, referring to fig. 3, the obtaining, according to the actual layout information, the combined shape of the combined atmosphere lamp further includes:
s21, acquiring the preset shapes of the master control atmosphere lamp and each slave control atmosphere lamp;
the aim of this step is to obtain the preset shape of each atmosphere lamp, reading the shape of each atmosphere lamp from the internal memory or external database of the master atmosphere lamp according to the unique identifier of each atmosphere lamp;
s22, drawing the shape of each atmosphere lamp according to the relative position and the shape of each slave atmosphere lamp by taking the position of the master atmosphere lamp as a starting point, and obtaining an actual layout image of the combined atmosphere lamp;
the aim of the step is to draw the actual layout of the combined atmosphere lamp according to the relative position and shape of each atmosphere lamp on a virtual plane or three-dimensional space, set the position of the master atmosphere lamp as an origin or reference point, draw the slave atmosphere lamps one by one on the plane or three-dimensional space according to the relative position of the slave atmosphere lamp and the master atmosphere lamp and the shape of the slave atmosphere lamp, and repeat the above process until all the atmosphere lamps are drawn on the image;
S23, acquiring the combined shape of the combined atmosphere lamp according to the actual layout image.
Specifically, analyzing an actual layout image, identifying an external contour or boundary of the combined atmosphere lamp, and determining the overall shape of the combined atmosphere lamp by using an existing contour identification algorithm, such as a Sobel operator, a Prewitt operator, a Canny operator and the like, so as to obtain the combined shape;
s3, acquiring 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 comprise color parameters, color temperature parameters and brightness parameters of the master control atmosphere lamp and each slave control atmosphere lamp;
specifically, the purpose of this step is to set initial lighting control parameters for each master and slave atmosphere lamps according to the overall shape and actual layout information of the combined atmosphere lamps, which include color parameters, color temperature parameters and brightness parameters, and the combined shape of the combined atmosphere lamps has a great influence on the lighting effect. Different combined shapes create different visual and emotional experiences for the space, thus requiring corresponding lighting effects to enhance or supplement these experiences;
For example, but not limited to, as shown in fig. 4a, when the combined shape is a flower shape, the color parameters may be selected to be warm red, pink or yellow to simulate the color of a real flower, create a warm and romantic atmosphere for the space, and the color temperature parameters may be selected to be warmer to make the light softer, the brightness parameters may be set to be brighter in the center of the combined atmosphere lamp, i.e. the pistil part, and the edges, i.e. the petal parts, may be darker to simulate the stereoscopic impression of the real flower;
as shown in fig. 4b, when the combination shape is a star, the color parameters may select a cool hue, such as blue or white, to simulate a star in the night; the color temperature parameter can select a colder color temperature, so that the light is clearer; brightness parameter: the center of the combined atmosphere lamp can be set to be darker, and the edge of the combined atmosphere lamp (namely the pointed point of the star) can be set to be brighter, so as to simulate the flickering effect of the star in the night sky;
FIG. 4c shows that when the combination shape is heart-shaped, the color parameters can select red or pink to convey the feeling of love and warmth, the color temperature parameters can select warmer color temperature, so that the light is softer and the whole of the warmth brightness parameters can be set to uniform brightness, and the heart shape is more obvious and prominent, thereby creating a romantic atmosphere;
After the initial lighting control parameters are obtained according to the combined shape, the initial lighting control parameters can be distributed to the master control atmosphere lamp and all the slave control atmosphere lamps of the combined atmosphere lamp through the actual layout information;
the combined shape can also be other shapes, and as each atmosphere lamp of the combined atmosphere lamp is regular polygon and the change of each atmosphere lamp is the same, a user can combine various shapes through a plurality of atmosphere lamps, for example, the sun, a regular hexagon master control atmosphere lamp is used in the center, and a regular triangle slave control atmosphere lamp is connected to each side of the regular hexagon to simulate the rays of the sun; the shape can be expanded and modified as needed to create more combined shapes. The aligned edges of regular polygons make them well suited for combining, creating a wide variety of interesting patterns.
Preferably, the step of obtaining the initial lighting control parameters of the combined atmosphere lamp according to the combined shape and the actual layout information includes:
s31, obtaining geometric features of each preset combination shape in the combination shape and a preset shape library, wherein the preset shape library comprises a plurality of different preset combination shapes, and the preset combination shapes comprise a plurality of combination areas;
Specifically, firstly, the geometric features of the combined shapes of the combined atmosphere lamp are obtained, meanwhile, the geometric features of each preset combined shape are obtained from a preset shape library, the preset shape library is a predefined database, a plurality of different preset combined shapes are contained in the preset shape library, each preset combined shape is composed of a plurality of combined areas, for example, a sun shape comprises a central area (representing a sun core) and a ray area (representing sun rays), a flower shape comprises a flower area and a petal area, and the geometric features comprise but are not limited to: area, circumference, symmetry, maximum and minimum diameter, angular distribution, convexity, etc.; the extraction of geometric features can be realized by the existing image processing technology;
s32, acquiring the combination shape and the feature vector of each preset combination shape according to the geometric features;
in this step, the geometric features of the combination shape and each preset combination shape are converted into feature vectors. The feature vector is a mathematical representation that can convert geometric features of a shape into a set of numbers that can be used in subsequent calculations and analyses, because different geometric features may have different dimensions and ranges of values, the feature values need to be normalized to have a mean value of 0 and a standard deviation of 1, by converting the geometric features into feature vectors that can use the distance or similarity between the vectors to quickly compare and match different shapes, the feature vectors provide a simplified representation of the shape that can greatly reduce the computational complexity in subsequent steps, and by using the feature vectors, can more accurately match and compare different shapes, thereby improving the matching accuracy of the system.
S33, calculating the similarity of the combined shape and each preset combined shape according to a preset similarity calculation method and the feature vector;
specifically, the preset similarity calculation method includes euclidean distance, cosine similarity, manhattan distance, and the like, and in a specific embodiment, the preset similarity calculation method is cosine similarity, because the cosine similarity is more effective on high-order data and insensitive to the length of the vector;
the cosine similarity calculation method comprises the following steps:
wherein A and B are respectively characteristic vectors of a combined shape and the preset shape, A.B is a dot product of A and B, and A and B are respectively a module of a vector A and a module of a vector B; by calculating the similarity of the feature vectors, the preset combination shape most similar to the given combination shape can be quickly found, and different shapes can be more accurately compared by using the feature vectors and the similarity calculation method, so that the matching accuracy is improved.
S34, taking a preset combination shape with similarity larger than a preset similarity threshold value as a target combination shape;
specifically, a preset combined shape that is highly similar to the current combined shape is selected by comparing the calculated similarity to a preset similarity threshold. Only if the similarity of a certain preset combination shape is greater than the threshold value, the preset combination shape is selected as a target combination shape, and in a specific embodiment, the preset similarity threshold value is adjusted according to actual conditions;
By setting the similarity threshold, the system can ensure that only preset combination shapes which are highly similar to the current combination shape are selected, so that the matching accuracy is improved, a user does not need to manually select from a large number of preset combination shapes, and the system can automatically recommend the preset combination shapes which are most similar to the current combination shape for the user, so that the user experience is improved.
S35, acquiring preset illumination control parameters according to the target combination shape, wherein the preset illumination control parameters comprise color parameters, brightness parameters and color temperature parameters of each combination area in the target combination shape;
and acquiring corresponding illumination control parameters from a preset database according to the selected target combination shape. These parameters are preset in order to ensure that the combined atmosphere lamp can produce an optimal lighting effect in a specific combined shape. Each preset combination shape has corresponding illumination control parameters, and the parameters comprise the color, the brightness and the 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 unique lighting effect, thereby meeting the personalized needs of the user.
S36, acquiring color parameters, color temperature parameters and brightness parameters of the master control atmosphere lamp and each slave control atmosphere lamp according to the actual layout information and the preset lighting control parameters so as to obtain the initial lighting control parameters.
Specifically, the preset lighting control parameters correspond to the target combination shape, and include color parameters, brightness parameters and color temperature parameters of each combination area in the target combination shape, through this step, the colors, color temperatures and brightness parameters of the master control atmosphere lamp and all slave control atmosphere lamps can be determined according to the actual combination atmosphere lamp layout and the preset lighting control parameters, so that it is ensured that the combination atmosphere lamps can generate expected lighting effects under the actual layout conditions, and the actual position and direction of each atmosphere lamp in the combination are determined according to the actual layout information; and setting the color parameter, the color temperature parameter and the brightness parameter of each atmosphere lamp according to the preset lighting control parameters through the actual positions and the directions, thereby obtaining the initial lighting control parameters.
Preferably, referring to fig. 5, the step of obtaining the color parameter, the color temperature parameter, and the brightness parameter of the master control atmosphere lamp and each slave control atmosphere lamp according to the actual layout information and the preset lighting control parameters to obtain the initial lighting control parameters includes:
S361, acquiring a first center position of a master control atmosphere lamp or a slave control atmosphere lamp with the smallest straight line distance from the geometric center of the combined atmosphere lamp according to the actual layout information;
in order to ensure uniformity and harmony of the overall lighting effect, it is first necessary to determine the geometric center of the combined atmosphere lamp, by calculating the average of the coordinates of all atmosphere lamps, and then find the atmosphere lamp closest to this center, which will be the reference point;
s362, acquiring a second center position according to the geometric center of the target combination shape;
similar to S361, but this step is to determine a center for the preset target combined shape, calculate the average of the coordinates of all the combined areas of the target combined shape, and obtain the second center position.
S363, calculating a first distance and a first direction of each atmosphere lamp and the first center position in the combined atmosphere lamp;
specifically, to know the relative position of each mood light in the combination, it is necessary to calculate their distance and direction from the first center position, and the Euclidean distance formula is used to calculate the distance of each mood light from the first center position. The direction is calculated using vector operations or trigonometric functions.
S364, calculating a second distance and a second direction of each combination area in the target combination shape and the second center position;
similar to S363, this step is to determine the relative position for each combined region of the preset target combined shape, and also calculate the distance and direction using euclidean distance formulas and vector operations or trigonometric functions.
S365, establishing a mapping relation between each atmosphere lamp and each combined area in the combined atmosphere lamps according to the first distance, the first direction, the second distance and the second direction;
in order to apply the preset lighting parameters to the actual combined atmosphere lamp, a mapping relationship between the actual atmosphere lamp and the target combined shape area needs to be established, the distances and directions obtained in S353 and S354 are compared, and a combined area which is most matched with each atmosphere lamp is found for each atmosphere lamp, so that the mapping relationship is established.
S366, according to the mapping relation, obtaining color parameters, color temperature parameters and brightness parameters of the master control atmosphere lamp and each slave control atmosphere lamp so as to obtain the initial lighting control parameters.
Finally, applying preset lighting parameters for each atmosphere lamp according to the mapping relation established in the step S365;
In this embodiment, even if the actual combined atmosphere lamp is composed of different numbers or shapes of atmosphere lamps, the illumination parameters can be automatically adjusted according to the target combined shape to achieve the optimal illumination effect; since the solution of the present embodiment depends not only on the number of atmosphere lamps, but also on the relative position and direction of the atmosphere lamps and the geometric center, it can adapt to various different actual layouts, which means that even if a user tries to simulate the same target combination shape using different numbers of atmosphere lamps, the solution can provide a consistent lighting effect, and by establishing a mapping relationship between the atmosphere lamps and the target combination area, the technical solution ensures that the lighting effect under different actual layouts is consistent with the expected effect of the target combination shape.
For example, assuming that the target combined shape is a flower, having a central pistil and six petals, wherein the pistil portion may be constituted by a regular hexagonal master atmosphere lamp and the petal portion by six slave atmosphere lamps, the relative positions and directions of the 7 atmosphere lamps and the geometric center are first identified. The system automatically adjusts the lighting parameters of each atmosphere lamp through the mapping relation with the preset flower shape so as to match the lighting effect of the target flower shape;
However, the stamen part can also consist of six regular triangle slave control atmosphere lamps, and the petal part also is the same, and the system automatically adjusts the illumination parameters of each atmosphere lamp through the mapping relation with the preset flower shape to enable the illumination parameters to be matched with the illumination effect of the target flower shape even though the atmosphere lamps with different numbers and shapes are used at this time;
in both examples, the technical solution ensures that the lighting effect corresponds to the shape of the target flower, although the user uses different numbers and shapes of atmosphere lamps. This is because the solution does not depend solely on the number of atmosphere lamps, but rather on their relative position and orientation to the geometrical centre. This provides a consistent user experience for the user, regardless of the different number or shape of atmosphere lamps used.
S4, adjusting the initial lighting control parameters according to scene information of a scene physical space where the combined atmosphere lamp is located so as to obtain target lighting control parameters;
specifically, the core of this step is to optimize and adjust the lighting effect of the atmosphere lamp according to the actual scene information, where the scene information may include the light intensity of the scene physical space, the time, the color scheme of the scene physical space, the occupancy, if the room is already sufficiently light, it may be necessary to dim the ambient lighting or adjust its color to supplement the existing light, the color in the scene physical space decoration may affect how the ambient lighting should be adjusted to supplement or compare the existing color scheme, the occupancy, i.e., the number of people in the scene physical space, and when the number of people is greater than the preset number, the brightness may be adjusted, and when the number of people is lower, the luminance is adjusted;
In an embodiment, the scene information is derived based on actual environmental parameters including temperature data, brightness data and audio data of the physical space of the scene, and the system adjusts initial lighting control parameters of the atmosphere lamp based on analysis of the scene information. For example, if the scene physical space is dark, the luminance parameter may increase; if the dominant hue 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, a user can obtain more personalized lighting effects, and the specific requirements and favorites of the user are met; the brightness can be intelligently adjusted according to the actual illumination requirement, so that energy is saved. The user no longer needs to manually adjust the settings of each lamp so that the lighting experience is more seamless and intelligent.
Preferably, referring to fig. 6, the step of adjusting the initial lighting control parameter according to the scene information of the scene physical space where the combined atmosphere lamp is located to obtain the target lighting control parameter includes:
s41, acquiring actual environment parameters of the scene physical space, wherein the actual environment parameters comprise temperature data, brightness data and audio data of the scene physical space; by acquiring the environment parameters in real time, the system can more accurately know the current illumination environment and provide basic data for subsequent scene recognition and illumination adjustment.
Actual environmental parameters of the scene physical space, such as temperature, brightness and audio data, are collected, which can be acquired by various sensors, such as temperature sensors, light sensors, microphones, etc.
S42, inputting the actual environment parameters into a pre-constructed scene recognition model to acquire scene information of the scene physical space, wherein the scene recognition model is constructed based on a decision tree algorithm, and the scene information comprises scene types, activity levels and emotion states;
in this step, the actual environmental parameters are input into a scene recognition model based on a decision tree algorithm. The model can judge current scene information such as scene types (such as reading, resting and gathering), activity levels (such as silence and liveness), emotion states (such as relaxation and tension) and the like according to input parameters, and the decision tree is a supervised learning algorithm and is mainly used for classifying problems. The system can automatically and quickly identify scene information of scene management space without manual intervention by using the decision tree model, and can well adapt to different lighting environments and user demands due to decision made by the decision tree model based on the actual environment parameters, and the system can provide more personalized lighting experience for users through the identified scene information, for example, when the users are identified to be reading, the system can provide softer and concentrated lighting effect.
Preferably, the step of inputting the actual environmental parameters into a pre-constructed scene recognition model to obtain scene information of the scene physical space includes:
s421, acquiring an initial environment parameter data set, wherein the initial environment parameter data set comprises a plurality of environment parameters and corresponding scene information, and the environment parameters comprise temperature parameters, brightness parameters and audio parameters;
a data set comprising a plurality of environmental parameters is first collected. These parameters may come from different scene physical spaces and scenes, where each piece of data contains temperature, brightness, and audio parameters, as well as corresponding scene information.
S422, preprocessing the initial environmental parameter data set to obtain a target environmental parameter data set;
data preprocessing is a key step in machine learning, which may include removing outliers, filling missing values, normalizing or normalizing data, etc., to ensure quality and consistency of the data set;
s423, performing the base non-purity calculation according to the target environment parameter data set to obtain the base non-purity of the temperature parameter, the brightness parameter and the audio parameter;
in decision tree algorithms, the features that most contribute to scene classification refer to features that are most effective in distinguishing between different scenes. These features play a key role in the decision tree construction process, as they minimize classification uncertainty;
The genie-purity is a method used in decision tree algorithm to select the best segmentation attribute for determining which parameters (temperature, brightness or audio) are most effective in distinguishing different scenes; consider, for example, a simple scene classification problem, where a scene may be "work" or "leisure. If there is temperature, brightness and audio data as features, it is possible that some of these features, such as audio data (which may represent music or people's conversational sounds), are more effective in distinguishing between these two scenes. If in a work scene the audio data typically shows silence or only slight background noise, whereas in a leisure scene the audio data may show music or the conversational sound of a person, the audio data may be considered as the most contributing feature to this scene classification;
to determine which feature contributes most, the decision tree algorithm calculates the base purity of each feature and selects those features that maximize the information gain or minimize the base purity as decision nodes;
s424, according to a decision tree algorithm, taking the environment parameter with the lowest non-purity of the kene as a root node, and constructing an initial scene recognition model;
Starting to construct a decision tree by using the parameters with lowest Indonesia as root nodes, starting with the selected root nodes, dividing a data set into two or more subsets according to the threshold value of the node, repeatedly calculating Indonesia, selecting the optimal dividing parameters, setting the nodes for each subset divided by the root nodes, recursively constructing subtrees until a preset stopping condition is met, presetting the stopping condition to a preset maximum depth or the data quantity in the subsets is smaller than the quantity threshold value, and finishing the construction of the decision tree when all the subsets become leaf nodes or the stopping condition is met; by using the genie unrepeace as a segmentation criterion, the decision tree can quickly divide the dataset into subsets with high purity, thereby improving the accuracy of classification; the decision tree provides a clear decision process, so that the decision logic of the model is easy to understand;
s425, dividing the target environment parameter data set into a training set and a verification set according to a preset segmentation proportion;
to evaluate the performance of the model, the dataset was divided into two parts: one for training the model and the other for verifying the accuracy of the model;
s426, training the initial scene recognition model according to the training set to obtain an intermediate scene recognition model;
Training a model is a core step in machine learning. In this process, the training set is used to adjust the parameters of the model so that it can provide the correct output for a given input;
s427, evaluating the intermediate scene recognition model according to the verification set to obtain accuracy and recall rate;
using an independent dataset verification set to evaluate the performance of the model to obtain an accuracy rate and a recall rate, wherein the accuracy rate and the recall rate are two commonly used evaluation indexes, the accuracy rate is the ratio of the number of correctly predicted samples to the total number of samples, and the recall rate focuses on the proportion of correctly predicted samples in the positive class;
s428, adjusting the intermediate scene recognition model according to the accuracy rate and the recall rate to obtain a scene recognition model;
adjusting the model is a key step in machine learning, especially when the performance of the model is not satisfactory, which may mean that the model works well in avoiding false positives if the accuracy is high but the recall is low, but there is a problem in detecting true positive examples, which may mean that the model predicts positive examples frequently, but many of them are false positives if the recall is high but the accuracy is low;
According to the recall rate and the accuracy rate, model parameters such as decision threshold, tree depth, minimum leaf node size, minimum segmentation sample and the like can be adjusted, and the model parameters are continuously verified and adjusted until the accuracy rate and the recall rate of the model meet the expectations, so that a final scene recognition model is obtained;
s429, inputting the actual environment parameters into the scene recognition model to acquire scene information of the scene physical space.
And finally, inputting the actual environment parameters into the scene recognition model to acquire scene information of the scene physical space.
S43, acquiring parameter adjustment weights of initial lighting control parameters in a preset scene-parameter weight matrix according to the scene information, wherein the preset scene-parameter weight matrix comprises a plurality of preset scene information and corresponding parameter adjustment weights, scene types and/or activity levels and/or emotion states of different preset scene information are different, and the parameter adjustment weights comprise color adjustment weights, brightness adjustment weights and color temperature adjustment weights;
and S44, adjusting the initial illumination control parameters according to the color adjustment weight, the brightness adjustment weight and the color temperature adjustment weight to obtain target illumination control parameters.
Specifically, a predefined matrix is described in which various possible scene information (such as scene type, activity level, and emotion state) and parameter adjustment weights associated with each scene information are listed, the weights determining how to adjust the illumination parameters to fit a particular scene;
TABLE 1 preset scene-parameter weight matrix
Referring to table 1, as a schematic table of the preset scene-parameter weight matrix, the data in the table is only for example and not for limitation, and the corresponding weight is searched from the weight matrix according to the current scene type, activity level and emotion state; taking the color parameter, the brightness parameter and the color temperature parameter in the initial lighting control parameters as initial values, calculating an adjustment value of each parameter by using the following formula:
adjustment value=initial value×weight
For example, if the initial color value is 200 (assuming a range of 0-255) and the corresponding color weight is 0.7, the adjusted color value is: 200×0.7= 140200 ×0.7=140; the calculated adjustment value is applied to the initial lighting control parameter. This means that if the initial color value is 200 and the adjusted color value is 140, then the new color value is 140; the same method is also used for adjusting the color temperature and brightness parameters; when applying the adjustment values, it is ensured that the new parameter values do not exceed their allowed maximum and minimum values. For example, if the range of color values is 0-255, ensuring that the adjusted color values are within this range;
By searching a preset scene-parameter weight matrix, the system can quickly determine how to adjust illumination parameters to adapt to the current scene; because the matrix provides different parameter weights for various possible scenes, the user can obtain the illumination effect matched with the current activity and the emotion state of the user; the preset scene-parameter weight matrix can be updated and expanded as needed to accommodate new scenes or user preferences.
And S5, controlling the combined atmosphere lamp to illuminate according to the target illumination control parameter.
And finally, controlling the combined atmosphere lamp to illuminate according to the acquired target illumination control parameters.
Preferably, before traversing the master control atmosphere lamp and the slave control atmosphere lamp by using the preset pulse signal manner to obtain actual layout information of the master control atmosphere lamp and each slave control atmosphere lamp in the scene management space, the method further includes:
s01, acquiring quantity information and shape information of a master control atmosphere lamp and a slave control atmosphere lamp;
firstly, acquiring the quantity information and the shape information of a master control atmosphere lamp and a slave control atmosphere lamp, wherein the information can be obtained through manual input of a user;
s02, inquiring a preset layout database according to the quantity information and the shape information to obtain recommended layout information, wherein the preset layout database contains layout information of atmosphere lamps with different quantities and shapes.
The preset layout database stores various possible lamp layouts created based on best practices or common configurations of different numbers and shapes of lamps, and when it has been obtained how many lamps the user has and their shapes, it can query this database to find one or more recommended layouts; a user friendly way is provided to start setting the lamp layout, especially for those users who are uncertain how to start; by providing optimized layout suggestions, the quality and uniformity of the lighting effect are ensured, the whole setting process is accelerated, and a user does not need to think about the layout from scratch;
preferably, the step of querying a preset layout database according to the quantity information and the preset shape to obtain recommended layout information includes:
s021, inquiring a preset layout database, and acquiring a plurality of initial recommended layout information matched with the quantity information and the preset shape;
in this step, the system queries the preset layout database according to the number information and the preset shape information of the atmosphere lamps provided by the user. This database stores a plurality of layouts of different numbers and shapes of atmosphere lamps. For example, if the user has 5 atmosphere lights and wants to create a star-shaped layout, the system will look up all layout schemes in the database that match this condition and provide them to the user as initial recommended layout information.
S022, matching related holidays and/or special events according to the current date information;
in this step, the system will look up the holiday and special event associated with it based on the current date information.
S023, screening each initial recommended layout according to the related holidays and/or special events to obtain recommended layout information.
Based on the identified holidays and special events, the system will filter among the initial recommended layout information to find the layout scheme that best suits the current holiday or event.
In this way, the system can provide more personalized and holiday atmosphere-fitting atmosphere lamp layout recommendations according to the specific needs of the user and the current date.
Preferably, after traversing the master control atmosphere lamp and the slave control atmosphere lamp by adopting a preset pulse signal mode to obtain actual layout information of the master control atmosphere lamp and each slave control atmosphere lamp in the scene management space, the method further comprises:
s03, calculating the difference degree of the actual layout information and the recommended layout information;
the degree of difference can be obtained through Euclidean distance and cosine similarity to compare the difference between the actual layout and the recommended layout;
s04, when the difference degree is larger than a preset difference degree, performing difference analysis on the actual layout information and the recommended layout information to obtain position information of the abnormal atmosphere lamp;
If the calculated degree of difference exceeds a preset threshold (e.g., 0.2 or 0.3), further analyzing the specific difference between the two layouts, and determining which lamp positions do not match the recommended layout by comparing the positions of each atmosphere lamp;
s05, controlling the abnormal atmosphere lamp to flash according to the position information of the abnormal atmosphere lamp so as to remind a user of carrying out position adjustment on the abnormal atmosphere lamp.
Once the atmosphere lamps with abnormal positions are determined, the system sends control signals to enable the lamps to start flashing, and the flashing mode can be preset, for example, flashing twice per second, or can be adjusted according to the severity of the difference; visual feedback is provided to the user so that they can immediately identify the mood light that needs to be repositioned. In this way, the user can more easily optimize their lamp layout, resulting in better lighting effects and user experience.
Example 2
Referring to fig. 7, an embodiment of the present invention provides an intelligent debugging system for a combined atmosphere lamp adaptive scene, the system includes: the intelligent debugging method for the self-adaptive scene of the combined atmosphere lamp comprises the combined atmosphere lamp, a controller and a sensor, wherein the controller is electrically connected with the combined atmosphere lamp and the sensor, the sensor is used for acquiring actual environment information of a scene physical space of the combined atmosphere lamp, and the controller is used for controlling the combined atmosphere lamp and the sensor to execute the intelligent debugging method for the self-adaptive scene of the combined atmosphere lamp.
In addition, in combination with the intelligent debugging method of the combined atmosphere lamp self-adaptive scene in the embodiment, the embodiment of the invention can be realized by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement the intelligent debugging method for the adaptive scene of the combined atmosphere lamp in any one of the above embodiments.
In summary, according to the intelligent debugging method and the system for the self-adaptive scene of the combined atmosphere lamp provided by the embodiment of the invention, through an intelligent debugging method for the self-adaptive scene of the combined atmosphere lamp, the master control atmosphere lamp and the slave control atmosphere lamp are traversed according to the preset pulse signals, and the actual layout information of the combined atmosphere lamp in the physical space is obtained, wherein the actual layout information comprises the relative position relationship between the master control atmosphere lamp and the slave control atmosphere lamp, so that the automatic acquisition of the actual layout information of the combined atmosphere lamp in the physical space is realized, the comprehensive detection of all atmosphere lamps is ensured, and the accurate layout information is provided for the subsequent steps, thereby ensuring the accuracy and consistency of the illumination effect; according to the actual layout information, the combined shape of the combined atmosphere lamp is obtained, and the combined form of the atmosphere lamp can be clarified through analysis of the layout information, so that a foundation is provided for subsequent illumination parameter setting; acquiring 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 comprise color parameters, color temperature parameters and brightness parameters of the master control atmosphere lamp and each slave control atmosphere lamp, and the relation between the combined shape and the lighting effect of the combined atmosphere lamp is considered, so that the lighting effect is ensured to be adaptively adjusted according to the combined shape, and more personalized and comfortable lighting experience is provided for a user; according to the scene information of the scene physical space where the combined atmosphere lamp is located, the initial lighting control parameters are adjusted to obtain target lighting control parameters, the lighting effect can be ensured to be more matched with the actual environment and the user requirements through analysis and utilization of the scene information, and the user experience is improved: and controlling the combined atmosphere lamp to illuminate according to the target illumination control parameters, ensuring that the illumination effect of the atmosphere lamp accords with the expected value, and creating an ideal illumination environment for a user.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are 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 steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure 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-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (10)

1. A method for adjusting control parameters of a master control atmosphere lamp and a slave control atmosphere lamp, the method comprising:
acquiring position information of a master control atmosphere lamp and each slave control atmosphere lamp in a scene management space and relative position relation between the master control atmosphere lamp and each slave control atmosphere lamp, wherein dynamic lighting combination between the master control atmosphere lamp and each slave control atmosphere lamp is in a plurality of preset combination shapes, and the master control atmosphere lamp is communicated with each slave control atmosphere lamp through pulse signals;
Acquiring initial lighting control parameters of the master control atmosphere lamp and each slave control atmosphere lamp;
determining a combined shape of the master control atmosphere lamp and each slave control atmosphere lamp according to the position information, the relative position relation and the actual shapes of the master control atmosphere lamp and the slave control atmosphere lamp;
combining the scene information of the master control atmosphere lamp, the scene information of the slave control atmosphere lamp and the combined shape, and adjusting the initial lighting control parameters of the master control atmosphere lamp and the initial lighting control parameters of the slave control atmosphere lamps one by one to obtain target lighting control parameters of the master control atmosphere lamp and target lighting control parameters of the slave control atmosphere lamps;
and controlling the master control atmosphere lamp and each slave control atmosphere lamp to work according to the target lighting control parameters of the master control atmosphere lamp and the target lighting control parameters of each slave control atmosphere lamp.
2. The method for adjusting control parameters of a master control atmosphere lamp and a slave control atmosphere lamp according to claim 1, wherein the step of adjusting initial lighting control parameters of the master control atmosphere lamp and initial lighting control parameters of the slave control atmosphere lamps one by one to obtain target lighting control parameters of the master control atmosphere lamp and target lighting control parameters of the slave control atmosphere lamps in combination with scene information of the master control atmosphere lamp and the slave control atmosphere lamp and the combined shape comprises the steps of:
Acquiring actual environment parameters of the scene physical space, wherein the actual environment parameters comprise temperature data, brightness data and audio data of the scene physical space;
inputting the actual environment parameters into a pre-constructed scene recognition model to acquire scene information of the scene physical space, wherein the scene recognition model is constructed based on a decision tree algorithm, and the scene information comprises scene types, activity levels and emotion states;
acquiring parameter adjustment weights of initial lighting control parameters in a preset scene-parameter weight matrix according to the scene information, wherein the preset scene-parameter weight matrix comprises a plurality of preset scene information and corresponding parameter adjustment weights, scene types and/or activity levels and/or emotion states of different preset scene information are different, and the parameter adjustment weights comprise color adjustment weights, brightness adjustment weights and color temperature adjustment weights;
and 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.
3. The method for adjusting control parameters of master control atmosphere lamp and slave control atmosphere lamp according to claim 2, wherein the step of inputting the actual environmental parameters into a pre-constructed scene recognition model to obtain scene information of the scene physical space comprises:
Acquiring an initial environmental parameter data set, wherein the initial environmental parameter data set comprises a plurality of environmental parameters and corresponding scene information, and the environmental parameters comprise temperature parameters, brightness parameters and audio parameters;
preprocessing the initial environmental parameter data set to obtain a target environmental parameter data set; performing the base non-purity calculation according to the target environment parameter data set to obtain the base non-purity of the temperature parameter, the brightness parameter and the audio parameter;
according to a decision tree algorithm, taking the environment parameter with the lowest non-purity of the kene as a root node, and constructing an initial scene recognition model;
dividing the target environment parameter data set into a training set and a verification set according to a preset dividing proportion;
training the initial scene recognition model according to the training set to obtain an intermediate scene recognition model; evaluating the intermediate scene recognition model according to the verification set to obtain accuracy and recall rate;
adjusting the intermediate scene recognition model according to the accuracy rate and the recall rate to obtain a scene recognition model;
inputting the actual environment parameters into the scene recognition model to acquire scene information of the scene physical space.
4. The method for adjusting control parameters of a master control atmosphere lamp and a slave control atmosphere lamp according to claim 1, wherein before combining scene information of the master control atmosphere lamp and the slave control atmosphere lamp and the combination shape, the method adjusts initial lighting control parameters of the master control atmosphere lamp and initial lighting control parameters of the slave control atmosphere lamps one by one to obtain target lighting control parameters of the master control atmosphere lamp and target lighting control parameters of the slave control atmosphere lamps, further comprises:
acquiring the quantity information and the shape information of the master control atmosphere lamp and the slave control atmosphere lamp;
and inquiring a preset layout database according to the quantity information and the shape information to obtain recommended layout information, wherein the preset layout database contains layout information of atmosphere lamps with different quantities and shapes.
5. The method for adjusting control parameters of master control atmosphere lamps and slave control atmosphere lamps according to claim 4, wherein the querying a preset layout database according to the quantity information and the shape information to obtain recommended layout information comprises:
inquiring a preset layout database, and acquiring a plurality of initial recommended layout information matched with the quantity information and the preset shape;
Matching related holidays and/or special events according to the current date information;
and screening each initial recommended layout according to the related holidays and/or special events to obtain recommended layout information.
6. The control parameter adjustment method of master and slave atmosphere lamps according to claim 4, further comprising:
calculating the difference degree of the actual layout information and the recommended layout information;
when the difference degree is larger than a preset difference degree, performing difference analysis on the actual layout information and the recommended layout information to obtain the position information of the abnormal atmosphere lamp;
and controlling the abnormal atmosphere lamp to flash according to the position information of the abnormal atmosphere lamp so as to remind a user to adjust the position of the abnormal atmosphere lamp.
7. The method of controlling parameter adjustment of master and slave atmosphere lamps according to any one of claims 1 to 6, wherein the initial lighting control parameters comprise: the master control atmosphere lamp and each slave control atmosphere lamp are provided with color parameters, color temperature parameters and brightness parameters.
8. The method of controlling parameter adjustment of master and slave atmosphere lamps according to any one of claims 1 to 6, wherein the master and slave atmosphere lamps are combined in one or more of a star, petal, flower and heart shape.
9. A control parameter adjustment system for a master control atmosphere lamp and a slave control atmosphere lamp, the system comprising: the system comprises a master control atmosphere lamp, a plurality of slave control atmosphere lamps, a controller and a sensor, wherein the controller, the master control atmosphere lamp, the plurality of slave control atmosphere lamps and the sensor are electrically connected, the sensor is used for acquiring actual environment information of a scene physical space of the master control atmosphere lamp, and the controller is used for controlling the combined atmosphere lamp and the sensor to execute the control parameter adjusting method of the master control atmosphere lamp and the slave control atmosphere lamp according to any one of claims 1 to 8.
10. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the control parameter adjustment method of a master atmosphere lamp and a slave atmosphere lamp according to any one of claims 1 to 8.
CN202311777459.8A 2023-11-10 2023-11-10 Control parameter adjusting method and system for master control atmosphere lamp and slave control atmosphere lamp Pending CN117615490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311777459.8A CN117615490A (en) 2023-11-10 2023-11-10 Control parameter adjusting method and system for master control atmosphere lamp and slave control atmosphere lamp

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311777459.8A CN117615490A (en) 2023-11-10 2023-11-10 Control parameter adjusting method and system for master control atmosphere lamp and slave control atmosphere lamp
CN202311495642.9A CN117241445B (en) 2023-11-10 2023-11-10 Intelligent debugging method and system for self-adaptive scene of combined atmosphere lamp

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202311495642.9A Division CN117241445B (en) 2023-11-10 2023-11-10 Intelligent debugging method and system for self-adaptive scene of combined atmosphere lamp

Publications (1)

Publication Number Publication Date
CN117615490A true CN117615490A (en) 2024-02-27

Family

ID=89093120

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202311495642.9A Active CN117241445B (en) 2023-11-10 2023-11-10 Intelligent debugging method and system for self-adaptive scene of combined atmosphere lamp
CN202311777459.8A Pending CN117615490A (en) 2023-11-10 2023-11-10 Control parameter adjusting method and system for master control atmosphere lamp and slave control atmosphere lamp

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202311495642.9A Active CN117241445B (en) 2023-11-10 2023-11-10 Intelligent debugging method and system for self-adaptive scene of combined atmosphere lamp

Country Status (1)

Country Link
CN (2) CN117241445B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117794019B (en) * 2024-02-26 2024-05-07 深圳市智岩科技有限公司 Intelligent lamp, and array method, device and product thereof

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108431702B (en) * 2015-10-30 2021-11-30 昕诺飞控股有限公司 Commissioning of sensor system
CN108293286B (en) * 2015-11-19 2020-04-21 飞利浦照明控股有限公司 User-determinable configuration of a lighting device for selecting a light scene
WO2021001692A1 (en) * 2019-07-04 2021-01-07 Bilous Nazar Lighting systems and methods for displaying colored light in isolated zones and displaying information
CN211531373U (en) * 2019-12-31 2020-09-18 欧普照明股份有限公司 Lighting and display lamp
CN114364099B (en) * 2022-01-13 2023-07-18 达闼机器人股份有限公司 Method for adjusting intelligent light equipment, robot and electronic equipment
CN115942559A (en) * 2022-12-09 2023-04-07 安徽世林照明股份有限公司 Side atmosphere light intelligent regulation system applied to surface-mounted flat lamp
CN116383915B (en) * 2023-06-02 2023-08-11 深圳市千岩科技有限公司 Method and device for controlling lamp effect of spliced lamp, equipment and medium
CN116685029B (en) * 2023-08-03 2023-09-26 深圳市千岩科技有限公司 Spliced lamp, controller thereof, configuration method and device
CN116723619B (en) * 2023-08-11 2023-11-14 深圳爱图仕创新科技股份有限公司 Spliced lamp group control method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN117241445B (en) 2024-02-02
CN117241445A (en) 2023-12-15

Similar Documents

Publication Publication Date Title
CN117241445B (en) Intelligent debugging method and system for self-adaptive scene of combined atmosphere lamp
JP6125621B2 (en) Method and apparatus for storing, proposing and / or using lighting settings
US9465512B2 (en) Discovering and presenting décor harmonized with a décor style
CN105242239B (en) A kind of indoor subregion localization method based on the sub-clustering of mass-rent fingerprint and matching
JP5587995B2 (en) System and apparatus for automatically retrieving and correcting personal preferences applicable to multiple controllable lighting networks
CN105530436B (en) Acquisition parameters adjusting method and camera terminal
US10772176B2 (en) Image-based lighting
CN105430841B (en) The control method and device of Intelligent illumination device
CN107960155B (en) Color picker
EP3375260A1 (en) Generating a lighting scene
US8948886B2 (en) LED lighting system and controlling method using the same
CN116634622B (en) LED intelligent control method, system and medium based on Internet of things
CN101675713A (en) Method and system for automatically verifying the possibility of rendering a lighting atmosphere from an abstract description
CN109542233A (en) A kind of lamp control system based on dynamic gesture and recognition of face
CN109919073A (en) A kind of recognition methods again of the pedestrian with illumination robustness
KR102457277B1 (en) Method and apparatus for transmitting information on sample order based on information on clothing design using a neural network by a server
KR20180110472A (en) System and method for controlling a stereoscopic emotion lighting
CN110163217A (en) Method, apparatus and computer-readable storage medium for auxiliary of matching colors or match colors
CN105550644A (en) Skin state analysis method and skin state analysis device based on single-sided mirror
CN114501717A (en) AI intelligent home system-based LED small night lamp
CN101485233A (en) Method and apparatus for signal presentation
CN108922624A (en) A kind of configuration method of intelligent wearable device, device, terminal and storage medium
CN109348592B (en) Illumination situation construction method and system, computer equipment and storage medium
CN116805019A (en) Method for recommending and deploying intelligent home configuration scheme, electronic equipment and server
CN110310332A (en) The scaling method and device of key

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination