Motion trajectory correction method for wearable device, terminal and computer readable medium

By distinguishing the positioning points in the user's motion trajectory recorded by the wearable device and computing the mapping point of the invalid points, the motion trajectory after deviation is generated, the problem that traditional algorithms cannot effectively handle the user's motion trajectory is solved, and the corrected motion trajectory is achieved. Effective correction and accuracy of the motion trajectory are improved.

CN113156478BActive Publication Date: 2025-02-21NUBIA TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011633847.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2025-02-21
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

The existing trajectory correction algorithm cannot effectively handle the user's movement trajectory recorded by wearable devices, especially when the user's movement is not on the main road, traditional algorithms cannot effectively correct the deviation.

Method used

By obtaining all positioning points information in the motion trajectory to be corrected, defining the positioning points as valid or invalid points according to the preset rules, and calculating the mapping points of the invalid points according to the preset algorithm, finally generating the motion trajectory after the correction .

Benefits of technology

Effective correction of motion trajectories is achieved, and the accuracy and reliability of user motion trajectories recorded by wearable devices are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113156478B_ABST
    Figure CN113156478B_ABST
Patent Text Reader

Abstract

The present invention discloses a motion trajectory correction method, a terminal and a computer-readable medium for a wearable device, the method comprising the following steps: sequentially obtaining information of all positioning points in the motion trajectory to be corrected; defining the positioning points as valid points or invalid points according to a preset rule; calculating mapping points corresponding to the invalid points according to a preset algorithm; and generating a corrected motion trajectory according to the valid points and the mapping points. The technical solution of the present invention calculates the invalid points through an algorithm to generate corresponding mapping points, and regenerates the motion trajectory through the valid points and the mapping points, which can effectively realize the correction of the motion trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a motion trajectory correction method, and in particular to a motion trajectory correction method for a wearable device, a terminal and a computer-readable medium. Background Art

[0002] The existing trajectory correction algorithm is basically based on big data, which corrects the trajectory to the nearest road, and works well in driving trajectories. However, wearable devices record the user's movement trajectory, which is not mainly on the roadway. Traditional correction algorithms based on big data are completely incapable of this task. Summary of the invention

[0003] The main purpose of the present invention is to provide a motion trajectory correction method, terminal and computer-readable medium for a wearable device, aiming to achieve effective correction of the motion trajectory.

[0004] To achieve the above object, the present invention provides a method for correcting the motion trajectory of a wearable device, comprising the following steps:

[0005] Sequentially obtain information of all positioning points in the motion trajectory to be corrected;

[0006] According to a preset rule, the positioning points are defined as valid points or invalid points respectively;

[0007] Calculating a mapping point corresponding to the invalid point according to a preset algorithm;

[0008] A corrected motion trajectory is generated according to the effective point and the mapping point.

[0009] Optionally, the step of defining the positioning point as a valid point or an invalid point according to a preset rule includes:

[0010] Determining whether the number of satellites on which the information of each positioning point is based is greater than or equal to a preset threshold;

[0011] If yes, defining the positioning point as a valid point;

[0012] If not, the anchor point is defined as an invalid point.

[0013] Optionally, after the step of determining that the proportion of valid points in the positioning points is greater than a preset value, the method further includes:

[0014] Determine whether the proportion of invalid points in the positioning points is less than or equal to a second preset value;

[0015] If yes, then output a prompt that no correction is needed;

[0016] If not, the invalid point is corrected according to a preset algorithm.

[0017] Optionally, the step of calculating the mapping point corresponding to the invalid point according to a preset algorithm includes:

[0018] Checking the invalid point to determine whether the invalid point meets a preset condition;

[0019] If yes, the invalid point is defined as a mapping point corresponding to the invalid point.

[0020] Optionally, the step of checking the invalid point to determine whether the invalid point meets a preset condition includes:

[0021] Acquire valid point information adjacent to the invalid point;

[0022] Obtaining the number of steps taken by the user from the valid point to a valid point adjacent to the invalid point to the invalid point, and the user's step length;

[0023] Calculating the distance traveled by the user according to the acquired number of steps and the step length;

[0024] Draw a circle with the effective point as the center and the distance as the radius;

[0025] When the invalid point is located within the circle or on the circumference, it is determined that the invalid point meets a preset condition.

[0026] Optionally, the step of calculating the mapping point corresponding to the invalid point according to a preset algorithm includes:

[0027] Acquire information of a first valid point and a second valid point located on both sides of the invalid point and adjacent to the invalid point;

[0028] Obtaining the number of steps taken by the user from the first valid point to the invalid point, and the user's step length;

