Motion information generation method, electronic device, and medium

By mapping the user's location to the playground location in playground mode and adjusting the motion mode using track parameters and rotation angle, the problem of inaccurate motion trajectory generation by electronic devices is solved, achieving higher accuracy and reliability.

CN122309945APending Publication Date: 2026-06-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-12-27
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

The motion trajectory generated by electronic devices during user exercise on the playground is inaccurate, mainly due to position detection deviations of the Global Navigation Satellite System sensors and user setting errors.

Method used

In playground mode, the acquired user location is mapped to the playground location to generate a movement trajectory that conforms to the playground characteristics. By determining the playground mode and utilizing the mapping relationship between track parameters, center point position and rotation angle, the movement mode is adjusted to improve accuracy and reliability.

Benefits of technology

It improves the accuracy and reliability of motion trajectory generation, avoids motion trajectory errors caused by location acquisition deviations and user setting errors, and enhances the reliability of user motion information and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122309945A_ABST
    Figure CN122309945A_ABST
Patent Text Reader

Abstract

This disclosure relates to a method, electronic device, and medium for generating motion information. The method includes: acquiring the user's first location when the user activates a playground mode; mapping the first location to a second location on the playground if the motion mode is confirmed to be playground mode; and generating the user's first motion trajectory based on the second location. By mapping the acquired location to the playground location before generating the user's motion trajectory, the characteristics of the motion trajectory are not affected by location acquisition errors, thereby improving the accuracy of motion trajectory generation. Simultaneously, by confirming the motion mode after the user activates playground mode, the generation of a motion trajectory that incorrectly conforms to playground characteristics in non-playground environments due to user settings errors is avoided, thereby improving the reliability of motion trajectory generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of information processing technology, and in particular to a method for generating motion information, an electronic device, and a medium. Background Technology

[0002] The motion trajectories generated by electronic devices during user exercise on the playground are inaccurate. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides a motion information generation method, electronic device, and medium.

[0004] According to a first aspect of the present disclosure, a motion information generation method is provided, the motion information generation method comprising:

[0005] When the user has enabled the playground mode, obtain the user's first location;

[0006] If the movement mode is determined to be the playground mode, the first position is mapped to the second position on the playground;

[0007] Based on the second position, the user's first motion trajectory is generated.

[0008] In some embodiments of this disclosure, determining the exercise mode as the playground mode includes:

[0009] Based on the first position, generate the user's second movement trajectory;

[0010] If the characteristics of the second movement trajectory match the characteristics of the playground, the movement pattern is determined to be the playground pattern; or,

[0011] Determine the percentage of time the user activates the playground mode;

[0012] If the activation ratio is greater than or equal to the preset ratio, the exercise mode is determined to be the playground mode.

[0013] In some embodiments of this disclosure, the number of both the first position and the second position is multiple; mapping the first position to the second position of the playground includes:

[0014] Each of the first positions is mapped to its corresponding second position using a mapping relationship;

[0015] The mapping relationship is related to the parameters of the first track of the playground, the position of the center point, and the rotation angle.

[0016] In some embodiments of this disclosure, before mapping each of the first positions to the corresponding second positions using a mapping relationship, the motion information generation method further includes:

[0017] Obtain the first runway parameters set by the user, which include the runway distance and runway number;

[0018] The center point position and the rotation angle are determined based on at least a portion of the first position;

[0019] The mapping relationship is determined based on the first runway parameters, the center point position, and the rotation angle.

[0020] In some embodiments of this disclosure, determining the center point position and the rotation angle based on at least a portion of the first position includes:

[0021] The average value of multiple first positions where the user moves around the playground is taken as the center point position;

[0022] The axis of the playground is determined based on multiple first positions of the user on the bends and / or straight sections of the playground;

[0023] The angle between the first straight line containing the axis and the second straight line containing the standard direction is taken as the rotation angle.

[0024] In some embodiments of this disclosure, after determining the mapping relationship based on the first runway parameters, the center point position, and the rotation angle, the motion information generation method further includes:

[0025] In response to the user's adjustment operation on the runway parameters, the first runway parameters are adjusted to the second runway parameters;

[0026] The mapping relationship is adjusted based on the second runway parameters.

[0027] In some embodiments of this disclosure, the number of the first locations is multiple; after obtaining the user's first location, the motion information generation method further includes:

[0028] Based on each of the first positions, determine the user's movement distance and number of laps;

[0029] The user's movement speed is determined based on each of the first positions and the user's movement time.

