UWB-based motion trajectory recognition methods and electronic devices

By acquiring angle and distance information through a UWB antenna to determine real-time coordinate information, the device's motion trajectory is generated, which solves the problem of low accuracy of motion trajectory in existing technologies and achieves high-accuracy motion trajectory recognition without cumulative error.

CN114527456BActive Publication Date: 2025-10-28VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210141692.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2025-10-28
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

Existing motion trajectory recognition methods based on multi-sensor fusion suffer from cumulative errors, resulting in low accuracy of motion trajectories.

Method used

The first angle, second angle, and first distance of the first device are obtained through a UWB antenna. These angles and distances are used to determine real-time coordinate information and generate the motion trajectory of the device within a preset time period.

Benefits of technology

It achieves motion trajectory recognition without cumulative error, thus improving the accuracy of motion trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114527456B_ABST
    Figure CN114527456B_ABST
Patent Text Reader

Abstract

This application discloses a motion trajectory recognition method and electronic device based on UWB, belonging to the field of communication technology. The specific solution includes: acquiring a first angle, a second angle, and a first distance of a first device through a UWB antenna; determining the real-time coordinate information of the first device based on the first angle, the second angle, and the first distance; and generating the motion trajectory of the first device within a preset time period based on the real-time coordinate information; wherein, the first angle is the angle formed by a first line segment and a first coordinate axis in the target coordinate system, the second angle is the angle formed by the first line segment and a second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, specifically relating to a motion trajectory recognition method and electronic device based on UWB. Background Technology

[0002] Trajectory recognition technology can be applied in many fields. Among related technologies, spatial motion trajectory recognition technology based on multi-sensor fusion technology can be used to determine the motion trajectory of a moving object.

[0003] However, the principle of obtaining motion trajectory by trajectory recognition technology in related technologies is to obtain the motion trajectory by integrating the acceleration. According to the principle of integration, there will be a problem of cumulative error. The error of the motion trajectory will become larger and larger over time. Therefore, the accuracy of the motion trajectory obtained by related technologies is low. Summary of the Invention

[0004] The purpose of this application is to provide a motion trajectory recognition method and electronic device based on UWB, which can solve the problem of low accuracy of the acquired motion trajectory.

[0005] In a first aspect, embodiments of this application provide a motion trajectory recognition method based on UWB. The method includes: acquiring a first angle, a second angle, and a first distance of a first device through a UWB antenna; determining real-time coordinate information of the first device based on the first angle, the second angle, and the first distance; and generating a motion trajectory of the first device within a preset time period based on the real-time coordinate information; wherein, the first angle is the angle formed by a first line segment and a first coordinate axis in a target coordinate system, the second angle is the angle formed by the first line segment and a second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment.

[0006] Secondly, embodiments of this application provide a motion trajectory recognition device based on UWB, including: an acquisition module and a processing module; the acquisition module is used to acquire a first angle, a second angle, and a first distance of a first device through a UWB antenna; the processing module is used to determine the real-time coordinate information of the first device based on the first angle, the second angle, and the first distance, and generate the motion trajectory of the first device within a preset time period based on the real-time coordinate information; wherein, the first angle is the angle formed by a first line segment and a first coordinate axis in the target coordinate system, the second angle is the angle formed by the first line segment and a second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0011] In this embodiment, a first angle, a second angle, and a first distance of a first device can be acquired using a UWB antenna. Real-time coordinate information of the first device is determined based on the first angle, the second angle, and the first distance, and a motion trajectory of the first device within a preset time period is generated based on the real-time coordinate information. The first angle is the angle formed by a first line segment and a first coordinate axis in the target coordinate system; the second angle is the angle formed by the first line segment and a second coordinate axis; the first line segment is the line segment between the first device and the origin of the target coordinate system; and the first distance is the length of the first line segment. With this scheme, since the real-time coordinate information of the first device can be determined based on the first angle, the second angle, and the first distance, the motion trajectory of the first device generated based on the real-time coordinate information within the preset time period does not have accumulated errors, thus meeting the user's requirement for accuracy in motion trajectory. Attached Figure Description

[0012] Figure 1 This is a schematic diagram of a motion trajectory recognition system based on UWB provided in an embodiment of this application;

[0013] Figure 2 This is one of the flowcharts illustrating the motion trajectory recognition method based on UWB provided in the embodiments of this application;

[0014] Figure 3 This is a schematic diagram of the first angle, second angle, and first distance in the target coordinate system of the motion trajectory recognition method based on UWB provided in the embodiments of this application;