[0029] Calculating the distance traveled by the user according to the acquired number of steps and the step length;

[0030] Draw a circle with the first effective point as the center and the distance as the radius, and draw a perpendicular line from the ineffective point to the line connecting the first effective point and the second effective point;

[0031] When the vertical line intersects the circle, the intersection point of the vertical line and the circle is used as a mapping point corresponding to the invalid point;

[0032] When the vertical line does not intersect the circle, the intersection point of the line connecting the first valid point and the second valid point and the circle is used as the mapping point corresponding to the invalid point.

[0033] Optionally, the step of generating a corrected motion trajectory according to the valid point and the mapping point includes:

[0034] The effective points and the mapping points are connected in sequence to generate a corrected motion trajectory.

[0035] In addition, the present invention also proposes a terminal, including a memory, a processor, and an implementation program of a motion trajectory correction method for a wearable device stored in the memory and run on the processor, wherein the implementation program of the motion trajectory correction method for the wearable device is executed by the processor as follows:

[0036] Sequentially obtain information of all positioning points in the motion trajectory to be corrected;

[0037] According to a preset rule, the positioning points are defined as valid points or invalid points respectively;

[0038] Calculating a mapping point corresponding to the invalid point according to a preset algorithm;

[0039] A corrected motion trajectory is generated according to the effective point and the mapping point.

[0040] In addition, the present invention further proposes a computer-readable medium, on which a program for implementing the motion trajectory correction method of a wearable device is stored. When the program for implementing the motion trajectory correction method of the wearable device is executed, the following steps are implemented:

[0041] Sequentially obtain information of all positioning points in the motion trajectory to be corrected;

[0042] According to a preset rule, the positioning points are defined as valid points or invalid points respectively;

[0043] Calculating a mapping point corresponding to the invalid point according to a preset algorithm;

[0044] A corrected motion trajectory is generated according to the effective point and the mapping point.

[0045] The technical solution of the present invention calculates invalid points through an algorithm to generate corresponding mapping points, and regenerates the motion trajectory through valid points and mapping points, thereby effectively correcting the motion trajectory. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0047] Figure 1A schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention;

[0048] Figure 2 A communication network system architecture diagram provided for an embodiment of the present invention;

[0049] Figure 3 It is a flow chart of a first embodiment of a motion trajectory correction method for a wearable device of the present invention;

[0050] Figure 4 for Figure 3 The flowchart of the steps of defining the positioning points as valid points and invalid points according to the preset rules is shown;

[0051] Figure 5 It is a flow chart of a second embodiment of a motion trajectory correction method for a wearable device of the present invention;

[0052] Figure 6 It is a flow chart of a third embodiment of a motion trajectory correction method for a wearable device of the present invention;

[0053] Figure 7 for Figure 3 The flowchart of an embodiment of the step of calculating the mapping point corresponding to the invalid point according to the preset algorithm is shown;

[0054] Figure 8 for Figure 7 The flowchart of the steps of judging whether the invalid point meets the preset conditions is shown;

[0055] Fig. 9 for Figure 3 The flowchart shown is another embodiment of the step of calculating the mapping point corresponding to the invalid point according to a preset algorithm.

[0056] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0058] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0059] The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0060] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type terminals.

[0061] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0062] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0063] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0064] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0065] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0066] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0067] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0068] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0069] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0070] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0071] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0072] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0073] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0074] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0075] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0076] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.

[0077] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are sequentially connected for communication.

[0078] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.

[0079] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .

[0080] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).

[0081] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.

[0082] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems, etc., which are not limited here.

[0083] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.

[0084] like Figure 3 As shown, Figure 3 This is a flow chart of the first embodiment of the motion trajectory correction method for a wearable device of the present invention.

[0085] In this embodiment, the motion trajectory correction method of the wearable device includes the following steps:

[0086] Step S310, sequentially obtaining information of all positioning points in the motion trajectory to be corrected.

[0087] Step S320: According to a preset rule, the positioning points are defined as valid points and invalid points respectively.

[0088] Step S330: Calculate a mapping point corresponding to the invalid point according to a preset algorithm.

[0089] Step S340: generating a corrected motion trajectory according to the valid point and the mapping point.

[0090] This embodiment is specifically used for correcting the motion trajectory obtained by a smart wearable device (such as a smart watch, a smart bracelet, etc.).