[0030] In some embodiments of this disclosure, after determining the user's movement speed based on the first position and the user's movement time, the motion information generation method further includes:

[0031] Display at least one of the first motion trajectory, the motion distance, the number of motion laps, and the motion speed.

[0032] According to a second aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0033] The acquisition module is configured to acquire the user's first location when the user activates the playground mode;

[0034] A first processing module is configured to map the first position to a second position on the playground when the movement mode is determined to be the playground mode.

[0035] The second processing module is configured to generate a first motion trajectory of the user based on the second position.

[0036] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0037] processor;

[0038] Memory used to store the processor's executable instructions;

[0039] The processor is configured to execute the motion information generation method described above.

[0040] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the motion information generation method as described above.

[0041] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0042] When a user activates the playground mode, their initial location is obtained to determine their position during movement. If the playground mode is confirmed, a movement trajectory needs to be generated within that environment. The initial location is mapped to a second location on the playground. Based on this second location, the user's initial movement trajectory is generated, ensuring its characteristics match those of the playground. By mapping the obtained location to the playground location before generating the user's trajectory, the accuracy of trajectory generation is improved, avoiding errors caused by location acquisition biases. Furthermore, by confirming the playground mode after activation, the system avoids generating erroneous playground-like trajectories in non-playground environments due to user settings errors, thus enhancing the reliability of trajectory generation.

[0043] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0044] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0045] Figure 1 This is a flowchart illustrating a motion information generation method according to an exemplary embodiment;

[0046] Figure 2 This is a flowchart illustrating a motion information generation method according to another exemplary embodiment;

[0047] Figure 3 This is a flowchart illustrating a motion information generation method according to another exemplary embodiment;

[0048] Figure 4 This is a flowchart illustrating a motion information generation method according to another exemplary embodiment;

[0049] Figure 5 This is a flowchart illustrating a motion information generation method according to another exemplary embodiment;

[0050] Figure 6 This is a flowchart illustrating a motion information generation method according to another exemplary embodiment;

[0051] Figure 7 This is a flowchart illustrating a motion information generation method according to another exemplary embodiment;

[0052] Figure 8 This is a flowchart illustrating a motion information generation method according to another exemplary embodiment;

[0053] Figure 9 This is a schematic diagram illustrating a motion trajectory according to an exemplary embodiment;

[0054] Figure 10 This is a block diagram of an electronic device according to an exemplary embodiment;

[0055] Figure 11 This is a block diagram of an electronic device according to another exemplary embodiment.

[0056] In the picture:

[0057] 100 - Acquisition module; 200 - First processing module; 300 - Second processing module; 400 - Electronic device; 402 - Processing component; 404 - Memory; 406 - Power supply component; 408 - Multimedia component; 410 - Audio component; 412 - Input / output interface; 414 - Sensor component; 416 - Communication component; 420 - Processor. Detailed Implementation

