Lamp strip control method and device, electronic equipment and storage medium
By obtaining and analyzing the control information and user attribute information of smart home light strips, and automatically determining the lighting effect parameters of the lamp beads using machine learning models and knowledge bases, it solves the problem that users in the existing technology find it difficult for users to quickly find lighting effects that meet personalized needs in a specific technology. , realizes efficient lighting effect settings.
Patent Information
- Application Number
- CN202310885628.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-17
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2043-07-17
AI Technical Summary
The existing smart home lighting software APP is difficult to quickly help users find lighting effects that meet personalized needs. The custom editing functions are complex and unfriendly, making it difficult for users to efficiently set lighting effects that meet expectations.
By obtaining the control information and user attribute information of the target light strip, using pre-trained machine learning models and lighting effect knowledge base, the lighting effect parameters of the lamp beads are determined, and the lamp beads are controlled according to these parameters to achieve automated lighting effect settings.
It reduces the difficulty of users setting lighting effects, improves setting efficiency, and allows users to quickly obtain lighting effects that meet expectations.
Smart Images

Figure CN119325168A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and in particular to a light strip control method, device, electronic device and storage medium. Background Art
[0002] In recent years, with the popularity of smart homes and the increasing demand for personalized decoration, light strings (or light strips) have become increasingly popular as an important part of home and building exterior decoration. In order to meet users' demand for personalized lighting effects, a variety of lighting effect software APPs (Applications) have appeared on the market.
[0003] However, although these softwares have a large number of preset lighting effects, due to the wide variety of lighting effects, users need to try them one by one and apply them to actual products before they can find a lighting solution that meets their needs. In addition, the custom editing function is also relatively complex and difficult to use, which is not user-friendly for ordinary users. Users want a good-looking lighting effect decoration atmosphere, but due to their personal aesthetics and abilities, they cannot customize the ideal lighting effect and need to click and try repeatedly.
[0004] It can be seen that how to improve the efficiency of users setting up lighting effects that meet their expectations is a technical issue worthy of attention. Summary of the invention
[0005] In view of this, in order to solve some or all of the above technical problems, the embodiments of the present application provide a light strip control method, device, electronic device and storage medium.
[0006] In a first aspect, an embodiment of the present application provides a light strip control method, the method comprising:
[0007] Acquire control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of light beads;
[0008] Based on the control information and the user attribute information, determining the lighting effect parameters of the lamp beads included in the target light strip;
[0009] According to the lighting effect parameters, the lamp beads included in the target light strip are controlled.
[0010] In a possible implementation manner, before determining the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information, the method further includes:
[0011] Determine the lamp bead information of the lamp bead included in the target lamp strip; wherein the lamp bead information includes at least one of the following: the height of the lamp bead, the angle corresponding to the lamp bead and the distance corresponding to the lamp bead; the angle corresponding to the lamp bead is: the angle between the irradiation direction of the lamp bead and the ground; the distance corresponding to the lamp bead is: the distance between the lamp bead and the target lamp bead; the target lamp bead is the adjacent lamp bead in the target direction of the lamp bead;
[0012] Based on the lamp bead information, the target lamp strip is divided into a plurality of segments, wherein the segment includes at least one lamp bead; and
[0013] The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes:
[0014] Based on the control information and the user attribute information, the lighting effect parameters of the lamp beads included in the multiple segments are determined.
[0015] In one possible implementation,
[0016] The height of the lamp bead is determined as follows:
[0017] Determine the angle between the irradiation direction of the lamp bead and the ground to obtain the target angle;
[0018] Based on the target angle, determining the distance between the lamp bead and the ground to obtain the height of the lamp bead; and
[0019] The distance corresponding to the lamp bead is determined in the following way:
[0020] Based on the target angle, the distance between the lamp bead and the target lamp bead is determined to obtain the distance corresponding to the lamp bead.
[0021] In a possible implementation manner, the segment satisfies at least one of the following conditions:
[0022] The first height difference is less than or equal to the first height threshold, wherein the first height difference is: the height difference between the lamp bead in the segment and the target lamp bead of the lamp bead; and the first angle difference is less than or equal to the first angle threshold, wherein the first angle difference is: the difference between the angle corresponding to the lamp bead in the segment and the angle corresponding to the target lamp bead of the lamp bead;
[0023] The first height difference is greater than the first height threshold; the second height difference is less than the second height threshold, wherein the second height difference is: the difference between the maximum height difference between the lamp beads in the segment and the minimum height difference between the lamp beads in the segment; and the first angle difference is less than or equal to the first angle threshold;
[0024] The segmented boundary lamp beads meet the following conditions: the distance between the boundary lamp beads and the target lamp beads of the boundary lamp beads is greater than the first distance or less than the second distance, wherein the second distance is less than the first distance;
[0025] The number of boundary lamp beads in a single sub-segment included in the segment is less than or equal to 2.
[0026] In a possible implementation, after dividing the target light strip based on the light bead information to obtain a plurality of segments, the method further includes:
[0027] determining category information of each of at least two of the segments; and
[0028] The step of determining the lighting effect parameters of the lamp beads included in the plurality of segments based on the control information and the user attribute information comprises:
[0029] Based on the control information, the user attribute information and the category information, the lighting effect parameters of the lamp beads included in the plurality of segments are determined.
[0030] In a possible implementation, determining the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information includes:
[0031] Using at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base, determine the lighting effect parameters corresponding to the control information and the user attribute information, and obtain the lighting effect parameters of the lamp beads included in the target light strip;
[0032] Wherein, the machine learning model is used to characterize the corresponding relationship between control information, user attribute information and lighting effect parameters;
[0033] The lighting effect knowledge base is used to characterize the correspondence between control information, user attribute information and a target number of groups of lighting effect parameters.
[0034] In a possible implementation, the adopting at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base to determine the lighting effect parameters corresponding to the control information and the user attribute information includes:
[0035] Inputting the control information and the user attribute information into a pre-trained machine learning model to obtain output data of the machine learning model;
[0036] Determine whether the output data represents a lighting effect parameter corresponding to the control information and the user attribute information, and obtain determination information;
[0037] When the discrimination information indicates that the output data is not a lighting effect parameter corresponding to the control information and the user attribute information, a pre-established lighting effect knowledge base is used to determine a target number of groups of lighting effect parameters corresponding to the control information and the user attribute information.
[0038] In a possible implementation manner, the control information is input via a user; and
[0039] The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes:
[0040] Based on the control information and the user attribute information, determining multiple groups of lighting effect parameters of the lamp beads included in the target light strip;
[0041] Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters, wherein the target number of groups of lighting effect parameters are used to return to the control end of the light strip; and
[0042] The step of controlling the lamp beads included in the target light strip according to the lighting effect parameters comprises:
[0043] Determining selected lighting effect parameters from the lighting effect parameters of the target quantity group;
[0044] According to the selected lighting effect parameters, the lamp beads included in the target light strip are controlled.
[0045] In a possible implementation, determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters includes:
[0046] Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters based on the return priorities respectively corresponding to the multiple groups of lighting effect parameters; and
[0047] After determining a target number of groups of lighting effect parameters from the plurality of groups of lighting effect parameters, the method further includes:
[0048] Lower the return priority corresponding to the lighting effect parameters of the target quantity group.
[0049] In a second aspect, an embodiment of the present application provides a light strip control device, the device comprising:
[0050] An acquisition unit, configured to acquire control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of light beads;
[0051] A first determining unit, configured to determine lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information;
[0052] A control unit is used to control the lamp beads included in the target light strip according to the lighting effect parameters.
[0053] In a possible implementation manner, before determining the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information, the device further includes:
[0054] The second determination unit is used to determine the lamp bead information of the lamp bead included in the target lamp strip; wherein the lamp bead information includes at least one of the following: the height of the lamp bead, the angle corresponding to the lamp bead and the distance corresponding to the lamp bead; the angle corresponding to the lamp bead is: the angle between the irradiation direction of the lamp bead and the ground; the distance corresponding to the lamp bead is: the distance between the lamp bead and the target lamp bead; the target lamp bead is the adjacent lamp bead in the target direction of the lamp bead;
[0055] a dividing unit, configured to divide the target light strip into a plurality of segments based on the light bead information, wherein the segment includes at least one light bead; and
[0056] The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes:
[0057] Based on the control information and the user attribute information, the lighting effect parameters of the lamp beads included in the multiple segments are determined.
[0058] In a possible implementation, the height of the lamp bead is determined in the following manner:
[0059] Determine the angle between the irradiation direction of the lamp bead and the ground to obtain the target angle;
[0060] Based on the target angle, determining the distance between the lamp bead and the ground to obtain the height of the lamp bead; and
[0061] The distance corresponding to the lamp bead is determined in the following way:
[0062] Based on the target angle, the distance between the lamp bead and the target lamp bead is determined to obtain the distance corresponding to the lamp bead.
[0063] In a possible implementation manner, the segment satisfies any of the following conditions:
[0064] The first height difference is less than or equal to the first height threshold, wherein the first height difference is: the height difference between the lamp bead in the segment and the target lamp bead of the lamp bead; and the first angle difference is less than or equal to the first angle threshold, wherein the first angle difference is: the difference between the angle corresponding to the lamp bead in the segment and the angle corresponding to the target lamp bead of the lamp bead;
[0065] The first height difference is greater than the first height threshold; the second height difference is less than the second height threshold, wherein the second height difference is: the difference between the maximum height difference between the lamp beads in the segment and the minimum height difference between the lamp beads in the segment; and the first angle difference is less than or equal to the first angle threshold;
[0066] The segmented boundary lamp beads meet the following conditions: the distance between the boundary lamp beads and the target lamp beads of the boundary lamp beads is greater than the first distance or less than the second distance, wherein the second distance is less than the first distance;
[0067] The number of boundary lamp beads in a single sub-segment included in the segment is less than or equal to 2.
[0068] In a possible implementation manner, after dividing the target light strip based on the light bead information to obtain a plurality of segments, the device further includes:
[0069] A third determining unit, configured to determine category information of each of the at least two segments; and
[0070] The step of determining the lighting effect parameters of the lamp beads included in the plurality of segments based on the control information and the user attribute information comprises:
[0071] Based on the control information, the user attribute information and the category information, the lighting effect parameters of the lamp beads included in the plurality of segments are determined.
[0072] In a possible implementation, determining the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information includes:
[0073] Using at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base, determine the lighting effect parameters corresponding to the control information and the user attribute information, and obtain the lighting effect parameters of the lamp beads included in the target light strip;
[0074] Wherein, the machine learning model is used to characterize the corresponding relationship between control information, user attribute information and lighting effect parameters;
[0075] The lighting effect knowledge base is used to characterize the correspondence between control information, user attribute information and a target number of groups of lighting effect parameters.
[0076] In a possible implementation, the adopting at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base to determine the lighting effect parameters corresponding to the control information and the user attribute information includes:
[0077] Inputting the control information and the user attribute information into a pre-trained machine learning model to obtain output data of the machine learning model;
[0078] Determine whether the output data represents a lighting effect parameter corresponding to the control information and the user attribute information, and obtain determination information;
[0079] When the discrimination information indicates that the output data is not a lighting effect parameter corresponding to the control information and the user attribute information, a pre-established lighting effect knowledge base is used to determine a target number of groups of lighting effect parameters corresponding to the control information and the user attribute information.
[0080] In a possible implementation manner, the control information is input via a user; and
[0081] The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes:
[0082] Based on the control information and the user attribute information, determining multiple groups of lighting effect parameters of the lamp beads included in the target light strip;
[0083] Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters, wherein the target number of groups of lighting effect parameters are used to return to the control end of the light strip; and
[0084] The step of controlling the lamp beads included in the target light strip according to the lighting effect parameters comprises:
[0085] Determining selected lighting effect parameters from the lighting effect parameters of the target quantity group;
[0086] According to the selected lighting effect parameters, the lamp beads included in the target light strip are controlled.
[0087] In a possible implementation, determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters includes:
[0088] Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters based on the return priorities respectively corresponding to the multiple groups of lighting effect parameters; and
[0089] After determining a target number of groups of lighting effect parameters from the plurality of groups of lighting effect parameters, the device further includes:
[0090] Lower the return priority corresponding to the lighting effect parameters of the target quantity group.
[0091] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0092] Memory for storing computer programs;
[0093] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the light strip control method of the first aspect of the present application is implemented.
[0094] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the light strip control method of the first aspect described above is implemented.
[0095] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code is executed on a device, a processor in the device implements a method as in any embodiment of the light strip control method of the first aspect described above.
[0096] The light strip control method provided in the embodiment of the present application can obtain the control information and user attribute information of the target light strip, wherein the target light strip includes a plurality of lamp beads, and then, based on the control information and the user attribute information, determine the lighting effect parameters of the lamp beads included in the target light strip, and then, according to the lighting effect parameters, control the lamp beads included in the target light strip. Thus, based on the control information and the user attribute information of the light strip, the lighting effect parameters of each lamp bead included in the light strip can be automatically determined for the user, and each lamp bead can be controlled accordingly, thereby reducing the difficulty for the user to set the lighting effect that meets their expectations, thereby improving the efficiency of the user to set the lighting effect that meets their expectations. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0098] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0099] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0100] Figure 1 A schematic flow chart of a light strip control method provided in an embodiment of the present application;
[0101] Figure 2 A schematic flow chart of another light strip control method provided in an embodiment of the present application;
[0102] Figure 3A A flowchart of another light strip control method provided in an embodiment of the present application;
[0103] Figure 3B A schematic diagram of a segmented division method;
[0104] Figure 3C A schematic flow chart of another light strip control method provided in an embodiment of the present application;
[0105] Figure 4 A schematic diagram of the structure of a light strip control device provided in an embodiment of the present application;
[0106] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0107] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0108] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0109] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0110] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0111] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0112] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0113] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0114] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0115] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0116] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0117] In addition, it should be noted that the users described in this application (such as users corresponding to user attribute information) can be distinguished by user identification. For example, the user identification can be a login account. In this scenario, if different persons use the same account to log in, the above-mentioned different persons can be considered to be the same user; if the same person uses different accounts to log in, the same person who logs in to different accounts can be considered to be different users. For another example, when the device is not logged in, the user identification can also be assigned based on the device identification of the device. In this scenario, if different persons use devices with the same device identification to operate, the above-mentioned different persons can be considered to be the same user; if the same person uses devices with different device identifications to operate, the above-mentioned same person can be considered to be different users.
[0118] In order to solve the technical problem in the prior art of how to improve the efficiency of users setting up lighting effects that meet their expectations, the present application provides a light strip control method, which can improve the efficiency of users setting up lighting effects that meet their expectations.
[0119] Figure 1A flow chart of a light strip control method provided for an embodiment of the present application. This method can be applied to one or more electronic devices such as smart phones, laptops, desktop computers, portable computers, servers, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0120] like Figure 1 As shown, the method specifically includes:
[0121] Step 101, obtaining control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of lamp beads.
[0122] In this embodiment, the target light strip can be any light strip. A light strip, also known as a light bar, can include a plurality of lamp beads. The target light strip can be a flexible light strip, which can be bent and fixed on objects with decoration requirements such as houses and trees. Each lamp bead on the target light strip can be controlled according to different lighting effect parameters. The lighting effect parameters can include but are not limited to: color, brightness, light change speed, and light change frequency.
[0123] In practice, by setting the lighting effect parameters of the lamp beads in a light strip (such as the above-mentioned target light strip), different atmospheres can be created, so that the target light strip can be suitable for different scenes, themes, atmospheres, music, etc.
[0124] The control information can be used to control the target light strip. As an example, the control information can be voice or text input by the user, or a control instruction formed by the user triggering a button.
[0125] The user attribute information may be the information of the user associated with the target light strip. As an example, the target light strip can be controlled through a control terminal (e.g., an APP installed on a user terminal), and the information of the user logged in to the control terminal may be used as the user attribute information. For example, the user attribute information may refer to the user's personal information such as the country set by the user when logging in to the control terminal, such as the country, region, number of times and duration of use of the light effect, etc.
[0126] Step 102: Determine lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information.
[0127] In this embodiment, the above step 102 may be performed in a variety of ways.
[0128] As an example, a pre-trained machine learning model can be used to determine the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information. The above machine learning model can represent the corresponding relationship between the control information, the user attribute information and the lighting effect parameters.
[0129] As another example, a pre-established knowledge base may be used to determine the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information. The knowledge base may represent the corresponding relationship between the control information, the user attribute information and the lighting effect parameters.
[0130] Specifically, each lamp bead included in the target lamp strip may correspond to a unique code, and thus, the lighting effect parameters of the lamp bead may be determined by determining the lighting effect parameters corresponding to each code.
[0131] In addition, based on the control information and the user attribute information, the lighting effect parameters of each lamp bead included in the target light strip can be determined one by one, the lighting effect parameters of all lamp beads included in the target light strip as a whole can be determined based on the control information and the user attribute information, and the lighting effect parameters of the lamp beads included in each segment of the target light strip can be determined based on the control information and the user attribute information.
[0132] Step 103: Control the lamp beads included in the target light strip according to the lighting effect parameters.
[0133] In this embodiment, after the lighting effect parameters of each lamp bead are determined, the corresponding lamp bead can be controlled according to the determined lighting effect parameters.
[0134] In some optional implementations of the present embodiment, the following method can be used to determine the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information: use at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base to determine the lighting effect parameters corresponding to the control information and the user attribute information, and obtain the lighting effect parameters of the lamp beads included in the target light strip.
[0135] Among them, the machine learning model is used to characterize the correspondence between control information, user attribute information and lighting effect parameters.
[0136] As an example, the above-mentioned machine learning model may include: a large language model, a long short-term memory network (Long Short-Term Memory, LSTM), etc.
[0137] A large language model refers to a language model that contains hundreds of billions (or more) of parameters, which are trained on a large amount of text data. Here, the large language model can be used to perform text understanding and semantic analysis on the entire target light strip or the lamp beads in different segments based on the position segmentation information and the content input by the user, and generate the lighting effect parameters of each segmented lamp bead, ultimately achieving the effect of different lighting effects display of lamp beads in different positions.
[0138] The long short-term memory network is a powerful recursive neural network structure. By introducing the gate mechanism, it can overcome the gradient problem of traditional RNN (Recurrent Neural Networks), making it perform well in processing long sequences and natural language processing tasks. Here, the LSTM model can be used in advance to model and train the pre-processed lighting effect coding sequence and lighting effect parameter data, and then according to the trained model, the generated lighting effect parameters of each segment, such as color, speed, brightness, and motion effect, are input to generate the lighting effect coding sequence corresponding to the series of parameters.
[0139] The lighting effect knowledge base is used to characterize the correspondence between control information, user attribute information and target number group lighting effect parameters. Here, the lighting effect knowledge base may include user input (i.e. the control information), the lighting effect that the user likes under the input (i.e. the target number group lighting effect parameters), and the user's personal dimension information (i.e. the user attribute information), such as country, region, number of times and duration of use of the lighting effect, and other information.
[0140] It can be understood that in the above optional implementation method, at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base can be used to determine the lighting effect parameters of the lamp beads included in the target light strip, so that the determined lighting effect parameters can be more in line with user expectations.
[0141] In some application scenarios of the above optional implementations, the following method may be used to adopt at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base to determine the lighting effect parameters corresponding to the control information and the user attribute information:
[0142] Step 1: Input the control information and the user attribute information into a pre-trained machine learning model to obtain output data of the machine learning model.
[0143] Step 2: determine whether the output data represents lighting effect parameters corresponding to the control information and the user attribute information, and obtain determination information.
[0144] Step three, when the discrimination information indicates that the output data is not a lighting effect parameter corresponding to the control information and the user attribute information, a pre-established lighting effect knowledge base is used to determine a target number of groups of lighting effect parameters corresponding to the control information and the user attribute information.
[0145] Among them, the discrimination information indicates that the output data is not a lighting effect parameter corresponding to the control information and the user attribute information, which may indicate that the large language model cannot recognize the user's intention and cannot return a valid lighting effect solution.
[0146] It can be understood that in the above application scenarios, if the large language model cannot recognize the user's intention and cannot return an effective lighting effect solution, the lighting effect knowledge base can be used to return similar lighting effects or popular lighting effects to the user as a supplement. For example, the popular lighting effects, that is, the top three lighting effects in the ranking of the number of times used in a period of time, can be returned. Therefore, the machine learning model and the lighting effect knowledge base can be combined to determine the lighting effect parameters, so that the determined lighting effect parameters are more in line with the user's expectations.
[0147] In some optional implementations of this embodiment, the control information is input by a user. For example, the control information may be text and / or voice input by a user.
[0148] On this basis, the following method can be used to determine the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information:
[0149] The first step is to determine multiple groups of lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information.
[0150] As an example, at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base can be used to determine multiple sets of lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information.
[0151] The second step is to determine a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters.
[0152] The target number may be a predetermined and fixed value, or a preset ratio of the determined number of lighting effect parameters.
[0153] The target number of lighting effect parameters is used to return to the control end of the light strip (such as a mobile phone APP). That is, after the second step is executed, the target number of lighting effect parameters can be returned to the control end for display.
[0154] On this basis, the following method can be used to control the lamp beads included in the target light strip according to the lighting effect parameters:
[0155] Step 1: Determine the selected lighting effect parameters from the lighting effect parameters in the target quantity group.
[0156] Here, after the control end displays the target number of groups of lighting effect parameters, the user can select a group of lighting effect parameters therefrom to obtain the selected lighting effect parameters.
[0157] Step 2: Control the lamp beads included in the target light strip according to the selected lighting effect parameters.
[0158] Here, after the selected lighting effect parameters are determined, the corresponding lamp beads can be controlled according to the selected lighting effect parameters.
[0159] It can be understood that in the above optional implementation, multiple groups of lighting effect parameters can be recommended to the user so that the user can choose from them, thereby making the determined lighting effect parameters more in line with the user's expectations.
[0160] In some application scenarios of the above optional implementation methods, the following method can be used to determine a target number of groups of lighting effect parameters from multiple groups of lighting effect parameters: based on the return priorities corresponding to the multiple groups of lighting effect parameters, determine the target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters.
[0161] For example, the target number of groups of lighting effect parameters may be determined from the multiple groups of lighting effect parameters in descending order of return priority.
[0162] On this basis, after determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters, the return priority corresponding to the lighting effect parameters of the target number of groups may also be lowered.
[0163] It can be understood that in the above application scenario, after determining the lighting effect parameters that need to be returned to the control end, the frequency of subsequent return of the lighting effect parameters to the control end can be reduced by lowering the return priority of the corresponding lighting effect parameters. For example, when the user enters the same content (that is, the above-mentioned control information) multiple times, and the results returned by the model or knowledge base are similar, certain rules can be processed during sorting. When the sorting is returned, the priority of the lighting effect schemes that have been returned before is lowered, and priority is given to returning lighting effect schemes that have not been returned before. This can ensure that when the user enters the same content multiple times, different lighting effect schemes are returned to maintain the diversity of lighting effects.
[0164] The light strip control method provided in the embodiment of the present application can obtain the control information and user attribute information of the target light strip, wherein the target light strip includes a plurality of lamp beads, and then, based on the control information and the user attribute information, determine the lighting effect parameters of the lamp beads included in the target light strip, and then, according to the lighting effect parameters, control the lamp beads included in the target light strip. Thus, based on the control information and the user attribute information of the light strip, the lighting effect parameters of each lamp bead included in the light strip can be automatically determined for the user, and each lamp bead can be controlled accordingly, thereby reducing the difficulty for the user to set the lighting effect that meets their expectations, thereby improving the efficiency of the user to set the lighting effect that meets their expectations.
[0165] Figure 2 A flow chart of another light strip control method provided in an embodiment of the present application. Figure 2 As shown, the method specifically includes:
[0166] Step 201, obtaining control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of lamp beads.
[0167] In this embodiment, step 201 and Figure 1 Step 101 in the corresponding embodiment is basically the same and will not be described again here.
[0168] Step 202, determining the lamp bead information of the lamp bead included in the target light strip; wherein the lamp bead information includes at least one of the following: the height of the lamp bead, the angle corresponding to the lamp bead, and the distance corresponding to the lamp bead.
[0169] In this embodiment, the height of the lamp bead can represent the distance between the lamp bead and the ground. The angle corresponding to the lamp bead is: the angle between the irradiation direction of the lamp bead (e.g., the central light of the lamp bead) and the ground. The distance corresponding to the lamp bead is: the distance between the lamp bead and the target lamp bead. The target lamp bead is the adjacent lamp bead in the target direction of the lamp bead. The target direction can represent the straight line connection direction between the lamp beads.
[0170] The target lamp bead may include: in the target direction, the lamp bead adjacent to the left and / or the lamp bead adjacent to the right of the lamp bead.
[0171] Here, the ground is assumed to be a horizontal plane. The distance detection module of each lamp bead base can use a level to obtain the angle α between the initial distance sensor in the direction of the lamp's irradiation surface and the horizontal plane (that is, the angle corresponding to the lamp bead mentioned above); then adjust the distance sensor to the vertical ground direction at an angle of (90°-α), measure the distance from the lamp bead base to the vertical ground direction from the obstruction, and thus obtain the height of the lamp bead. At the same time, the distance detection module detects the distance between the left and right lamp beads in the direction of the connecting straight line (that is, the target direction mentioned above), and thus obtains the distance corresponding to the lamp bead.
[0172] In some optional implementations of this embodiment, the height of the lamp bead is determined in the following manner:
[0173] First, determine the angle between the irradiation direction of the lamp bead and the ground to obtain the target angle.
[0174] The target angle may represent the angle between the irradiation direction of the lamp bead and the ground.
[0175] Afterwards, based on the target angle, the distance between the lamp bead and the ground is determined to obtain the height of the lamp bead.
[0176] Here, the distance between the lamp bead and the ground can be obtained via a distance measuring sensor. For example, the distance measuring sensor can be set on the base of the lamp bead, so that the distance between the lamp bead and the obstacle (such as the ground) obtained by the distance measuring sensor can be used to obtain the distance between the lamp bead and the ground. If the angle corresponding to the lamp bead is a right angle, then the distance measuring sensor can directly obtain the distance between the lamp bead and the ground. If the angle corresponding to the lamp bead is not a right angle, then the Pythagorean theorem can be used to calculate the distance between the lamp bead and the ground based on the distance obtained by the distance measuring sensor.
[0177] On this basis, the distance corresponding to the lamp bead is determined in the following manner: based on the target angle, the distance between the lamp bead and the target lamp bead is determined to obtain the distance corresponding to the lamp bead.
[0178] In addition, it should be noted that in the process of determining the height of the lamp beads and the corresponding distance of the lamp beads, the target angle may not actually be adjusted to a right angle.
[0179] It can be understood that in the above optional implementation method, by determining the height of the lamp beads and the corresponding distance of the lamp beads based on the target angle, more accurate lamp bead information such as the height of the lamp beads and the corresponding distance of the lamp beads can be obtained. In this way, through subsequent steps, the light strip can be segmented more accurately.
[0180] Step 203: based on the lamp bead information, divide the target light strip into multiple segments, wherein each segment includes at least one lamp bead.
[0181] In this embodiment, the lamp beads included in each segment can be approximately located on a straight line.
[0182] In some optional implementations of this embodiment, the segment satisfies at least one of the following conditions:
[0183] Condition 1: the first height difference is less than or equal to the first height threshold, and the first angle difference is less than or equal to the first angle threshold.
[0184] The first height difference is: the height difference between the lamp bead in the segment and the target lamp bead of the lamp bead (for example, the left adjacent lamp bead and the right adjacent lamp bead in the target direction). The first angle difference is: the difference between the angle corresponding to the lamp bead in the segment and the angle corresponding to the target lamp bead of the lamp bead.
[0185] Here, when the vertical height difference between multiple adjacent lamp beads and the obstruction (such as the ground) is within 100 mm (that is, the first height difference mentioned above) and the horizontal angle difference between multiple adjacent lamp beads and the obstruction (that is, the first angle difference mentioned above) is within 10° (that is, the first angle threshold mentioned above), then these lamp beads can be considered to be on the same horizontal line, and so on, the lamp beads with the same information and adjacent to each other can be divided into one section.
[0186] Condition two: the first height difference is greater than the first height threshold, the second height difference is less than the second height threshold, and the first angle difference is less than or equal to the first angle threshold.
[0187] The second height difference is: the difference between the maximum height difference between the lamp beads in the segment and the minimum height difference between the lamp beads in the segment.
[0188] Here, when the vertical height difference between multiple adjacent lamp beads and the obstruction (such as the ground) is greater than 100 mm (that is, the first height difference mentioned above), but the difference between the maximum and minimum values of the difference (that is, the second height difference mentioned above) is less than 100 mm (that is, the second height threshold mentioned above), and the horizontal angle difference with the adjacent lamp beads (that is, the first angle difference mentioned above) is within 10° (that is, the first angle threshold mentioned above), these lamp beads can be considered to be in the same segment.
[0189] Condition three, the segmented boundary lamp beads meet the following conditions: the distance between the boundary lamp beads and the target lamp beads of the boundary lamp beads is greater than the first distance or less than the second distance.
[0190] Wherein, the second distance is smaller than the first distance.
[0191] Here, whether the lamp bead is a segment boundary point is determined according to the distance value from the adjacent lamp bead in the left and right straight line direction (that is, the above-mentioned target direction). When the straight line connection distance between the lamp bead and the lamp bead on the left or right side is greater than 550 mm (that is, the above-mentioned first distance) or less than 250 mm (that is, the above-mentioned second distance), the lamp bead can be considered to be a segment boundary point (that is, a boundary lamp bead).
[0192] Condition four: the number of boundary lamp beads in a single sub-segment included in the segment is less than or equal to 2.
[0193] It can be understood that in the above optional implementation, by adopting the above conditions, the target light strip can be divided into segments more accurately, thereby achieving segmented control of the target light strip.
[0194] Step 204: Determine lighting effect parameters of the lamp beads included in the plurality of segments based on the control information and the user attribute information.
[0195] In this embodiment, the above step 204 may be performed in a variety of ways.
[0196] As an example, a pre-trained machine learning model can be used to determine the lighting effect parameters of the lamp beads included in the multiple segments based on the control information and the user attribute information. The above machine learning model can represent the corresponding relationship between the control information, the user attribute information and the lighting effect parameters of the lamp beads included in the multiple segments.
[0197] As another example, a pre-established knowledge base may be used to determine the lighting effect parameters of the lamp beads included in the multiple segments based on the control information and the user attribute information. The knowledge base may represent the corresponding relationship between the control information, the user attribute information and the lighting effect parameters of the lamp beads included in the multiple segments.
[0198] Specifically, each lamp bead included in the target light strip may correspond to a unique code, and thus, the lighting effect parameters of the lamp bead may be determined by determining the lighting effect parameters corresponding to each code.
[0199] Step 205: Control the lamp beads included in the target light strip according to the lighting effect parameters.
[0200] In this embodiment, step 205 and Figure 1 Step 103 in the corresponding embodiment is basically the same and will not be described again here.
[0201] In some optional implementations of this embodiment, after the target light strip is divided based on the lamp bead information to obtain a plurality of segments, category information of each of at least two of the segments may also be determined.
[0202] The category information may include one of the following: the front of the eaves, the side of the eaves, the slope of the house, etc. For example, if the height of the lamp beads in the segment and the angle corresponding to the lamp beads are within the error range, then the corresponding category information may represent the front and side of the eaves. If the height of the lamp beads in the segment increases or decreases, then the corresponding category information may represent the slope of the house.
[0203] On this basis, the following method can be used to perform the above-mentioned determination of the lighting effect parameters of the lamp beads included in the plurality of segments based on the control information and the user attribute information:
[0204] Based on the control information, the user attribute information and the category information, the lighting effect parameters of the lamp beads included in the plurality of segments are determined.
[0205] As an example, a pre-trained machine learning model can be used to determine the lighting effect parameters of the lamp beads included in the multiple segments based on the control information, the user attribute information and the category information. The above machine learning model can represent the corresponding relationship between the control information, the user attribute information, the category information and the lighting effect parameters of the lamp beads included in the multiple segments.
[0206] As another example, a pre-established knowledge base may be used to determine the lighting effect parameters of the lamp beads included in the multiple segments based on the control information, the user attribute information and the category information. The above-mentioned knowledge base may represent the corresponding relationship between the control information, the user attribute information, the category information and the lighting effect parameters of the lamp beads included in the multiple segments.
[0207] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 The corresponding technical features described in the corresponding embodiments are realized Figure 1 For technical effects of the light strip control method shown, please refer to Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0208] The light strip control method provided in the embodiment of the present application can achieve more refined control of the light strip by segmenting the light strip, thereby making the target light strip more suitable for different scenes, themes, atmospheres, music, etc.
[0209] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0210] In recent years, with the popularization of smart homes and the increasing demand for personalized decoration by users, light strings (also known as the target light strips mentioned above) have become increasingly popular among users as an important part of home and building exterior decoration. In order to meet users' demand for personalized lighting effects, various lighting effect software apps have appeared on the market. However, although these softwares have a large number of preset lighting effects, due to the wide variety of lighting effects, users need to try them one by one and apply them to actual products to find a lighting solution that meets their needs. In addition, the custom editing function is also relatively complex and difficult to use, which is not user-friendly for ordinary users.
[0211] The current industry solution is to add classification functions to the preset lighting effect schemes, but in actual use, users are still required to try and apply the schemes under the classification theme one by one. Custom editing requires users to set up each project.
[0212] Therefore, users want a good-looking lighting decoration atmosphere but are limited by their personal aesthetics and abilities. It is difficult to customize the ideal lighting effect and they need to click and try repeatedly.
[0213] This method can use a large language model and light string position information to generate segmented lighting effect parameters and full-segment lighting effect technology, which is suitable for lighting control technology in various smart home scenarios and can be applied to a variety of lighting equipment such as smart light strings and light strips on the eaves of houses.
[0214] Among them, a large language model refers to a language model containing hundreds of billions (or more) parameters, which are trained on a large amount of text data.
[0215] LSTM: Long Short-Term Memory (LSTM) is a powerful recursive neural network structure. By introducing the gate mechanism, it overcomes the gradient problem of traditional RNN, making it perform well in processing long sequences and natural language processing tasks.
[0216] 3D model: three dimension model, mainly refers to three-dimensional house model.
[0217] The method consists of the following two parts:
[0218] 1. Generation of segmented lighting effect parameters.
[0219] Through the distance measurement module, the distance from each lamp bead base on the light string (that is, the target light strip) to the obstruction (such as the ground) in the vertical direction of the ground (that is, the height of the lamp bead), the angle with the horizontal plane (that is, the angle corresponding to the lamp bead), and the interval distance between the lamp beads in the straight connection direction (that is, the distance corresponding to the lamp bead) are obtained and sent to the background server. The background server calculates and analyzes the segmentation information of the lamp beads according to different positions based on the vertical distance and the distance interval data in the straight connection direction. Using the large language model, the text understanding and semantic analysis of the lamp beads in different segments are performed based on the position segmentation information and the content input by the user (that is, the control information mentioned above), and the lighting effect parameters of each segmented lamp bead are generated, and finally the effect of displaying different lighting effects of lamp beads in different positions is achieved.
[0220] 2. Generate full-segment lighting effect parameters.
[0221] This section supplements the first section. When the segmented position information of the lamp beads on the light string cannot be obtained, the text or voice input of the user (that is, the control information mentioned above) can be directly based on the large language model to perform text understanding and semantic analysis on the input content, and the lighting effect parameters corresponding to the entire light string can be generated, so as to make recommendations to the user. In this situation, the segmentation situation is no longer considered.
[0222] Specifically, the method includes:
[0223] 1. Generation of segmented lighting effect parameters.
[0224] As an example, see Figure 3A , Figure 3A A schematic flow chart of another light strip control method provided in an embodiment of the present application.
[0225] Step 1: Get the angle between the lamp bead and the horizontal plane (that is, the angle corresponding to the lamp bead), the distance from the obstruction in the vertical direction (that is, the height of the lamp bead), and the spacing distance in the straight line connection direction of the lamp bead (that is, the distance corresponding to the lamp bead).
[0226] Here, the prerequisite for obtaining the above information is: the default ground is a horizontal plane. Each lamp bead base distance detection module obtains the angle α between the initial distance measuring sensor in the direction of the lamp's illumination surface and the horizontal plane (that is, the angle corresponding to the above lamp bead) through a level meter, and reports the angle α data to the background server; then adjusts the distance measuring sensor to the vertical ground direction at an angle of (90°-α), measures the distance from the lamp bead base to the vertical ground direction from the obstruction (that is, the height of the above lamp bead), and reports the current height and angle of the lamp bead; at the same time, the distance detection module detects whether the distance between the left and right lamp beads in the direction of the connecting straight line (that is, the distance corresponding to the above lamp bead) meets the specified value, and reports the distance value of adjacent lamp beads in the same straight line connection direction. As an example, please refer to Figure 3B , Figure 3B A schematic diagram of a segmented division method. Figure 3B Shows the installation and connection direction of the lamp beads.
[0227] Step 2: The backend server analyzes and calculates the height, angle, and distance information of each lamp bead reported by the light string (that is, the above-mentioned lamp bead information), and outputs the lamp bead segmentation information, that is, based on the lamp bead information, divides the target light strip into multiple segments.
[0228] The vertical height, horizontal angle and distance between adjacent lamp beads in the straight connection direction of each lamp bead obtained in step 1 are segmented according to the coding sequence of the lamp beads, and the length of each segment and the first and last lamp bead numbers are output. The spacing between the original lamp beads on the product device is 500 mm.
[0229] When the vertical height difference between multiple adjacent lamp beads and the obstruction (such as the ground) is within 100 mm (that is, the first height difference) and the horizontal angle difference between multiple adjacent lamp beads and the obstruction (that is, the first angle difference) is within 10° (that is, the first angle threshold), then these lamp beads can be considered to be on the same horizontal line, and so on. The adjacent lamp beads with the same information can be divided into one segment, such as segment 1 as a whole in the segmentation results in the following table.
[0230] When the vertical height difference between multiple adjacent lamp beads and the obstruction (such as the ground) is greater than 100 mm (that is, the first height difference), but the difference between the maximum and minimum values of the difference (that is, the second height difference) is less than 100 mm (that is, the second height threshold), and the horizontal angle difference with the adjacent lamp beads (that is, the first angle difference) is within 10° (that is, the first angle threshold), these lamp beads can be considered to be in the same segment, such as segment 2 as a whole in the segmentation results in the following table.
[0231] According to the distance value between the lamp bead and the adjacent lamp bead in the left and right straight line direction (that is, the above-mentioned target direction), it is determined whether the lamp bead is a segment boundary point. When the straight line connection distance between the lamp bead and the lamp bead on the left or right side is greater than 550 mm (that is, the above-mentioned first distance) or less than 250 mm (that is, the above-mentioned second distance), the lamp bead can be considered as a segment boundary point (that is, a boundary lamp bead). According to this logic, lamp beads 1 to 3, 9, 10, 14, and 18 are divided into segment boundary points;
[0232] According to the principle of subdivision, the dividing point of each subdivision is less than or equal to 2, and segment 1 is subdivided into segment 1-1 and segment 1-2, where segment 1-1 contains 2 boundary points, and segment 1-2 contains 2 boundary points and 5 intermediate points; segment 2 is subdivided into 2-1 and 2-2, where 2-1 contains 2 boundary points and 3 intermediate points, and 2-2 contains 1 boundary point and 3 intermediate points.
[0233] Additional note: The above division is a more detailed one. After the detailed division, the information of the first segmentation can also be used to generate the lighting effects later.
[0234]
[0235] Step 3: For each segment of the lamp bead information output in step 2, use the pre-trained classification model to add position labels (that is, the above-mentioned category information) according to the distance and angle information. For example, segments 1-1 and 1-2 can be labeled as the front and side of the eaves because the vertical distance and angle are within the error range. Segments 2-1 and 2-2 can be labeled as the slope of the house because the vertical distance of the lamp beads increases and decreases.
[0236] Step 4: Based on the segment lengths of steps 2 and 3 and the position label information corresponding to the segments, as well as the content information input by the user (that is, the control information mentioned above) and the user's own dimensional information (that is, the user attribute information mentioned above), use the large language model to generate different lighting effect parameters and lighting effect coding sequences for each segment, splice the segmented lighting effect coding sequences in order, sort the various schemes and return them.
[0237] Step 4.1: The input text information of the overall module includes three parts: user input, segment length and position label, and user's own dimension. User input supports voice input and text input. When the user chooses voice input, the voice acquisition module collects the sound input by the user, and the voice recognition module pre-processes the voice input by the user and converts it into text information based on the acoustic model and language model; the segment length and position label data come from the output of steps 2 and 3; the user's own dimension information refers to the user's personal information such as the country set when the user logs in to the client software. Subsequent steps will use this information to recommend lighting effects that are more personalized for the user.
[0238] Step 4.2: For the text information content input in step 4, use the pre-trained large language model to identify the user's intention and return the corresponding lighting effect solution for the user. For details, see the subsequent steps of step 4.2. In this step, if the large language model cannot identify the user's intention and cannot return a valid lighting effect solution, you can use the solution in the supplementary instructions to return similar lighting effects or popular lighting effects to the user as a supplement. For details, see the supplementary instructions section;
[0239] Step 4.2.1: For the text information content obtained in step 4.1, use a pre-trained large-scale natural language processing model to perform semantic recognition and text classification. First, determine the user's goal, whether it is necessary to generate new lighting effect parameters or adjust based on the existing lighting effects, and analyze and extract key information in the text information such as the theme, emotion, scene, country and other important information. For example, when the user enters the Spring Festival, the result of its semantic analysis and understanding is that the user needs lighting effect parameters, and the key information extracted is: the theme is the Spring Festival, the emotion may be festive, the scene is a traditional Chinese festival, and the country is China.
[0240] Step 4.2.2: If the user needs to generate new lighting effect parameters, then based on the extracted key information and the preset color psychology and emotion type database corresponding to the lighting effects, generate the color, speed, brightness, and lighting effect parameters of multiple lighting effect schemes through similarity matching algorithms such as cosine similarity. For example, in the example mentioned in step 4.2.1, the color of each segment of the parameters generated is gold, yellow, and red, the speed is medium, the brightness is 80%, and the effect type is a lantern lighting effect; the color of segment 2 is gold, yellow, and red, the speed is medium, the brightness is 80%, and the effect type is a flowing water lighting effect; use the LSTM model in advance to model and train the pre-processed lighting effect coding sequence and lighting effect parameter data, and then input the generated color, speed, brightness, and effect of each segment of the lighting effect parameters according to the trained model to generate the lighting effect coding sequence corresponding to the series of parameters.
[0241] Step 4.2.3: If the user needs to adjust the existing lighting effects, extract the lighting effect parameter items and segment names that need to be adjusted in the text, confirm the lighting effect parameters that need to be adjusted such as color, animation type, speed, and brightness; use the lighting effect coding rule engine to replace the color, speed, and brightness of the coding sequences of the existing lighting effects to obtain the replaced lighting effect coding sequence.
[0242] Among them, color similarity can be calculated based on the weighted Euclidean distance method. Lighting effect similarity can be preset. When controlling brightness, the brightness can be adjusted by a preset percentage (e.g. 0%) each time. When controlling speed, the light switching time can be increased or decreased by a preset time (e.g. 5 seconds) each time.
[0243] Supplementary explanation for step 4.2: When a large amount of input and output content has been accumulated by generating a lighting effect coding sequence through the above steps and presetting lighting effects in advance, a lighting effect knowledge base can be established. The lighting effect knowledge base contains the user's input, the lighting effects that the user likes under the input, and the user's personal dimension information such as country, region, number of times and duration of use of lighting effects, etc. Subsequently, for the information input by the user, text similarity matching can be performed in the lighting effect knowledge base at the same time, and the first (that is, the above target number) K similar lighting effect coding sequences in the corresponding lighting effect knowledge base that are similar to the input information are recalled; if the model cannot return a valid lighting effect solution, the popular lighting effects, that is, the top three (that is, the above target number) lighting effects in the number of times used in a period of time are directly returned from the lighting effect knowledge base.
[0244] Step 4.3: The segmented lighting effect codes returned by the model and rule schemes are spliced in order, and then the spliced lighting effect schemes and the lighting effect schemes returned by the knowledge base are scored and comprehensively sorted according to multiple dimensions such as the user survey in advance, the user's recent preference characteristics, and the similarity with the input content, and the top three lighting effect schemes and the corresponding lighting effect code sequences are returned; when the user enters the same content multiple times and the results returned by the model are similar, certain rules can be processed during sorting. When returning during sorting, the priority of the lighting effect schemes that have been returned before should be reduced, and priority should be given to returning lighting effect schemes that have not been returned before, to ensure that when the user enters the same content multiple times, different lighting effect schemes are returned to maintain the diversity of lighting effects.
[0245] 2. Generate full-segment lighting effect parameters.
[0246] The generation of full-segment lighting effect parameters is a supplementary solution to the segmented lighting effect generation in the first part. When the segmented position information of the lamp beads on the light string cannot be obtained, the large language model can be used to directly understand and semantically analyze the input content based on the user's text or voice input and user dimensional information, and generate the lighting effect parameters corresponding to the full-segment light string, so as to make recommendations to the user. In this situation, the segmented position is no longer considered.
[0247] The process of using the large language model to generate lighting effects based on user input and user dimension information is roughly the same as the first part, except that the model input lacks segment position information, and the model output is changed to a full-segment lighting effect encoding sequence, while the rest remains unchanged. For an example, please refer to Figure 3C , Figure 3C A schematic flow chart of another light strip control method provided in an embodiment of the present application.
[0248] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the light strip control method shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0249] The light strip control method provided in the embodiment of the present application provides an intelligent, easy-to-use lighting generation solution, which can quickly and efficiently generate a variety of atmosphere lighting effects that meet the needs based on user needs and lamp bead position segmentation, without the need to repeatedly try in a variety of preset lighting effects or set up operations on complex custom pages. The lamp beads at different positions are intelligently segmented, and key lighting effect parameters are determined through a large language model based on user input and user dimension information to generate segmented and full-segment lighting effect solutions.
[0250] Figure 4 This is a schematic diagram of the structure of a light strip control device provided in an embodiment of the present application. Specifically comprising:
[0251] An acquisition unit 401 is used to acquire control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of light beads;
[0252] A first determining unit 402, configured to determine lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information;
[0253] The control unit 403 is used to control the lamp beads included in the target light strip according to the lighting effect parameters.
[0254] In a possible implementation manner, before determining the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information, the device further includes:
[0255] The second determination unit (not shown in the figure) is used to determine the lamp bead information of the lamp bead included in the target lamp strip; wherein the lamp bead information includes at least one of the following: the height of the lamp bead, the angle corresponding to the lamp bead and the distance corresponding to the lamp bead; the angle corresponding to the lamp bead is: the angle between the irradiation direction of the lamp bead and the ground; the distance corresponding to the lamp bead is: the distance between the lamp bead and the target lamp bead; the target lamp bead is the adjacent lamp bead in the target direction of the lamp bead;
[0256] a dividing unit (not shown in the figure), configured to divide the target light strip into a plurality of segments based on the light bead information, wherein the segment includes at least one light bead; and
[0257] The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes:
[0258] Based on the control information and the user attribute information, the lighting effect parameters of the lamp beads included in the multiple segments are determined.
[0259] In a possible implementation, the height of the lamp bead is determined in the following manner:
[0260] Determine the angle between the irradiation direction of the lamp bead and the ground to obtain the target angle;
[0261] Based on the target angle, determining the distance between the lamp bead and the ground to obtain the height of the lamp bead; and
[0262] The distance corresponding to the lamp bead is determined in the following way:
[0263] Based on the target angle, the distance between the lamp bead and the target lamp bead is determined to obtain the distance corresponding to the lamp bead.
[0264] In a possible implementation manner, the segment satisfies any of the following conditions:
[0265] The first height difference is less than or equal to the first height threshold, wherein the first height difference is: the height difference between the lamp bead in the segment and the target lamp bead of the lamp bead; and the first angle difference is less than or equal to the first angle threshold, wherein the first angle difference is: the difference between the angle corresponding to the lamp bead in the segment and the angle corresponding to the target lamp bead of the lamp bead;
[0266] The first height difference is greater than the first height threshold; the second height difference is less than the second height threshold, wherein the second height difference is: the difference between the maximum height difference between the lamp beads in the segment and the minimum height difference between the lamp beads in the segment; and the first angle difference is less than or equal to the first angle threshold;
[0267] The segmented boundary lamp beads meet the following conditions: the distance between the boundary lamp beads and the target lamp beads of the boundary lamp beads is greater than the first distance or less than the second distance, wherein the second distance is less than the first distance;
[0268] The number of boundary lamp beads in a single sub-segment included in the segment is less than or equal to 2.
[0269] In a possible implementation manner, after dividing the target light strip based on the light bead information to obtain a plurality of segments, the device further includes:
[0270] A third determining unit (not shown in the figure), configured to determine category information of each of the at least two segments; and
[0271] The step of determining the lighting effect parameters of the lamp beads included in the plurality of segments based on the control information and the user attribute information comprises:
[0272] Based on the control information, the user attribute information and the category information, the lighting effect parameters of the lamp beads included in the plurality of segments are determined.
[0273] In a possible implementation, determining the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information includes:
[0274] Using at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base, determine the lighting effect parameters corresponding to the control information and the user attribute information, and obtain the lighting effect parameters of the lamp beads included in the target light strip;
[0275] Wherein, the machine learning model is used to characterize the corresponding relationship between control information, user attribute information and lighting effect parameters;
[0276] The lighting effect knowledge base is used to characterize the correspondence between control information, user attribute information and a target number of groups of lighting effect parameters.
[0277] In a possible implementation, the adopting at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base to determine the lighting effect parameters corresponding to the control information and the user attribute information includes:
[0278] Inputting the control information and the user attribute information into a pre-trained machine learning model to obtain output data of the machine learning model;
[0279] Determine whether the output data represents a lighting effect parameter corresponding to the control information and the user attribute information, and obtain determination information;
[0280] When the discrimination information indicates that the output data is not a lighting effect parameter corresponding to the control information and the user attribute information, a pre-established lighting effect knowledge base is used to determine a target number of groups of lighting effect parameters corresponding to the control information and the user attribute information.
[0281] In a possible implementation manner, the control information is input via a user; and
[0282] The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes:
[0283] Based on the control information and the user attribute information, determining multiple groups of lighting effect parameters of the lamp beads included in the target light strip;
[0284] Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters, wherein the target number of groups of lighting effect parameters are used to return to the control end of the light strip; and
[0285] The step of controlling the lamp beads included in the target light strip according to the lighting effect parameters comprises:
[0286] Determining selected lighting effect parameters from the lighting effect parameters of the target quantity group;
[0287] According to the selected lighting effect parameters, the lamp beads included in the target light strip are controlled.
[0288] In a possible implementation, determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters includes:
[0289] Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters based on the return priorities respectively corresponding to the multiple groups of lighting effect parameters; and
[0290] After determining a target number of groups of lighting effect parameters from the plurality of groups of lighting effect parameters, the device further includes:
[0291] Lower the return priority corresponding to the lighting effect parameters of the target quantity group.
[0292] The light strip control device provided in this embodiment can be as follows Figure 4 The light strip control device shown in can execute all the steps of the light strip control methods described above, thereby achieving the technical effects of the light strip control methods described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0293] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5 The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0294] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0295] It can be understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0296] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0297] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.
[0298] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0299] Acquire control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of light beads;
[0300] Based on the control information and the user attribute information, determining the lighting effect parameters of the lamp beads included in the target light strip;
[0301] According to the lighting effect parameters, the lamp beads included in the target light strip are controlled.
[0302] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0303] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0304] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0305] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in can execute all the steps of the above-mentioned light strip control methods, thereby achieving the technical effects of the above-mentioned light strip control methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0306] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0307] When one or more programs in the storage medium can be executed by one or more processors, the light strip control method executed on the electronic device side can be implemented.
[0308] The processor is used to execute the light strip control program stored in the memory to implement the following steps of the light strip control method executed on the electronic device side:
[0309] Acquire control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of light beads;
[0310] Based on the control information and the user attribute information, determining the lighting effect parameters of the lamp beads included in the target light strip;
[0311] According to the lighting effect parameters, the lamp beads included in the target light strip are controlled.
[0312] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0313] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0314] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0315] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A light strip control method, characterized in that: The method comprises: Acquire control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of light beads; Based on the control information and the user attribute information, determining the lighting effect parameters of the lamp beads included in the target light strip; According to the lighting effect parameters, the lamp beads included in the target light strip are controlled.
2. The method according to claim 1, characterized in that Before determining the lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information, the method further includes: Determine the lamp bead information of the lamp bead included in the target lamp strip; wherein the lamp bead information includes at least one of the following: the height of the lamp bead, the angle corresponding to the lamp bead and the distance corresponding to the lamp bead; the angle corresponding to the lamp bead is: the angle between the irradiation direction of the lamp bead and the ground; the distance corresponding to the lamp bead is: the distance between the lamp bead and the target lamp bead; the target lamp bead is the adjacent lamp bead in the target direction of the lamp bead; Based on the lamp bead information, the target lamp strip is divided into a plurality of segments, wherein the segment includes at least one lamp bead; and The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes: Based on the control information and the user attribute information, the lighting effect parameters of the lamp beads included in the multiple segments are determined.
3. The method according to claim 2, characterized in that The height of the lamp bead is determined as follows: Determine the angle between the irradiation direction of the lamp bead and the ground to obtain the target angle; Based on the target angle, determining the distance between the lamp bead and the ground to obtain the height of the lamp bead; and The distance corresponding to the lamp bead is determined in the following way: Based on the target angle, the distance between the lamp bead and the target lamp bead is determined to obtain the distance corresponding to the lamp bead.
4. The method according to claim 2, characterized in that: The segment meets at least one of the following conditions: The first height difference is less than or equal to the first height threshold, wherein the first height difference is: the height difference between the lamp bead in the segment and the target lamp bead of the lamp bead; and the first angle difference is less than or equal to the first angle threshold, wherein the first angle difference is: the difference between the angle corresponding to the lamp bead in the segment and the angle corresponding to the target lamp bead of the lamp bead; The first height difference is greater than the first height threshold; the second height difference is less than the second height threshold, wherein the second height difference is: the difference between the maximum height difference between the lamp beads in the segment and the minimum height difference between the lamp beads in the segment; and the first angle difference is less than or equal to the first angle threshold; The segmented boundary lamp beads meet the following conditions: the distance between the boundary lamp beads and the target lamp beads of the boundary lamp beads is greater than the first distance or less than the second distance, wherein the second distance is less than the first distance; The number of boundary lamp beads in a single sub-segment included in the segment is less than or equal to 2.
5. The method according to claim 2, characterized in that: After dividing the target light strip based on the light bead information to obtain a plurality of segments, the method further includes: determining category information of each of at least two of the segments; and The step of determining the lighting effect parameters of the lamp beads included in the plurality of segments based on the control information and the user attribute information comprises: Based on the control information, the user attribute information and the category information, the lighting effect parameters of the lamp beads included in the plurality of segments are determined.
6. The method according to claim 1, characterized in that The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes: Using at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base, determine the lighting effect parameters corresponding to the control information and the user attribute information, and obtain the lighting effect parameters of the lamp beads included in the target light strip; Wherein, the machine learning model is used to characterize the corresponding relationship between control information, user attribute information and lighting effect parameters; The lighting effect knowledge base is used to characterize the correspondence between control information, user attribute information and a target number of groups of lighting effect parameters.
7. The method according to claim 6, characterized in that The adopting at least one of a pre-trained machine learning model and a pre-established lighting effect knowledge base to determine the lighting effect parameters corresponding to the control information and the user attribute information includes: Inputting the control information and the user attribute information into a pre-trained machine learning model to obtain output data of the machine learning model; Determine whether the output data represents a lighting effect parameter corresponding to the control information and the user attribute information, and obtain determination information; When the discrimination information indicates that the output data is not a lighting effect parameter corresponding to the control information and the user attribute information, a pre-established lighting effect knowledge base is used to determine a target number of groups of lighting effect parameters corresponding to the control information and the user attribute information.
8. The method according to claim 1, characterized in that The control information is input by a user; as well as The determining, based on the control information and the user attribute information, lighting effect parameters of the lamp beads included in the target light strip includes: Based on the control information and the user attribute information, determining multiple groups of lighting effect parameters of the lamp beads included in the target light strip; Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters, wherein the target number of groups of lighting effect parameters are used to return to the control end of the light strip; and The step of controlling the lamp beads included in the target light strip according to the lighting effect parameters comprises: Determining selected lighting effect parameters from the lighting effect parameters of the target quantity group; According to the selected lighting effect parameters, the lamp beads included in the target light strip are controlled.
9. The method according to claim 8, characterized in that The step of determining a target number of groups of lighting effect parameters from the plurality of groups of lighting effect parameters includes: Determining a target number of groups of lighting effect parameters from the multiple groups of lighting effect parameters based on the return priorities respectively corresponding to the multiple groups of lighting effect parameters; and After determining a target number of groups of lighting effect parameters from the plurality of groups of lighting effect parameters, the method further includes: Lower the return priority corresponding to the lighting effect parameters of the target quantity group.
10. A light strip control device, characterized in that: The device comprises: An acquisition unit, configured to acquire control information and user attribute information of a target light strip, wherein the target light strip includes a plurality of light beads; A first determining unit, configured to determine lighting effect parameters of the lamp beads included in the target light strip based on the control information and the user attribute information; A control unit is used to control the lamp beads included in the target light strip according to the lighting effect parameters.
11. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and when the computer program is executed, implement the method described in any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Voice control method of lighting device, lighting device, lamp and storage medium
CN107172783A
Smart home lamp system capable of achieving personalized light effect, and control method
CN108156734A
Open office lighting system and control method based on mixed lighting
CN110035578A
Illumination adjusting method and system
CN112153788A
Corresponding relation obtaining method and device, equipment and medium
CN116416913A
Cited By
Lamp bead position detection method and device, equipment and product
CN119533290A
LED eave lamp system and intelligent control method thereof
CN119914862A
Lamp bead position detection method, computer apparatus and program product
EP4783744A1