[0091] Specifically, in this embodiment, the motion trajectory to be corrected is generated by connecting several positioning points in sequence. And the information of each positioning point includes geographic location information, timestamp information, etc., and in the smart wearable device, it also includes information such as the user's height, step length, step frequency, and number of steps in a time period. When the user completes the exercise, the smart wearable device will directly display the motion trajectory, or connect to the mobile terminal to export the motion trajectory. In this embodiment, after obtaining the user's motion trajectory, traverse the motion trajectory to obtain the information of each positioning point, and then, according to the preset rules, define each obtained positioning point as a valid point or an invalid point. After the definition is completed, the invalid point is calculated by the correction algorithm to calculate the corresponding invalid mapping point. After correcting each of the invalid points, the valid point is connected to the mapping point in sequence to generate a corrected motion trajectory.

[0092] The technical solution of this embodiment calculates invalid points through an algorithm to generate corresponding mapping points, and regenerates the motion trajectory through valid points and mapping points, which can effectively realize the deviation correction of the motion trajectory.

[0093] Further, such as Figure 4 As shown, Figure 4 for Figure 3 The flowchart of the steps of defining the positioning points as valid points and invalid points according to the preset rules is shown. In this embodiment, the steps of defining the positioning points as valid points and invalid points according to the preset rules include:

[0094] Step S321, determining whether the number of satellites on which the information of each positioning point is based is greater than or equal to a preset threshold; if yes, executing step S322; if no, executing step S323.

[0095] Step S322, defining the positioning point as a valid point;

[0096] Step S323: define the positioning point as an invalid point.

[0097] Specifically, smart wearable devices in the Android system usually obtain GPS information through LocationManager, and the returned location object contains satellite information, which indicates how many satellite data the location object is calculated based on. We can set a threshold N (for example, N is equal to 5), and define that only when satellite>N, the location information of this location point is considered reliable, otherwise it is defined as an invalid point.

[0098] like Figure 5 As shown, Figure 5 This is a flow chart of a second embodiment of a motion trajectory correction method for a wearable device of the present invention.

[0099] In this embodiment, the motion trajectory correction method of the wearable device includes the following steps:

[0100] Step S410, sequentially obtaining information of all positioning points in the motion trajectory to be corrected.

[0101] Step S420: According to a preset rule, the positioning points are defined as valid points and invalid points respectively.

[0102] Step S430, determining whether the proportion of valid points in the positioning points is greater than or equal to a first preset value; if yes, executing step S440, if not, executing step S460.

[0103] Step S440: Calculate a mapping point corresponding to the invalid point according to a preset algorithm.

[0104] Step S450: generating a corrected motion trajectory according to the valid point and the mapping point.

[0105] Step S460: outputting a prompt indicating that the motion trajectory is invalid.

[0106] Compared with the first embodiment described above, in this embodiment, before the step of calculating the mapping points corresponding to the invalid points according to the preset algorithm, it is also necessary to determine whether the proportion of valid points in the positioning points is greater than or equal to the first preset value (for example, 50%). When the proportion of valid points in the positioning points is greater than or equal to the first preset value, the motion trajectory to be corrected is determined to be valid, and then the mapping points corresponding to the invalid points are calculated according to the preset algorithm. When the proportion of valid points in the positioning points is less than the first preset value, the motion trajectory to be corrected is determined to be invalid, and an invalid motion trajectory prompt such as "the motion trajectory is unreliable" and "the GPS signal is weak, resulting in an unreliable motion trajectory" is output to remind the user to retest.

[0107] like Figure 6 As shown, Figure 6 This is a flow chart of a third embodiment of a motion trajectory correction method for a wearable device of the present invention.

[0108] In this embodiment, the motion trajectory correction method of the wearable device includes the following steps:

[0109] Step S510, sequentially obtaining information of all positioning points in the motion trajectory to be corrected.

[0110] Step S520: According to a preset rule, the positioning points are defined as valid points and invalid points respectively.

[0111] Step S530, determining whether the proportion of valid points in the positioning points is greater than or equal to a first preset value; if yes, executing step S540, if not, executing step S580.

[0112] Step S540, determining whether the proportion of invalid points in the positioning points is less than or equal to a second preset value; if not, executing step S550; if yes, executing step S570.

[0113] Step S550: Calculate a mapping point corresponding to the invalid point according to a preset algorithm.

[0114] Step S560: generating a corrected motion trajectory according to the valid point and the mapping point.

[0115] Step S570: output a prompt indicating that no correction is required.

[0116] Step S580: outputting a prompt indicating that the motion trajectory is invalid.