[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims. It should also be understood that the term “and / or” as used in this disclosure refers to and includes any or all possible combinations of one or more of the associated listed items.

[0059] With the development of electronic devices, various exercise modes are now available to accurately generate user exercise information. For example, electronic devices may offer running, rope skipping, and elliptical machine modes. Before exercising, the user selects the desired exercise mode on the electronic device and activates it. During exercise, sensors in the electronic device detect the user's heart rate, location, and other information. Based on this information, the device generates and displays the user's exercise data, allowing them to understand their progress. However, due to certain biases in the detection of the user's position by Global Navigation Satellite System (GNSS) sensors, the motion trajectories generated by electronic devices can be inaccurate.

[0060] To address the aforementioned technical issues, this disclosure provides a method for generating motion information. By mapping the acquired location to the location of the playground in playground mode, the user's motion trajectory is generated. This avoids discrepancies between the generated trajectory and the actual trajectory due to biases in detection by global navigation satellite system sensors, thereby improving the accuracy of motion trajectory generation. Furthermore, by confirming the motion mode after the user activates playground mode, discrepancies between the generated trajectory and the actual trajectory are avoided due to user settings errors, thus improving the reliability of motion trajectory generation.

[0061] This disclosure provides a method for generating motion information, such as... Figure 1 As shown, the method includes:

[0062] S100: When the user activates the playground mode, obtain the user's first location.

[0063] S200. If the movement mode is determined to be playground mode, map the first position to the second position on the playground.

[0064] S300: Generate the user's first motion trajectory based on the second position.

[0065] In this embodiment, when the user activates the playground mode, the user's first location is obtained to determine the user's location during movement. If the movement mode is determined to be playground mode, and the user is moving on the playground, a movement trajectory needs to be generated in the playground environment. The first location is mapped to a second location on the playground. Based on the second location, the user's first movement trajectory is generated, ensuring that the characteristics of the first movement trajectory conform to the characteristics of the playground. By mapping the obtained location to the playground location before generating the user's movement trajectory, the characteristics of the movement trajectory are not affected by location acquisition errors, thereby improving the accuracy of movement trajectory generation. Simultaneously, by determining the movement mode after the user activates playground mode, the generation of a movement trajectory that incorrectly conforms to playground characteristics in non-playground environments due to user settings errors is avoided, thereby improving the reliability of movement trajectory generation.

[0066] For example, in step S100, the user can activate the playground mode by clicking on the sports mode on the electronic device. In the sports mode interface, the user can click on playground mode. In the playground mode interface, the track parameters are set, and the start button is clicked to activate playground mode.

[0067] For example, obtaining the user's first location in step S100 can be obtaining the first location detected by the Global Navigation Satellite System (GNSS) sensors. The first location can be represented by latitude and longitude. In addition to obtaining the first location, the altitude, horizontal accuracy, carrier-to-noise ratio (CN value), number of satellites, etc., detected by the GNSS sensors can also be obtained.

[0068] In one embodiment, such as Figure 2 As shown, determining the exercise mode as playground mode in step S200 can be achieved in the following way:

[0069] S210. Generate the user's second motion trajectory based on the first position.

[0070] S220. If the characteristics of the second motion trajectory match the characteristics of the playground, the motion pattern is determined to be the playground pattern.

[0071] In this embodiment, since users may mistakenly set the exercise mode to "playground mode," it is necessary to determine whether the exercise mode is indeed "playground mode" before generating the exercise trajectory. Because the characteristics of the exercise trajectory when a user is exercising on a playground match those of a playground, a second exercise trajectory is generated based on the user's first position. If the characteristics of the second exercise trajectory match those of a playground, the user is exercising on a playground, and the exercise mode is determined to be "playground mode." By combining the characteristics of the exercise trajectory to determine whether the exercise mode is "playground mode," the exercise mode can match the user's actual exercise, thereby improving the reliability of the exercise trajectory generation.

[0072] For example, in step S210, generating the user's second motion trajectory based on the first position can be achieved by connecting multiple first positions sequentially in chronological order to generate the second motion trajectory.

[0073] For example, the features of the second motion trajectory in step S220 conform to the features of the playground. This can be that the shape of the second motion trajectory is approximately the same as the shape of the historical motion trajectory generated when the playground mode is enabled at a historical moment, or that the shape of the second motion trajectory is approximately the same as the shape of the standard playground after rotation and / or scaling, or that at least a portion of the features of the second motion trajectory are approximately the same as the features of the straight sections and / or curves of the playground.

[0074] In one embodiment, determining the exercise mode as playground mode in step S200 can also be done in the following way:

[0075] Determine the percentage of users who enable the playground mode.

[0076] If the activation ratio is greater than or equal to the preset ratio, the exercise mode is set to playground mode.

[0077] In this embodiment, since user habits can reflect user preferences to some extent, the proportion of time a user activates the playground mode is determined, thus determining the proportion of time a user exercises in playground mode. When the activation proportion is greater than or equal to a preset proportion, the user prefers to exercise on the playground, and the exercise mode is determined to be playground mode. By combining the activation proportion of playground mode to determine whether the exercise mode is playground mode, there is no need to generate an additional exercise trajectory for comparison, thereby reducing the complexity of exercise trajectory generation.

[0078] For example, the preset ratio can range from 50% to 100%. The preset ratio can be 60%, 70%, 80%, etc.

[0079] For example, the motion information generation method further includes:

[0080] If the motion mode is determined to be non-playground mode, a first motion trajectory is generated based on the first position. That is, no mapping of the first position is performed.

[0081] In one embodiment, the mapping of the first position to the second position on the playground in step S200 is determined in the following manner:

[0082] The first position is mapped to the corresponding second position using a mapping relationship.

[0083] The mapping relationship is related to the parameters of the first track of the playground, the position of the center point, and the rotation angle.

[0084] In this embodiment, since the shape of the playground is related to the track parameters, and the location of the playground is related to the center point location and rotation angle, each first position is mapped to its corresponding second position using a mapping relationship related to the first track parameters, the center point location, and the rotation angle. By mapping the first positions using this mapping relationship, the mapped second positions can be located on the playground corresponding to the mapping relationship to avoid offset, thereby improving the accuracy of motion trajectory generation.

[0085] For example, the mapping relationship can be expressed as a formula or as a lookup table. Substituting the first position into the mapping relationship yields the second position.

[0086] For example, if the mapping relationship is already determined at a historical time, the mapping relationship can be directly invoked to map each first position. If the mapping relationship is not determined at a historical time, the mapping relationship can be determined based on each first position. Specifically, if the mapping relationship is not determined at a historical time, a first motion trajectory can be generated based on each first position. After the user completes the first lap, the mapping relationship is determined based on each first position of the first lap, and the generated first motion trajectory is adjusted by backtracking through each first position of the first lap.

[0087] In one embodiment, such as Figure 3 As shown, in step S300, the generation of the user's first motion trajectory based on the second position is determined in the following way:

[0088] S310. Resample the second position to obtain the third position.

[0089] S320, Generate the first motion trajectory at the third position.

[0090] In this embodiment, since the second position is a mapped position and cannot be used directly, it is resampled to obtain a third position. A first motion trajectory is generated using this third position, ensuring that the first motion trajectory matches the actual playground where the user is located. By resampling the second position to generate the first motion trajectory, deviations from the actual playground are avoided, thereby improving the accuracy of the motion trajectory generation.

[0091] For example, resampling the second position in step S310 to obtain the third position can be done by uniformly sampling the second position over time to obtain the third position.

[0092] It is understandable that, in addition to using resampling to obtain the third position, methods such as thinning can also be used to obtain the third position; no limitation is made here.

[0093] In one embodiment, such as Figure 4 As shown, before mapping each first position to its corresponding second position using a mapping relationship in the above steps, the motion information generation method further includes:

[0094] S400: Obtain the first runway parameters set by the user. The first runway parameters include the runway distance and the runway number.

[0095] S410. Determine the center point position and rotation angle based on at least part of the first position.

[0096] S420. Determine the mapping relationship based on the parameters of the first runway, the position of the center point, and the rotation angle.

[0097] In this embodiment, since users need to set track parameters when activating the playground mode, and these parameters are related to the shape of the playground, the first track parameters set by the user are obtained to reflect the shape of the playground. Because the user's first position surrounds the center point position during movement on the playground, and some of these first positions are the endpoints of the major and / or minor axes of the playground, the center point position and rotation angle are determined based on at least some of these first positions to reflect the location of the playground. A mapping relationship is determined based on the first track parameters, the center point position, and the rotation angle to reflect the characteristics of the playground. By determining the mapping relationship using the first track parameters and the first position, and ensuring that the mapping relationship matches the actual characteristics of the playground, the accuracy of the motion trajectory generation is improved.

[0098] For example, before activating the track mode, users need to set the track distance and track number in the first track parameter settings within the track mode interface. The track distance can be a standard distance of 200m or 400m. The track number can be track 1, track 2, track 3, etc. Taking a standard distance of 400m as an example, the distance of one lap under different track numbers is explained below. With a standard distance of 400m, the distance of one lap on track 1 is 400m, on track 2 it is 407m, on track 3 it is 415m, on track 4 it is 422m, and so on. The correspondence between the standard distance, track number, and the distance of one lap can be preset.

[0099] In one embodiment, such as Figure 5 As shown, in step S410, the center point position and rotation angle are determined based on at least a partial first position in the following manner:

[0100] S411. Use the average of the multiple first positions of the user during one lap of the playground as the center point position.

[0101] S412. Determine the axis of the playground based on multiple first positions of the user on the curves and / or straight sections of the playground.

[0102] S413. The angle between the first straight line containing the axis and the second straight line containing the standard direction is taken as the rotation angle.

[0103] In this embodiment, since the first position surrounds the center point position, the average of multiple first positions taken by the user during a full lap of the playground is used as the center point position. Because the curves of the playground contain the endpoints of the major axis and the straight sections contain the endpoints of the minor axis, the axis of the playground is determined based on the user's multiple first positions on the curves and / or straight sections. Since the playground needs to rotate relative to the standard direction, the angle between the first straight line containing the axis and the second straight line containing the standard direction is used as the rotation angle. By processing at least a portion of the first positions to obtain the center point position and rotation angle, which correspond to the actual position of the playground, the accuracy of the motion trajectory generation is improved.

[0104] For example, in step S412, determining the axis of the playground based on the user's multiple first positions on the curves and / or straight sections can be achieved by using the direction of the line connecting two first positions on the major axis, or by using the direction of the line connecting two first positions on the minor axis. Alternatively, the axis can be calculated using a dimensionality reduction algorithm (such as principal component analysis), or by using a trajectory region segmentation method. The trajectory region segmentation method includes, but is not limited to, classification methods and clustering methods. Classification methods include, but are not limited to, K-Nearest Neighbor (KNN) and Support Vector Machine (SVM) methods. Clustering methods include, but are not limited to, Gaussian Mixture Model (GMM) and K-Means methods.

[0105] For example, the standard direction can be north-south, east-west, southeast, northwest, etc.

[0106] In one embodiment, such as Figure 6 As shown, after determining the mapping relationship based on the first runway parameters, center point position, and rotation angle in step S420, the motion information generation method further includes:

[0107] S430, in response to the user's adjustment operation on the runway parameters, adjusts the first runway parameters to the second runway parameters.

[0108] S440. Adjust the mapping relationship according to the parameters of the second runway.

[0109] In this embodiment, since users may switch tracks during exercise on the playground, in response to the user's adjustment of track parameters, the first track parameters are adjusted to the second track parameters. Based on the second track parameters, the mapping relationship is adjusted to reflect the characteristics of the adjusted track. By adjusting the mapping relationship after the user adjusts the track parameters, the generated motion trajectory changes and matches the actual characteristics of the track, thereby improving the accuracy of motion trajectory generation.

[0110] In one embodiment, such as Figure 7 As shown, there are multiple first locations. After obtaining the user's first location in step S100, the motion information generation method further includes:

[0111] S450: Determine the user's movement distance and number of laps based on each first position.

[0112] S460. Determine the user's movement speed based on each first position and the user's movement time.

[0113] In this embodiment, since the movement trajectory cannot intuitively reflect the user's situation, the user's movement distance and number of laps are determined based on each first position. The user's movement speed is determined based on each first position and the user's movement time. The movement distance, number of laps, movement speed, and movement trajectory are used as the user's movement information. By determining the movement distance, number of laps, and movement speed, the user can understand their exercise situation on the playground from multiple perspectives, thereby improving the reliability of the generated movement information.

[0114] For example, in step S450, determining the user's movement distance and number of laps based on each first position can be done by determining a distance based on two adjacent first positions in chronological order. The sum of these distances is then used as the movement distance. The first position obtained initially is taken as the starting position. Every certain period of time, once a first position matching the movement direction (to prevent the user from turning back) coincides with the starting position, the number of laps is incremented by one.

[0115] For example, in step S460, determining the user's movement speed based on each first position and the user's movement time can be done by determining the movement distance based on each first position and using the ratio of the movement distance to the movement time as the movement speed, or by calculating the movement distance based on each first position and the movement time using a preset algorithm. The movement speed can be corrected by incorporating the speed observed by the global navigation satellite system sensors.

[0116] For example, in addition to determining the user's movement distance and number of laps based on each first position, the user's movement distance and number of laps can also be determined based on each second or third position. Similarly, in addition to determining the user's movement speed based on each first position and the user's movement time, the user's movement speed can also be determined based on each second or third position. The method for determining the movement distance, number of laps, and movement speed after replacing the first position with the second or third position remains the same as described above and will not be repeated here.

[0117] In one embodiment, after determining the user's movement speed based on the first position and the user's movement time in step S460, the motion information generation method further includes:

[0118] Display at least one of the following: first motion trajectory, motion distance, number of motion laps, and motion speed.

[0119] In this embodiment, by displaying at least one of the first motion trajectory, motion distance, number of motion laps, and motion speed, the user can intuitively understand the motion information, thereby improving the user experience.

[0120] In one embodiment, after obtaining the user's first location in step S100, the motion information generation method further includes:

[0121] The first position is preprocessed, including at least one of drift point removal, cluster point removal, and trajectory smoothing.

[0122] In this embodiment, because the first position detected by the global navigation satellite system sensor may be inaccurate, or the user may acquire multiple similar first positions during a rest stop, the generated motion trajectory may not match the actual position. To address this, drift point removal is performed on the first position to eliminate inaccurately detected positions. Clustering is then applied to the first position to combine multiple similar positions into a single first position. Finally, trajectory smoothing is performed on the first position to smooth the resulting motion trajectory. By preprocessing the acquired first position, invalid first positions can be eliminated, retaining only valid ones, thereby improving the accuracy of motion information generation.

[0123] For example, the drift point removal process includes a drift point detection process and a drift point removal process. In the drift point detection process, simple rule-based judgment or a signal quality model can be used. In the simple rule-based judgment process, the judgment can be based on factors such as the horizontal accuracy and carrier-to-noise ratio detected by the Global Navigation Satellite System (GNSS) sensors, or it can be based on the distance between multiple adjacent first positions. In the signal quality model process, at least some information from the GNSS sensor detection can be input into the signal quality model to obtain the signal quality, and first positions detected with poor signal quality can be removed. The signal quality model can be a Convolutional Neural Network (CNN) model, a Transformer model, etc. Cluster point processing can be implemented using clustering algorithms, such as the Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm. Trajectory smoothing processing can use SG filters, Kalman filters, extended Kalman filters, etc.

[0124] This disclosure provides a method for generating motion information, such as... Figure 8 As shown, the method includes:

[0125] S500: When the user activates the playground mode, it obtains the user's first location at different times.

[0126] S510, Preprocess each first position.

[0127] S520: Generate the user's second motion trajectory based on multiple preprocessed first positions.

[0128] S530. If the characteristics of the second motion trajectory match the characteristics of the playground, the motion mode is determined to be the playground mode.

[0129] S540: Obtain the first runway parameters set by the user.

[0130] S550: The average of the first positions after multiple preprocessing steps taken by the user during a lap around the playground is used as the center point position.

[0131] S560: Determine the axis of the playground based on the first position after multiple preprocessing steps of the playground's curves.

[0132] S570. The angle between the first straight line containing the axis and the second straight line containing the north-south direction is taken as the rotation angle.

[0133] S580. Determine the mapping relationship based on the parameters of the first runway, the position of the center point, and the rotation angle.

[0134] S590. Map each preprocessed first position to its corresponding second position using a mapping relationship.

[0135] S600, resample each second position to obtain multiple third positions.

[0136] S610, Generate the first motion trajectory using each third position.

[0137] S620: Determine the user's movement distance and number of laps based on the first position after each preprocessing step.

[0138] S630. Determine the user's movement speed based on the first position after each preprocessing step and the user's movement time.

[0139] S640 displays the first motion trajectory, motion distance, number of motion laps, and motion speed.

[0140] In this embodiment, when the user activates the playground mode, the user moves on the playground, and the user's first position at different times is obtained. Each first position is preprocessed to remove invalid first positions and retain valid ones. Based on multiple preprocessed first positions, a second movement trajectory of the user is generated to determine the characteristics of the second movement trajectory. If the characteristics of the second movement trajectory match the characteristics of the playground, the user moves on the playground, and the movement mode is determined to be playground mode. The first track parameters set by the user are obtained to determine the shape and size of the track. Since the track revolves around the center point, the average of multiple preprocessed first positions of the user moving one lap on the playground is used as the center point position. Since the line connecting the endpoints of the two curves is the major axis of the playground, the axis of the playground is determined based on the multiple preprocessed first positions of the user on the curves of the playground. The angle between the first straight line containing the axis and the second straight line containing the north-south direction is used as the rotation angle to make the direction of the playground consistent with the actual direction. Since the first track parameters, the center point position, and the rotation angle determine the characteristics of the playground, a mapping relationship is determined based on the first track parameters, the center point position, and the rotation angle. The preprocessed first positions are mapped to their corresponding second positions using a mapping relationship, ensuring the user's location is on the playground. Since the second positions are mapped and cannot be used directly, they are resampled to obtain multiple third positions. A first motion trajectory is generated using these third positions to obtain the user's motion trajectory on the playground. Based on the preprocessed first positions, the user's movement distance and number of laps are determined, resulting in the user's total movement distance and number of laps on the playground. Based on the preprocessed first positions and the user's movement time, the user's movement speed is determined, resulting in the user's movement speed on the playground. The first motion trajectory, movement distance, number of laps, and movement speed are displayed, allowing the user to intuitively understand the movement information. By mapping the acquired positions to the playground locations before generating the user's motion trajectory, the accuracy of motion trajectory generation is improved, avoiding the influence of position acquisition deviations on the trajectory characteristics. Furthermore, since motion information can be processed in real-time over short distances or post-processed, the flexibility of motion information generation is enhanced. Moreover, because the algorithm for generating motion information has low complexity, requires few resources, and has a short processing time, it can be deployed on the device for real-time processing. Once the motion information is generated, it can be processed on one end and displayed on multiple ends, thus solving the problem of inconsistent information across multiple ends.

[0141] For example, such as Figure 9 As shown, after generating the first motion trajectory using the motion information generation method provided in this embodiment, the shape of the first motion trajectory is consistent with the shape of the playground, and the first motion trajectory does not deviate from the playground. The solid line represents the first motion trajectory, and the dashed line represents the second motion trajectory.

[0142] In one exemplary embodiment, an electronic device is provided for implementing the method described above. (Reference) Figure 10 As shown, the electronic device may include an acquisition module 100, a first processing module 200, and a second processing module 300. During the implementation of the above method,

[0143] The acquisition module 100 is configured to acquire the user's first location when the user activates the playground mode.

[0144] The first processing module 200 is configured to map the first position to the second position on the playground when the motion mode is determined to be playground mode.

[0145] The second processing module 300 is configured to generate the user's first motion trajectory based on the second position.

[0146] In one exemplary embodiment, an electronic device is provided, the electronic device further comprising:

[0147] The determination module is configured to generate a second motion trajectory for the user based on the first position.

[0148] If the characteristics of the second motion trajectory match the characteristics of the playground, the motion pattern is determined to be the playground pattern.

[0149] In one exemplary embodiment, an electronic device is provided, wherein a determining module is configured to:

[0150] Determine the percentage of users who enable the playground mode.

[0151] If the activation ratio is greater than or equal to the preset ratio, the exercise mode is set to playground mode.

[0152] In one exemplary embodiment, an electronic device is provided, wherein a first processing module 200 is configured to:

[0153] The first position is mapped to the corresponding second position using a mapping relationship.

[0154] The mapping relationship is related to the parameters of the first track of the playground, the position of the center point, and the rotation angle.

[0155] In one exemplary embodiment, an electronic device is provided, wherein a second processing module 300 is configured to:

[0156] The second position is resampled to obtain the third position.

[0157] The first motion trajectory is generated from the third position.

[0158] In one exemplary embodiment, an electronic device is provided, the electronic device further comprising:

[0159] The settings module is configured to obtain the first runway parameters set by the user, which include the runway distance and the runway number.

[0160] In one exemplary embodiment, an electronic device is provided, wherein a first processing module 200 is configured to:

[0161] Determine the center point position and rotation angle based on at least part of the first position.

[0162] The mapping relationship is determined based on the parameters of the first runway, the position of the center point, and the rotation angle.

[0163] In one exemplary embodiment, an electronic device is provided, wherein a first processing module 200 is configured to:

[0164] The average of the multiple first positions of the user during a lap around the playground is used as the center point position.

[0165] The axis of the playground is determined based on multiple first positions of the user on the curves and / or straight sections of the playground.

[0166] The angle between the first straight line containing the axis and the second straight line containing the standard direction is taken as the rotation angle.

[0167] In one exemplary embodiment, an electronic device is provided, wherein a first processing module 200 is configured to:

[0168] In response to the user's adjustment of runway parameters, the first runway parameters are adjusted to the second runway parameters.

[0169] The mapping relationship is adjusted based on the parameters of the second runway.

[0170] In one exemplary embodiment, an electronic device is provided, wherein a first processing module 200 is configured to:

[0171] Based on each user's initial position, determine the user's movement distance and number of laps.

[0172] The user's movement speed is determined based on each first position and the user's movement time.

[0173] In one exemplary embodiment, an electronic device is provided, the electronic device further comprising:

[0174] The display module is configured to display at least one of the following: first motion trajectory, motion distance, number of motion laps, and motion speed.

[0175] In one exemplary embodiment, an electronic device is provided, the electronic device further comprising:

[0176] The preprocessing module is configured to preprocess the first position, the preprocessing including at least one of drift point removal, cluster point removal and trajectory smoothing.

[0177] In one exemplary embodiment, an electronic device is provided, such as a mobile phone, a laptop computer, a tablet computer, and a wearable device.

[0178] refer to Figure 11 As shown, the electronic device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input / output (I / O) interface 412, sensor component 414, and communication component 416.

[0179] Processing component 402 typically controls the overall operation of electronic device 400, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

[0180] Memory 404 is configured to store various types of data to support the operation of electronic device 400. Examples of this data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, pictures, videos, etc. Memory 404 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0181] Power supply component 406 provides power to various components of electronic device 400. Power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 400.