[0015] Figure 4 This is the second flowchart illustrating the motion trajectory recognition method based on UWB provided in the embodiments of this application;

[0016] Figure 5 This is a schematic diagram of the third and fourth angles in the target coordinate system of the motion trajectory recognition method based on UWB provided in the embodiments of this application;

[0017] Figure 6 This is a schematic diagram of the preset canvas provided in the embodiments of this application;

[0018] Figure 7 This is a schematic diagram of the structure of the motion trajectory recognition device based on UWB provided in the embodiments of this application;

[0019] Figure 8 This is one of the hardware schematic diagrams of the electronic device provided in the embodiments of this application;

[0020] Figure 9 This is a second hardware schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0022] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0023] The motion trajectory recognition method based on UWB provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0024] The motion trajectory recognition method based on UWB provided in this application can be executed by an electronic device or a functional module or entity in an electronic device that can implement the motion trajectory recognition method based on UWB. The electronic devices mentioned in this application include, but are not limited to, mobile phones, tablets, computers, cameras, wearable devices, smart locks, etc. The following uses an electronic device as the execution subject to illustrate the motion trajectory recognition method based on UWB provided in this application.

[0025] like Figure 1 As shown in the figure, this application provides a motion trajectory recognition system based on UWB, including an electronic device 101 and a first device 102. The electronic device 101 may include at least two pairs of orthogonally arranged Ultra Wide-Band (UWB) antenna pairs, namely a first antenna pair and a second antenna pair. The first antenna pair includes antenna 1 and antenna 2, and the second antenna pair includes antenna 1 and antenna 3. The first antenna pair and the second antenna pair can be used to measure the relative horizontal and relative vertical azimuth of the first device, respectively. The first device 102 includes a transmitting device matched with the UWB antenna pairs. The first device 102 can transmit positioning signals to the UWB antenna pairs through the transmitting device. Correspondingly, antennas 1, 2, and 3 in the electronic device 101 can respectively receive the positioning signals.

[0026] like Figure 2 As shown, this application provides a motion trajectory recognition method based on UWB, applied to the electronic device 101 in the aforementioned UWB-based motion trajectory recognition system. The method may include steps 201-202:

[0027] Step 201: Obtain the first angle, second angle, and first distance of the first device through the UWB antenna.

[0028] Wherein, the first angle is the angle formed by the first line segment and the first coordinate axis in the target coordinate system, the second angle is the angle formed by the first line segment and the second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment. For example, the first coordinate axis can be the horizontal axis in the target coordinate system, and the second axis can be the vertical axis in the target coordinate system.

[0029] Optionally, such as Figure 3 As shown, after the UWB antenna in electronic device 101 receives the positioning signal sent by the first device 102, electronic device 101 can establish a target coordinate system with the location of electronic device 101 as the origin, and determine the first angle θ and the second angle based on the phase difference of arrival (PDOA) angle measurement algorithm. The first distance r is determined based on the ToF ranging algorithm.

[0030] Optionally, before acquiring the first angle, second angle, and first distance of the first device, the electronic device can also acquire the third angle and fourth angle of the first device in real time via a UWB antenna. The third angle is the angle formed between the first device and the normal to the first coordinate axis, and the fourth angle is the angle formed between the first device and the normal to the second coordinate axis. If the third angle or the fourth angle is not within a preset angle range, the electronic device can determine the motion trajectory of the first device by integrating the acceleration of the first device. If both the third angle and the fourth angle are within the preset angle range, the electronic device can acquire the first angle, second angle, and first distance of the first device via the UWB antenna.

[0031] Specifically, such as Figure 4 As shown, the electronic device can first measure distance and angle using a UWB antenna, then acquire the third angle 'a' and the fourth angle 'b' measured by the UWB antenna, and then determine whether the third angle 'a' and the fourth angle 'b' are within a preset angle range. If the third angle 'a' or the fourth angle 'b' is not within the preset angle range, the motion trajectory of the first device is determined by integrating the acceleration of the first device, that is, by using spatial motion trajectory recognition technology based on multi-sensor fusion technology in related technologies to determine the motion trajectory of the moving object. If both the third angle 'a' and the fourth angle 'b' are within the preset angle range, the first angle, the second angle, and the first distance of the first device measured by the UWB antenna are acquired. Afterwards, the electronic device can acquire new third and fourth angles and perform a new round of judgment.