[0117] Compared with the above-mentioned second embodiment, in this embodiment, after the step of determining whether the proportion of valid points in the positioning points is greater than the preset value, it is also necessary to determine whether the proportion of invalid points in the positioning points is less than or equal to a second preset value (for example, 1%, 0, etc.). When the proportion of invalid points in the positioning points is less than or equal to the second preset value, it means that the motion trajectory does not need to be corrected, and the prompt "Motion trajectory does not need to be corrected" is output at this time. When the proportion of invalid points in the positioning points is greater than the second preset value, the mapping points corresponding to the invalid points are calculated according to the preset algorithm, and the corrected motion trajectory is generated according to the valid points and the mapping points to achieve the correction of the motion trajectory.

[0118] Further, such as Figure 7 As shown, Figure 7 for Figure 3 The flowchart shown is a flowchart of an embodiment of the step of calculating the mapping point corresponding to the invalid point according to a preset algorithm.

[0119] In this embodiment, the step of calculating the mapping point corresponding to the invalid point according to a preset algorithm includes:

[0120] Step S610, checking the invalid point to determine whether the invalid point meets a preset condition.

[0121] Step S620: When the invalid point meets a preset condition, the invalid point defines a mapping point corresponding to the invalid point.

[0122] Specifically, Figure 8 As shown, Figure 8 for Figure 7 The flowchart of the step of determining whether the invalid point meets the preset condition is shown in FIG. 1 . In this embodiment, the step of determining whether the invalid point meets the preset condition includes:

[0123] Step S611, obtaining valid point information adjacent to the invalid point;

[0124] Step S612, obtaining the number of steps taken by the user from the valid point to the invalid point and the valid point adjacent to the invalid point, and the step length of the user;

[0125] Step S613, calculating the distance traveled by the user according to the acquired number of steps and the step length;

[0126] Step S614, drawing a circle with the effective point as the center and the distance as the radius;

[0127] Step S615: When the invalid point is located within the circle or on the circumference, it is determined that the invalid point meets a preset condition.

[0128] Check all valid points. If its next positioning point is an invalid point, the valid point can be recorded as P and the invalid point as Q. We also have the timestamps of these two positioning points. We can find out the number of steps n of the user between these two points from the recorded data. Assuming the user's step length is h, we can calculate the user's travel distance s=n*h during this period. We draw a circle with P as the center and s as the radius. If point Q is within the circle, point Q is also considered a valid point, otherwise it is an invalid point.

[0129] The technical solution of this embodiment realizes the correction of invalid points with high accuracy through the user's step length, number of steps, and position information of the positioning point.

[0130] Further, such as Fig. 9 As shown, Fig. 9 for Figure 3 The flowchart shown is another embodiment of the step of calculating the mapping point corresponding to the invalid point according to a preset algorithm.

[0131] In this embodiment, the step of calculating the mapping point corresponding to the invalid point according to a preset algorithm includes:

[0132] Step S710, obtaining information of a first valid point and a second valid point located on both sides of the invalid point and adjacent to the invalid point.

[0133] Step S720, obtaining the number of steps taken by the user from the first valid point to the invalid point and the user's step length.

[0134] Step S730: Calculate the distance traveled by the user based on the acquired number of steps and the step length.

[0135] Step S740, draw a circle with the first valid point as the center and the distance as the radius, and draw a perpendicular line from the invalid point to the line connecting the first valid point and the second valid point.

[0136] Step S750: When the vertical line intersects the circle, the intersection point of the vertical line and the circle is used as a mapping point corresponding to the invalid point.

[0137] Step S760: When the vertical line does not intersect the circle, the intersection point of the line connecting the first valid point and the second valid point and the circle is used as a mapping point corresponding to the invalid point.

[0138] In most cases, valid points should occupy the majority of the entire data, then such data as a whole is considered to be credible, and such data can be further corrected: take the first credible point as the starting point of the motion trajectory, for every two valid points Pi, P(i+1), if there is an invalid point between them, denoted as Qj, Q(j+1), ..., Qk, then starting from point Pi, with point Pi as the center of the circle, between point Pi and point Qj, calculate the user's moving distance s by the step size, etc., and draw a circle with s as the radius. According to the algorithm described above, Qj must be outside the circle, connect Pi and P(i+1) as a straight line, and draw a perpendicular line to this straight line through Qj. If the perpendicular line intersects the circle, the intersection point is denoted as L. If they do not intersect, the intersection point of the circle and the straight line (Pi, P(i+1)) is denoted as L, and L is used as the mapping point of Qj after correction.

[0139] The purpose of doing this is to maintain the convergence direction from Pi to P(i+1). If point L is on the circle, the mapping point after correction still tends to move in the direction of Qj, but has reached the limit of the user's motion ability. If point L is not on the circle, it means that point L has exceeded the limit of the user's motion ability. This is the worst case. Only one interpolation from Pi to P(i+1) can be performed to ensure that the result converges to the next reliable point.