[0182] Multimedia component 408 includes a screen that provides an output interface between electronic device 400 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 408 includes a front-facing camera module and / or a rear-facing camera module. When electronic device 400 is in an operating mode, such as shooting mode or video mode, the front-facing camera module and / or rear-facing camera module may receive external multimedia data. Each front-facing camera module and rear-facing camera module may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0183] Audio component 410 is configured to output and / or input audio signals. For example, audio component 410 includes a microphone (MIC) configured to receive external audio signals when electronic device 400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 404 or transmitted via communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

[0184] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0185] Sensor assembly 414 includes one or more sensors for providing state assessments of various aspects of electronic device 400. For example, sensor assembly 414 may detect the on / off state of electronic device 400, the relative positioning of components such as the display and keypad of electronic device 400, changes in position of electronic device 400 or a component of electronic device 400, the presence or absence of user contact with electronic device 400, orientation or acceleration / deceleration of electronic device 400, and temperature changes of electronic device 400. Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 414 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0186] Communication component 416 is configured to facilitate wired or wireless communication between electronic device 400 and other terminals. Electronic device 400 can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 416 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0187] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods shown in the above embodiments or combinations thereof.

[0188] In one exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, which can be executed by a processor 420 of an electronic device 400 to perform the methods shown in the embodiments or combinations thereof. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the methods shown in the embodiments or combinations thereof.