[0032] For example, such as Figure 5 As shown, taking the first coordinate axis as the x-axis and the second coordinate axis as the y-axis as an example, the third angle is the angle α formed between the first device 102 and the normal f1 of the x-axis, and the fourth angle is the angle β formed between the first device 102 and the normal f2 of the y-axis. Here, normal f1 refers to a line located in the first plane formed by antenna 1, antenna 2, and the first device 102, and perpendicular to the x-axis; normal f2 refers to a line located in the second plane formed by antenna 1, antenna 3, and the first device 102, and perpendicular to the y-axis. As the first device 102 moves continuously, the positions of normal f1 and normal f2 will also change accordingly.

[0033] It should be noted that when the third and fourth angles are within the preset angle range, the accuracy of the motion trajectory of the first device determined by the electronic device based on the first angle, the second angle, and the first distance is relatively high. However, when the third or fourth angle is not within the preset angle range, the accuracy of the motion trajectory of the first device determined by the electronic device based on the first angle, the second angle, and the first distance is relatively low. Therefore, when the accuracy of the motion trajectory determined by the first angle, the second angle, and the first distance is low, the motion trajectory of the first device can be determined by integrating the acceleration of the first device.

[0034] Optionally, the preset angle range can be (-60°, 60°).

[0035] Based on the above scheme, since the accuracy of the motion trajectory of the first device determined based on the first angle, the second angle, and the first distance is low when the third angle or the fourth angle is not within the preset angle range, the motion trajectory of the first device can be determined by integrating the acceleration of the first device. When the third angle and the fourth angle are within the preset angle range, the accuracy of the motion trajectory of the first device determined based on the first angle, the second angle, and the first distance is high, the motion trajectory of the first device can be determined based on the first angle, the second angle, and the first distance. Therefore, the accuracy of the motion trajectory obtained by the two methods is higher than the accuracy of the motion trajectory obtained by using either method.

[0036] Step 202: Determine the real-time coordinate information of the first device based on the first angle, the second angle, and the first distance, and generate the motion trajectory of the first device within a preset time period based on the real-time coordinate information.

[0037] Optionally, the electronic device determines the real-time coordinate information of the first device based on the first angle, the second angle, and the first distance, which may specifically include: based on x = r * cosθ, Determine the real-time coordinates (x, y, z) of the first device; where r is the first distance and θ is the first angle. This is the second angle.

[0038] Optionally, the motion trajectory of the first device within a preset time period can be represented as: That is, the starting point of the trajectory obtained from the triggering electronic device is recorded as 0, and the number of recorded coordinate points is N.

[0039] It should be noted that in practical applications, to facilitate subsequent trajectory comparison, the motion trajectory in three-dimensional space needs to be mapped onto a preset two-dimensional canvas, such as... Figure 6As shown, taking a planar coordinate system mapped to the x-axis and y-axis, with the origin of the planar coordinate system as the upper left corner of a preset canvas area, and the length and width of the preset canvas area both being M, as an example, one scenario is that if the motion trajectory of the first device does not exceed the size of the preset canvas area, then the real-time coordinate information (x, y, z) of the first device mapped to the coordinates of the preset canvas area is... In another scenario, if the motion trajectory of the first device exceeds the size of the preset canvas area, then the real-time coordinate information (x, y, z) of the first device is mapped to the coordinates within the preset canvas area. Where, the value of L is max(|x i |,|y i |). That is, according to The proportion is used to reduce the size of the motion trajectory.

[0040] Based on the above scheme, since the real-time coordinate information (x, y, z) of the first device can be determined, the motion trajectory of the first device can be generated based on the real-time coordinate information (x, y, z).

[0041] Optionally, when the first device is a wearable device, the electronic device can be used to detect whether the user's movement conforms to a standard. Specifically, after generating the movement trajectory of the first device within a preset time period based on real-time coordinate information, the electronic device can compare the movement trajectory with a preset motion map trajectory to obtain a comparison result; and based on the comparison result, output the user's movement adjustment suggestion information.

[0042] Based on the above scheme, since the obtained motion trajectory can be compared with the preset motion map trajectory, and thus output the user's action adjustment suggestion information, the user can identify his or her own shortcomings based on the action adjustment suggestion information, thereby helping the user to standardize his or her own movement.

