Light strip control method and device, electronic equipment and storage medium
By collecting user pose information through a pose sensor and determining the target lighting parameters, the problem of fixed light and motion effects in LED control methods is solved, realizing the flexibility and richness of LED lighting and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2026-03-27
AI Technical Summary
In existing LED control methods, the light and motion effects of the LEDs are fixed, leading to user fatigue and a lack of flexibility and variety.
The pose sensor collects the pose information of the target user, determines the user's pose, and matches the target lighting parameters based on the user's pose to control the lighting of multiple LEDs.
It improves the flexibility and richness of LED chip control, enhances the user experience, and enables personalized and dynamic changes in LED chip lighting.
Smart Images

Figure CN119521503B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the control field, and particularly relates to a lamp strip control method and device, electronic equipment and storage medium. BACKGROUND
[0002] The lamp strip is a strip-shaped lamp formed by connecting a plurality of lamp beads in series through wires. In actual use, the lamp strip can be used straight or in various shapes (such as star shape, square shape, triangle shape, etc.). In order to achieve more diversified effects, the user sometimes needs to make the lamp beads of the lamp strip work asynchronously, for example, to control the lamp beads in the lamp strip with certain light effects and dynamic effects. At present, the light effects and dynamic effects of the plurality of lamp beads in the lamp strip are usually fixed. For example, the current lamp beads can only realize different light effects and dynamic effects according to the user's preset, and repeated light effects and dynamic effects can easily cause the user to have aesthetic fatigue.
[0003] It can be seen that how to improve the flexibility and richness of lamp bead control is a technical problem worthy of attention. SUMMARY
[0004] In view of this, in order to solve the above-mentioned part or all technical problems, the present application provides a lamp strip control method and device, electronic equipment and storage medium.
[0005] In a first aspect, the present application provides a lamp strip control method, the lamp strip comprising a plurality of lamp beads, and the method comprising:
[0006] obtaining pose information of a target user collected by a pose sensor;
[0007] determining a user pose of the target user based on the pose information;
[0008] determining a target lighting parameter based on the user pose, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of the plurality of lamp beads respectively;
[0009] controlling the plurality of lamp beads respectively according to the target lighting parameter.
[0010] In a possible implementation, the determining of the user pose of the target user based on the pose information comprises at least one of the following:
[0011] determining whether the target user is located in a preset area based on the pose information;
[0012] determining a position where the target user is located based on the pose information;
[0013] determining a moving track of the target user based on the pose information.
[0014] In a possible implementation, the determining the target lighting parameter based on the user pose comprises:
[0015] determining a change trend of a distance between the target user and each of the lamp beads based on the user pose in a target time period, wherein the change trend indicates that the distance is getting larger or the distance is getting smaller;
[0016] determining the target lighting parameter based on the determined change trend.
[0017] In a possible implementation, the determining the target lighting parameter based on the determined change trend comprises:
[0018] when the determined change trends are the same, determining the brightness of the plurality of lamp beads based on at least one of the distance and the change trend, to obtain the target lighting parameter;
[0019] when the determined change trends are not the same, determining that a target lighting parameter of a target lamp bead is a first parameter, and a target lighting parameter of a non-target lamp bead is a second parameter; wherein the target lamp bead is a lamp bead of the plurality of lamp beads that has a distance to the position where the target user is located less than or equal to a target distance.
[0020] In a possible implementation, the first parameter indicates a brightness greater than a brightness indicated by the second parameter.
[0021] In a possible implementation, the determining the target lighting parameter based on the user pose comprises:
[0022] when the user pose satisfies a preset condition, determining that the target lighting parameter indicates that the target lamp bead and the lamp beads on both sides of the target lamp bead symmetrically illuminate according to a preset light effect;
[0023] wherein the preset condition comprises that the user pose indicates that a time length during which the target user is located in a target area is greater than or equal to a preset time length, and / or an acquisition time of pose information of the user pose belongs to a preset time range.
[0024] the target lamp bead is a lamp bead of the plurality of lamp beads that has a distance to the position where the target user is located less than or equal to a target distance.
[0025] In a possible implementation, the symmetric illumination comprises at least one of the following:
[0026] turning on the lamp beads in order from far to near according to the distance between the target lamp bead and the lamp beads;
[0027] Alternately light up according to the preset color sequence.
[0028] In one possible implementation, before the target lighting parameter is determined based on the user pose, the method further includes:
[0029] determining relative positions between a detection range of the pose sensor and the plurality of lamp beads; and
[0030] The target lighting parameter is determined based on the user pose, including:
[0031] determining the target lighting parameter based on the relative positions and the user pose.
[0032] In a second aspect, an embodiment of the present application provides a lamp strip control device, the lamp strip including a plurality of lamp beads, and the device including:
[0033] an acquisition unit configured to acquire pose information of a target user collected by a pose sensor;
[0034] a first determination unit configured to determine a user pose of the target user based on the pose information;
[0035] a second determination unit configured to determine a target lighting parameter based on the user pose, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate lightings of the plurality of lamp beads respectively;
[0036] a control unit configured to control the plurality of lamp beads respectively according to the target lighting parameter.
[0037] In one possible implementation, the user pose of the target user is determined based on the pose information, including at least one of:
[0038] determining whether the target user is located in a preset area based on the pose information;
[0039] determining a position where the target user is located based on the pose information;
[0040] determining a moving track of the target user based on the pose information.
[0041] In one possible implementation, the target lighting parameter is determined based on the user pose, including:
[0042] determining a change trend of a distance between the target user and each of the plurality of lamp beads based on the user pose in a target time period, wherein the change trend indicates that the distance is getting larger or the distance is getting smaller;
[0043] determine a target lighting parameter based on the determined change trend.
[0044] In a possible implementation, the determining the target lighting parameter based on the determined change trend comprises:
[0045] In a case where the determined change trends are the same, determining the brightness of the plurality of light beads based on at least one of the distance and the change trend, to obtain the target lighting parameter.
[0046] In a case where the determined change trends are not the same, determining that the target lighting parameter of a target light bead is a first parameter, and the target lighting parameter of a non-target light bead is a second parameter; the target light bead is a light bead of the plurality of light beads that has a distance less than or equal to a target distance from the position where the target user is located.
[0047] In a possible implementation, the first parameter represents a brightness greater than the brightness represented by the second parameter.
[0048] In a possible implementation, the determining the target lighting parameter based on the user pose comprises:
[0049] In a case where the user pose meets a preset condition, determining that the target lighting parameter represents that the target light bead and the light beads on both sides of the target light bead are symmetrically illuminated according to a preset light effect, with the target light bead as a center.
[0050] The preset condition comprises that a time length during which the user pose represents that the target user is located in a target area is greater than or equal to a preset time length, and / or an acquisition time of pose information of the user pose belongs to a preset time range.
[0051] The target light bead is a light bead of the plurality of light beads that has a distance less than or equal to a target distance from the position where the target user is located.
[0052] In a possible implementation, the symmetric illumination comprises at least one of the following:
[0053] turning on the light beads in order from far to near according to the distance from the target light bead;
[0054] alternately turning on the light beads according to a preset color order.
[0055] In a possible implementation, before the determining the target lighting parameter based on the user pose, the apparatus further comprises:
[0056] a third determining unit, configured to determine a relative position between a detection range of the pose sensor and the plurality of light beads; and
[0057] The determining the target lighting parameter based on the user pose comprises:
[0058] The determining the target lighting parameter based on the user pose comprises:
[0059] In a third aspect, an electronic device is provided, comprising:
[0060] a memory configured to store a computer program;
[0061] a processor configured to execute the computer program stored in the memory, and the computer program, when executed, implements the method of any one of the embodiments of the light strip control method of the first aspect.
[0062] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program, when executed by a processor, implements the method of any one of the embodiments of the light strip control method of the first aspect.
[0063] In a fifth aspect, a computer program is provided, which comprises computer readable code, and when the computer readable code is run on a device, causes a processor in the device to implement the method of any one of the embodiments of the light strip control method of the first aspect.
[0064] The light strip control method provided in the embodiments of the present application can obtain the pose information of the target user collected by the pose sensor, so as to reduce the cost of collecting the pose information and reduce the power consumption of the device for collecting the pose information. Then, the user pose of the target user is determined based on the pose information, so as to identify the user pose. Then, the target lighting parameter is determined based on the user pose, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of the plurality of light beads respectively. In this way, the lighting parameter matched with the user pose is determined, and finally, the plurality of light beads are controlled respectively according to the target lighting parameter, so as to automatically control the plurality of light beads to illuminate in a manner matched with the user pose. Therefore, the flexibility and richness of the light bead control can be improved. BRIEF DESCRIPTION OF DRAWINGS
[0065] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application, together with the description.
[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor.
[0067] One or more embodiments are illustrated by way of example in the figures that are part of this disclosure and which will help understand various implementations. These examples do not represent one or more embodiments in limitation. Elements having the same reference number designates the same element or the similar elements throughout the attached drawings. The figures in the drawings are not necessarily to scale and the size of one or more components in the figures can be exaggerated for illustrative purposes and are not intended to limit the scope of the present disclosure.
[0068] Figure 1 A flowchart of a lamp strip control method provided by an embodiment of the present application is shown in FIG. 1.
[0069] Figure 2 A flowchart of another lamp strip control method provided by an embodiment of the present application is shown in FIG. 2.
[0070] Figure 3 A flowchart of yet another lamp strip control method provided by an embodiment of the present application is shown in FIG. 3.
[0071] Figure 4 A structural diagram of a lamp strip control device provided by an embodiment of the present application is shown in FIG. 4.
[0072] Figure 5 A structural diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION
[0073] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. As apparent from the following description, the embodiments described are only part of, not all, embodiments of the present application. For the purpose of explanation, descriptions of all elements and configurations set forth in the embodiments are not limited thereto. Those skilled in the art will appreciate that the embodiments described are presented for purposes of illustration only and not limitation.
[0074] Those skilled in the art will appreciate that the terms "first", "second", and so on in the embodiments of the present application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they represent the logical order between them.
[0075] It should also be understood that "a plurality of" in the embodiments of the present application can mean two or more, and "at least one" can mean one, two or more.
[0076] It should also be understood that for any component, data or structure mentioned in the embodiments of the present application, unless specifically limited or unless the context clearly indicates otherwise, it can be understood as one or more.
[0077] In addition, the term "and / or" in the present application is merely used to describe associated objects, and can represent three cases, for example, A and / or B can represent the three cases of A alone, A and B, and B alone. In addition, the character " / " in the present application generally represents an "or" relationship between the front and rear associated objects.
[0078] It should also be understood that the description of the various embodiments of the present application focuses on the differences between the various embodiments, and the same or similar parts can be referred to each other, and will not be repeated here for the sake of brevity.
[0079] The following description of at least one example embodiment is merely illustrative in nature and is in no way intended to limit the application or its application or uses.
[0080] Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail, but should be considered part of the specification when appropriate.
[0081] It should be noted that similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
[0082] It should be noted that the embodiments and features in the present application can be combined with each other without conflict. In order to facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.
[0083] In addition, it should be noted that the users (for example, target users) described in the present application can be distinguished by user identification. For example, the user identification can be a login account, in which case if different persons log in with the same account, the different persons can be considered as the same user; if the same person logs in with different accounts, the same person logging in different accounts can be considered as different users. For another example, in the state of not logging in the device, the user identification can also be assigned based on the device identification of the device. In this scenario, if different persons operate devices with the same device identification, the different persons can be considered as the same user; if the same person operates devices with different device identifications, the same person can be considered as different users.
[0084] In order to solve the technical problem of how to improve the flexibility and richness of lamp bead control in the prior art, the present application provides a lamp strip control method, which can improve the flexibility and richness of lamp bead control.
[0085] Figure 1 A flowchart of a lamp strip control method provided by an embodiment of the present application is shown. The lamp strip includes a plurality of lamp beads.
[0086] The present method can be applied to one or more electronic devices such as a lamp strip, a smart phone, a notebook computer, a desktop computer, a portable computer, and a server. In addition, the execution subject of the present method can be hardware or software. When the 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 the present method, or multiple electronic devices can cooperate with each other to execute the present method. When the execution subject is software, the present method can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made herein.
[0087] As shown in Figure 1 , the method specifically includes:
[0088] In step 101, the pose information of a target user collected by a pose sensor is acquired.
[0089] In the present embodiment, the pose sensor can be used for distance detection (i.e., position detection) and angle detection (i.e., posture detection) of an object (including the target user).
[0090] In some cases, the pose sensor can be a 2D sensor. The 2D sensor is a battery-powered sensor that includes active transmitting and receiving devices, has a low-power standby mode (1D standby mode) and a working mode (2D working mode). For example, a 2D millimeter wave radar, which is a sensor that detects the position area, existence, and movement trajectory of an object by measuring the angle and distance of the object relative to the reference position.
[0091] The 2D sensor, such as a millimeter wave radar, calculates the distance between the target (e.g., the target user) and the radar by measuring the round-trip time of the signal. Specifically, the radar can emit a short pulse of millimeter wave signals, which can propagate in the air. When it encounters a target, part of the signal can be reflected back by the target. The radar can receive the reflected signal and measure the round-trip time of the signal, thereby calculating the distance between the target and the radar to achieve distance detection.
[0092] In addition, a 2D sensor, such as a millimeter wave radar, can also calculate the angle of a target (e.g., the target user) by measuring the phase difference of a signal. Specifically, the radar can emit two adjacent millimeter wave signals with a phase difference between them. When the two signals encounter a target, they can be reflected back by the target, and the phase difference between them can change. The radar receives the reflected signals and measures the change in the phase difference, thereby calculating the angle of the target to achieve angle detection.
[0093] In combination with distance and angle detection, a 2D sensor can achieve accurate positioning and tracking of a target, i.e., obtain the above-mentioned pose information.
[0094] The target user can be any user detected by the above-mentioned pose sensor.
[0095] Step 102: determining a user pose of the target user based on the pose information.
[0096] In this embodiment, the pose information can represent at least one user pose of the position and attitude of the target user. Thus, the pose of the target user can be determined based on the pose information, thereby obtaining the user pose of the target user.
[0097] Step 103: determining a target lighting parameter based on the user pose, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of each of the plurality of light beads.
[0098] In this embodiment, a matching relationship between the user pose and the lighting parameter can be pre-set. Thus, based on the user pose obtained in step 102, the lighting parameter matched with the user pose can be determined, thereby obtaining the target lighting parameter.
[0099] Here, since the above-mentioned light strip includes a plurality of light beads. Therefore, different target lighting parameters can be determined for different light beads. For example, if the above-mentioned light strip includes three light beads, i.e., light bead A, light bead B and light bead C, the target lighting parameter can indicate that the brightness of light bead A is 0, the brightness of light bead B is non-0, and the brightness of light bead C is 0; or the target lighting parameter can indicate that the brightness of light bead A is 0, the brightness of light bead B is 50%, and the brightness of light bead C is 100%; or the target lighting parameter can indicate that light bead A emits red light, light bead B emits yellow light, and light bead C emits green light.
[0100] Step 104: controlling each of the plurality of light beads according to the target lighting parameter.
[0101] In the embodiment, since the target light parameter is used to indicate the light of the plurality of light beads respectively, the plurality of light beads can be controlled respectively according to the target light parameter.
[0102] In some optional implementation of the embodiment, at least one of the following can be used to determine the user pose of the target user based on the pose information:
[0103] Firstly, whether the target user is located in a preset area is determined based on the pose information.
[0104] The preset area can be one or more areas determined in advance. The preset area can be located in the detection range of the pose sensor. Thus, whether the target user is located in the preset area can be determined by determining whether the signal reflected by the target user in the preset area is received by the receiving device after the pose sensor emits the signal.
[0105] Here, the sensing range of the pose sensor can be virtually divided into a plurality of fan-shaped areas according to distance and angle. Whether an object is a human body can be determined by fitting the reflection energy of the human body at different positions on the pose sensor. Whether the object is a static object (such as a column, sofa, or plant, which has similar reflection energy for a long time) or a human body (which exists for a short time) can be determined by obtaining the existence time of the reflection object.
[0106] Secondly, the position of the target user is determined based on the pose information.
[0107] Here, the pose sensor can emit a signal (such as a short-pulse millimeter wave signal). The signal can propagate in the air. When the signal encounters a target (such as the target user), part of the signal can be reflected back by the target. The pose sensor can receive the reflected signal and measure the round-trip time of the signal, thereby calculating the distance between the target and the pose sensor, to determine the position of the target user.
[0108] In addition, the sensing range of the pose sensor can be virtually divided into a plurality of fan-shaped areas according to distance and angle. The position of an object can be determined by measuring the angle and distance of the object relative to a reference position.
[0109] Thirdly, the moving track of the target user is determined based on the pose information.
[0110] Here, the moving track of the target user can be determined based on the position of the target user, after the pose sensor continuously obtains the position of the target user.
[0111] In addition, the sensing range of the pose sensor can be virtually divided into several fan-shaped regions in terms of distance and angle. By obtaining different positions of the human body in a time period, the direction of the action trajectory of the human body, such as left and right or near and far, can be obtained.
[0112] It can be understood that, in the optional implementation described above, at least one of whether the target user is located in the preset area and the position and movement trajectory of the target user can be determined based on the pose information, so that different light parameters can be used to control the lamp beads based on whether the target user is located in the preset area and the position and movement trajectory of the target user, thereby further improving the flexibility and richness of the lamp bead control.
[0113] In some optional implementations of the embodiment, the relative positions between the detection range of the pose sensor and the plurality of lamp beads can be determined before the target light parameter is determined based on the user pose.
[0114] Specifically, after the pose sensor is installed, the detection range of the pose sensor and the relative position relationship with the lamp strip need to be calibrated. For example, the user can calibrate the fan-shaped detection region of the pose sensor by walking, including the leftmost point, the rightmost point, the farthest point, and the nearest point. The correlation of the nearby lamp strip at each boundary point is also labeled, such as the xxth lamp bead of the lamp strip, the floodlight lamp bead on the right side of the yard, and the like.
[0115] On this basis, the target light parameter can be determined based on the user pose in the following manner:
[0116] The target light parameter is determined based on the relative position and the user pose.
[0117] It can be understood that, in the optional implementation described above, the relative positions between the detection range of the pose sensor and the plurality of lamp beads can be determined, and then the target light parameter can be determined based on the relative position and the user pose, so as to control the lamp beads. In this way, the accuracy of the lamp bead control can be improved.
[0118] The lamp strip control method provided in the embodiments of the present application can obtain the pose information of a target user collected by a pose sensor, so as to reduce the cost of collecting the pose information and the power consumption of the device for collecting the pose information. Then, the user pose of the target user is determined based on the pose information, so as to identify the user pose. Then, the target lighting parameter is determined based on the user pose, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of the plurality of lamp beads respectively, so as to determine the lighting parameter matched with the user pose. Finally, the plurality of lamp beads are controlled respectively according to the target lighting parameter, so as to automatically control the plurality of lamp beads to illuminate in a manner matched with the user pose. Therefore, the flexibility and richness of the control of the lamp beads can be improved.
[0119] Figure 2 Another flowchart of a lamp strip control method is provided in the embodiments of the present application. The lamp strip includes a plurality of lamp beads. As shown in the figure, the method specifically includes the following steps. Figure 2
[0120] In step 201, the pose information of a target user collected by a pose sensor is obtained.
[0121] In the embodiments, step 201 is basically the same as step 101 in the corresponding embodiments, which will not be described herein. Figure 1
[0122] In step 202, the user pose of the target user is determined based on the pose information.
[0123] In the embodiments, step 202 is basically the same as step 102 in the corresponding embodiments, which will not be described herein. Figure 1
[0124] In step 203, the change trend of the distance between the target user and each lamp bead in a target time period is determined based on the user pose, wherein the change trend indicates that the distance is getting larger or the distance is getting smaller.
[0125] In the embodiments, if the target user walks towards the lamp strip, the distance between the target user and each lamp bead will be smaller. If the target user walks away from the lamp strip, the distance between the target user and each lamp bead will be larger. If the target user walks away from the lamp strip and stays at a certain position, the distance between the target user and each lamp bead will be larger at some time and smaller at some other time.
[0126] At step 204, a target lighting parameter is determined based on the determined change trend, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of the plurality of light beads respectively.
[0127] In the embodiment, the matching relationship between various change trends and lighting parameters can be determined in advance, and then based on the matching relationship, the lighting parameter matched with the change trend determined at step 203 is determined as the lighting parameter matched with the user pose, thereby obtaining the target lighting parameter.
[0128] At step 205, the plurality of light beads are controlled respectively according to the target lighting parameter.
[0129] In the embodiment, step 205 is basically the same as step 104 in the corresponding embodiment, which will not be described here. Figure 1
[0130] In some optional implementations of the embodiment, the target lighting parameter can be determined based on the determined change trend in the following manner:
[0131] In the case where the determined change trends are all the same, the brightness of the plurality of light beads is determined based on at least one of the distance and the change trend, thereby obtaining the target lighting parameter.
[0132] As an example, the brightness of a light bead can be negatively correlated with the distance between the light bead and the target user. If the determined change trends all indicate that the distance is getting larger, the brightness of the plurality of light beads can gradually decrease; if the determined change trends all indicate that the distance is getting smaller, the brightness of the plurality of light beads can gradually increase.
[0133] In the case where the determined change trends are not all the same, the target lighting parameter of a target light bead is determined as a first parameter, and the target lighting parameter of a non-target light bead is determined as a second parameter.
[0134] The target light bead is a light bead in the plurality of light beads, which has a distance less than or equal to a target distance from the position where the target user is located.
[0135] The target distance can be a pre-determined distance, and in addition, the target distance can also be determined based on the distance between the position where the target user is located.
[0136] For example, the target distance can be determined in the following manner: first, a light bead B closest to a position A where the target user is located is determined, and then the distance between the light bead B and the position A is determined as the target distance.
[0137] For another example, the target distance can also be determined as follows: first, three closest light beads B, C and D to the location A where the target user is located are determined, then the light bead with the largest distance to the location A among the light beads B, C and D is determined (denoted as light bead E), and then the distance between the light bead E and the location A is determined as the target distance.
[0138] As an example, when the visitor moves left and right, the determined respective change trends are not the same. At this time, the lighted light beads follow the visitor's position to light up and display as a first preset color (i.e., a first parameter, such as dark red), and the light beads on both sides display as a second color (i.e., a second parameter, such as light red).
[0139] It can be understood that in the above optional implementation, it can be identified that the target user is away from or close to the light strip, or it can be identified that the target user moves left and right along the light strip, and then a corresponding target lighting parameter is used to control multiple light beads, thereby further improving the flexibility and richness of light bead control.
[0140] In some application scenarios in the above optional implementation, the brightness represented by the first parameter is greater than the brightness represented by the second parameter.
[0141] As an example, when the target user moves left and right, the determined respective change trends are not the same. At this time, the lighted point light sources follow the visitor's position to light up, the point light source closest to the visitor is the brightest, and the point light sources adjacent to the left and right gradually become dim, thereby forming a focusing following effect.
[0142] It can be understood that in the above application scenario, in the case that the target user moves left and right, i.e., the determined respective change trends are not the same, by controlling the brightness of the target light bead to be greater than the brightness of the remaining light beads, the position where the target user is located can be highlighted, thereby further improving the experience of the user in the ambient lighting.
[0143] It should be noted that in addition to the above described content, the present embodiment can also include Figure 1 corresponding technical features described in the corresponding embodiments, thereby achieving Figure 1 the technical effects of the light strip control method shown, and specific reference is made to Figure 1 the related description, which will not be repeated here for brevity.
[0144] The light strip control method provided by the embodiments of the present application can obtain a user trajectory based on the user pose in the target time period, and then determine the change trend of the distance between the target user and each light bead to identify whether the user is approaching, away from, or moving along the light strip, and then use a corresponding target lighting parameter to control multiple light beads, thereby further improving the flexibility and richness of light bead control.
[0145] Figure 3 A flowchart of another lamp strip control method is provided in the embodiments of the present application. The lamp strip includes a plurality of lamp beads.
[0146] Specifically, as shown in the method specifically includes: Figure 3
[0147] Step 301, acquiring the pose information of the target user collected by the pose sensor.
[0148] In the embodiment, step 301 is basically the same as step 101 in the corresponding embodiment, which will not be repeated here. Figure 1
[0149] Step 302, determining the user pose of the target user based on the pose information.
[0150] In the embodiment, step 302 is basically the same as step 102 in the corresponding embodiment, which will not be repeated here. Figure 1
[0151] Step 303, in the case that the user pose meets a preset condition, determining a target lighting parameter representing that the target lamp beads are symmetrically illuminated according to a preset light effect, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of a plurality of lamp beads respectively.
[0152] In the embodiment, the preset condition includes at least one of condition one and condition two:
[0153] Condition one, the user pose represents that the target user is located in the target area for a duration greater than or equal to a preset duration.
[0154] Condition two, the collection time of the pose information of the user pose belongs to a preset time range. The preset time range can be a time period belonging to night. For example, the preset time range can be 22:00-05:00.
[0155] Here, the target lamp bead is a lamp bead in the plurality of lamp beads, and the distance between the target lamp bead and the position where the target user is located is less than or equal to a target distance. When the number of lamp beads in the plurality of lamp beads and the distance between the target lamp bead and the position where the target user is located is the smallest is greater than or equal to 2, the number of target lamp beads can also be greater than or equal to 2.
[0156] As an example, if the target user is located in the target area for a time period greater than or equal to a preset time period, the target lamp bead can be taken as a center to control the lamp beads on both sides of the target lamp bead to symmetrically illuminate according to a preset light effect. For example, the target lamp bead is illuminated, and the non-target lamp beads are turned off. As another example, the brightness of the target lamp bead is 100%, the brightness of the lamp beads closer to the target lamp bead is greater, and the brightness of the lamp beads on both sides of the target lamp bead is symmetrical. As a further example, the target lamp bead displays red, the two lamp beads closest to the target lamp bead display yellow, and the two lamp beads less close to the target lamp bead display green.
[0157] As a further example, if the collection time of the pose information belongs to a preset time range (for example, 22:00-5:00), the target lamp bead can be taken as a center to control the lamp beads on both sides (for example, left and right sides) of the target lamp bead to symmetrically illuminate according to a preset light effect. For example, the target lamp bead is illuminated, and the non-target lamp beads are turned off. As another example, the brightness of the target lamp bead is 100%, the brightness of the lamp beads closer to the target lamp bead is greater, and the brightness of the lamp beads on both sides of the target lamp bead is symmetrical. As a further example, the target lamp bead displays red, the two lamp beads closest to the target lamp bead display yellow, and the two lamp beads less close to the target lamp bead display green.
[0158] As a further example, if the collection time of the pose information belongs to a preset time range (for example, 22:00-5:00), the target lamp bead can be taken as a center to control the lamp beads on both sides (for example, left and right sides) of the target lamp bead to symmetrically illuminate according to a preset light effect. For example, the target lamp bead is illuminated, and the non-target lamp beads are turned off. As another example, the brightness of the target lamp bead is 100%, the brightness of the lamp beads closer to the target lamp bead is greater, and the brightness of the lamp beads on both sides of the target lamp bead is symmetrical. As a further example, the target lamp bead displays red, the two lamp beads closest to the target lamp bead display yellow, and the two lamp beads less close to the target lamp bead display green.
[0159] In some optional implementations of the embodiment, the symmetric illumination includes at least one of the following:
[0160] Firstly, the lamp beads are turned on in order according to the distance from the target lamp bead from far to near.
[0161] For example, if the above lamp strip includes five lamp beads, that is, lamp bead A, lamp bead B, lamp bead C, lamp bead D, and lamp bead E, and the target lamp bead is lamp bead C, lamp bead A, lamp bead C, and lamp bead E can be controlled to be illuminated first, and lamp bead B and lamp bead D are turned off. After a preset time period (for example, 1 second), lamp bead A and lamp bead E are controlled to be turned off, and lamp bead B, lamp bead C, and lamp bead D are controlled to be illuminated, so as to realize the flowing light effect to the target user.
[0162] Secondly, the light of the target light bead is turned on according to the preset color order.
[0163] For example, if the above-mentioned light strip includes 5 light beads, namely, light bead A, light bead B, light bead C, light bead D, and light bead E, and the target light bead is light bead C, the color of light bead A and light bead E can be controlled to be blue first, the color of light bead C can be controlled to be white, and the color of light bead B and light bead D can be controlled to be red, then after a preset time interval (for example, 1 second), the color of light bead A and light bead E can be controlled to be red, the color of light bead C can be controlled to be white, and the color of light bead B and light bead D can be controlled to be blue, so as to realize the left and right point light source red-blue alternating light mode and flow towards the target user direction.
[0164] It can be understood that in the above-mentioned application scenario, the target user's position can be further highlighted by using the mode described in at least one of the above-mentioned first item and second item to control the symmetrical illumination of the light beads, so as to further improve the experience of the user in the atmosphere lighting.
[0165] Step 304: controlling the plurality of light beads respectively according to the target light parameter.
[0166] In the embodiment, step 304 is basically the same as step 104 in the corresponding embodiment, which will not be described here. Figure 1
[0167] In the following, the pose sensor is taken as a 2D sensor as an example to illustrate the embodiments of the present application, but it should be noted that the embodiments of the present application can have the features described below, but the following description does not constitute a limitation on the protection scope of the embodiments of the present application.
[0168] The light effect and dynamic effect of the current atmosphere lighting are usually fixed patterns, which can only realize different light effects and dynamic effects according to the user's preset, and cannot interact with the atmosphere according to the user's existence, position, and action trajectory, and repeated light effects can easily cause aesthetic fatigue.
[0169] The 2D sensor is a battery-powered sensor that includes active transmitting and receiving devices, and has a low-power standby mode and a working mode. For example, a 2D millimeter wave radar, which detects the position area, existence, and action trajectory of an object by measuring the angle and distance of the target object relative to the reference position.
[0170] The 2D sensor, such as a millimeter wave radar, calculates the distance between the target and the radar by measuring the round-trip time of the signal. Specifically, the radar will emit a short pulse of millimeter wave signals, and the signal will propagate in the air. When it encounters a target, part of the signal will be reflected back. The radar receives the reflected signal and measures the round-trip time of the signal, thereby calculating the distance between the target and the radar to realize distance detection.
[0171] 2D sensor, such as millimeter wave radar, calculates the angle of the target by measuring the phase difference of the signal. Specifically, the radar will emit two adjacent millimeter wave signals, and there is a phase difference between the two signals. When the two signals encounter a target, they will be reflected back by the target, and the phase difference between them will change. The radar will receive the reflected signal and measure the change in phase difference, thereby calculating the angle of the target, thereby achieving angle detection.
[0172] Combining distance and angle detection, 2D sensor can achieve accurate positioning and tracking of the target.
[0173] In addition, 2D sensor can adopt 1D standby mode and 2D working mode. The microwave transmission pulse width of 1D standby mode is small (typical value 220us), and there is no need to start MCU (Microcontroller Unit, microcontroller unit) operation, the power consumption is small (typical value 2.88mW), suitable for long time low power standby, 2D working mode microwave transmission pulse width is large (typical value 1100us), need to start MCU operation, power consumption is large (typical value 49mW), used for short time detection target distance and angle.
[0174] 2D sensor can switch from 1D standby mode to 2D working mode, the sensor is powered on by default after starting 1D standby mode, when detecting that the object in the working area appears and the reflection value is higher than the human threshold, it is considered that the human body enters the working area or exists, at this time, switch to 2D working mode.
[0175] 2D sensor can also switch from 2D working mode to 1D standby mode: when the human body signal in the working area disappears for more than 1s (default value), it is considered that the human body has left, and the 1D standby mode is switched to.
[0176] In the method, the position area of the visitor (i.e. the above-mentioned target user), the existence or not (i.e. whether the above-mentioned target user is located in the preset area) and the action trajectory (i.e. the moving trajectory of the above-mentioned target user) can be detected by the 2D sensor.
[0177] 2D sensor can be powered by battery, including AA, AAA, CR123A, lithium battery and other power supply schemes; users do not need to pull the power cord, and the installation position is flexible and simple.
[0178] In the method, 2D sensing scheme is adopted, the distance of the target (including the above-mentioned target user) is detected by active ToF (Time of Flight, time of flight), and the angle of the target is detected by multi-transmission and multi-reception signal transmission and reception mechanism, so as to obtain the pose information of the target user.
[0179] Region detection, the sensing range of 2D sensor can be virtually divided into several fan-shaped regions according to distance and angle. By measuring the angle and distance of the object relative to the reference position, the position region of the object can be determined.
[0180] Presence detection, the sensing range of 2D sensor can be virtually divided into several fan-shaped regions according to distance and angle. By fitting the energy of the human body reflected by the 2D sensor at different positions, it can be determined whether it is a human body. By obtaining the presence time of the reflected object, it can be determined whether the object is a static object (such as a column, sofa, and green plant, which has similar reflection energy for a long time) or a human body (which exists for a short time).
[0181] Trajectory tracking, the sensing range of 2D sensor can be virtually divided into several fan-shaped regions according to distance and angle. By obtaining the residence time of the human body at different positions, the direction of the human body's action trajectory can be obtained, such as left and right, near and far.
[0182] On this basis, the position region, presence, and action trajectory of the visitor can be obtained, and the light effect and dynamic effect of the atmosphere lighting can be changed in real time.
[0183] 1. Atmosphere lighting strip and controller:
[0184] a. The atmosphere lighting strip has multiple forms, including one or more of a light strip, a lawn lamp, a floodlight, and a wall washing lamp, and each light-emitting body single point is controllable, i.e., it includes multiple lamp beads.
[0185] b. It is connected to the controller through a unified wire and interface and is controlled by the controller to change the light effect and dynamic effect.
[0186] c. The controller and the 2D sensor are wirelessly connected through Bluetooth or WiFi.
[0187] 2. 2D sensor initialization and calibration:
[0188] a. After the user installs the 2D sensor, the detection range of the sensor and the relative position relationship with the atmosphere lighting are needed to be calibrated.
[0189] b. The user calibrates the fan-shaped detection region of the 2D sensor by walking, including the leftmost point, the rightmost point, the farthest point, and the nearest point. The association relationship of the nearby intelligent light strip is also marked at each boundary point, such as the xxth light of the light strip, the floodlight on the right side of the courtyard, etc.
[0190] 3. Light effect linkage:
[0191] a. Single-point light chasing: when the visitor approaches or moves away, the luminous intensity of a single or three point light sources (i.e. the target lamp beads described above) is adjusted according to the distance of the visitor to the light strip, and the point light source is turned on when the visitor approaches and turned off when the visitor moves away; when the visitor moves left and right, the light-emitting point light source follows the visitor's position and is turned on, and the point light source closest to the visitor is the brightest, and the adjacent point light sources on the left and right gradually dim, forming a focusing following effect.
[0192] b. Two-way Highlight: when the visitor stays for more than xx time (default 10s), the point light source at the visitor's position is taken as the center, and the left and right point light sources flow towards the visitor
[0193] c. Night warning: during the night period (default 22-5), when the visitor stays for more than xx time (default 30s), the point light source at the visitor's position is taken as the center, and the left and right point light sources flow towards the visitor in red and blue alternating light mode
[0194] In the method, the 2D sensor realizes the interaction between the light effect and the visitor's walking track, improves the pleasant feeling of the atmosphere lighting to the visitor, and in addition, the method is simple and easy to use, does not need to pull the electric wire, and does not need to install the camera, and the battery outdoor sensor can be used by being pasted.
[0195] It should be noted that, in addition to the above-mentioned content, the present embodiment can also include the technical features described in the above embodiments, and further realize the technical effects of the light strip control method shown above. For brevity, the description is not repeated here.
[0196] The light strip control method provided by the embodiment of the present application can highlight the position where the target user is located by controlling the target lamp beads to be centered and the lamp beads on both sides of the target lamp beads to be symmetrically illuminated according to a preset light effect after the position of the target user is determined, thereby improving the experience of the user to the atmosphere lighting.
[0197] Figure 4 A structural schematic diagram of a light strip control device provided by the embodiment of the present application is shown. The light strip includes a plurality of lamp beads, and the device includes:
[0198] The acquisition unit 401 is configured to acquire the pose information of the target user collected by the pose sensor.
[0199] The first determination unit 402 is configured to determine the user pose of the target user based on the pose information.
[0200] The second determination unit 403 is configured to determine a target lighting parameter based on the user pose, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of a plurality of lamp beads respectively.
[0201] The control unit 404 is configured to control the plurality of lamp beads respectively according to the target lighting parameter.
[0202] In a possible implementation, the determining of the user pose of the target user based on the pose information comprises at least one of the following:
[0203] The determining of whether the target user is located in a preset area based on the pose information;
[0204] The determining of a position where the target user is located based on the pose information;
[0205] The determining of a moving track of the target user based on the pose information.
[0206] In a possible implementation, the determining of the target lighting parameter based on the user pose comprises:
[0207] The determining of a change trend of a distance between the target user and each of the lamp beads based on the user pose in a target time period, wherein the change trend indicates that the distance is getting larger or the distance is getting smaller;
[0208] The determining of the target lighting parameter based on the determined change trend.
[0209] In a possible implementation, the determining of the target lighting parameter based on the determined change trend comprises:
[0210] In a case where each of the determined change trends is the same, the determining of brightness of the plurality of lamp beads based on at least one of the distance and the change trend, to obtain the target lighting parameter;
[0211] In a case where each of the determined change trends is not the same, the target lighting parameter of a target lamp bead is determined as a first parameter, and the target lighting parameter of a non-target lamp bead is determined as a second parameter; wherein the target lamp bead is a lamp bead of the plurality of lamp beads, and a distance between the target lamp bead and the position where the target user is located is less than or equal to a target distance.
[0212] In a possible implementation, the first parameter indicates a brightness greater than a brightness indicated by the second parameter.
[0213] In a possible implementation, the determining of the target lighting parameter based on the user pose comprises:
[0214] In a case where the user pose meets a preset condition, the target lighting parameter is determined to indicate that lamp beads on two sides of a target lamp bead are symmetrically illuminated according to a preset light effect, with the target lamp bead as a center.
[0215] The preset conditions include: the duration during which the user pose indicates that the target user is located within the target area is greater than or equal to a preset duration, and / or the time of collection of the user pose information belongs to a preset time range.
[0216] The target LED bead is one of the multiple LED beads whose distance from the location of the target user is less than or equal to the target distance.
[0217] In one possible implementation, the symmetrical illumination includes at least one of the following:
[0218] The lights are turned on sequentially according to their distance from the target LED beads, from farthest to closest.
[0219] The lights illuminate alternately according to a preset color sequence.
[0220] In one possible implementation, before determining the target illumination parameters based on the user pose, the device further includes:
[0221] The third determining unit (not shown in the figure) is used to determine the detection range of the pose sensor and the relative position between the plurality of LED beads; and
[0222] Determining the target illumination parameters based on the user's pose includes:
[0223] Based on the relative position and the user pose, the target illumination parameters are determined.
[0224] The light strip control device provided in this embodiment can be as follows: Figure 4 The light strip control device shown 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. For details, please refer to the relevant descriptions above. For the sake of brevity, it will not be elaborated here.
[0225] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 The illustrated electronic device 500 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 implement communication between these components. In addition to a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 5 The general designated all buses as Bus System 505.
[0226] The user interface 503 can include a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touchpad, or a touchscreen).
[0227] It can be understood that the memory 502 in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, without being limited to, these and any other suitable types of memory.
[0228] In some embodiments, the memory 502 stores the following elements, executable units or data structures, or a subset of them, or an extended set of them: an operating system 5021 and an application program 5022.
[0229] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 5022 includes various application programs, such as a Media Player, a Browser, etc., for implementing various application services. The program for implementing the method of the embodiments of the present application can be included in the application program 5022.
[0230] In this embodiment, the processor 501 is configured to execute the method steps provided by each method embodiment by invoking the programs or instructions stored in the memory 502, specifically, the programs or instructions stored in the application program 5022. For example, the processor 501 is configured to execute the following steps:
[0231] Obtain the pose information of the target user collected by the pose sensor;
[0232] Determine the user pose of the target user based on the pose information;
[0233] Determine the target lighting parameter based on the user pose, wherein the target lighting parameter is a lighting parameter matched with the user pose, and the target lighting parameter is used to indicate the lighting of the plurality of lamp beads respectively;
[0234] Control the plurality of lamp beads respectively according to the target lighting parameter.
[0235] The method disclosed in the embodiments of the present application can be applied to the processor 501 or implemented by the processor 501. The processor 501 can be an integrated circuit chip with a signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit or the instruction in the form of software in the processor 501. The processor 501 mentioned above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each method, step and logic block diagram 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. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software units in the code processor for execution. The software unit can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory, an electrically erasable programmable memory, a register or other mature storage media in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and combines the hardware to complete the steps of the above method.
[0236] It can be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described above, or a combination thereof.
[0237] For software implementation, the techniques described herein can be implemented with a processing unit performing the functions described above. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or externally to the processor.
[0238] The electronic device provided by the embodiments can be an electronic device as shown in Figure 5 The electronic device provided by the embodiments can be an electronic device as shown in
[0239] The embodiments of the present application further provide a storage medium (computer readable storage medium). The storage medium stores one or more programs. The storage medium can include a volatile memory, such as a random access memory; the storage medium can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk, or a solid state disk; the storage medium can also include a combination of the above kinds of memories.
[0240] When the one or more programs stored in the storage medium can be executed by one or more processors to implement the above-mentioned light strip control method executed on the side of the electronic device.
[0241] The above-mentioned 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 side of the electronic device:
[0242] Obtain the pose information of the target user collected by the pose sensor;
[0243] Determine the user pose of the target user based on the pose information;
[0244] determine a target light parameter based on the user pose, wherein the target light parameter is a light parameter matched with the user pose, and the target light parameter is used to respectively indicate the light of the plurality of the lamp beads;
[0245] control the plurality of the lamp beads respectively according to the target light parameter.
[0246] Those skilled in the art should further appreciate that the units and algorithm steps of various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of various examples have been described in general terms above. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0247] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, software executed by a processor, or a combination of both. The software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the art.
[0248] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises", "comprising", "includes", "including" and "has" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof. The method steps, processes, and operations described herein are not to be interpreted as necessarily requiring their performance in the specific order in which they are described unless explicitly stated otherwise. It is also to be understood that additional or alternative steps can be employed.
[0249] The above description is merely one specific implementation of the application, which enables one skilled in the art to understand or implement the application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application is not to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling LED strip lights, characterized in that, The light strip includes multiple LED beads, and the method includes: Acquire the pose information of the target user collected by a pose sensor, wherein the pose sensor is a 2D sensor; Based on the pose information, the user pose of the target user is determined; Based on the user pose, target illumination parameters are determined, wherein the target illumination parameters are illumination parameters that match the user pose, and the target illumination parameters are used to indicate the illumination of the plurality of LED beads respectively; According to the target illumination parameters, control multiple LED beads respectively; Determining the target illumination parameters based on the user's pose includes: Based on the user's pose within the target time period, determine the trend of distance changes between the target user and each of the LED beads, wherein the trend of change indicates that the distance is increasing or decreasing; If all the determined trends of change are the same, the brightness of the plurality of lamp beads is determined based on at least one of the distance and the trend of change, and the target illumination parameters are obtained. When the determined trends of change are not the same, the target illumination parameter of the target LED is determined as the first parameter, and the target illumination parameter of the non-target LED is determined as the second parameter; wherein, the target LED is the LED among the plurality of LEDs whose distance from the location of the target user is less than or equal to the target distance, and the brightness represented by the first parameter is greater than the brightness represented by the second parameter.
2. The method according to claim 1, characterized in that, Determining the user pose of the target user based on the pose information includes at least one of the following: Based on the pose information, determine whether the target user is located within a preset area; Based on the pose information, the location of the target user is determined; Based on the pose information, the movement trajectory of the target user is determined.
3. The method according to claim 1, characterized in that, Determining the target illumination parameters based on the user's pose includes: When the user's pose meets the preset conditions, the target lighting parameters are determined to be: with the target LED as the center, the LEDs on both sides of the target LED are symmetrically illuminated according to the preset lighting effect; The preset conditions include: the duration during which the user pose indicates that the target user is located within the target area is greater than or equal to a preset duration, and / or the time of collection of the user pose information belongs to a preset time range. The target LED bead is one of the multiple LED beads whose distance from the location of the target user is less than or equal to the target distance.
4. The method according to claim 3, characterized in that, The symmetrical illumination includes at least one of the following: The lights are turned on sequentially according to their distance from the target LED beads, from farthest to closest. The lights illuminate alternately according to a preset color sequence.
5. The method according to any one of claims 1-4, characterized in that, Before determining the target illumination parameters based on the user pose, the method further includes: Determine the detection range of the pose sensor and its relative position among the plurality of LED beads; and Determining the target illumination parameters based on the user's pose includes: Based on the relative position and the user pose, the target illumination parameters are determined.
6. A light strip control device, characterized in that, The light strip includes multiple LED beads, and the device includes: An acquisition unit is used to acquire the pose information of the target user collected by a pose sensor, wherein the pose sensor is a 2D sensor. The first determining unit is configured to determine the user pose of the target user based on the pose information. The second determining unit is configured to determine target illumination parameters based on the user pose, wherein the target illumination parameters are illumination parameters that match the user pose, and the target illumination parameters are used to indicate the illumination of the plurality of LED beads respectively. The control unit is used to control multiple LED beads according to the target illumination parameters; The second determining unit is further configured to determine the changing trend of the distance between the target user and each of the LED beads based on the user's pose within the target time period, wherein the changing trend indicates that the distance is increasing or decreasing; if the determined changing trends are the same, the brightness of the plurality of LED beads is determined based on at least one of the distance and the changing trend to obtain target illumination parameters; if the determined changing trends are not the same, the target illumination parameter of the target LED bead is determined as a first parameter, and the target illumination parameter of the non-target LED bead is determined as a second parameter; wherein the target LED bead is one of the plurality of LED beads whose distance to the location of the target user is less than or equal to the target distance, and the brightness represented by the first parameter is greater than the brightness represented by the second parameter.
7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing a computer program stored in the memory, wherein when the computer program is executed, it implements the method described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-5.
Citation Information
Patent Citations
Lamp effect control method and device, computer equipment and computer readable storage medium
CN115460746A