Track determination method and device, equipment, storage medium and program product
By acquiring the first motion trajectory from the wearable device and using the target node trajectory with the highest overlap of historical node trajectories to complete the initial motion trajectory, the problem of inaccurate motion trajectory generation by wearable devices is solved, and the accuracy of motion trajectory is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2026-03-27
AI Technical Summary
Existing wearable devices may lack initial motion trajectories during the motion trajectory generation process, resulting in lower accuracy of the generated motion trajectory.
By acquiring the first motion trajectory detected by the wearable device, and using the target node trajectory with the highest overlap with the first trajectory point among multiple historical node trajectories, the second motion trajectory of the wearable device between the initial motion time and the initial recording time is determined, thus completing the motion trajectory in the initial stage.
It improves the accuracy of generated motion trajectories, reduces redundant information, and ensures the integrity of the motion trajectory in the initial stage while preserving trajectory details.
Smart Images

Figure CN121739992A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of data processing, and in particular, to a trajectory determination method and device, equipment, storage medium and program product. BACKGROUND
[0002] With people paying more and more attention to sports fitness, more and more wearable devices support automatic motion recognition function, without the need for users to manually start, which can automatically recognize and record the user's motion. For example, the wearable device can be a smart watch, a sports bracelet, etc.
[0003] At present, due to the endurance ability of the wearable device and the reduction of the false judgment of automatic motion recognition, the automatic motion recognition function may need to be continuously monitored for a period of time before determining that it is in a motion state, and starting to collect complete motion data when in a motion state, for example, starting the GPS module to collect the motion trajectory. Or, due to the slow start of the GPS module of the wearable device, there may be a period of time after the user starts moving before the GPS module is started.
[0004] In the above process of generating the motion trajectory, there may be a case of missing the starting stage motion trajectory, resulting in low accuracy of the generated motion trajectory. SUMMARY
[0005] Embodiments of the present application provide a trajectory determination method, device, equipment, storage medium and program product to solve the defect that in the prior art, in the process of generating the motion trajectory, there may be a case of missing the starting stage motion trajectory, resulting in low accuracy of the generated motion trajectory.
[0006] In a first aspect, the present application provides a trajectory determination method, comprising:
[0007] obtaining a first motion trajectory detected by a wearable device, the first motion trajectory comprising a plurality of first trajectory points, and a starting recording time of the first motion trajectory being later than a starting motion time of the wearable device;
[0008] determining a target node trajectory from a plurality of historical node trajectories according to the plurality of first trajectory points, the historical node trajectories comprising a plurality of nodes, and a node in the target node trajectory having the highest degree of coincidence with the plurality of first trajectory points among the plurality of historical node trajectories;
[0009] determining a second motion trajectory of the wearable device between the starting motion time and the starting recording time according to the plurality of first trajectory points and the target node trajectory.
[0010] In a possible implementation, the second motion trajectory of the wearable device between the starting motion moment and the starting recording moment is determined according to the plurality of first trajectory points and the target node trajectory, including:
[0011] A second trajectory point with the earliest generation moment is determined from the plurality of first trajectory points;
[0012] A movement distance corresponding to the second motion trajectory is determined according to the generation moment corresponding to the second trajectory point and the starting motion moment;
[0013] A node corresponding to the second trajectory point is determined as an ending point in the target node trajectory;
[0014] An initial point is determined in the target node trajectory according to the ending point, the movement distance, relationships between the plurality of nodes, and a confidence degree corresponding to each node;
[0015] The second motion trajectory is determined according to the ending point and the initial point.
[0016] In a possible implementation, the relationships between the plurality of nodes include a connection relationship and a non-connection relationship, and the initial point is determined in the target node trajectory according to the ending point, the movement distance, the relationships between the plurality of nodes, and the confidence degree corresponding to each node, including:
[0017] It is determined whether an i th node has at least one i +1 th candidate point corresponding thereto from the plurality of nodes corresponding to the connection relationship, and the 1 st node is the ending point;
[0018] If yes, an i +1 th node with the highest confidence degree is determined as the i +1 th node from the at least one i +1 th candidate point, and the i +1 th node is determined as the initial point when a first distance between the i +1 th node and the ending point is within a first preset range from the movement distance;
[0019] If no, the initial point is determined in the plurality of nodes corresponding to the non-connection relationship according to the i th node and the movement distance;
[0020] The i is 1, 2, and so on until the initial point is determined.
[0021] In a possible implementation, the initial point is determined in the plurality of nodes corresponding to the non-connection relationship according to the i th node and the movement distance, including:
[0022] A second distance between the i th node and the ending point is determined;
[0023] determine a third distance based on the difference between the moving distance and the second distance;
[0024] determine at least one target node from the nodes corresponding to the non-connection relationship based on the third distance and the i-th node, wherein a difference between a distance between the target node and the i-th node and the third distance is within a second preset range;
[0025] if the target node is one, determine the target node as the initial point;
[0026] if the target node is multiple, determine a target node with the highest confidence from the multiple target nodes as the initial point.
[0027] In a possible implementation, determining the second motion trajectory based on the end point and the initial point includes:
[0028] obtain a plurality of preset points;
[0029] determine whether the initial point exists in the plurality of preset points;
[0030] if yes, determine a target motion trajectory between the initial point and the end point as the second motion trajectory, wherein a second trajectory point corresponding to the target motion trajectory includes the initial point and at least one i-th node;
[0031] if no, determine a target point within a third preset range from the initial point from the plurality of preset points, and determine a target motion trajectory between the target point and the end point as the second motion trajectory, wherein a second trajectory point corresponding to the target motion trajectory includes the target point and at least one i-th node.
[0032] In a possible implementation, after determining the second motion trajectory of the wearable device between the start motion moment and the start recording moment based on the plurality of first trajectory points and the target node trajectory, the method further includes:
[0033] display the second motion trajectory, a trajectory confirmation control, and a trajectory denial control through the wearable device;
[0034] in response to a selection operation of the trajectory confirmation control by a user, store the second motion trajectory in a storage space;
[0035] in response to a selection operation of the trajectory denial control by a user, display a trajectory editing interface, update the second motion trajectory based on an input operation of the user in the trajectory editing interface, and store the second motion trajectory in the storage space.
[0036] In a possible implementation, the method further includes:
[0037] obtaining the stay point detected by the wearable device, at least one historical motion trajectory, and a location area corresponding to each historical motion trajectory;
[0038] determining a plurality of preset points according to the stay point and a start point and an end point in each historical motion trajectory;
[0039] for any one location area, determining at least one historical motion trajectory corresponding to the location area, and generating a historical node trajectory according to a plurality of trajectory points in each historical motion trajectory.
[0040] In a second aspect, the present application provides a trajectory determination apparatus, including:
[0041] an obtaining module configured to obtain a first motion trajectory detected by a wearable device, the first motion trajectory including a plurality of first trajectory points, and a start recording time of the first motion trajectory being later than a start motion time of the wearable device;
[0042] a first determining module configured to determine a target node trajectory from a plurality of historical node trajectories according to the plurality of first trajectory points, the historical node trajectories including a plurality of nodes, and a node in the target node trajectory having a highest degree of coincidence with the plurality of first trajectory points in the plurality of historical node trajectories;
[0043] a second determining module configured to determine a second motion trajectory of the wearable device between the start motion time and the start recording time according to the plurality of first trajectory points and the target node trajectory.
[0044] In a possible implementation, the second determining module is specifically configured to:
[0045] determine a second trajectory point with an earliest generation time from the plurality of first trajectory points;
[0046] determine a moving distance corresponding to the second motion trajectory according to a generation time corresponding to the second trajectory point and the start motion time;
[0047] determine a node corresponding to the second trajectory point as an end point in the target node trajectory;
[0048] determine an initial point in the target node trajectory according to the end point, the moving distance, a relationship between the plurality of nodes, and a confidence degree corresponding to each node;
[0049] determine the second motion trajectory according to the end point and the initial point.
[0050] In a possible implementation, the relationship between the plurality of nodes includes a connection relationship and a non-connection relationship, and the second determining module is specifically configured to:
[0051] In the plurality of nodes corresponding to the connection relationship, it is determined whether the i th node exists or not corresponding to at least one (i+1) th candidate node, and the 1 st node is the end point;
[0052] If yes, in the at least one (i+1) th candidate node, the (i+1) th candidate node with the highest confidence is determined as the (i+1) th node, and when a first distance between the (i+1) th node and the end point and a difference between the movement distance are within a first preset range, the (i+1) th node is determined as the initial point;
[0053] If no, according to the i th node and the movement distance, the initial point is determined in the plurality of nodes corresponding to the non-connection relationship;
[0054] The i is 1, 2, and the like, until the initial point is determined.
[0055] In a possible implementation, the second determining module is specifically configured to:
[0056] A second distance between the i th node and the end point is determined;
[0057] A difference between the movement distance and the second distance is determined as a third distance;
[0058] According to the third distance and the i th node, at least one target node is determined in the plurality of nodes corresponding to the non-connection relationship, and a distance between the target node and the i th node and a difference between the third distance are within a second preset range;
[0059] If the target node is one, the target node is determined as the initial point;
[0060] If the target node is a plurality of nodes, a target node with the highest confidence in the plurality of target nodes is determined as the initial point.
[0061] In a possible implementation, the second determining module is specifically configured to:
[0062] A plurality of preset points are acquired;
[0063] In the plurality of preset points, it is determined whether the initial point exists or not;
[0064] If yes, a target motion trajectory between the initial point and the end point is determined as the second motion trajectory, and a second trajectory point corresponding to the target motion trajectory includes the initial point and at least one i th node;
[0065] If no, in the plurality of preset points, a target point within a third preset range of the initial point is determined, a target motion trajectory between the target point and the end point is determined as the second motion trajectory, and second trajectory points corresponding to the target motion trajectory include the target point and at least one ith node.
[0066] In a possible implementation, the apparatus further includes a calibration module, configured to:
[0067] display the second motion trajectory, a trajectory confirmation control and a trajectory denial control through the wearable device;
[0068] in response to a selection operation of the trajectory confirmation control by the user, store the second motion trajectory in a storage space;
[0069] in response to a selection operation of the trajectory denial control by the user, display a trajectory editing interface, update the second motion trajectory according to an input operation of the user in the trajectory editing interface, and store the second motion trajectory in the storage space.
[0070] In a possible implementation, the apparatus further includes an analysis module, configured to:
[0071] obtain a stay point detected by the wearable device, at least one historical motion trajectory, and a position region corresponding to each historical motion trajectory;
[0072] determine a plurality of preset points according to the stay point and a start point and an end point in each historical motion trajectory;
[0073] for any one position region, determine at least one historical motion trajectory corresponding to the position region, and generate a historical node trajectory according to a plurality of trajectory points in each historical motion trajectory.
[0074] In a third aspect, the present application provides an electronic device, including a processor and a memory connected with the processor in communication;
[0075] the memory stores computer execution instructions;
[0076] the processor executes the computer execution instructions stored in the memory to implement the method of any one of the first aspect.
[0077] In a fourth aspect, the present application provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the method of any one of the first aspect.
[0078] In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a computer, implements the method according to any one of the first aspect.
[0079] The trajectory determination method, device, equipment, storage medium and program product provided by the embodiments of the present application obtain a first motion trajectory detected by a wearable device, the first motion trajectory comprising a plurality of first trajectory points, and a starting recording time of the first motion trajectory being later than a starting motion time of the wearable device; determine a target node trajectory from the plurality of first trajectory points among a plurality of historical node trajectories, the historical node trajectories comprising a plurality of nodes, and the nodes in the target node trajectory having the highest degree of coincidence with the plurality of first trajectory points among the plurality of historical node trajectories; and determine a second motion trajectory of the wearable device between the starting motion time and the starting recording time according to the plurality of first trajectory points and the target node trajectory. In this way, the first trajectory points are used to retain trajectory details, reduce redundant information, and complete the motion trajectory at the starting stage by using the target node trajectory having the highest degree of coincidence with the first motion trajectory among the plurality of historical node trajectories, thereby improving the accuracy of the generated motion trajectory. BRIEF DESCRIPTION OF DRAWINGS
[0080] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings described below are some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.
[0081] Figure 1 An application scenario schematic diagram is provided for the embodiments of the present application.
[0082] Figure 2 A flowchart of a trajectory determination method is provided for the embodiments of the present application.
[0083] Figure 3 A flowchart of another trajectory determination method is provided for the embodiments of the present application.
[0084] Figure 4 A flowchart of a trajectory determination method is provided for the embodiments of the present application.
[0085] Figure 5 A flowchart of another trajectory determination method is provided for the embodiments of the present application.
[0086] Figure 6 A flowchart of a trajectory determination method is provided for the embodiments of the present application.
[0087] Figure 7A structural schematic diagram of a trajectory determination apparatus provided by an embodiment of the present application is shown in the figure.
[0088] Figure 8 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in the figure.
[0089] The specific embodiments of the present application have been shown in the above figures, and will be described in more detail hereinafter. These figures and the written description are not intended to limit the scope of the present application in any way, but to illustrate the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0090] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the figures in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0091] It should be noted that although the terms “first”, “second” and the like are used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. Alternatively, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information without departing from the scope of the present application.
[0092] It should be understood that the terms “contain”, “include” indicate the presence of the previously mentioned features, steps, operations, but do not exclude the presence, occurrence or addition of one or at least one other feature, step, operation. The terms “and / or” and the like used in the present application can be interpreted as inclusive or mean any one or any combination. Alternatively, “A and / or B” means “any of the following: A; B; A and B”. In addition, the character “ / ” herein generally indicates that the associated objects before and after are in an “or” relationship.
[0093] With people paying more and more attention to sports fitness, more and more wearable devices support automatic motion recognition function, without the need for users to manually start, can automatically recognize and record the user's motion. For example, the wearable device can be a smart watch, a sports bracelet, etc.
[0094] In the related art, due to the endurance capability of the wearable device, and to reduce the misjudgment of automatic motion recognition, the motion automatic recognition function can need to be continuously monitored for a period of time to determine that it is in a motion state, and start collecting complete motion data when it is in a motion state, for example, start the GPS module to collect the motion trajectory. Or, due to the slow start of the GPS module of the wearable device, there can be a period of time after the user moves before the GPS module is started.
[0095] In the above process of generating the motion trajectory, there can be a case of missing the starting stage motion trajectory, resulting in low accuracy of generating the motion trajectory. The user reviews the motion record and finds that it does not match the actual motion route, resulting in poor experience.
[0096] To solve the above technical problems, the embodiment of the present application provides a trajectory determination method, which comprises the following steps: acquiring a first motion trajectory, the starting record time of the first motion trajectory being later than the starting motion time of the wearable device, the first motion trajectory comprising a plurality of first trajectory points; determining a target node trajectory from a plurality of historical node trajectories according to the plurality of first trajectory points, the node in the target node trajectory having the highest coincidence degree with the plurality of first trajectory points in the plurality of historical node trajectories; and determining a second motion trajectory of the wearable device between the starting motion time and the starting record time according to the plurality of first trajectory points and the target node trajectory. In this way, by using the first trajectory points, the accuracy of generating the motion trajectory is improved while retaining the details of the trajectory and reducing redundant information, and by using the target node trajectory having the highest coincidence degree with the first motion trajectory from the plurality of historical node trajectories, the starting stage motion trajectory is completed.
[0097] In the following, the application scenarios of the trajectory determination method are illustrated. Figure 1 The application scenarios of the trajectory determination method are illustrated.
[0098] Figure 1 An application scenario provided by the embodiment of the present application is shown in the following figure. Figure 1 , Figure 1 The processor 100 can be configured in the wearable device. The processor 100 can at least include a data collection module 101, a data analysis module 102, a trajectory completion module 103, and a calibration feedback module 104.
[0099] The data collection module 101 can be used to collect trajectory data generated by the user when wearing the wearable device. The trajectory data can include position information of key points in the motion record, and the key points can include initial points, end points, etc.
[0100] The data analysis module 102 can be used to analyze and process the trajectory data collected by the data collection module 101. For example, the analysis and processing can include merging the key points that coincide or are within a preset distance threshold, and generating a credibility according to the number of merged position points, and can also include downloading key points within a preset threshold from the cloud.
[0101] The trajectory completion module 103 can be used to determine that the starting recording time of the first motion trajectory is later than the starting motion time of the wearable device after the first motion trajectory is generated, and complete the second motion trajectory of the wearable device between the starting motion time and the starting recording time.
[0102] The calibration feedback module 104 can be used to display the completed motion trajectory to the user and remind the user to manually calibrate the completed motion trajectory.
[0103] In the following, the technical solutions shown in the present application will be described in detail through specific embodiments. It should be noted that the following embodiments can exist independently, or can be combined with each other. For the same or similar content, it will not be repeated in different embodiments.
[0104] Figure 2 A flowchart of a trajectory determination method provided by an embodiment of the present application is shown. The execution subject of the embodiment of the present application can be a wearable device, or a processor arranged in the wearable device. Please refer to Figure 2 The method comprises:
[0105] S201, acquiring a first motion trajectory detected by a wearable device.
[0106] The first motion trajectory comprises a plurality of first trajectory points.
[0107] The first trajectory point can be an inflection point, and the inflection point can be a point in the motion trajectory whose rotation angle is greater than or equal to a threshold.
[0108] The first trajectory point can be a position key point. The position key point can be determined according to a preset marked point in a map.
[0109] The starting recording time of the first motion trajectory is later than the starting motion time of the wearable device.
[0110] The first motion trajectory can be generated when the wearable device detects that the user ends the motion.
[0111] The motion trajectory detected by the wearable device can be acquired, it is judged whether the starting recording time of the motion trajectory is later than the starting motion time of the wearable device, and if so, the motion trajectory is determined as the first motion trajectory.
[0112] S202, determining a target node trajectory from the plurality of historical node trajectories according to the plurality of first trajectory points.
[0113] The historical node trajectory includes a plurality of nodes, and the plurality of nodes have a connection relationship and a non-connection relationship, and each node has a corresponding confidence.
[0114] The historical node trajectory can be represented by a tree structure, which is not limited herein.
[0115] The node in the target node trajectory in the plurality of historical node trajectories has the highest coincidence degree with the plurality of first trajectory points.
[0116] The plurality of historical node trajectories can be obtained, the coincidence degree of each historical node trajectory with the plurality of first trajectory points can be determined, and the historical node trajectory with the highest coincidence degree can be determined as the target node trajectory.
[0117] S203, determining a second motion trajectory of the wearable device between the starting motion moment and the starting recording moment according to the plurality of first trajectory points and the target node trajectory.
[0118] The second motion trajectory is a to-be-completed motion trajectory.
[0119] The end point of the second motion trajectory coincides with the initial point of the first motion trajectory.
[0120] The second trajectory point with the earliest generation time can be determined from the plurality of first trajectory points, the initial point of the second motion trajectory can be determined according to the second trajectory point and the target node trajectory, and the second motion trajectory can be determined according to the initial point and the second trajectory point.
[0121] Optionally, the second motion trajectory can be determined in the following manner: determining a second trajectory point with the earliest generation time from the plurality of first trajectory points; determining a moving distance corresponding to the second motion trajectory according to the generation time corresponding to the second trajectory point and the starting motion moment; determining an end point corresponding to the second trajectory point in the target node trajectory; determining an initial point in the target node trajectory according to the end point, the moving distance, the relationship between the plurality of nodes, and the confidence corresponding to each node; and determining the second motion trajectory according to the end point and the initial point.
[0122] Optionally, after the second motion trajectory of the wearable device between the starting motion time and the starting recording time is determined according to the plurality of first trajectory points and the target node trajectory, the method further comprises calibrating the second motion trajectory, specifically, the second motion trajectory can be calibrated by the following manner: displaying the second motion trajectory, a trajectory confirmation control and a trajectory denial control by the wearable device; storing the second motion trajectory in the storage space in response to the selection operation of the user on the trajectory confirmation control; displaying a trajectory editing interface in response to the selection operation of the user on the trajectory denial control, updating the second motion trajectory according to the input operation of the user on the trajectory editing interface, and storing the second motion trajectory in the storage space.
[0123] The trajectory confirmation control can be used to trigger the system to store the second motion trajectory displayed by the wearable device into the storage space when the user considers that the second motion trajectory is accurate.
[0124] The trajectory denial control can be used to trigger the system to display the trajectory editing interface when the user is not satisfied with or considers that the second motion trajectory displayed by the wearable device is inaccurate.
[0125] The trajectory editing interface can be used to enable the user to perform input operation to update the motion trajectory after the user is not satisfied with the second motion trajectory displayed by the wearable device and selects the trajectory denial control. In this interface, the user can adjust, add or delete each node of the trajectory, and can also modify the shape, length and other parameters of the trajectory, so that the motion trajectory more accurately reflects the actual motion situation, and the updated second motion trajectory is stored in the storage space, facilitating the user to view and analyze subsequently.
[0126] The trajectory determination method provided by the embodiment comprises the following steps: acquiring a first motion trajectory detected by a wearable device, the first motion trajectory comprising a plurality of first trajectory points, and a starting recording time of the first motion trajectory being later than a starting motion time of the wearable device; determining a target node trajectory from a plurality of historical node trajectories according to the plurality of first trajectory points, the historical node trajectories comprising a plurality of nodes, and the target node trajectory having the highest coincidence degree with the plurality of first trajectory points among the plurality of historical node trajectories; and determining a second motion trajectory of the wearable device between the starting motion time and the starting recording time according to the plurality of first trajectory points and the target node trajectory. In this way, the first trajectory points are used to retain the details of the trajectory while reducing the redundant information, and the target node trajectory having the highest coincidence degree with the first motion trajectory among the plurality of historical node trajectories is used to complete the motion trajectory at the starting stage, thereby improving the accuracy of the generated motion trajectory.
[0127] In the following, the embodiments of the present application will be described in detail in combination with the drawings. Figure 3The process of determining the second motion trajectory of the wearable device between the starting motion moment and the starting recording moment according to the plurality of first trajectory points and the target node trajectory (S203) is explained.
[0128] Figure 3 Another flowchart of a trajectory determination method provided in the embodiments of the present application is shown. Based on the above-mentioned embodiments, refer to Figure 3 The method is explained in detail. The method comprises the following steps.
[0129] S301, determining a second trajectory point with the earliest generation moment from the plurality of first trajectory points.
[0130] The generation moment corresponding to each of the plurality of first trajectory points can be obtained, and the moment with the earliest generation moment from the plurality of generation moments is determined, and the first trajectory point corresponding to the moment is determined as the second trajectory point.
[0131] S302, determining the moving distance corresponding to the second motion trajectory according to the generation moment corresponding to the second trajectory point and the starting motion moment.
[0132] The moving duration corresponding to the second motion trajectory can be determined according to the generation moment corresponding to the second trajectory point and the starting motion moment, the average speed corresponding to the first motion trajectory is determined, and the moving distance corresponding to the second motion trajectory is determined according to the moving duration and the average speed.
[0133] S303, determining the node corresponding to the second trajectory point in the target node trajectory as the ending point.
[0134] The ending point can be used to represent the node corresponding to the ending point of the second motion trajectory in the target node trajectory.
[0135] In the target node trajectory, the node corresponding to the second trajectory point is determined, and the node is determined as the ending point.
[0136] S304, initializing i as 1.
[0137] The first node is the ending point.
[0138] S305, judging whether the i-th node exists in the plurality of nodes corresponding to the connection relationship.
[0139] If yes, S306 is executed;
[0140] If no, S310 is executed.
[0141] The connection relationship can include the parent-child relationship between nodes, the parallel relationship between nodes, etc.
[0142] The (i+1)th candidate point can be a node connected with the ith node.
[0143] The ith node can be determined from a plurality of nodes corresponding to the connection relationship, and whether the ith node has at least one (i+1)th candidate point corresponding thereto can be determined according to the connection relationship corresponding to the ith node.
[0144] In the at least one (i+1)th candidate point, the (i+1)th candidate point with the highest confidence can be determined as the (i+1)th node.
[0145] The (i+1)th node can be a node predicted to be connected with the ith node.
[0146] The confidence of the at least one (i+1)th candidate point corresponding thereto can be determined, and the (i+1)th candidate point with the highest confidence can be determined as the (i+1)th node.
[0147] S307, determining whether a difference between a first distance between the (i+1)th node and the end point and the movement distance is within a first preset range.
[0148] If yes, S308 is performed,
[0149] If no, S309 is performed.
[0150] The position information of the (i+1)th node and the position information of the end point can be obtained, and the first distance between the (i+1)th node and the end point can be determined according to the position information of the (i+1)th node and the position information of the end point, and whether the difference between the first distance and the movement distance is within the first preset range can be determined.
[0151] S308, determining the (i+1)th node as the initial point.
[0152] After S308, S316 is performed.
[0153] If the difference between the first distance and the movement distance is within the first preset range, it can be determined that the (i+1)th node is the initial point.
[0154] S309, updating i to i+1.
[0155] After S309, S305 is performed.
[0156] If the difference between the first distance and the movement distance exceeds the first preset range, it is determined that the (i+1)th node is not the initial point, i is updated to i+1, and S305 is performed again.
[0157] S310, determining a second distance between the ith node and the end point.
[0158] In the absence of the corresponding at least one (i+1)th candidate point at the ith node, a difference value between the ith node and the end point is determined, and the difference value is determined as the second distance.
[0159] S311, a difference value between the moving distance and the second distance is determined as a third distance.
[0160] The third distance can be a distance between the ith node and the initial point of the second motion trajectory.
[0161] The difference value between the moving distance and the second distance can be determined, and the difference value is determined as the third distance.
[0162] S312, according to the third distance and the ith node, at least one target node is determined in the plurality of nodes corresponding to the non-connection relationship.
[0163] The target node can be a candidate point corresponding to the initial point.
[0164] The difference value between the distance between the target node and the ith node and the third distance is within the second preset range.
[0165] According to the third distance and the second preset range, a target distance range can be determined, and at least one target node within the target distance range from the ith node is determined in the plurality of nodes corresponding to the non-connection relationship.
[0166] S313, it is judged whether the target node is 1.
[0167] If yes, S314 is executed;
[0168] If not, S315 is executed.
[0169] The number of at least one target node is determined, and it is judged whether the number is 1.
[0170] S314, the target node is determined as the initial point.
[0171] After S314, S316 is executed.
[0172] S315, the target node with the highest confidence in the plurality of target nodes is determined as the initial point.
[0173] The confidence corresponding to the plurality of target nodes can be determined, and the target node with the highest confidence in the plurality of target nodes is determined as the initial point.
[0174] S316, according to the end point and the initial point, the second motion trajectory is determined.
[0175] The motion trajectory composed of at least one ith node between the end point and the initial point can be determined as the second motion trajectory.
[0176] Optionally, the second motion trajectory can be determined according to the end point and the initial point in the following manner: a plurality of preset points are acquired; it is determined whether the initial point exists in the plurality of preset points; if yes, a target motion trajectory between the initial point and the end point is determined as the second motion trajectory, and second trajectory points corresponding to the target motion trajectory include the initial point and at least one ith node; if no, a target point within a third preset range from the initial point is determined in the plurality of preset points, and a target motion trajectory between the target point and the end point is determined as the second motion trajectory, and second trajectory points corresponding to the target motion trajectory include the target point and at least one ith node.
[0177] The at least one ith node can include the end point.
[0178] The plurality of preset points can be a plurality of nodes corresponding to at least one of a set of start points, a set of end points, and a set of key points.
[0179] The implementation of each step in the embodiments of the present application can refer to the description of the corresponding steps or operations of the above method embodiments, and repeated content will not be described again.
[0180] The trajectory determination method provided in the embodiment determines a second trajectory point with the earliest generation time in a plurality of first trajectory points, determines a moving distance corresponding to a second motion trajectory according to a generation time corresponding to the second trajectory point and a start motion time, determines a node corresponding to the second trajectory point as an end point in a target node trajectory, determines whether an ith node has at least one ith+1 candidate point corresponding thereto in a plurality of nodes corresponding to a connection relationship, and the first node is the end point, if yes, determines an ith+1 candidate point with the highest confidence as an ith+1 node in at least one ith+1 candidate point, and determines the ith+1 node as an initial point when a first distance between the ith+1 node and the end point is within a first preset range from the moving distance, if no, determines a second distance between the ith node and the end point, determines a third distance between the moving distance and the second distance, determines at least one target node in a plurality of nodes corresponding to a non-connection relationship according to the third distance and the ith node, and the distance between the target node and the ith node is within a second preset range from the third distance, if the target node is one, determines the target node as the initial point, if the target node is a plurality of target nodes, determines a target node with the highest confidence as the initial point in the plurality of target nodes, wherein i is 1, 2, …, until the initial point is determined, and the second motion trajectory is determined according to the end point and the initial point. In this way, the motion trajectory of the initial stage is completed by a target node trajectory with the highest coincidence degree in a plurality of historical node trajectories and the first motion trajectory, and the accuracy of the generated motion trajectory is improved.
[0181] In the following, the embodiments of the present application will be described in detail in combination with the drawings. Figure 4The process of determining the second motion trajectory of the wearable device between the starting motion moment and the starting recording moment according to the plurality of first trajectory points and the target node trajectory (S203) is exemplified.
[0182] Figure 4 A flowchart for determining a motion trajectory is provided in the embodiments of the present application. Referring to Figure 4 , Figure 4 The flowchart includes scenarios 1, 2, 3 and 4.
[0183] Referring to scenario 1, it is assumed that the trajectory in scenario 1 is a first motion trajectory corresponding to a motion completed by a user. The first motion trajectory can include a plurality of first trajectory points A1 and A2.
[0184] The second trajectory point A1 with the earliest generation moment is determined; the moving distance corresponding to the second motion trajectory is determined according to the generation moment corresponding to A1 and the starting motion moment; and A1 is determined as an ending point.
[0185] Referring to scenario 2, an initial point G1 is determined in the target node trajectory according to the ending point, the moving distance, the relationship between the plurality of nodes and the confidence degree corresponding to each node. The process of determining the initial point G1 can be referred to S304-S315, which will not be described herein.
[0186] Referring to scenario 3, it is determined whether there is an initial point G1 in the plurality of preset points; if not, a target point F1 within a third preset range from the initial point is determined in the plurality of preset points, and a target motion trajectory between the target point F1 and the ending point A1 is determined as the second motion trajectory.
[0187] Referring to scenario 4, the second motion trajectory is connected with the first motion trajectory to obtain a completed motion trajectory. The completed motion trajectory includes F1, G1, A1 and A2.
[0188] Next, the embodiments of the present application will be described in combination with Figure 5 The process of determining the plurality of preset points and generating the historical node trajectory is explained.
[0189] Figure 5 A flowchart of another trajectory determination method provided in the embodiments of the present application. Referring to Figure 5 , the method includes:
[0190] S501, obtaining the stay point detected by the wearable device, at least one historical motion trajectory and the position area corresponding to each historical motion trajectory in the storage space.
[0191] The stay point can be a position point determined by periodic positioning of the wearable device.
[0192] The at least one historical motion trajectory can be a historical motion trajectory corresponding to the at least one motion respectively.
[0193] The location area can be location information where the historical motion trajectory is generated.
[0194] The stay point detected by the wearable device, the at least one historical motion trajectory, and the location area corresponding to each historical motion trajectory are obtained in the storage space.
[0195] S502, determining a plurality of preset points according to the stay point, and the start point and the end point in each historical motion trajectory.
[0196] The first set, the second set and the third set can be respectively generated according to the stay point, and the start point and the end point in each historical motion trajectory, the first set includes a plurality of start points, the second set includes a plurality of end points, and the third set includes a plurality of stay points; the first set, the second set and the third set are analyzed and processed in turn, to obtain a start point set, an end point set and a key point set respectively, and the plurality of preset points are determined according to at least one of the start point set, the end point set and the key point set.
[0197] The analysis and processing can include merging of coincident or adjacent location points, supplementing the location points in the first set, the second set and the third set by using the key nodes of the cloud, and the like, which are not limited herein.
[0198] The start point set, the end point set or the key point set can include a plurality of nodes and a confidence degree corresponding to each node. The confidence degree can be determined according to the number of merged location points in the node.
[0199] Optionally, if the plurality of preset points include the location points in the start point set, the end point set and the key point set, the priority corresponding to each of the plurality of preset points can be determined according to the priority corresponding to the start point set, the end point set and the key point set respectively.
[0200] Correspondingly, when the target point is determined according to the plurality of preset points, if there are a plurality of target points, the preset point with a higher priority can be selected as the target point.
[0201] S503, for any one location area, determining at least one historical motion trajectory corresponding to the location area, and generating a historical node trajectory according to a plurality of trajectory points in each historical motion trajectory.
[0202] For any one location area, at least one historical motion trajectory corresponding to the location area is determined, and a historical node trajectory is generated according to a plurality of trajectory points corresponding to each historical motion trajectory and the relationship between the plurality of trajectory points.
[0203] The historical node trajectory is a union set of a plurality of trajectory points in the at least one historical motion trajectory.
[0204] The following describes the embodiments of the present application in conjunction with Figure 6 The generation of the historical node trajectory is exemplified.
[0205] Figure 6 A flowchart for generating a historical node trajectory is provided in the embodiments of the present application. Please refer to Figure 6 , Figure 6 The historical node trajectory includes at least one historical motion trajectory and a historical node trajectory corresponding to the at least one historical motion trajectory.
[0206] Suppose that the at least one historical motion trajectory includes two historical motion trajectories, i.e., a first historical motion trajectory and a second historical motion trajectory. The first historical motion trajectory is F1, G1, G5, G6, and G4. The second historical motion trajectory is F1, G1, G2, G3, and G4.
[0207] The historical node trajectory is generated according to the plurality of trajectory points in each historical motion trajectory.
[0208] The confidence of each node is G1:2, G2:1, G3:1, G4:2, G5:1, and G6:1.
[0209] The implementation of each step in the embodiments of the present application can refer to the description of the corresponding steps or operations of the above method embodiments, and the repeated content will not be described herein.
[0210] The trajectory determination method provided in the embodiments of the present application acquires the stay point detected by the wearable device, at least one historical motion trajectory, and the position region corresponding to each historical motion trajectory in the storage space, determines a plurality of preset points according to the stay point and the start point and the end point in each historical motion trajectory, determines at least one historical motion trajectory corresponding to the position region for any one position region, and generates a historical node trajectory according to the plurality of trajectory points in each historical motion trajectory. In this way, the plurality of historical node trajectories is generated according to the at least one historical motion trajectory, the motion trajectory in the initial stage is completed through the plurality of historical node trajectories, and the accuracy of the generated motion trajectory is improved.
[0211] Figure 7 A structural diagram of a trajectory determination device provided in the embodiments of the present application is provided. Please refer to Figure 7 The device 700 includes an acquisition module 701, a first determination module 702, and a second determination module 703, wherein
[0212] The acquisition module 701 is configured to acquire a first motion trajectory detected by a wearable device, wherein the first motion trajectory includes a plurality of first trajectory points, and the start recording time of the first motion trajectory is later than the start motion time of the wearable device.
[0213] The first determining module 702 is used to determine the target node trajectory from multiple historical node trajectories based on the multiple first trajectory points. The historical node trajectory includes multiple nodes, and the nodes in the target node trajectory have the highest overlap with the multiple first trajectory points.
[0214] The second determining module 703 is used to determine the second motion trajectory of the wearable device between the starting motion time and the starting recording time based on the plurality of first trajectory points and the target node trajectory.
[0215] In one possible implementation, the second determining module 703 is specifically used for:
[0216] Among the plurality of first trajectory points, determine the second trajectory point with the earliest generation time;
[0217] The movement distance corresponding to the second trajectory is determined based on the generation time of the second trajectory point and the starting time of the movement.
[0218] In the target node trajectory, the node corresponding to the second trajectory point is determined as the end point;
[0219] Based on the endpoint, the distance traveled, the relationship between the multiple nodes, and the confidence level corresponding to each node, an initial point is determined in the trajectory of the target node.
[0220] The second motion trajectory is determined based on the ending point and the initial point.
[0221] In one possible implementation, the relationships between the plurality of nodes include connectivity and disconnection, and the second determining module 703 is specifically used for:
[0222] Among the multiple nodes corresponding to the connection relationship, it is determined whether the i-th node has at least one corresponding i+1-th candidate point, and the 1st node is the end point;
[0223] If so, among the at least i+1 candidate points, the i+1 candidate point with the highest confidence is determined as the i+1 node, and when the difference between the first distance between the i+1 node and the end point and the moving distance is within a first preset range, the i+1 node is determined as the initial point;
[0224] If not, determine the initial point from among the multiple nodes corresponding to the non-connected relationships based on the i-th node and the moving distance;
[0225] Where i takes the values 1, 2, ..., until the initial point is determined.
[0226] In a possible implementation, the second determining module 703 is specifically configured to:
[0227] determine a second distance between the ith node and the end point;
[0228] determine a third distance as a difference between the moving distance and the second distance;
[0229] determine at least one target node from the plurality of nodes corresponding to the non-connection relationship according to the third distance and the ith node, wherein a difference between a distance between the target node and the ith node and the third distance is within a second preset range;
[0230] if the target node is one, determine the target node as the initial point;
[0231] if the target node is a plurality of target nodes, determine a target node with a highest confidence from the plurality of target nodes as the initial point.
[0232] In a possible implementation, the second determining module 703 is specifically configured to:
[0233] obtain a plurality of preset points;
[0234] determine whether the initial point exists in the plurality of preset points;
[0235] if yes, determine a target motion trajectory between the initial point and the end point as the second motion trajectory, wherein a second trajectory point corresponding to the target motion trajectory includes the initial point and at least one ith node;
[0236] if no, determine a target point within a third preset range from the initial point from the plurality of preset points, and determine a target motion trajectory between the target point and the end point as the second motion trajectory, wherein a second trajectory point corresponding to the target motion trajectory includes the target point and at least one ith node.
[0237] In a possible implementation, the apparatus further includes a calibration module 704, which is configured to:
[0238] display the second motion trajectory, a trajectory confirmation control, and a trajectory denial control through the wearable device;
[0239] store the second motion trajectory in a storage space in response to a selection operation of the trajectory confirmation control by a user;
[0240] In response to a selection operation of the trajectory denial control by the user, a trajectory editing interface is displayed, the second motion trajectory is updated according to an input operation of the user on the trajectory editing interface, and the second motion trajectory is stored in the storage space.
[0241] In a possible implementation, the apparatus further includes an analysis module 705 configured to:
[0242] obtain the stay point detected by the wearable device, at least one historical motion trajectory, and a location area corresponding to each historical motion trajectory;
[0243] determine a plurality of preset points according to the stay point and a start point and an end point in each historical motion trajectory;
[0244] For any one location area, at least one historical motion trajectory corresponding to the location area is determined, and a historical node trajectory is generated according to a plurality of trajectory points in each historical motion trajectory.
[0245] Figure 8 A structural schematic diagram of an electronic device is provided in an embodiment of the present application. Referring to FIG. 8, Figure 8 The electronic device 800 can include a memory 801, a processor 802, and a transceiver 803.
[0246] The memory 801 is configured to store program instructions.
[0247] The processor 802 is configured to execute the program instructions stored in the memory, so that the electronic device 800 performs the above method.
[0248] The transceiver 803 can include a transmitter and / or a receiver. The transmitter can also be referred to as a sender, a transmitter, a transmission port, or a transmission interface, and the like. The receiver can also be referred to as a receiver, a receiving port, or a receiving interface, and the like. The memory 801, the processor 802, and the transceiver 803 are connected to each other through a bus 804.
[0249] The embodiments of the present application further provide a computer program product, which can be executed by a processor. When the computer program product is executed, the above method can be implemented.
[0250] The trajectory determination apparatus, the electronic device, the computer readable storage medium, and the computer program product of the embodiments of the present application can execute the technical solutions shown in the trajectory determination method embodiment, and the implementation principles and beneficial effects are similar, which will not be described here.
[0251] All or a part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The aforementioned program can be stored in a readable memory. The program, when executed, performs steps including the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk, a solid state disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof.
[0252] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer-executable instructions. These computer-executable instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions, which are executed via the computer or other programmable data processing apparatus, generate a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that tangibly embodies (or realizes) the functions specified in the flowcharts and / or block diagrams.
[0253] These computer-executable instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction apparatus, which implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that tangibly embodies (or realizes) the functions specified in the flowcharts and / or block diagrams.
[0254] These computer-executable instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operational steps are performed on the computer or other programmable data processing apparatus to produce a computer-implemented process, so that the instructions executed on the computer or other programmable data processing apparatus provide steps for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that tangibly embodies (or realizes) the functions specified in the flowcharts and / or block diagrams.
[0255] Obviously, those skilled in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A trajectory determination method, characterized in that, include: A first motion trajectory detected by a wearable device is acquired. The first motion trajectory includes multiple first trajectory points, and the starting recording time of the first motion trajectory is later than the starting motion time of the wearable device. Based on the plurality of first trajectory points, a target node trajectory is determined from a plurality of historical node trajectories, wherein the historical node trajectory includes a plurality of nodes, and the nodes in the target node trajectory among the plurality of historical node trajectories have the highest degree of overlap with the plurality of first trajectory points. Based on the plurality of first trajectory points and the target node trajectory, the second motion trajectory of the wearable device between the starting motion time and the starting recording time is determined.
2. The method according to claim 1, characterized in that, Based on the plurality of first trajectory points and the target node trajectory, the second motion trajectory of the wearable device between the starting motion time and the starting recording time is determined, including: Among the plurality of first trajectory points, determine the second trajectory point with the earliest generation time; The movement distance corresponding to the second trajectory is determined based on the generation time of the second trajectory point and the starting time of the movement. In the target node trajectory, the node corresponding to the second trajectory point is determined as the end point; Based on the endpoint, the distance traveled, the relationship between the multiple nodes, and the confidence level corresponding to each node, an initial point is determined in the trajectory of the target node. The second motion trajectory is determined based on the ending point and the initial point.
3. The method according to claim 2, characterized in that, The relationships between the multiple nodes include connectivity and disconnection. Based on the endpoint, the travel distance, the relationships between the multiple nodes, and the confidence level of each node, an initial point is determined in the target node trajectory, including: Among the multiple nodes corresponding to the connection relationship, it is determined whether the i-th node has at least one corresponding i+1-th candidate point, and the 1st node is the end point; If so, among the at least i+1 candidate points, the i+1 candidate point with the highest confidence is determined as the i+1 node, and when the difference between the first distance between the i+1 node and the end point and the moving distance is within a first preset range, the i+1 node is determined as the initial point; If not, determine the initial point from among the multiple nodes corresponding to the non-connected relationships based on the i-th node and the moving distance; Where i takes the values 1, 2, ..., until the initial point is determined.
4. The method according to claim 3, characterized in that, Based on the i-th node and the movement distance, the initial point is determined among the multiple nodes corresponding to the non-connected relationships, including: Determine the second distance between the i-th node and the end point; The difference between the moving distance and the second distance is determined as the third distance; Based on the third distance and the i-th node, at least one target node is determined among the multiple nodes corresponding to the non-connected relationships, and the difference between the distance between the target node and the i-th node and the third distance is within a second preset range; If there is only one target node, then that target node is designated as the initial point. If there are multiple target nodes, the target node with the highest confidence among the multiple target nodes is determined as the initial point.
5. The method according to claim 3 or 4, characterized in that, The second motion trajectory is determined based on the ending point and the initial point, including: Obtain multiple preset points; Determine whether the initial point exists among the plurality of preset points; If so, the target motion trajectory between the initial point and the end point is determined as the second motion trajectory, and the second trajectory points corresponding to the target motion trajectory include the initial point and at least one i-th node; If not, among the plurality of preset points, a target point within a third preset range relative to the initial point is determined, and the target motion trajectory between the target point and the end point is determined as the second motion trajectory. The second trajectory point corresponding to the target motion trajectory includes the target point and at least one i-th node.
6. The method according to any one of claims 1-5, characterized in that, After determining the second motion trajectory of the wearable device between the starting motion time and the starting recording time based on the plurality of first trajectory points and the target node trajectory, the method further includes: The wearable device displays the second motion trajectory, a trajectory confirmation control, and a trajectory denial control. In response to the user's selection of the trajectory confirmation control, the second motion trajectory is stored in the storage space; In response to the user's selection of the trajectory denial control, a trajectory editing interface is displayed. Based on the user's input in the trajectory editing interface, the second motion trajectory is updated and stored in the storage space.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: The wearable device detects the stopping point, at least one historical movement trajectory, and the location area corresponding to each historical movement trajectory. Based on the aforementioned rest points, as well as the start and end points in each historical movement trajectory, multiple preset points are determined; For any given location region, determine at least one historical motion trajectory corresponding to the location region, and generate a historical node trajectory based on multiple trajectory points in each historical motion trajectory.
8. A trajectory determining device, characterized in that, The device includes: The acquisition module is used to acquire a first motion trajectory detected by the wearable device. The first motion trajectory includes multiple first trajectory points, and the starting recording time of the first motion trajectory is later than the starting motion time of the wearable device. The first determining module is used to determine the target node trajectory from multiple historical node trajectories based on the multiple first trajectory points. The historical node trajectory includes multiple nodes, and the nodes in the target node trajectory have the highest overlap with the multiple first trajectory points. The second determining module is used to determine the second motion trajectory of the wearable device between the starting motion time and the starting recording time based on the plurality of first trajectory points and the target node trajectory.
9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 7.
11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 7.