[0043] Optionally, when the electronic device is a smart door lock and the first device is a handheld unlocking device, after the electronic device generates the movement trajectory of the first device within a preset time period based on real-time coordinate information, it can obtain the second distance between itself and the first device, as well as the device height of the first device; and when the movement trajectory, the second distance, and the device height all meet the corresponding preset condition ranges, it outputs unlocking success information and executes unlocking operation; if at least one of the movement trajectory, the second distance, and the device height does not meet the corresponding preset condition range, it outputs unlocking failure information, which includes the reason for unlocking failure.

[0044] For example, consider a preset condition range for the motion trajectory where the matching degree is greater than 80%, a preset condition range for the second distance where it is within the range of (1m, 1.5m), and a preset condition range for the device height where it is within the range of (1.6m, 1.7m). If the motion trajectory generated by the electronic device based on real-time coordinate information matches the preset trajectory with a matching degree of 85%, the second distance detected by the electronic device is 1.2m, and the device height of the first device is 1.8m, then since the device height of the first device is not within the range of (1.6m, 1.7m), it indicates that the person unlocking the door is taller than the original user, and this person may be an unauthorized unlocker. Therefore, the electronic device can output an unlocking failure message. Based on the above scheme, the motion trajectory, the second distance, and the device height can be used as factors to determine whether to unlock the door. Since the conditions for unlocking are that the motion trajectory, the second distance, and the device height all meet the corresponding preset condition ranges, the security of the smart lock can be improved, preventing the situation where the smart lock is maliciously opened when the first device is held by an unauthorized person.

[0045] In this embodiment, since the real-time coordinate information of the first device can be determined based on the first angle, the second angle, and the first distance, the motion trajectory of the first device generated based on the real-time coordinate information within a preset time period does not have cumulative error, which can meet the user's requirements for the accuracy of the motion trajectory.

[0046] The motion trajectory recognition method based on UWB provided in this application can be executed by a UWB-based motion trajectory recognition device. This application uses an example of a UWB-based motion trajectory recognition device executing the UWB-based motion trajectory recognition method to illustrate the UWB-based motion trajectory recognition device provided in this application.

[0047] like Figure 7 As shown in the figure, this application embodiment also provides a motion trajectory recognition device 700 based on UWB, including: an acquisition module 701 and a processing module 702; the acquisition module 701 is used to acquire a first angle, a second angle and a first distance of a first device through a UWB antenna; the processing module 702 is used to determine the real-time coordinate information of the first device according to the first angle, the second angle and the first distance, and generate the motion trajectory of the first device within a preset time period based on the real-time coordinate information; wherein, the first angle is the angle formed by a first line segment and a first coordinate axis in the target coordinate system, the second angle is the angle formed by the first line segment and a second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment.

[0048] Optionally, the acquisition module 701 is further configured to acquire the third angle and the fourth angle of the first device in real time through the UWB antenna, wherein the third angle is the angle formed between the first device and the normal to the first coordinate axis, and the fourth angle is the angle formed between the first device and the normal to the second coordinate axis; the processing module 702 is further configured to determine the motion trajectory of the first device by integrating the acceleration of the first device when the third angle or the fourth angle is not within the preset angle range; specifically, the acquisition module 701 is configured to acquire the first angle, the second angle, and the first distance of the first device through the UWB antenna when both the third angle and the fourth angle are within the preset angle range.

[0049] Optionally, the processing module 702 is specifically used for: based on x = r * cosθ, Determine the real-time coordinate information (x, y, z) of the first device; where r is the first distance and θ is the first angle. This is the second angle.

[0050] Optionally, continue to refer to Figure 7 The device 700 may further include an output module 703. When the first device is a wearable device, the processing module 702 is further configured to compare the motion trajectory with a preset motion map trajectory to obtain a comparison result; the output module 703 is configured to output user motion adjustment suggestions based on the comparison result.

[0051] Optionally, the acquisition module 701 is further configured to acquire a second distance between itself and the first device, and the device height of the first device; the output module 703 is further configured to output unlocking success information when the motion trajectory, the second distance, and the device height all meet the corresponding preset condition ranges; the processing module 702 is further configured to perform an unlocking operation; the output module 703 is further configured to output unlocking failure information when at least one of the motion trajectory, the second distance, and the device height does not meet the corresponding preset condition ranges, and the unlocking failure information includes the reason for the unlocking failure.

[0052] In this embodiment, since the real-time coordinate information of the first device can be determined based on the first angle, the second angle, and the first distance, the motion trajectory of the first device generated based on the real-time coordinate information within a preset time period does not have cumulative error, which can meet the user's requirements for the accuracy of the motion trajectory.