[0189] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0190] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0191] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0192] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0193] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A motion information generating method characterized by comprising: The motion information generation method includes: When the user has enabled the playground mode, obtain the user's first location; If the movement mode is determined to be the playground mode, the first position is mapped to the second position on the playground; Based on the second position, the user's first motion trajectory is generated.

2. The motion information generation method according to claim 1, characterized by, The determination of the exercise mode as the playground mode includes: Based on the first position, generate the user's second movement trajectory; If the characteristics of the second movement trajectory match the characteristics of the playground, the movement pattern is determined to be the playground pattern; or, Determine the percentage of time the user activates the playground mode; If the activation ratio is greater than or equal to the preset ratio, the exercise mode is determined to be the playground mode.

3. The motion information generation method according to claim 1, characterized by, There are multiple first positions and multiple second positions; mapping the first position to the second position on the playground includes: Each of the first positions is mapped to its corresponding second position using a mapping relationship; The mapping relationship is related to the parameters of the first track of the playground, the position of the center point, and the rotation angle.

4. The motion information generation method according to claim 3, characterized by, Before mapping each of the first positions to its corresponding second positions using a mapping relationship, the motion information generation method further includes: Obtain the first runway parameters set by the user, which include the runway distance and runway number; The center point position and the rotation angle are determined based on at least a portion of the first position; The mapping relationship is determined based on the first runway parameters, the center point position, and the rotation angle.

