Light string control method and device, electronic equipment and storage medium
By using the user images collected by the camera device to determine the position and position information of the target user, dynamically adjust the light illumination of the lamp string, solving the problem of fixed light effects of the existing lamp string, and achieving more flexible and rich lamps Effective control.
Patent Information
- Application Number
- CN202311062199.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2025-02-25
AI Technical Summary
The light and dynamic effects of multiple beads in existing lamp strings are usually fixed, resulting in users being prone to aesthetic fatigue and lack of flexibility and richness when using them.
By acquiring the user image of the target user collected by the imaging device, the position information and relative position of the target user are determined, the target lighting parameters are determined based on these information, and the lighting of the multiple lamp beads is controlled according to these parameters.
It realizes the flexibility and richness of lamp bead control, and can adjust the lighting effect in real time according to the user's location and behavior to enhance the user experience.
Smart Images

Figure CN119521497A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control, and in particular to a light string control method, device, electronic device and storage medium. Background Art
[0002] A light string is a strip of lamps formed by connecting several lamp beads in series through wires. In actual use, the light string can be used straight, or it can be used in various shapes (such as stars, squares, triangles, etc.). When using light strings, in order to achieve more diverse effects, users sometimes need to make the lamp beads of the light string work asynchronously, such as using certain light effects and motion effects to control the lamp beads in the light string. At present, the light effects and motion effects of multiple lamp beads in a light string are usually fixed. For example, current lamp beads can often only achieve different light effects and motion effects according to user presets, and repeated light effects and motion effects can easily cause aesthetic fatigue to users.
[0003] It can be seen that how to improve the flexibility and richness of lamp bead control is a technical issue worthy of attention. Summary of the invention
[0004] 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 string control method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling a light string, wherein the light string includes a plurality of lamp beads, and the method includes:
[0006] Acquire a user image of a target user captured by a camera device;
[0007] Based on the user image, determining the position and posture information of the target user, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device;
[0008] Determine a target illumination parameter based on the posture information and the target position information, wherein the target position information represents the relative position between the imaging area and the plurality of lamp beads, and the target illumination parameter is used to indicate illumination of the plurality of lamp beads respectively;
[0009] According to the target illumination parameters, the plurality of lamp beads are controlled respectively.
[0010] In a possible implementation, determining the position information of the target user based on the user image includes at least one of the following:
[0011] Based on the user image, determining whether the target user is located in a preset area, and obtaining position information of the target user;
[0012] Based on the user image, determine the location of the target user and obtain the position information of the target user;
[0013] Based on the user image, determining the moving trajectory of the target user, and obtaining the position information of the target user;
[0014] Based on the user image, the behavior intention of the target user is determined, and the position and posture information of the target user is obtained.
[0015] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0016] Identify the user image to obtain the identity information of the target user;
[0017] Based on the posture information, the target position information and the identity information, target illumination parameters are determined.
[0018] In a possible implementation, determining the target illumination parameter based on the posture information, the target position information and the identity information includes:
[0019] Determining whether the identity information indicates that the target user is a preset user;
[0020] When the identity information indicates that the target user is the preset user, the colors to be displayed of the plurality of lamp beads and the switching times of the colors to be displayed are determined based on the posture information and the target position information to obtain the target lighting parameters.
[0021] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0022] Based on the posture information and the target position information, determine the target lamp bead and the non-target lamp bead from the plurality of lamp beads; wherein the target lamp bead is a lamp bead among the plurality of lamp beads whose distance to the position of the target user is less than or equal to the target distance;
[0023] The target illumination parameter of the target lamp bead is determined as a first parameter, and the target illumination parameter of the non-target lamp bead is determined as a second parameter.
[0024] In one possible implementation,
[0025] When the first parameter indicates that the lamp is illuminated, the second parameter indicates that the lamp is turned off;
[0026] When the first parameter indicates that the lamp bead is turned off, the second parameter indicates that the lamp bead is illuminated.
[0027] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0028] Based on the posture information and the target position information, determining a distance moved by the target user along a preset direction to obtain a moving distance;
[0029] Determining a quotient of the moving distance and a preset distance threshold;
[0030] In case the integer part of the quotient changes, the target lighting parameter is determined.
[0031] In a second aspect, an embodiment of the present application provides a light string control device, wherein the light string includes a plurality of lamp beads, and the device includes:
[0032] An acquisition unit, used to acquire a user image of a target user captured by a camera device;
[0033] A first determining unit, configured to determine the position and posture information of the target user based on the user image, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device;
[0034] A second determination unit is used to determine a target illumination parameter based on the posture information and the target position information, wherein the target position information represents a relative position between the imaging area and the plurality of lamp beads, and the target illumination parameter is used to indicate illumination of the plurality of lamp beads respectively;
[0035] A control unit is used to control the plurality of lamp beads respectively according to the target illumination parameters.
[0036] In a possible implementation, determining the position information of the target user based on the user image includes at least one of the following:
[0037] Based on the user image, determining whether the target user is located in a preset area, and obtaining position information of the target user;
[0038] Based on the user image, determine the location of the target user and obtain the position information of the target user;
[0039] Based on the user image, determining the moving trajectory of the target user, and obtaining the position information of the target user;
[0040] Based on the user image, the behavior intention of the target user is determined, and the position and posture information of the target user is obtained.
[0041] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0042] Identify the user image to obtain the identity information of the target user;
[0043] Based on the posture information, the target position information and the identity information, target illumination parameters are determined.
[0044] In a possible implementation, determining the target illumination parameter based on the posture information, the target position information and the identity information includes:
[0045] Determining whether the identity information indicates that the target user is a preset user;
[0046] In a case where the identity information indicates that the target user is the preset user, the colors to be displayed of the plurality of lamp beads and the switching times of the colors to be displayed are determined based on the posture information and the target position information to obtain the target lighting parameters.
[0047] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0048] Based on the posture information and the target position information, determine the target lamp bead and the non-target lamp bead from the plurality of lamp beads; wherein the target lamp bead is a lamp bead among the plurality of lamp beads whose distance to the position of the target user is less than or equal to the target distance;
[0049] The target illumination parameter of the target lamp bead is determined as a first parameter, and the target illumination parameter of the non-target lamp bead is determined as a second parameter.
[0050] In one possible implementation,
[0051] When the first parameter indicates that the lamp is illuminated, the second parameter indicates that the lamp is turned off;
[0052] When the first parameter indicates that the lamp bead is turned off, the second parameter indicates that the lamp bead is illuminated.
[0053] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0054] Based on the posture information and the target position information, determining a distance moved by the target user along a preset direction to obtain a moving distance;
[0055] Determining a quotient of the moving distance and a preset distance threshold;
[0056] In the case where the integer part of the quotient changes, the target lighting parameter is determined based on the integer part of the quotient.
[0057] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0058] Memory for storing computer programs;
[0059] 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 string control method of the first aspect of the present application is implemented.
[0060] 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 string control method of the first aspect described above is implemented.
[0061] 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, the processor in the device implements a method as in any embodiment of the light string control method of the first aspect described above.
[0062] The light string control method provided in the embodiment of the present application, the light string includes a plurality of lamp beads, the method acquires a user image of a target user captured by a camera device for controlling the lamp beads in the subsequent light string, and then determines the position information of the target user based on the user image, wherein the position information indicates the user position of the target user in the camera area of the camera device, so as to identify the user position, and then determines the target illumination parameter based on the position information and the target position information, wherein the target position information indicates the relative position between the camera area and the plurality of lamp beads, and the target illumination parameter is used to indicate the illumination of the plurality of lamp beads respectively, so as to determine the relative position between the target user and the lamp beads, and finally, controls the plurality of lamp beads respectively according to the target illumination parameter, so as to automatically control the plurality of lamp beads to illuminate in a manner matching the position of the user relative to the lamp beads. Thus, the flexibility and richness of lamp bead control can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] 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.
[0064] 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.
[0065] 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.
[0066] Figure 1 A flowchart of a light string control method provided in an embodiment of the present application;
[0067] Figure 2 A flow chart of another light string control method provided in an embodiment of the present application;
[0068] Figure 3A A flowchart of an application scenario of a light string control method provided in an embodiment of the present application;
[0069] Figure 3B A flowchart of another application scenario of a light string control method provided in an embodiment of the present application;
[0070] Figure 3C A flowchart of another application scenario of a light string control method provided in an embodiment of the present application;
[0071] Figure 4 A schematic diagram of the structure of a light string control device provided in an embodiment of the present application;
[0072] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] 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.
[0074] 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.
[0075] 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.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] In addition, it should be noted that the users described in this application (such as target users) can be distinguished by user identifiers. For example, a user identifier 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 identifier can also be assigned based on the device identifier of the device. In this scenario, if different persons use devices with the same device identifier to operate, the above-mentioned different persons can be considered to be the same user; if the same person uses devices with different device identifiers to operate, the above-mentioned same person can be considered to be 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 light string control method, which can improve the flexibility and richness of lamp bead control.
[0085] Figure 1 A schematic diagram of a flow chart of a light string control method provided in an embodiment of the present application. The light string includes a plurality of lamp beads.
[0086] This method can be applied to one or more electronic devices such as light strings, 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 it can be implemented as a single software or software module. No specific limitation is made here.
[0087] like Figure 1 As shown, the method specifically includes:
[0088] Step 101: Acquire a user image of a target user captured by a camera device.
[0089] In this embodiment, the camera device may be any one or more devices with a camera function. As an example, the camera device may be a camera.
[0090] The target user may be any user detected by the above-mentioned camera device.
[0091] The user image may be one or more images obtained by the above-mentioned camera device collecting images of the shooting area where the target user is located.
[0092] For example, when a user enters the shooting area of a camera device and the camera device captures images of the shooting area, the user can be determined as a target user, and one or more images obtained by the camera device capturing images of the shooting area can be determined as user images.
[0093] Furthermore, in some cases, when a user image includes multiple images, the user image may represent a video of the target user.
[0094] The user image may be an image including the user's face, an image including the user's torso, or an image including the user's biometric features such as fingerprints and irises.
[0095] Step 102: determining the position and posture information of the target user based on the user image, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device.
[0096] In this embodiment, the posture information may represent at least one of the position and posture of the target user in the camera area of the camera device. In addition, in some cases, the posture information may also include the identity of the user corresponding to the posture information, such as whether the user is a family member, a friend, a stranger, etc.
[0097] In some embodiments, the posture information can be acquired via a 2D sensor and a camera device.
[0098] As an example, the position and posture information of the target user may be determined by performing image recognition on the user image captured by the camera device.
[0099] Here, the above-mentioned image recognition may include at least one of the following: face recognition, human shape recognition, position detection, activity direction detection, human skeleton key point detection and behavior judgment, gesture recognition, etc.
[0100] Among them, for the above-mentioned face recognition and human shape recognition, face recognition in a broad sense can include a series of related technologies for building a face recognition system, including face image acquisition, face positioning, face recognition image preprocessing, identity confirmation and identity search, etc. Face recognition in a narrow sense refers specifically to the technology or system for identity confirmation or identity search through the face.
[0101] Face recognition belongs to biometric identification technology, which distinguishes individuals based on the biological characteristics of the organism (generally referring to humans). Biometric identification technology includes face, fingerprint, palm print, iris, retina, body shape, personal habits (such as the strength and frequency of keyboard tapping, signature), etc. The corresponding identification technologies include face recognition, fingerprint recognition, palm print recognition, iris recognition, retina recognition, body shape recognition, keyboard tapping recognition, signature recognition, etc.
[0102] Here, a person can be comprehensively identified through facial recognition, body shape recognition, and clothing color.
[0103] For the above position detection: the camera (i.e. the above camera device) can build its own coordinate system to obtain the relative position of the active object (such as the above target user) in the picture. Then, combined with the user drawing the family's focus area and interactive area in the picture in the coordinate system, it can be judged whether the active object has entered a certain key position.
[0104] For the above-mentioned activity direction detection: the camera device can first fix the angle, track and count the coordinates of the active object in each frame, so as to calculate the activity direction of the active object, up, down, left, right or other directions, and combine with the boundary of the home area drawn by the user to determine whether the active object is entering / exiting the home area, and further determine whether a person is currently passing by, going home or wandering around.
[0105] Regarding the above-mentioned human skeleton key point detection and behavior judgment: The detection of human skeleton key points can be mainly used to detect some key points of the human body, such as joints, limbs, facial features, etc., and describe the human body posture information through key points. Since the human body is flexible, various postures and shapes may appear, and a slight change in any part of the human body will produce a new posture. Activities such as waving, boxing, dancing, jumping, and falling are typical, and the current person's behavior can be judged by combining the detection of human skeleton key points and tracking the rules of their activity changes.
[0106] In addition, the position information of the target user may also be determined by a 2D sensor.
[0107] Among them, the 2D sensor can be a battery-powered sensor, including active transmitting and receiving devices, with low-power standby mode (1D standby mode) and working mode (2D working mode). For example, a 2D millimeter-wave radar is a sensor that detects the location area, existence, and movement trajectory of an object by measuring the angle and distance of the target relative to a reference position.
[0108] 2D sensors, such as millimeter wave radars, calculate the distance between a target (such as the target user mentioned above) and the radar by measuring the round-trip time of the signal. Specifically, the radar can emit a short pulse of millimeter wave signals that can propagate in the air. When it encounters a target, a portion of the signal can be reflected back by the target. The radar can receive this reflected signal and measure the round-trip time of the signal to calculate the distance between the target and the radar to achieve distance detection.
[0109] In addition, 2D sensors, such as millimeter wave radars, can also calculate the angle of a target (such as the target user mentioned above) by measuring the phase difference of the signal. Specifically, the radar can emit two adjacent millimeter wave signals with a phase difference between the two signals. 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 this reflected signal and measures the change in the phase difference to calculate the angle of the target to achieve angle detection.
[0110] By combining distance and angle detection, the 2D sensor can accurately locate and track the target, that is, obtain the above-mentioned posture information.
[0111] Step 103: determine target illumination parameters based on the posture information and the target position information, wherein the target position information represents the relative position between the imaging area and the plurality of lamp beads, and the target illumination parameters are used to indicate illumination of the plurality of lamp beads respectively.
[0112] In this embodiment, the matching relationship between the user posture, the target position information and the illumination parameters can be preset. Thus, based on the target position information and the user posture obtained in step 102, the illumination parameters matching the user posture and the target position information can be determined, thereby obtaining the target illumination parameters.
[0113] Here, since the above-mentioned light string includes multiple lamp beads. Therefore, different target lighting parameters can be determined for different lamp beads. For example, if the above-mentioned light string includes 3 lamp beads, namely lamp bead A, lamp bead B and lamp bead C, then the target lighting parameter can indicate that the brightness of lamp bead A is 0, the brightness of lamp bead B is not 0, and the brightness of lamp bead C is 0; or, the target lighting parameter can indicate that the brightness of lamp bead A is 0, the brightness of lamp bead B is 50%, and the brightness of lamp bead C is 100%; or, the target lighting parameter can indicate that lamp bead A emits red light, lamp bead B emits yellow light, and lamp bead C emits green light.
[0114] In this embodiment, differences in one or more of the face recognition results, human figure recognition results, position detection results, activity direction detection results, human skeleton key point detection and behavior judgment results, and gesture recognition results may, but not necessarily, lead to differences in target illumination parameters.
[0115] Step 104: Control the plurality of lamp beads respectively according to the target illumination parameters.
[0116] In this embodiment, since the target illumination parameter is used to indicate the illumination of the plurality of lamp beads respectively, the plurality of lamp beads can be controlled respectively according to the target illumination parameter.
[0117] Target lighting parameters can be used to indicate the color, brightness, color switching frequency, etc. of the indicator light beads.
[0118] In some optional implementations of this embodiment, at least one of the following is used to determine the position and posture information of the target user based on the user image:
[0119] The first item is to determine whether the target user is located in a preset area based on the user image, and obtain the position information of the target user.
[0120] The above-mentioned position information may indicate whether the target user is located in a preset area.
[0121] The preset area may be one or more predetermined areas. The preset area may be located within the camera area of the camera device. Thus, the camera device may capture an image of the camera area to determine whether the target user is located within the preset area.
[0122] The second item is to determine the location of the target user based on the user image and obtain the position information of the target user.
[0123] The above-mentioned position information may indicate the location of the target user, for example, the location of the target user in the above-mentioned camera area.
[0124] The third item is to determine the moving trajectory of the target user based on the user image and obtain the position information of the target user.
[0125] The above-mentioned posture information may represent the moving trajectory of the target user.
[0126] Here, after the camera device continuously obtains the location of the target user, the moving track of the target user can be determined based on the location of the target user.
[0127] The fourth item is to determine the behavior intention of the target user based on the user image and obtain the position information of the target user.
[0128] The above-mentioned posture information may represent the behavioral intention of the target user.
[0129] The above behavioral intentions may include at least one of the following: going home, leaving, singing, giving orders, dancing, inspiring, showing off, etc.
[0130] In practice, the behavioral intention of the target user can be determined by performing behavior recognition on user images.
[0131] In some application scenarios of the above optional implementations, the following method may be used to determine the target illumination parameters based on the pose information and the target position information:
[0132] First, based on the posture information and the target position information, target lamp beads and non-target lamp beads are determined from the plurality of lamp beads.
[0133] Among them, the target lamp bead is a lamp bead among the multiple lamp beads, the distance between which and the position of the target user is less than or equal to the target distance.
[0134] The target distance may be a predetermined distance. In addition, the target distance may also be determined based on the distance between the location of the target user and the location of the lamp bead.
[0135] Here, the relative position of the target user and the multiple lamp beads can be determined first through the posture information and the target position information. Further, the lamp beads whose distance to the position of the target user is less than or equal to the target distance can be determined, that is, the target lamp beads. And, among the multiple lamp beads, other than the target lamp beads are determined as non-target lamp beads.
[0136] As an example, the above target distance can be determined in the following manner: first, determine the lamp bead B that is closest to the position A where the target user is located, and then determine the distance between the lamp bead B and the position A as the target distance.
[0137] As another example, the target distance can also be determined in the following manner: first, determine the three lamp beads B, C, and D that are closest to position A where the target user is located, then determine the lamp bead B, C, and D that has the largest distance from position A (referred to as lamp bead E), and then determine the distance between lamp bead E and position A as the target distance.
[0138] The non-target lamp beads may be lamp beads other than the target lamp beads among the plurality of lamp beads.
[0139] Afterwards, the target illumination parameter of the target lamp bead is determined as the first parameter, and the target illumination parameter of the non-target lamp bead is determined as the second parameter.
[0140] As an example, the first parameter may indicate that the target lamp beads are displayed as a first preset color (eg, dark red), and the second parameter may indicate that the non-target lamp beads are displayed as a second color (eg, light red).
[0141] It can be understood that in the above application scenario, the lamp beads that are closer to the target user can be controlled to display according to the first parameter, and the lamp beads that are farther away from the target user can be controlled to display according to the second parameter. In this way, the location of the target user can be highlighted by controlling the lamp beads, further improving the flexibility and richness of the lamp bead control.
[0142] In some cases in the above application scenarios, when the first parameter indicates that the lamp beads are illuminated, the second parameter indicates that the lamp beads are turned off; when the first parameter indicates that the lamp beads are turned off, the second parameter indicates that the lamp beads are illuminated.
[0143] It can be understood that in the above case, the position of the target user can be mapped to the corresponding position of the lamp bead. For example, it can be achieved that where the person is, the light is turned on / off, and the rest of the positions are turned off / on, forming a chasing light effect.
[0144] In some optional implementations of this embodiment, the following method may be used to determine the target illumination parameters based on the pose information and the target position information:
[0145] First, based on the posture information and the target position information, the distance moved by the target user along a preset direction is determined to obtain the moving distance.
[0146] The moving distance may represent the distance that the target user moves along a preset direction.
[0147] Here, after the camera device continuously obtains the location of the target user, the location of the target user can be determined based on the posture information and the target position information, and then the movement trajectory of the target user can be determined.
[0148] Then, a quotient of the moving distance and a preset distance threshold is determined.
[0149] In practice, the quotient of the moving distance and the preset distance threshold can be calculated in real time.
[0150] Finally, the target illumination parameter is determined when the integer part of the quotient changes.
[0151] As an example, a lighting parameter set may be preset, wherein each lighting parameter in the lighting parameter set may represent a color that the target user likes (e.g., a color set for the target user). Afterwards, when it is determined that the integer part of the quotient has changed, a lighting parameter may be randomly determined from the lighting parameter set to obtain the target lighting parameter. Alternatively, when it is determined that the integer part of the quotient has changed, a lighting parameter that has not been selected may be selected from the lighting parameter set to obtain the target lighting parameter. Wherein, when all lighting parameters in the lighting parameter set have been selected, all lighting parameters in the lighting parameter set may be marked as not selected for subsequent selection.
[0152] It can be understood that in the above optional implementation, a lighting parameter can be changed every time the target user moves a preset distance threshold, thereby further improving the flexibility and richness of the lamp bead control.
[0153] The light string control method provided in the embodiment of the present application, the light string includes a plurality of lamp beads, the method acquires a user image of a target user captured by a camera device for controlling the lamp beads in the subsequent light string, and then determines the position information of the target user based on the user image, wherein the position information indicates the user position of the target user in the camera area of the camera device, so as to identify the user position, and then determines the target illumination parameter based on the position information and the target position information, wherein the target position information indicates the relative position between the camera area and the plurality of lamp beads, and the target illumination parameter is used to indicate the illumination of the plurality of lamp beads respectively, so as to determine the relative position between the target user and the lamp beads, and finally, controls the plurality of lamp beads respectively according to the target illumination parameter, so as to automatically control the plurality of lamp beads to illuminate in a manner matching the position of the user relative to the lamp beads. Thus, the flexibility and richness of lamp bead control can be improved.
[0154] Figure 2 A flowchart of another light string control method provided in an embodiment of the present application. The light string includes a plurality of light beads. Figure 2 As shown, the method specifically includes:
[0155] Step 201: Acquire a user image of a target user captured by a camera device.
[0156] 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.
[0157] Step 202: determining the position and posture information of the target user based on the user image, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device.
[0158] In this embodiment, step 202 and Figure 1 Step 102 in the corresponding embodiment is basically the same and will not be described again here.
[0159] Step 203: Identify the user image to obtain the identity information of the target user.
[0160] In this embodiment, when the user image includes a face image, the identity information of the target user can be obtained by performing face recognition on the user image; when the user image includes a fingerprint image, the identity information of the target user can be obtained by performing fingerprint recognition on the fingerprint image; when the user image includes an iris image, the identity information of the target user can be obtained by performing iris recognition on the user image.
[0161] The identity information may be used to indicate the identity of the target user.
[0162] Step 204, determining target illumination parameters based on the posture information, the target position information and the identity information, wherein the target position information represents the relative position between the camera area and the plurality of lamp beads, and the target illumination parameters are used to indicate the illumination of the plurality of lamp beads respectively.
[0163] In this embodiment, the correspondence between the posture information, the target position information, the identity information and the illumination parameters can be preset, so that based on the above matching relationship, the illumination parameters matching the posture information and the target position information determined in the above step 203 are determined and used as the target illumination parameters. Alternatively, the correspondence between the user position, the identity information and the illumination parameters can be set, so that after the user position of the target user is determined based on the posture information and the target position information, the illumination parameters matching the user position of the target user are determined based on the above matching relationship and used as the target illumination parameters.
[0164] Step 205: Control the plurality of lamp beads respectively according to the target illumination parameters.
[0165] In this embodiment, step 205 and Figure 1 Step 104 in the corresponding embodiment is basically the same and will not be described again here.
[0166] In some optional implementations of this embodiment, the following method may be used to determine the target illumination parameters based on the posture information, the target position information and the identity information:
[0167] First, it is determined whether the identity information indicates that the target user is a preset user.
[0168] The preset users may include one of the following: family members and friends.
[0169] Afterwards, when the identity information indicates that the target user is the preset user, the colors to be displayed of the plurality of lamp beads and the switching times of the colors to be displayed are determined based on the posture information and the target position information to obtain the target lighting parameters.
[0170] The target illumination parameters may include the color to be displayed by the lamp beads and the switching time of the color to be displayed.
[0171] As an example, the position, moving path and moving speed of the target user can be first determined based on the posture information and the target position information. Then, based on the user's position and moving path, the next area that the target user will move into is determined (predicted) from a predetermined set of areas to obtain the target area. Each area in the above area set can correspond to a color. Based on the position, moving path and moving speed of the target user, the moment when the target user moves into the target area is determined. Then, the color corresponding to the target area is determined as the color to be displayed; the moment when the target user moves into the target area is determined as the switching moment of the color to be displayed.
[0172] As another example, the moving speed of the target user can be first determined based on the posture information and the target position information. Then, based on the moving speed, the time required for the target user to move a preset distance is determined. The moment reached after the current moment has passed the time is determined as the switching moment of the color to be displayed. In this example, a color set needs to be set. Then, before reaching the switching moment, a color can be randomly determined from the above colors to obtain the target color. Alternatively, in determining the above color set, a color that has not been selected is selected to obtain the target color. Among them, in the case where all colors in the color set have been selected, all colors in the color set can be marked as not selected, so as to make subsequent selections.
[0173] It can be understood that in the above optional implementation method, by determining whether the target user is a preset user, the color to be displayed by the lamp bead and the switching time of the color to be displayed can be determined more specifically, thereby further improving the flexibility and richness of the lamp bead control.
[0174] 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 details, please refer to Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0175] The light string control method provided in the embodiment of the present application can determine the target lighting parameters based on the identity information of the target user, so that the lighting effect presented by the lamp beads can be matched with the identity information of the target user, thereby further improving the flexibility and richness of the lamp bead control.
[0176] 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.
[0177] At present, outdoor atmosphere lighting usually requires setting the lighting effect combination in advance, and cannot interact with people according to real-time situations. For example, when a family member comes home for a birthday, the outdoor atmosphere lighting recognizes her and switches the lighting effect. When playing on the lawn outdoors during festivals, children are playing games and you want to use ambient atmosphere lighting to accompany the children's activities to increase the interactive atmosphere.
[0178] Currently, in order to interact with lights, additional hardware is usually required. In this method, the camera (i.e., the above-mentioned camera device) can be used to perceive the environment. Therefore, this method combines the visual recognition and judgment capabilities of indoor and outdoor atmosphere lights and cameras to determine the user's presence, location, movement trajectory, who she / he is, her / his behavioral intentions, and interact with the atmosphere to enrich the light effects.
[0179] 1. Usage scenario: Add fun to scenes in life that require ambient lighting.
[0180] 1) Light-chasing interaction: When friends come to play, you can show off your light-chasing stunts to them.
[0181] The position of the moving object (that is, the target user mentioned above) is mapped to the corresponding position of the atmosphere light (that is, the light string mentioned above). Where the person is, the light will be on / off, and the rest of the positions will be off / on, and the color will change, forming a chasing light effect.
[0182] In addition, it can also support chasing light based on people's movements, and also support chasing light based on gestures such as raising hands and waving hands.
[0183] 2) Grid tricks interaction: Children play games in the yard, and playing games during festivals adds to the atmosphere.
[0184] As an example, see Figure 3A , Figure 3A A flowchart of an application scenario of a light string control method provided in an embodiment of the present application.
[0185] exist Figure 3A In the figure, different lighting effects (i.e., the above-mentioned target lighting parameters) can be presented in different areas. The grid interactive color area can be drawn very large and only one, or it can be drawn finely and subdivided one by one. In the figure, grids with different textures can correspond to different target lighting parameters, and grids with the same texture can correspond to the same target lighting parameters. The five-pointed star shape in the figure can indicate the location of the user (e.g., the target user).
[0186] 3) Family interaction: When the birthday comes, the family goes home and moves to a different scene.
[0187] When the family returns home, based on her preferences, the light changes to a different color with each step closer to the door.
[0188] As an example, see Figure 3B , Figure 3B A flowchart of an application scenario of another light string control method provided in an embodiment of the present application. Figure 3B In the process of moving along the moving track in the figure, the family member (corresponding to the target user) can change the light color she likes every time she gets closer to the door.
[0189] 4) Dancing interaction: Friends dancing in the yard can add to the atmosphere of the dance.
[0190] For fun scenes, such as dancing, if dancing is detected, the preset lively lighting effects will be automatically switched.
[0191] 5) In the future, based on user needs, there may be other AI (Artificial Intelligence) recognition and behavior detection algorithms that can be combined with lighting interactions to personalize the control of light strings.
[0192] 2. Equipment and capabilities included in the implementation plan:
[0193] This method includes a camera or other video recording device (ie, the above-mentioned video recording device), and outdoor monochrome lights or RGB / RGBW / RGBWW or other ambient light strings, which are used together.
[0194] The camera and the atmosphere light are interconnected through LAN, Bluetooth, Matter and other technologies, so that the instructions processed by the camera are sent to the atmosphere light.
[0195] 1) Camera: It has advanced AI capabilities. AI can run locally / in the cloud / on both local and cloud. The algorithms include at least face recognition, human figure recognition, hand waving detection, skeletal motion behavior detection, and walking direction detection.
[0196] 2) Light strings: outdoor light strings, indoor light strips, spotlights, Christmas lights, etc. The shape of the light string is not limited, but it needs to support single-point lighting effect control and segmented lighting effect control. In addition, a large number of interactive lighting effect libraries are preset in the atmosphere light, so that each subsequent action / intention can have a matching interactive lighting effect available.
[0197] 3. Implementation process:
[0198] 1) The user (e.g., target user) uses the camera area detection function to build a visual map, draw locations to divide the interactive area, specify event relationships, and specify interactive methods. In addition, the one-to-one control relationship between the visual map and the actual physical atmosphere light needs to be specified.
[0199] The user can preview the camera image in real time, draw single / multiple areas (the preset areas mentioned above) in detail in the editor, and specify the lighting control method (changing lights or chasing lights) of moving objects (such as people and cars) in each area.
[0200] For example, users can draw detailed ground grids and specify the lighting effects that correspond to when someone enters / exits each grid.
[0201] For another example, the user can draw a walking path and specify the lighting effect corresponding to each walking distance in the walking direction.
[0202] User Action:
[0203] First draw a large light interaction area in the camera, such as circling the area of your home.
[0204] Select the light interaction area in the large interactive area, for example, you can choose to interact by block or by line. Multiple light interaction areas can be freely arranged and combined, and can be overlapped and crossed. In addition, each area can be marked for visualization.
[0205] Among them, you can interact by blocks, add color blocks, fill in color and specify lighting effects; interact by lines, draw moving lines and specify lighting effects. And you need to set a one-to-one correspondence between the points on the moving lines and the actual atmosphere lights in order to achieve tracking control of light tracking.
[0206] 2) Users use camera recognition to detect AI capabilities: specify which people and behavioral activities they want to interact with.
[0207] Designated person-to-person recognition: You can designate family members, strangers, or anyone else. Information is obtained based on face and shape recognition by the camera.
[0208] Specified behavior and behavior recognition: Based on the camera's skeleton detection and behavior judgment, it can be judged whether a person is walking, dancing, waving, etc. In addition, no behavior is restricted.
[0209] Activity location detection: The camera records the activity area drawn by the user, and when someone appears, it determines whether they are in the area.
[0210] Activity distance and movement direction tracking: The camera draws the activity trajectory of a moving person by associating consecutive frames, and determines whether his walking direction matches the movement direction specified by the user.
[0211] As an example, see Figure 3B and Figure 3C . Figure 3B In the scenario shown, it can be determined that the user's behavioral intention is to go home. Figure 3CIn the scenario shown, it can be determined that the user's behavioral intention is passing by.
[0212] User Action:
[0213] Choose a combination of people, behaviors, and assign specific lighting effects.
[0214] Optionally, you can combine the area / moving direction set above to make a combined response condition judgment.
[0215] 3) Based on the user's choices in the first two steps, the system recommends lighting effects that match the user's intention. After the user confirms the lighting effects, they are saved as preset interaction rules.
[0216] Lighting effect library factor: preset dynamic effects related to chasing lights, waving, dancing, games, and children. After the user completes the activity area and activity type selection in the first two steps, the background library recommends dynamic effects and lighting color combinations suitable for this scene through semantic combination and understanding. Users can choose from them or customize the corresponding lighting and dynamic effects.
[0217] For example, if a user chooses to wave their hands to interact, the AI model can understand the intention behind it, guessing that the user's intention is to give orders, dance, inspire people, and show off, and understand that there is a demand for intense, fast, and rhythmic animations. The animations in the lighting effect library with factors such as impact, shining, advancing, and diffusion are recommended to users for selection. Users can directly choose from the ready-made animation recommendations, or they can make minor adjustments or completely customize them.
[0218] The light string has the ability to be controlled in sections and groups, and can be controlled one by one with the lighting effects.
[0219] User operations include: selecting interactive behaviors, selecting recommended interactive lighting effects, confirming the corresponding lighting relationships between lighting effects and light strings (segment groups), and saving rules.
[0220] 4) The camera determines the interactive rules in real time to control the lighting changes of the light string: real-time identification of objects and their behaviors, receiving gestures / behavior instructions from active objects, and real-time control of the lights.
[0221] After the camera uses its own computing power or cloud computing power to identify the attributes, behaviors and instructions of the objects in the picture, it combines the position drawn by the user and the event rules defined by the user to trigger the corresponding interactive lighting effect rules, which are sent to the atmosphere light through wireless communication protocols such as LAN / Bluetooth.
[0222] After receiving the instructions from the camera, the atmosphere light plays the specified lighting effects according to the rules, responds to the instructions of the active object, and completes the interaction.
[0223] The camera relies on computing power and network connection, and based on the user-set area / linear / person behavior interactive lighting effects, when conditions change, it must respond in real time to achieve continuous real-time calculation and real-time follow-up of lighting changes, ensuring a long-term and timely interactive experience. For example:
[0224] Interaction of grid lighting effects within the area: The camera calculates the intersection relationship between the specified object and the grid area in real time, and changes to the specified effect in real time.
[0225] Interaction with walking routes within the area: The camera calculates the position of the moving object in real time and matches it one by one with the preset interaction points of the atmosphere light.
[0226] Interaction of human behavior in the area: The camera recognizes real-time frame by frame, promptly judges changes in the subject in the picture and switches related effects.
[0227] In this method, the camera combined with visual AI can define precise interactions, allowing users to play with lights to produce rich lighting effects in combination with actual scenes, with rich interactive light effects: using camera vision technology in light interaction can achieve game-like interactions based on human areas and behaviors, thereby providing a new way to control light strings. In addition, this method can also set the interaction mode of home interaction areas and interactive objects through real-time camera images. By understanding the intention behind the computer vision behavior selected by the user, the corresponding lighting effects are recommended, realizing personalized lighting effect settings.
[0228] Figure 4 This is a schematic diagram of the structure of a light string control device provided in an embodiment of the present application. The light string includes a plurality of lamp beads, and the device includes:
[0229] An acquisition unit 401 is used to acquire a user image of a target user captured by a camera device;
[0230] A first determining unit 402 is configured to determine the position and posture information of the target user based on the user image, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device;
[0231] A second determination unit 403 is used to determine a target illumination parameter based on the posture information and the target position information, wherein the target position information represents a relative position between the imaging area and the plurality of lamp beads, and the target illumination parameter is used to indicate illumination of the plurality of lamp beads respectively;
[0232] The control unit 404 is used to control the plurality of lamp beads respectively according to the target illumination parameters.
[0233] In a possible implementation, determining the position information of the target user based on the user image includes at least one of the following:
[0234] Based on the user image, determining whether the target user is located in a preset area, and obtaining position information of the target user;
[0235] Based on the user image, determine the location of the target user and obtain the position information of the target user;
[0236] Based on the user image, determining the moving trajectory of the target user, and obtaining the position information of the target user;
[0237] Based on the user image, the behavior intention of the target user is determined, and the position and posture information of the target user is obtained.
[0238] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0239] Identify the user image to obtain the identity information of the target user;
[0240] Based on the posture information, the target position information and the identity information, target illumination parameters are determined.
[0241] In a possible implementation, determining the target illumination parameter based on the posture information, the target position information and the identity information includes:
[0242] Determining whether the identity information indicates that the target user is a preset user;
[0243] In a case where the identity information indicates that the target user is the preset user, the colors to be displayed of the plurality of lamp beads and the switching times of the colors to be displayed are determined based on the posture information and the target position information to obtain the target lighting parameters.
[0244] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0245] Based on the posture information and the target position information, determine the target lamp bead and the non-target lamp bead from the plurality of lamp beads; wherein the target lamp bead is a lamp bead among the plurality of lamp beads whose distance to the position of the target user is less than or equal to the target distance;
[0246] The target illumination parameter of the target lamp bead is determined as a first parameter, and the target illumination parameter of the non-target lamp bead is determined as a second parameter.
[0247] In one possible implementation,
[0248] When the first parameter indicates that the lamp is illuminated, the second parameter indicates that the lamp is turned off;
[0249] When the first parameter indicates that the lamp bead is turned off, the second parameter indicates that the lamp bead is illuminated.
[0250] In a possible implementation, determining target illumination parameters based on the pose information and the target position information includes:
[0251] Based on the posture information and the target position information, determining a distance moved by the target user along a preset direction to obtain a moving distance;
[0252] Determining a quotient of the moving distance and a preset distance threshold;
[0253] In the case where the integer part of the quotient changes, the target lighting parameter is determined based on the integer part of the quotient.
[0254] The light string control device provided in this embodiment can be as follows Figure 4 The light string control device shown in can execute all the steps of the light string control methods described above, thereby achieving the technical effects of the light string control methods described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0255] 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 .
[0256] 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).
[0257] 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.
[0258] 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 .
[0259] 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.
[0260] 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:
[0261] Acquire a user image of a target user captured by a camera device;
[0262] Based on the user image, determining the position and posture information of the target user, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device;
[0263] Determine a target illumination parameter based on the posture information and the target position information, wherein the target position information represents the relative position between the imaging area and the plurality of lamp beads, and the target illumination parameter is used to indicate illumination of the plurality of lamp beads respectively;
[0264] According to the target illumination parameters, the plurality of lamp beads are controlled respectively.
[0265] 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.
[0266] 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.
[0267] 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.
[0268] 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 string control methods, thereby achieving the technical effects of the above-mentioned light string control methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0269] 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.
[0270] When one or more programs in the storage medium can be executed by one or more processors, the light string control method executed on the electronic device side can be implemented.
[0271] The processor is used to execute the light string control program stored in the memory to implement the following steps of the light string control method executed on the electronic device side:
[0272] Acquire a user image of a target user captured by a camera device;
[0273] Based on the user image, determining the position and posture information of the target user, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device;
[0274] Determine a target illumination parameter based on the posture information and the target position information, wherein the target position information represents the relative position between the imaging area and the plurality of lamp beads, and the target illumination parameter is used to indicate illumination of the plurality of lamp beads respectively;
[0275] According to the target illumination parameters, the plurality of lamp beads are controlled respectively.
[0276] 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.
[0277] 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.
[0278] 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.
[0279] 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 string control method, characterized in that: The light string includes a plurality of light beads, and the method includes: Acquire a user image of a target user captured by a camera device; Based on the user image, determining the position and posture information of the target user, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device; Determine a target illumination parameter based on the posture information and the target position information, wherein the target position information represents the relative position between the imaging area and the plurality of lamp beads, and the target illumination parameter is used to indicate illumination of the plurality of lamp beads respectively; According to the target illumination parameters, the plurality of lamp beads are controlled respectively.
2. The method according to claim 1, characterized in that: The determining, based on the user image, the position and posture information of the target user includes at least one of the following: Based on the user image, determining whether the target user is located in a preset area, and obtaining position information of the target user; Based on the user image, determine the location of the target user and obtain the position information of the target user; Based on the user image, determining the moving trajectory of the target user, and obtaining the position information of the target user; Based on the user image, the behavior intention of the target user is determined, and the position and posture information of the target user is obtained.
3. The method according to claim 1, characterized in that The step of determining target illumination parameters based on the pose information and the target position information includes: Identify the user image to obtain the identity information of the target user; Based on the posture information, the target position information and the identity information, target illumination parameters are determined.
4. The method according to claim 3, characterized in that The determining of target illumination parameters based on the posture information, the target position information and the identity information includes: Determining whether the identity information indicates that the target user is a preset user; When the identity information indicates that the target user is the preset user, the colors to be displayed of the plurality of lamp beads and the switching times of the colors to be displayed are determined based on the posture information and the target position information to obtain the target lighting parameters.
5. The method according to claim 1, characterized in that The determining of target illumination parameters based on the pose information and the target position information includes: Based on the posture information and the target position information, determine the target lamp bead and the non-target lamp bead from the plurality of lamp beads; wherein the target lamp bead is a lamp bead among the plurality of lamp beads whose distance to the position of the target user is less than or equal to the target distance; The target illumination parameter of the target lamp bead is determined as a first parameter, and the target illumination parameter of the non-target lamp bead is determined as a second parameter.
6. The method according to claim 4, characterized in that When the first parameter indicates that the lamp is illuminated, the second parameter indicates that the lamp is turned off; When the first parameter indicates that the lamp bead is turned off, the second parameter indicates that the lamp bead is illuminated.
7. The method according to claim 1, characterized in that The step of determining target illumination parameters based on the pose information and the target position information includes: Based on the posture information and the target position information, determining a distance moved by the target user along a preset direction to obtain a moving distance; Determining a quotient of the moving distance and a preset distance threshold; In case the integer part of the quotient changes, the target lighting parameter is determined.
8. A light string control device, characterized in that: The light string includes a plurality of light beads, and the device includes: An acquisition unit, used to acquire a user image of a target user captured by a camera device; A first determining unit, configured to determine the position and posture information of the target user based on the user image, wherein the position and posture information represents the user position and posture of the target user in the imaging area of the imaging device; A second determination unit is used to determine a target illumination parameter based on the posture information and the target position information, wherein the target position information represents a relative position between the imaging area and the plurality of lamp beads, and the target illumination parameter is used to indicate illumination of the plurality of lamp beads respectively; A control unit is used to control the plurality of lamp beads respectively according to the target illumination parameters.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method described in any one of claims 1 to 7 is implemented.
10. 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 7 is implemented.