[0053] The UWB-based motion trajectory recognition device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific type of device.

[0054] The UWB-based motion trajectory recognition device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0055] The UWB-based motion trajectory recognition device provided in this application embodiment can achieve... Figures 1 to 6 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0056] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores a program or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the above-described UWB-based motion trajectory recognition method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0057] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0058] Figure 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0059] The electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.

[0060] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0061] It should be noted that the aforementioned radio frequency unit 1001 may include the radio frequency chip path and antenna of UWB.

[0062] The processor 1010 is used to acquire the first angle, the second angle, and the first distance of the first device through the UWB antenna.

[0063] The processor 1010 is further configured to determine the real-time coordinate information of the first device based on the first angle, the second angle, and the first distance, and generate the motion trajectory of the first device within a preset time period based on the real-time coordinate information; wherein, the first angle is the angle formed by the first line segment and the first coordinate axis in the target coordinate system, the second angle is the angle formed by the first line segment and the second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment.

[0064] In this embodiment, since the real-time coordinate information of the first device can be determined based on the first angle, the second angle, and the first distance, the motion trajectory of the first device generated based on the real-time coordinate information within a preset time period does not have cumulative error, which can meet the user's requirements for the accuracy of the motion trajectory.

[0065] Optionally, the processor 1010 is further configured to acquire, in real time, a third angle and a fourth angle of the first device via the UWB antenna, wherein the third angle is the angle formed between the first device and the normal to the first coordinate axis, and the fourth angle is the angle formed between the first device and the normal to the second coordinate axis.

[0066] The processor 1010 is also configured to determine the motion trajectory of the first device by integrating the acceleration of the first device when the third angle or the fourth angle is not within a preset angle range.

[0067] The processor 1010 is specifically used to acquire the first angle, the second angle, and the first distance of the first device through the UWB antenna when both the third angle and the fourth angle are within the preset angle range.

[0068] In this embodiment, since the accuracy of the motion trajectory of the first device determined based on the first angle, the second angle, and the first distance is low when the third angle or the fourth angle is not within the preset angle range, the motion trajectory of the first device can be determined by integrating the acceleration of the first device. When the third angle and the fourth angle are within the preset angle range, the accuracy of the motion trajectory of the first device determined based on the first angle, the second angle, and the first distance is high, the motion trajectory of the first device can be determined based on the first angle, the second angle, and the first distance. Therefore, the accuracy of the motion trajectory obtained by the two methods is higher than the accuracy of the motion trajectory obtained by using either method.

[0069] Optionally, processor 1010 is specifically used for: based on x = r * cosθ, Determine the real-time coordinate information (x, y, z) of the first device; where r is the first distance and θ is the first angle. This is the second angle.

[0070] In this embodiment of the application, since the real-time coordinate information (x, y, z) of the first device can be determined, the motion trajectory of the first device can be generated based on the real-time coordinate information (x, y, z).

[0071] Optionally, if the first device is a wearable device, the processor 1010 is further configured to compare the motion trajectory with a preset motion map trajectory to obtain a comparison result. The display unit 1006 is configured to output user motion adjustment suggestion information based on the comparison result.

[0072] In this embodiment, since the obtained motion trajectory can be compared with the preset motion map trajectory, and thus output the user's action adjustment suggestion information, the user can identify his or her own shortcomings based on the action adjustment suggestion information, thereby helping the user to standardize his or her own movement.

[0073] Optionally, the processor 1010 is also configured to acquire a second distance between itself and the first device, and the device height of the first device.

[0074] The display unit 1006 is used to output a successful unlocking message when the motion trajectory, the second distance, and the device height all meet the corresponding preset conditions.

[0075] The processor 1010 is also used to perform unlocking operations.

[0076] The display unit 1006 is further configured to output unlocking failure information when at least one of the motion trajectory, the second distance, and the device height does not meet the corresponding preset condition range, the unlocking failure information including the reason for the unlocking failure.

[0077] In this embodiment, the movement trajectory, the second distance, and the device height can be used as factors to determine whether to unlock. Since the conditions for unlocking are that the movement trajectory, the second distance, and the device height all meet the corresponding preset conditions, the security of the smart lock can be improved, preventing the situation where the smart lock is maliciously opened when the first device is held by an unauthorized person.

[0078] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0079] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), 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 memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0080] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.