5. The motion information generation method according to claim 4, characterized by, Determining the center point position and the rotation angle based on at least a portion of the first position includes: The average value of multiple first positions where the user moves around the playground is taken as the center point position; The axis of the playground is determined based on multiple first positions of the user on the bends and / or straight sections of the playground; The angle between the first straight line containing the axis and the second straight line containing the standard direction is taken as the rotation angle.

6. The motion information generation method according to claim 4, characterized by, After determining the mapping relationship based on the first runway parameters, the center point position, and the rotation angle, the motion information generation method further includes: In response to the user's adjustment operation on the runway parameters, the first runway parameters are adjusted to the second runway parameters; The mapping relationship is adjusted based on the second runway parameters.

7. The motion information generation method according to any one of claims 1 to 6, characterized by, The number of the first locations is multiple; after obtaining the user's first location, the motion information generation method further includes: Based on each of the first positions, determine the user's movement distance and number of laps; The user's movement speed is determined based on each of the first positions and the user's movement time.

8. The motion information generation method according to claim 7, characterized by, After determining the user's movement speed based on the first position and the user's movement time, the motion information generation method further includes: Display at least one of the first motion trajectory, the motion distance, the number of motion laps, and the motion speed.

9. An electronic device, comprising: The electronic device includes: The acquisition module is configured to acquire the user's first location when the user activates the playground mode; A first processing module is configured to map the first position to a second position on the playground when the movement mode is determined to be the playground mode. The second processing module is configured to generate a first motion trajectory of the user based on the second position.

10. An electronic device, comprising: The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to perform the motion information generation method as described in any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium, comprising: When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the motion information generation method as described in any one of claims 1 to 8.