[0140] The technical solution of this embodiment realizes the correction of invalid points with high accuracy through the user's step length, number of steps, and position information of the positioning point.

[0141] The present invention also proposes a terminal, comprising a memory, a processor, and an implementation program of a motion trajectory correction method for a wearable device stored in the memory and runnable on the processor, wherein the implementation program of the motion trajectory correction method for the wearable device implements all the steps in the embodiment of the motion trajectory correction method for the wearable device when executed by the processor. Since the terminal can execute all the steps in any of the above embodiments, the mobile terminal at least has all the beneficial effects brought by the technical solutions of the above method embodiments, which will not be described one by one here.

[0142] The present invention also proposes a computer-readable medium, on which is stored an implementation program of the motion trajectory correction method of a wearable device, and when the implementation program of the motion trajectory correction method of the wearable device is executed, all the steps in any of the above embodiments can be implemented. Since the computer-readable medium can execute all the steps in any of the above embodiments, the computer-readable medium at least has all the beneficial effects brought by the technical solutions of the above method embodiments, which will not be repeated here one by one.

[0143] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0144] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0146] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A motion trajectory correction method for a wearable device, characterized in that: The steps include: Sequentially obtain information of all positioning points in the motion trajectory to be corrected; According to a preset rule, the positioning points are defined as valid points or invalid points respectively; Calculating a mapping point corresponding to the invalid point according to a preset algorithm; generating a corrected motion trajectory according to the effective point and the mapping point; The step of defining the positioning point as a valid point or an invalid point according to a preset rule comprises: Determining whether the number of satellites on which the information of each positioning point is based is greater than or equal to a preset threshold; If yes, defining the positioning point as a valid point; If not, defining the positioning point as an invalid point; After the step of determining that the proportion of valid points in the positioning points is greater than a preset value, the method further includes: Determine whether the proportion of invalid points in the positioning points is less than or equal to a second preset value; If yes, then output a prompt that no correction is needed; If not, the invalid point is corrected according to a preset algorithm; The step of calculating the mapping point corresponding to the invalid point according to a preset algorithm comprises: Checking the invalid point to determine whether the invalid point meets a preset condition; If yes, defining the invalid point as a mapping point corresponding to the invalid point; The step of checking the invalid point to determine whether the invalid point meets a preset condition includes: Acquire valid point information adjacent to the invalid point; Obtaining the number of steps taken by the user from the invalid point to the valid point, and the user's step length; Calculating the distance traveled by the user according to the acquired number of steps and the step length; Draw a circle with the effective point as the center and the distance as the radius; When the invalid point is located within the circle or on the circumference of the circle, determining that the invalid point meets a preset condition; The step of calculating the mapping point corresponding to the invalid point according to a preset algorithm comprises: Acquire information of a first valid point and a second valid point located on both sides of the invalid point and adjacent to the invalid point; Obtaining the number of steps taken by the user from the first valid point to the invalid point, and the user's step length; Calculating the distance traveled by the user according to the acquired number of steps and the step length; Draw a circle with the first effective point as the center and the distance as the radius, and draw a perpendicular line from the ineffective point to the line connecting the first effective point and the second effective point; When the vertical line intersects the circle, the intersection point of the vertical line and the circle is used as a mapping point corresponding to the invalid point; When the vertical line does not intersect the circle, the intersection point of the line connecting the first valid point and the second valid point and the circle is used as the mapping point corresponding to the invalid point.

2. The motion trajectory correction method of a wearable device according to claim 1, characterized in that: The step of generating a corrected motion trajectory according to the effective point and the mapping point comprises: The effective points and the mapping points are connected in sequence to generate a corrected motion trajectory.

3. A terminal, characterized in that: The invention comprises a memory, a processor and an implementation program of a motion trajectory correction method for a wearable device which is stored in the memory and can be run on the processor. When the implementation program of the motion trajectory correction method for the wearable device is executed by the processor, the steps of the motion trajectory correction method for the wearable device as described in claim 1 or 2 are implemented.

4. A computer-readable medium, characterized in that The computer-readable medium stores an implementation program of the motion trajectory correction method of the wearable device, and when the implementation program of the motion trajectory correction method of the wearable device is executed, the steps of the motion trajectory correction method of the wearable device as described in claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Optimization method of trajectory and device

    CN105184382A

  • Track recording method based on differential GPS and vehicle kinematics model

    CN110850455A