The present disclosure relates to the field of human-computer interaction technologies, in particular to a smart device control method and system, an electronic device, and a storage medium.
With the popularity of the Internet of Things, more and more users tend to possess multiple smart devices concurrently. Meanwhile, there is also a possibility of providing multiple smart devices in a relatively small space. This raises great challenge on determination for accurate voice wake-up. For example, there is a risk of control confusion when a user simply issues an instruction “play music” while there are a plurality of smart devices around the user.
In related technologies, such determination is mainly based on the IoT broadband technologies, using only the distance between the user and the smart device as the basis for determination. In practical applications, there may be scenarios where a user actually wishes to interact with a distantly located smart device while another smart device is proximate to the user. For example, when a user wishes to turn on a distantly located air conditioner while there is a smart table lamp nearby, the user sends a simple instruction of “turn on” and the table lamp lights up: this is considered to be unfriendly from the perspective of interaction.
Therefore, how to achieve precise control of smart devices is a technical problem to be solved by those skilled in the art.
The purpose of the present disclosure is to provide a smart device control method and system, an electronic device, and a storage medium that can achieve precise control of smart devices.
To solve the above-mentioned technical problems, the present disclosure provides a smart device control method applied to a head-mounted device, wherein the head-mounted device comprises a first positioning device and a second positioning device symmetrically arranged, and the smart device control method comprises:
Receiving a device control instruction, and acquiring device distance information respectively between the first positioning device and each smart device, and between the second positioning device and each smart device;
Calculating a LOS (Line of Sight) deviation angle between a wearer of the head-mounted device and each of the smart devices based on the device distance information, wherein the LOS deviation angle is an angle between the wearer's direct LOS and a relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart devices; and
Determining a smart device with a LOS deviation angle less than a pre-set value as a to-be-controlled device, and sending a device control instruction to the to-be-controlled device.
Optionally, determining the smart device with a LOS deviation angle less than a pre-set value as a to-be-controlled device comprises:
Setting the smart device with a LOS deviation angle less than the pre-set value as a candidate device;
If there are more than one candidate device, acquiring a pitch angle of the wearer; and
Determining the to-be-controlled device from candidate devices according to the pitch angle of the wearer, wherein the pitch angle of the wearer is within a pre-set pitch angle range corresponding to the to-be-controlled device.
Optionally, acquiring the pitch angle of the wearer comprises:
Acquiring spatial position coordinates of the first positioning device, the second positioning device, and a third positioning device on the head-mounted device, wherein connection lines between the first positioning device, the second positioning device, and the third positioning device are not collinear; and
Determining the pitch angle of the wearer according to the spatial position coordinates of the first positioning device, the second positioning device, and the third positioning device.
Optionally, acquiring the pitch angle of the wearer comprises:
Acquiring motion data collected by an inertial sensor on the head-mounted device, and calculating the pitch angle of the wearer based on the motion data.
Optionally, before sending the device control instruction to the to-be-controlled device, the method further comprises:
Acquiring a distance between a fourth positioning device on the head-mounted device and the to-be-controlled device, wherein connection lines between the first positioning device, the second positioning device, and the fourth positioning device are not collinear;
Determining whether the wearer's LOS direction is towards the to-be-controlled device based on the distance between the fourth positioning device and the to-be-controlled device, and the distance between the first positioning device or the second positioning device and the to-be-controlled device;
If yes, performing an operation of sending the device control instruction to the to-be-controlled device; or
If not, the head-mounted device executing the device control instruction.
The present disclosure also provides a smart device control method applied to a smart device, the smart device control method comprising:
Receiving a device control instruction, and acquiring device distance information respectively between the first positioning device on a head-mounted device and the smart device, and between the second positioning device on the head-mounted device and the smart device, wherein the first positioning device and the second positioning device are symmetrically arranged on two sides of the head-mounted device;
Calculating a LOS deviation angle between a wearer of the head-mounted device and the smart device based on the device distance information, wherein the LOS deviation angle is an angle between the wearer's direct LOS and the relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart device;
Determining whether the LOS deviation angle is less than a pre-set value:
If yes, executing an operation corresponding to the device control instruction; or
If not, refraining from responding to the device control instruction.
Optionally, before executing the operation corresponding to the device control instruction, the method further comprises:
Acquiring a pitch angle of the wearer;
Judging whether the pitch angle of the wearer is within a pre-set pitch angle range:
If yes, proceed to the step of executing an operation corresponding to the device control instruction; or
If not, refraining from responding to the device control instruction.
Optionally, before executing the operation corresponding to the device control instruction, the method further comprises:
Acquiring a distance between a fifth positioning device on the head-mounted device and the smart device, wherein connection lines between the first positioning device, the second positioning device, and the fifth positioning device are not collinear; and
Determining whether the wearer's LOS direction is towards the smart device based on the distance between the fifth positioning device and the smart device, and the distance between the first positioning device or the second positioning device and the smart device:
If yes, proceed to the step of executing an operation corresponding to the device control instruction; or
If not, refraining from responding to the device control instruction.
The present disclosure also provides a smart device control system applied to a head-mounted device comprising a first positioning device and a second positioning device that are symmetrically arranged, the smart device control system comprising:
A distance acquisition module configured to receive a device control instruction and acquire device distance information between the first positioning device and each smart device, and between the second positioning device and each smart device;
An angle calculation module configured to calculate a LOS deviation angle between a wearer of the head-mounted device and each of the smart devices based on the device distance information, wherein the LOS deviation angle is an angle between the wearer's direct LOS and a relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart devices; and
An instruction sending module is configured to determine a smart device with a LOS deviation angle less than a pre-set value as a to-be-controlled device, and send a device control instruction to the to-be-controlled device.
The present disclosure also provides a smart device control system applied to smart devices, and the smart device control system comprises:
An information receiving module, configured to receive a device control instruction and acquire device distance information respectively between the first positioning device on a head-mounted device and the smart device, and between the second positioning device on the head-mounted device and the smart device; wherein the first positioning device and the second positioning device are symmetrically arranged on two sides of the head-mounted device;
An angle determination module, configured to calculate a LOS deviation angle between the wearer of the head-mounted device and the smart device according to the device distance information, wherein the LOS deviation angle is an angle between the wearer's direct LOS and the relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart device;
A decision-making module, configured to determine whether the LOS deviation angle is less than a pre-set value: if yes, executing an operation corresponding to the device control instruction; or if not, refraining from responding to the device control instruction.
The present disclosure also provides a storage medium on which a computer program is stored, which program, when executed, implement steps of the smart device control method as described above.
The present disclosure also provides an electronic device comprising a memory and a processor, wherein the memory stores therein a computer program, and the processor calls the computer program in the memory to implement steps of the smart device control method as described above.
The present disclosure provides a smart device control method applied to a head-mounted device, the head-mounted device comprising a first positioning device and a second positioning device that are symmetrically arranged, the smart device control method comprising: receiving a device control instruction, and acquiring device distance information respectively between the first positioning device and each smart device, and between the second positioning device and each smart device; calculating a LOS deviation angle between a wearer of the head-mounted device and each of the smart devices based on the device distance information, wherein the LOS deviation angle is an angle between the wearer's direct LOS and a relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart devices; and determining a smart device with a LOS deviation angle less than a pre-set value as a to-be-controlled device, and sending a device control instruction to the to-be-controlled device.
A technical solution provided in the present disclosure is that the head-mounted device is symmetrically provided with a first positioning device and a second positioning device, and a direct LOS direction of the wearer lies in a plane perpendicular to the line connecting the first positioning device and the second positioning device. The LOS deviation angle between the wearer and each smart device can be determined based on information of device distance respectively between the first positioning device and each smart device, and between the second positioning device and each smart device. According to human natural behavior, people naturally face the object receiving the voice during conversation. The LOS deviation angle is used to describe the deviation degree of the smart device from the wearer's direct LOS direction. When the LOS deviation angle is less than a pre-set value, it indicates that the main observation object in the wearer's LOS is the smart device, and then the smart device is to be controlled. The present disclosure can determine the smart device that is to be controlled based on human behavior characteristics during conversation, and can achieve precise control of smart devices. The present disclosure also provides a smart device control system, a storage medium, and an electronic device, which have the above beneficial effects, and are not described in detail here.
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings required for the description of the embodiments or the prior art will be briefly introduced below. It is obvious that the drawings described below are only a part of the drawings of the present disclosure. For those of ordinary skill in the art, other drawings can be acquired based on the provided drawings without creative labor.
The following will describe the technical solution in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of them. Based on the embodiments in the present disclosure, all the other embodiments acquired by those of ordinary skill in the art without creative labor shall fall within the scope of protection of the present disclosure.
Please refer to
The specific steps may include:
S101: Receiving a device control instruction, and acquiring device distance information respectively between the first positioning device and each smart device, and between the second positioning device and each smart device;
Here, in this embodiment, it is possible to be applied to AR (Augmented Reality) glasses, VR (Virtual Reality) helmets, headphones, and other head-mounted devices. The above-mentioned head-mounted devices include a first positioning device and a second positioning device that are symmetrically arranged. Specifically, when the user wears a head-mounted device, the device is symmetrical relative to the central axis of the head, and the first and second positioning devices are symmetrically located on two sides of the wearer's head. When the wearer's head moves, the positions of the first and second positioning devices in space also change. The above smart devices can include smart speakers, smart cameras, smart air conditioners, etc.
The device control instructions mentioned in this embodiment can be instructions sent by other control terminals (such as smartphones, tablets, etc.), instructions sent by user triggering knobs or buttons on the head-mounted device, and can also be user gesture instructions or voice instructions. The device control instructions can be a combination of the aforementioned types of instructions.
The first and second positioning devices mentioned above can be UWB (Ultra Wide Band) positioning labels, Bluetooth positioning devices, infrared signal transmitters, etc. A base station corresponding to the positioning device can be provided in the space where the wearer is located, to determine the position of the first and second positioning devices in space. UWB positioning technology has the characteristics of strong resistance to multipath, high positioning accuracy, high timestamp accuracy, strong electromagnetic compatibility, and high energy efficiency. There are three commonly used UWB ranging methods, including TOF (measuring the flight time of the signal between the base station and the label), TDOA (the time difference when the label arrives at different extremely narrow distances), and PDOA (measuring the azimuth relationship between the base station and the label through the arrival angle phase). In this embodiment, it is possible to pre-input the position of each smart device in space, and the distance information between the first and second positioning devices and each smart device can be acquired provided that the positions of the first and second positioning devices in space having been acquired. In this embodiment, it is possible to also install positioning devices in each smart device to determine the positions of each smart device in space. Furthermore, in this embodiment, it is possible to also install a positioning base station on each smart device to directly determine information of the device distance between the first and second positioning devices and each smart device. If the first positioning device, the second positioning device, and those positioning devices on the smart devices are positioning devices that can be independent of the base station, it is possible to directly determine information of the distances between the first positioning device and the second positioning device and each smart device based on signal transmission time difference between the positioning devices.
S102: Calculating a LOS deviation angle between a wearer of the head-mounted device and each of the smart devices based on the device distance information;
Here, information of the device distance acquired in this embodiment includes the distances between the first positioning label and each smart device, as well as the distances between the second positioning label and each smart device. Based on the known distance between the first positioning label and the second positioning label, the LOS deviation angle can be determined. Please refer to
S103: Determining a smart device with a LOS deviation angle less than a pre-set value as a to-be-controlled device, and sending a device control instruction to the to-be-controlled device.
Here, the LOS deviation angle is used to describe the degree of deviation of the smart device from wearer's direct LOS direction. The smaller the LOS deviation angle, the greater the probability that the wearer is facing the smart device directly. As people naturally face the object receiving the voice during conversation, smart devices with a LOS deviation angle of less than a pre-set value can be identified as the to-be-controlled device, and device control instructions can be sent to the to-be-controlled device.
Specifically, when the number of smart devices with a deviation angle of less than the pre-set value is 1, the smart device with a deviation angle less than the pre-set value can be directly set as the to-be-controlled device. When the number of smart devices with a deviation angle less than the pre-set value is more than 1, the smart device with the smallest deviation angle can be set as the to-be-controlled device. Furthermore, due to the different height settings of each smart device in the space, when the wearer turns their head towards the smart device, a certain pitch angle will occur, and the to-be-controlled device can be determined based on the pitch angle.
Provided that the to-be-controlled device having been determined, the head-mounted device can send the received device control instructions to the to-be-controlled device, so that the device can execute the corresponding operations of the device control instructions (such as playing music, shutting down, lighting up the screen, etc.). If there is no smart device with a deviation angle of less than the pre-set value from the LOS after receiving the device control instruction, it indicates that the device control instruction is an instruction to control the head-mounted device. At this time, the head-mounted device can execute the operation corresponding to the device control instruction.
In the technical solution provided in this embodiment, the head wearing device is symmetrically provided with a first positioning device and a second positioning device. A direct LOS direction of the wearer lies in a plane perpendicular to the line connecting the first positioning device and the second positioning device. The LOS deviation angle between the wearer and each smart device can be determined based on information of the distance respectively between the first positioning device and each smart device, and between the second positioning device and each smart device. According to human natural behavior, people naturally face the object receiving the voice during conversation. The LOS deviation angle is used to describe the deviation degree of the smart device from the wearer's direct LOS direction. When the LOS deviation angle is less than a pre-set value, it indicates that the main observation object in the wearer's LOS is the smart device, and then controls the smart device. In this embodiment, it is possible to determine the smart devices that need to be controlled based on the behavioral characteristics of human conversation, and can achieve precise control of the smart devices.
Please refer to
As a further introduction to the embodiment corresponding to
For example, if the LOS deviation angle between the wearer and the smart air conditioner and that between the wearer and the smart speaker is less than the pre-set value of 5°, the to-be-controlled device can be determined based on the user's pitch angle.
If the pre-set pitch angle range corresponding to the smart air conditioner is 60°˜80° when looking up, the pitch angle of the smart speaker is 50°˜70° when looking up, and the wearer's pitch angle is 75° when looking up, it indicates that the to-be-controlled device is the smart air conditioner, When the wearer's pitch angle is 55° when looking up, it indicates that the to-be-controlled device is a smart speaker.
Furthermore, if there are at least two candidate devices corresponding to pre-set pitch angle ranges that contain the wearer's pitch angle, the candidate device with the smallest deviation angle from the LOS among all eligible candidate devices will be set as the to-be-controlled device. The above pre-set conditions are that the pre-set pitch angle range corresponding to the candidate device includes the wearer's pitch angle.
For example, if the LOS deviation angle between the wearer and the smart air conditioner is 3°, and the LOS deviation angle between the wearer and the smart speaker is 2°, the LOS deviation angle corresponding to both the smart air conditioner and the smart speaker are less than the pre-set value of 5°. At this point, the to-be-controlled device can be determined based on the user's pitch angle. If the pre-set pitch angle range corresponding to the smart air conditioner is 60°˜80° when looking up, the pitch angle of the smart speaker is 50°˜70° when looking up, when the wearer's pitch angle is 65° when looking up, the smart speaker has the smallest LOS deviation angle and is set as the to-be-controlled device.
As a feasible implementation, in this embodiment, it is possible to acquire the pitch angle of the wearer by acquiring the spatial position coordinates of the first positioning device, the second positioning device, and the third positioning device on the head-mounted device; wherein, the connection lines between the first positioning device, the second positioning device, and the third positioning device are not colinear; and determine the pitch angle of the wearer based on the spatial position coordinates of the first positioning device, the second positioning device, and the third positioning device.
As another feasible implementation, in this embodiment, it is also possible to acquire the wearer's pitch angle by acquiring motion data collected by the inertial sensor on the head-mounted device, and calculating the wearer's pitch angle based on the motion data. The above inertial sensors can include accelerometers, gyroscopes, etc.
As a feasible implementation, before sending the device control instruction to the to-be-controlled device, there may also be an operation to determine whether the wearer is right facing the control device. Specifically, the process is as follows: acquiring the distance between a fourth positioning device on the head-mounted device and the to-be-controlled device; wherein, the connection lines between the first positioning device, the second positioning device, and the fourth positioning device are not colinear; and determining whether the wearer's LOS direction is towards the to-be-controlled device based on the distance between the fourth positioning device and the to-be-controlled device, as well as the distance between the first positioning device or the second positioning device and the to-be-controlled device: if so, execute the operation of sending the device control instruction to the to-be-controlled device; if not, the head-mounted device executes the device control instruction.
Due to the fact that the first positioning device, second positioning device, and fourth positioning device are not co-linear, the position of the head-mounted device in space can be determined based on the distance between the first positioning device, the second positioning device, and the fourth positioning device and the to-be-controlled device, thereby determining whether the wearer's LOS direction is towards the to-be-controlled device. The above method can further improve the control accuracy of head-mounted devices over smart devices. As a feasible implementation, the fourth positioning device and the third positioning device mentioned above can be the same positioning device. By providing the fourth positioning device, it is possible to determine whether the wearer is facing the smart device and also determine the wearer's pitch angle.
The above implementation example introduces the process of determining the control object through a head-mounted device and sending device control instructions to the selected smart device. As a feasible implementation, head-mounted devices can send device control instructions to all smart devices indiscriminately. Smart devices determine whether they are the control object of device control instructions based on the distance between themselves and the positioning device on the head-mounted device. The specific process is as follows:
Step 1: receiving a device control instruction, and acquiring device distance information respectively between the first positioning device on a head-mounted device and the smart device, and between the second positioning device on the head-mounted device and the smart device,
wherein, in this embodiment, it is possible to be applied to smart devices such as smart speakers, smart cameras, smart air conditioners, etc. The smart devices can be equipped with positioning devices, and the first and second positioning devices can be symmetrically arranged on two sides of the head-mounted device. The positioning device of the smart device, the first positioning device, and second positioning device can all be UWB positioning labels.
Step 2: Calculate the LOS deviation angle between the wearer of the head-mounted device and the smart device based on the distance information of the device;
Wherein, the LOS deviation angle is an angle between the wearer's direct LOS direction and the relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart device.
Step 3: Determine whether the LOS deviation angle is less than the pre-set value; if yes, execute the operation corresponding to the device control instruction; if not, refrain from responding to the device control instruction.
In the technical solution provided in this embodiment, the head wearing device is symmetrically provided with a first positioning device and a second positioning device. A direct LOS direction of the wearer lies in a plane perpendicular to the line connecting the first positioning device and the second positioning device. The LOS deviation angle between the wearer and the smart device can be determined based on information of the distance between the smart device and the first and second positioning devices, respectively. According to human natural behavior, people naturally face the object receiving the voice during conversation. The LOS deviation angle is used to describe the deviation degree of the smart device from the wearer's direct LOS direction. When the LOS deviation angle is less than a pre-set value, it indicates that the main observation object in the wearer's LOS is the smart device, and then controls the smart device. In this embodiment, the smart device can determine whether itself is a controlled object based on the behavioral characteristics of human conversation, and can achieve precise response of the smart device to device control instructions.
As a feasible implementation, the pitch angle of the wearer can also be acquired before executing the operation corresponding to the device control instruction; to determine whether the wearer's pitch angle is within the pre-set pitch angle range: if yes, proceed to the step of executing the operation corresponding to the device control instruction; if not, refrain from responding to the device control instruction.
As a feasible implementation, before executing the operation corresponding to the device control instruction, the distance between the fifth positioning device on the head-mounted device and the smart device can also be acquired; wherein, the connection lines between the first positioning device, the second positioning device, and the fifth positioning device are not colinear. Determine whether the wearer's LOS direction is towards the smart device based on the distance between the fifth positioning device and the smart device, as well as the distance between the first positioning device or the second positioning device and the smart device: if so, proceed to the step of executing the operation corresponding to the device control instruction; if not, refrain from responding to the device control instruction. As a feasible implementation, the fifth positioning device can be the same as the fourth and third positioning devices mentioned above.
The following illustrates the process described in the above embodiments through practical applications.
Based on human natural behavior, the speaker will naturally face the object receiving the voice during conversation. Based on the natural movement of the head, this embodiment provides a solution to recognize the interacting smart device by using smart glasses to measure the LOS deviation value. The smart glasses in this solution can be replaced with head-mount devices such as smart helmets, TWS earphones, and headphones. Please refer to
This technical solution utilizes the high-precision ranging feature of UWB and measures the deviation angle between the LOS following the head movement and the target device through smart glasses (or other devices with left-right symmetry properties). The natural response of the user is used as a reliable basis for determining the target device being interacted with. The content of this technical solution is as follows:
Please refer to
the left temple is provided with UWB positioning labels L and L2, and the right temple is provided with UWB positioning label R. The R and L are in a symmetrical state, with a certain distance between L and L2. The L is located on the proximal frame side and L2 is located on the distal frame side. The R and L are used to measure the degree of LOS deviation from the target device. L2 is used to measure forward or backward facing target devices. The arrangement of the three UWB positioning labels in this embodiment is not fixed, and there can also be two labels on the right temple and one label on the left temple. However, the pair of positioning labels on the left and right temples must be in a symmetrical state, and of course, the L2 label can also be located on the frame of the glasses.
Please refer to
Please refer to
According to the standard direct LOS direction diagram, taking the natural head rotation of users wearing glasses as an example, when the user shows a standard direct LOS direction relationship with the speaker, the direct LOS direction SO is the OM line.
Calculate the deviation angle a between the standard direct LOS and the user's actual LOS.
According to the trigonometric function, calculate the degree of ∠OMR by cosine value.
LOS deviation angle α=Head Turning angle β=90°−∠OMR
According to the natural movement laws of human, there is a certain LOS deviation when facing a target object. The floating range of natural left and right head turns can be set to 10°. When α>10°, it is judged that the user is not looking directly at the target object. When α≤10°, it is determined that the user is directly facing the target object. By using the above method, the deviation caused by the slight rotation of the head when facing the target object in a non-standard manner can be incorporated within the tolerance range of the judgment.
Please refer to
Please refer to
An embodiment of the present disclosure also provides a smart device control system applied to a head-mounted device, wherein the head-mounted device comprises a symmetrically arranged first positioning device and a second positioning device, and the smart device control system comprises:
A distance acquisition module configured to receive a device control instruction and acquire device distance information between the first positioning device and each smart device, and between the second positioning device and each smart device;
An angle calculation module configured to calculate a LOS deviation angle between a wearer of the head-mounted device and each of the smart devices based on the device distance information, wherein the LOS deviation angle is an angle between the wearer's direct LOS and a relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart devices; and
An instruction sending module is configured to determine a smart device with a LOS deviation angle less than a pre-set value as a to-be-controlled device, and send a device control instruction to the to-be-controlled device.
In the technical solution provided in this embodiment, the head wearing device is symmetrically provided with a first positioning device and a second positioning device, and a direct LOS direction of the wearer lies in a plane perpendicular to the line connecting the first positioning device and the second positioning device. The LOS deviation angle between the wearer and each smart device can be determined based on information of distance respectively between the first positioning device and each smart device, and between the second positioning device and each smart device. According to human natural behavior, people naturally face the object receiving the voice during conversation. The LOS deviation angle is used to describe the deviation degree of the smart device from the wearer's direct LOS direction. When the LOS deviation angle is less than a pre-set value, it indicates that the main observation object in the wearer's LOS is the smart device, and then controls the smart device. In this embodiment, it is possible to determine the smart device that need to be controlled based on the behavioral characteristics of human conversation, and can achieve precise control of the smart devices.
Furthermore, the instruction sending module includes:
A candidate device determination unit, configured for setting the smart device with a LOS deviation angle less than the pre-set value as a candidate device;
A pitch angle determination unit, configured for: if there are more than one candidate device, acquiring a pitch angle of the wearer;
A to-be-controlled device determination unit, configured for determining the to-be-controlled device from candidate devices according to the pitch angle of the wearer, wherein the pitch angle of the wearer is within a pre-set pitch angle range corresponding to the to-be-controlled device.
Furthermore, the pitch angle determination unit is configured for acquiring spatial position coordinates of the first positioning device, the second positioning device, and a third positioning device on the head-mounted device, wherein connection lines between the first positioning device, the second positioning device, and the third positioning device are not collinear; and configured for determining the pitch angle of the wearer according to the spatial position coordinates of the first positioning device, the second positioning device, and the third positioning device.
Furthermore, the pitch angle determination unit is configured for acquiring motion data collected by an inertial sensor on the head-mounted device, and calculating the pitch angle of the wearer based on the motion data.
Furthermore, the system also includes:
Facing direction determination module, configured for: acquiring a distance between a fourth positioning device on the head-mounted device and the to-be-controlled device, wherein connection lines between the first positioning device, the second positioning device, and the fourth positioning device are not collinear;
Determining whether the wearer's LOS direction is towards the to-be-controlled device based on the distance between the fourth positioning device and the to-be-controlled device, and the distance between the first positioning device or the second positioning device and the to-be-controlled device; if yes, performing an operation of sending the device control instruction to the to-be-controlled device; or if not, the head-mounted device executing the device control instruction.
An embodiment of the present disclosure also provides a smart device control system applied to a smart device, the smart device control system comprising:
An information receiving module, configured for receiving a device control instruction, and acquiring device distance information respectively between the first positioning device on a head-mounted device and the smart device, and between the second positioning device on the head-mounted device and the smart device, wherein the first positioning device and the second positioning device are symmetrically arranged on two sides of the head-mounted device;
An angle determination module, configured for calculating a LOS deviation angle between a wearer of the head-mounted device and the smart device based on the device distance information, wherein the LOS deviation angle is an angle between the wearer's direct LOS direction and the relative direction of the device, and the relative direction of the device is a direction of a line connecting a midpoint of a connection between the first positioning device and the second positioning device to the smart device; and
A decision-making module, configured for determining whether the LOS deviation angle is less than a pre-set value: if yes, executing an operation corresponding to the device control instruction; if not, refraining from responding to the device control instruction.
In the technical solution provided in this embodiment, the head wearing device is symmetrically provided with a first positioning device and a second positioning device. A direct LOS direction of the wearer lies in a plane perpendicular to the line connecting the first positioning device and the second positioning device. The LOS deviation angle between the wearer and the smart device can be determined based on information of the distance respectively between the first positioning device and each smart device, and between the second positioning device and each smart device. According to human natural behavior, people naturally face the object receiving the voice during conversation. The LOS deviation angle is used to describe the deviation degree of the smart device from the wearer's direct LOS direction. When the LOS deviation angle is less than the pre-set value, it indicates that the main observation object in the wearer's LOS is the smart device, and then controls the smart device. In this embodiment, the smart device can determine whether it is a controlled object based on the behavioral characteristics of human conversation, and can achieve precise response of the smart device to device control instructions.
Furthermore, the system also includes:
A pitch angle judgment module, configured for: before executing the operation corresponding to the device control instruction, acquiring a pitch angle of the wearer; judging whether the pitch angle of the wearer is within a pre-set pitch angle range: if yes, proceed to the step of executing an operation corresponding to the device control instruction; if not, refraining from responding to the device control instruction.
Furthermore, the system also includes:
A pitch angle decision-making module, configured for: before executing the operation corresponding to the device control instruction, acquiring a distance between a fifth positioning device on the head-mounted device and the smart device, wherein connection lines between the first positioning device, the second positioning device, and the fifth positioning device are not collinear; and determining whether the wearer's LOS direction is towards the smart device based on the distance between the fifth positioning device and the smart device, and the distance between the first positioning device or the second positioning device and the smart device: if yes, proceed to the step of executing an operation corresponding to the device control instruction; or if not, refraining from responding to the device control instruction.
Due to the correspondence between the implementation examples of the system part and the implementation examples of the method part, please refer to the description of the implementation examples in the method part for the implementation examples of the system part, which will not be elaborated here.
The present disclosure also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiments can be implemented. The storage medium can include: USB flash drives, portable hard drives, Read Only Memory (ROM), Random Access Memory (RAM), disks or CDs, and other media that can store program code.
The present disclosure also provides an electronic device that may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment can be implemented. Of course, the electronic device can also include various network interfaces, power supplies, and other components.
The various embodiments in this manual are described in a parallel or progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between each embodiment can be referred to each other. For the device disclosed in the embodiments, the description is relatively simple as it corresponds to the method disclosed in the embodiments. Please refer to the method section for relevant information.
Those of ordinary skill in the art can also understand that the units and algorithm steps of each example described in combination with the disclosed embodiments in this article can be implemented in 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 described in general terms of functionality in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians may use different methods to achieve the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure.
The steps of the method or algorithm described in conjunction with the disclosed embodiments in this article can be directly implemented using hardware, software modules executed by processors, or a combination of both. Software modules can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard drives, removable disks, CD-ROM, or any other form of storage medium known in the technical field.
It should also be noted that in this description, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms “including”, “including”, or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, item, or device that includes a series of elements not only includes those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, item, or device. Without further limitations, the elements limited by the statement “including one . . . ” do not exclude the existence of other identical elements in the process, method, item, or device that includes the said elements.
Number | Date | Country | Kind |
---|---|---|---|
202111149462.6 | Sep 2021 | CN | national |
The present disclosure is a National Stage of International Application No. PCT/CN2022/119662, filed on Sep. 19, 2021, which claims priority to Chinese Patent Application No. 202111149462.6, filed with the CNIPA on Sep. 29, 2021, and entitled “SMART DEVICE CONTROL METHOD AND SYSTEM, ELECTRONIC DEVICE, AND STORAGE MEDIUM”, both of which are hereby incorporated by reference in their entireties.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/119662 | 9/19/2022 | WO |