[0081] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described UWB-based motion trajectory recognition method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0082] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0083] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described UWB-based motion trajectory recognition method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0084] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0085] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described UWB-based motion trajectory recognition method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0086] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0087] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0088] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A motion trajectory recognition method based on UWB, characterized in that, include: The first angle, second angle, and first distance of the first device are obtained through a UWB antenna; The real-time coordinate information of the first device is determined based on the first angle, the second angle, and the first distance, and the motion trajectory of the first device within a preset time period is generated based on the real-time coordinate information. Wherein, the first angle is the angle formed by the first line segment and the first coordinate axis in the target coordinate system, the second angle is the angle formed by the first line segment and the second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment; Obtain the second distance between the device and the first device, and the device height of the first device; If the movement trajectory, the second distance, and the device height all meet the corresponding preset conditions, output a successful unlocking message and execute the unlocking operation. If at least one of the motion trajectory, the second distance, and the device height fails to meet the corresponding preset condition range, an unlocking failure message is output, which includes the reason for the unlocking failure.

2. The motion trajectory recognition method based on UWB according to claim 1, characterized in that, Before acquiring the first angle, second angle, and first distance of the first device via the UWB antenna, the method further includes: The third angle and the fourth angle of the first device are acquired in real time through the UWB antenna. The third angle is the angle formed between the first device and the normal to the first coordinate axis, and the fourth angle is the angle formed between the first device and the normal to the second coordinate axis. If the third angle or the fourth angle is not within the preset angle range, the motion trajectory of the first device is determined by integrating the acceleration of the first device. The step of obtaining the first angle, second angle, and first distance of the first device via the UWB antenna includes: When both the third angle and the fourth angle are within the preset angle range, the first angle, the second angle, and the first distance of the first device are obtained through the UWB antenna.

3. The motion trajectory recognition method based on UWB according to claim 1, characterized in that, Determining the real-time coordinate information of the first device based on the first angle, the second angle, and the first distance includes: According to x = r * cosθ, Determine the real-time coordinate information (x, y, z) of the first device; Where r is the first distance and θ is the first angle. This is the second angle.

4. The motion trajectory recognition method based on UWB according to any one of claims 1-3, characterized in that, When the first device is a wearable device, after generating the motion trajectory of the first device within a preset time period based on the real-time coordinate information, the method further includes: The motion trajectory is compared with the preset motion map trajectory to obtain the comparison result; Based on the comparison results, output the user's action adjustment suggestions.

5. A motion trajectory recognition device based on UWB, characterized in that, include: Acquisition module and processing module; The acquisition module is used to acquire the first angle, the second angle, and the first distance of the first device through the UWB antenna; The processing module is used to determine the real-time coordinate information of the first device based on the first angle, the second angle, and the first distance, and to generate the motion trajectory of the first device within a preset time period based on the real-time coordinate information. Wherein, the first angle is the angle formed by the first line segment and the first coordinate axis in the target coordinate system, the second angle is the angle formed by the first line segment and the second coordinate axis, the first line segment is the line segment between the first device and the origin of the target coordinate system, and the first distance is the length of the first line segment.

6. The motion trajectory recognition device based on UWB according to claim 5, characterized in that, The acquisition module is further configured to acquire the third angle and the fourth angle of the first device in real time through the UWB antenna, wherein the third angle is the angle formed between the first device and the normal of the first coordinate axis, and the fourth angle is the angle formed between the first device and the normal of the second coordinate axis. The processing module is further configured to determine the motion trajectory of the first device by integrating the acceleration of the first device when the third angle or the fourth angle is not within the preset angle range; The acquisition module is specifically used to acquire the first angle, the second angle, and the first distance of the first device through the UWB antenna when both the third angle and the fourth angle are within the preset angle range.

7. The motion trajectory recognition device based on UWB according to claim 5, characterized in that, The processing module is specifically used for: According to x = r * cosθ, Determine the real-time coordinate information (x, y, z) of the first device; Where r is the first distance and θ is the first angle. This is the second angle.

8. The UWB-based motion trajectory recognition device according to any one of claims 5-7, characterized in that, The device further includes an output module; when the first device is a wearable device, the processing module is further configured to compare the motion trajectory with a preset motion map trajectory to obtain a comparison result; the output module is configured to output user motion adjustment suggestion information based on the comparison result.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the UWB-based motion trajectory recognition method as described in any one of claims 1-4.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions, which, when executed by a processor, implement the UWB-based motion trajectory recognition method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Positioning method and device and electronic equipment

    CN113518423A