Trajectory information processing method and apparatus, and computer device and readable storage medium
By acquiring and correcting the character's limb trajectory information, combined with posture and interaction information, the problem of inaccurate trajectory migration in traditional animation retargeting is solved, and more accurate animation material reuse is achieved.
Patent Information
- Application Number
- PCT/CN2023/131147
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-15
- Filing Date
- 2023-11-13
- Publication Date
- 2024-09-26
AI Technical Summary
When traditional animation retargeting technology migrates the character's footsteps, it does not consider the cooperation between the character's lower limbs, resulting in inaccurate migration.
By obtaining the limb trajectory information of each of the two characters, the limb posture and interaction information are determined, the single limb constraints and limb interaction constraints are calculated, and the initial trajectory information is corrected to obtain the target trajectory information to ensure that the migrated trajectory is more accurate.
It improves the accuracy of trajectory migration in animation redirection, avoids the problem of inaccurate migration in traditional methods, and realizes zero-cost reuse of animation materials.
Smart Images

Figure CN2023131147_26092024_PF_FP
Abstract
Description
Trajectory information processing method, device, computer equipment and readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 15, 2023, with application number 2023101639863 and invention name “Trajectory information processing method, device, computer equipment and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a trajectory information processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0003] With the development of computer technology, animation retargeting technology has emerged. Animation retargeting aims to improve animation production efficiency by migrating existing animation assets to new characters. For example, migrating the footsteps of character A to character B eliminates the need to create separate footstep tracks for each character.
[0004] Traditional animation redirection technology processes each lower limb of the character independently. According to the length of each lower limb of the two characters, the footstep trajectory of each lower limb of the character is scaled proportionally. The scaled footstep trajectory is used as the footstep trajectory of the new character.
[0005] However, the scaling and migration of the footstep trajectory by the length of the character's lower limbs does not take into account the coordination between the character's lower limbs, resulting in inaccurate migration of the footstep trajectory.
[0006] Summary of the Invention
[0007] According to various embodiments provided in the present application, a trajectory information processing method, apparatus, computer device, computer-readable storage medium, and computer program product are provided.
[0008] In one aspect, the present application provides a trajectory information processing method, which is executed by a computer device, and the method includes:
[0009] Acquire limb trajectory information of at least two first limbs of a first object, wherein the at least two first limbs of the first object correspond one-to-one to the at least two second limbs of the second object;
[0010] Migrating limb trajectory information from each first limb of the first object to a corresponding second limb of the second object to obtain initial trajectory information of each second limb;
[0011] determining limb posture information of each first limb and limb interaction information between the at least two first limbs based on the limb trajectory information of each first limb;
[0012] Pre-correcting the initial trajectory information of each second limb to obtain predicted posture information of each second limb and predicted interaction information between the at least two second limbs;
[0013] Determining single-limb constraint information between each first limb and a corresponding second limb based on the limb posture information and the predicted posture information;
[0014] determining limb interaction constraint information between the first object and the second object based on the limb interaction information and the predicted interaction information; and
[0015] Based on each of the single limb constraint information and the limb interaction constraint information, the initial trajectory information of each of the second limbs is corrected to obtain the target trajectory information of each of the second limbs.
[0016] On the other hand, the present application also provides a trajectory information processing device, the device comprising:
[0017] a migration module, configured to obtain limb trajectory information of each of at least two first limbs of a first object, wherein the at least two first limbs of the first object correspond one-to-one with at least two second limbs of a second object; and to migrate the limb trajectory information from each first limb of the first object to the corresponding second limb of the second object to obtain initial trajectory information of each second limb;
[0018] a prediction module configured to determine limb posture information of each first limb and limb interaction information between the at least two first limbs based on the limb trajectory information of each first limb; and pre-correct the initial trajectory information of each second limb to obtain predicted posture information of each second limb and predicted interaction information between the at least two second limbs;
[0019] a first generating module, configured to determine single-limb constraint information between each first limb and a corresponding second limb based on the limb posture information and the predicted posture information;
[0020] a second generating module, configured to determine limb interaction constraint information between the first object and the second object based on the limb interaction information and the predicted interaction information; and
[0021] A correction module is used to correct the initial trajectory information of each second limb based on each single limb constraint information and the limb interaction constraint information, and obtain the target trajectory information of each second limb.
[0022] On the other hand, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the steps of the various method embodiments of the present application when executing the computer-readable instructions.
[0023] On the other hand, the present application also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the steps of the various method embodiments of the present application are performed.
[0024] In another aspect, the present application further provides a computer program product, comprising computer-readable instructions, which, when executed by a processor, perform the steps of the method embodiments of the present application.
[0025] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the following briefly introduces the drawings required for use in the embodiments or the conventional technology descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.
[0027] FIG1 is a diagram showing an application environment of a trajectory information processing method according to an embodiment;
[0028] FIG2 is a schematic flow chart of a trajectory information processing method according to an embodiment;
[0029] FIG3 is a schematic diagram of a first object in a preset posture according to an embodiment;
[0030] FIG4 is a schematic diagram of a first object in a preset posture according to another embodiment;
[0031] FIG5 is a schematic diagram of a process for determining target trajectory information of a second limb in one embodiment;
[0032] FIG6 is a schematic diagram of a process for determining target offset information corresponding to a second limb from candidate offset information in each iteration in one embodiment;
[0033] FIG7 is a schematic diagram of the overall flow of a trajectory information processing method according to an embodiment;
[0034] FIG8 is a schematic diagram of a joint chain and a single joint chain constraint of a humanoid character in one embodiment;
[0035] FIG9 is a schematic diagram of a multi-joint chain constraint in one embodiment;
[0036] FIG10 is a schematic diagram of a process for forming a target constraint in one embodiment;
[0037] FIG11 is a schematic diagram of an offset in one embodiment;
[0038] FIG12 is a block diagram of a trajectory information processing device according to an embodiment;
[0039] FIG13 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0041] The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc. For example, it can be applied to the field of artificial intelligence (AI) technology, wherein artificial intelligence is the theory, method, technology and application system of using digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. The solution provided in the embodiments of the present application relates to a trajectory information processing method and an information recommendation method of artificial intelligence, which is specifically described by the following embodiments.
[0042] The trajectory information processing method provided in the embodiments of the present application can be applied in the application environment shown in Figure 1. In this embodiment, terminal 102 communicates with server 104 via a network. A data storage system can store data that server 104 needs to process. The data storage system can be integrated with server 104, or it can be placed in the cloud or on another server. Terminal 102 and server 104 can each independently execute the trajectory information processing method provided in the embodiments of the present application. Terminal 102 and server 104 can also be used together to execute the trajectory information processing method provided in the embodiments of the present application. When terminal 102 and server 104 are used together to execute the trajectory information processing method provided in the embodiments of the present application, terminal 102 obtains limb trajectory information for each of at least two first limbs of a first object, where the at least two first limbs of the first object correspond one-to-one with at least two second limbs of a second object. Terminal 102 migrates the limb trajectory information from each first limb of the first object to the corresponding second limb of the second object, obtaining initial trajectory information for each second limb. Terminal 102 sends the trajectory information for each limb and the initial trajectory information to server 104. Based on the limb trajectory information of each first limb, server 104 determines limb posture information of each first limb and limb interaction information between at least two first limbs. Server 104 pre-corrects the initial trajectory information of each second limb to obtain predicted posture information for each second limb and predicted interaction information between at least two second limbs. Server 104 determines single-limb constraint information between each first limb and the corresponding second limb based on the limb posture information and the predicted posture information. Server 104 determines limb interaction constraint information between the first object and the second object based on the limb interaction information and the predicted interaction information. Server 104 corrects the initial trajectory information of each second limb based on the single-limb constraint information and the limb interaction constraint information of each second limb to obtain target trajectory information for each second limb. Terminal 102 may be, but is not limited to, various desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices may include smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0043] In one embodiment, as shown in FIG2 , a trajectory information processing method is provided. The method is described by applying the method to the computer device in FIG1 (the computer device may be the terminal or server in FIG1 ) as an example, and includes the following steps:
[0044] Step S202: Acquire limb trajectory information of at least two first limbs of the first object, where the at least two first limbs of the first object correspond one-to-one to the at least two second limbs of the second object.
[0045] The first subject has movable limbs, and the limbs of the first subject include multiple first limbs. Multiple means at least two. The first limbs can be, for example, upper limbs, lower limbs, forelimbs, hind limbs, etc. The second subject has movable limbs, and the limbs of the second subject include multiple second limbs. The second limbs can be, for example, upper limbs, lower limbs, forelimbs, hind limbs, etc. The at least two first limbs of the first subject correspond one-to-one with the at least two second limbs of the second subject. For example, the left upper limb of the first subject corresponds to the left upper limb of the second subject, and the right upper limb of the first subject corresponds to the right upper limb of the second subject.
[0046] The first object and the second object may be physical objects or virtual characters, specifically physical model objects or virtual characters in a virtual scene, but are not limited thereto. The first object and the second object may be human objects or animal objects.
[0047] The first object and the second object belong to the same category of objects, for example, if the first object is a person, then the second object is also a person. The number of the first limbs of the first object may be the same as the number of the second limbs of the second object.
[0048] Limb trajectory information refers to the trajectory information corresponding to the first limb, and specifically can be the trajectory information formed by the position of the first limb at different times. Initial trajectory information refers to the rough trajectory information corresponding to the second limb, and specifically can be the trajectory information formed by the rough position of the second limb at different times. The position can be a two-dimensional coordinate or a three-dimensional coordinate.
[0049] The computer device may determine a first object and a second object for which limb trajectory information migration is to be performed, and obtain limb trajectory information of at least two first limbs of the first object.
[0050] Step S204: Migrate limb trajectory information from each first limb of the first object to the corresponding second limb of the second object to obtain initial trajectory information of each second limb.
[0051] For each first limb, the computer device transfers the limb trajectory information of the first limb to the second limb corresponding to the first limb, and obtains the initial trajectory information of the second limb, thereby obtaining the initial trajectory information of each second limb.
[0052] In this embodiment, the computer device determines the original limb trajectory information of the second limb, replaces the limb trajectory information of the second limb with the limb trajectory information corresponding to the first limb, and forms the initial trajectory information of the second limb.
[0053] The original limb trajectory information of the second limb refers to the original trajectory information of the second limb, and specifically may be the trajectory information formed by the positions of the second limb at different times before migration.
[0054] Step S206: Determine the limb posture information of each first limb and the limb interaction information between at least two first limbs based on the limb trajectory information of each first limb.
[0055] Limb posture information refers to information representing the posture of a first limb. Limb interaction information refers to information representing the interaction relationship between multiple first limbs. The interaction relationship between multiple first limbs is called a first interaction relationship.
[0056] Single-limb constraint information refers to the constraint information between a first limb of a first object and the corresponding second limb of a second object. Single-limb constraint information applies to a single first limb during trajectory migration. Specifically, it specifies the constraints on the first limb itself that must be considered when migrating its trajectory information to the corresponding second limb.
[0057] The computer device obtains limb trajectory information for each first limb and, for each first limb, determines limb posture information for the first limb based on the limb trajectory information for the first limb. The computer device determines limb interaction information between at least two first limbs based on the limb trajectory information for each first limb.
[0058] Step S208: pre-correct the initial trajectory information of each second limb to obtain predicted posture information of each second limb and predicted interaction information between at least two second limbs.
[0059] Among them, the predicted posture information refers to the information that characterizes the posture of the second limb after pre-correction of the initial trajectory information of the second limb. The predicted interaction information refers to the information that characterizes the interaction relationship between multiple second limbs after pre-correction of the initial trajectory information of the second limb. The information on the interaction relationship between multiple second limbs is called the second interaction relationship. Pre-correction refers to the correction processing of the initial trajectory information of the second limb.
[0060] For each second limb, the computer device pre-corrects the initial trajectory information for the second limb to obtain predicted trajectory information for the second limb, thereby obtaining predicted trajectory information for each second limb. The predicted trajectory information refers to the trajectory information of the second limb after pre-correction, and specifically can be trajectory information formed by the position of the second limb at different times.
[0061] The computer device determines predicted posture information for the second limb based on the predicted trajectory information for the second limb, thereby obtaining predicted posture information for each second limb. The computer device determines predicted interaction information between at least two second limbs based on the predicted trajectory information for each second limb.
[0062] Step S210: Determine single limb constraint information between each first limb and the corresponding second limb based on the limb posture information and the predicted posture information.
[0063] For each first limb of the first subject, a corresponding second limb of the second subject is determined. The computer device determines a difference between the limb pose information of the first limb and the predicted pose information of the corresponding second limb, and uses the difference as single-limb constraint information between the first limb and the corresponding second limb.
[0064] Step S212: Determine limb interaction constraint information between the first object and the second object based on the limb interaction information and the predicted interaction information.
[0065] Among them, the limb interaction constraint information is the multi-joint chain constraint information, and the limb interaction constraint information refers to the constraint on the interaction relationship between multiple limbs with interaction during the trajectory migration process.
[0066] Limb interaction constraint information is the constraint on the interaction relationship between multiple first limbs and the interaction relationship between multiple second limbs in the process of migrating limb trajectory information of multiple first limbs to multiple second limbs.
[0067] The computer device determines limb interaction information between at least two first limbs of the first object and determines limb interaction constraint information between the first object and the second object based on the limb interaction information and the predicted interaction information.
[0068] The interaction relationship between multiple first limbs is called a first interaction relationship. The information about the interaction relationship between multiple second limbs is called a second interaction relationship. The limb interaction constraint information between the first object and the second object is the constraint between the first interaction relationship and the second interaction relationship.
[0069] Step S214: Based on each single limb constraint information and the limb interaction constraint information, correct the initial trajectory information of each second limb to obtain the target trajectory information of each second limb.
[0070] The target trajectory information refers to the final trajectory information of the second limb, and specifically can be the trajectory information formed by the final position of the second limb at different times. The position can be a two-dimensional coordinate or a three-dimensional coordinate.
[0071] For each second limb, the computer device corrects the initial trajectory information of the second limb based on the single limb constraint information and limb interaction constraint information of the second limb to obtain the target trajectory information of the second limb.
[0072] In one embodiment, pre-correcting the initial trajectory information of each second limb to obtain predicted posture information of each second limb and predicted interaction information between at least two second limbs includes:
[0073] Obtain candidate offset information for each iteration; for each iteration, pre-correct the initial trajectory information of each second limb based on the candidate offset information for the iteration, and obtain predicted posture information of each second limb and predicted interaction information between at least two second limbs;
[0074] Determining, based on the limb posture information of each first limb and the predicted posture information of the corresponding second limb, single limb constraint information between each first limb and the corresponding second limb, including: in each iteration, for each first limb, determining, based on the limb posture information of the first limb and the predicted posture information of the corresponding second limb, the single limb constraint information between each first limb and the corresponding second limb;
[0075] Determining limb interaction constraint information between the first object and the second object based on the limb interaction information and the predicted interaction information, including: generating limb interaction constraint information between the first object and the second object in each iteration based on the limb interaction information and the predicted interaction information in each iteration;
[0076] Based on each single limb constraint information and limb interaction constraint information, correct the initial trajectory information of each second limb to obtain the target trajectory information of each second limb, including: based on each iterative single limb constraint information and limb interaction constraint information, correct the initial trajectory information of each second limb to obtain the target trajectory information of each second limb.
[0077] The candidate offset information refers to the preset offset information in each iteration. The candidate offset information used in the next iteration can be obtained by adjusting the preset step size based on the candidate offset information of the previous iteration. For example, if the candidate offset information in the first iteration is (0, 0) and the preset step size is 0.5, then after the first iteration is completed, the candidate offset information is adjusted to (0, 0) based on the preset step size, resulting in the candidate offset information in the second iteration being (0.5, 0.5), and the second iteration is entered. After the second iteration is completed, the candidate offset information is adjusted to (0.5, 0.5), resulting in the candidate offset information in the third iteration being (1, 1), and the third iteration is entered.
[0078] The computer device may obtain candidate offset information for each iteration. In one iteration, for each second limb, the initial trajectory information for the second limb may be pre-corrected based on the candidate offset information for that iteration to obtain predicted pose information for the second limb and interaction information between at least two second limbs of the second object. Similar processing may be used to obtain predicted pose information for each second limb in each iteration and predicted interaction information between at least two second limbs of the second object in each iteration.
[0079] In each iteration, for each first limb, the computer device determines the difference between the limb pose information for the first limb and the predicted pose information for the corresponding second limb, and uses the difference as the single limb constraint information between the first limb and the corresponding second limb. Similarly, the single limb constraint information for each iteration is determined in each iteration.
[0080] For each iteration, limb interaction constraint information between the first object and the second object in the iteration is generated based on the limb interaction information and the predicted interaction information in the iteration. Similarly, limb interaction constraint information for each iteration can be determined in each iteration.
[0081] For each second limb, the computer device selects target offset information corresponding to the second limb from the candidate offset information of each iteration based on the single-limb constraint information and limb interaction constraint information of the second limb in each iteration. The computer device corrects the initial trajectory information of the second limb based on the target offset information to obtain the target trajectory information of the second limb.
[0082] In this embodiment, candidate offset information is obtained for each iteration, and for each iteration, the initial trajectory information of each second limb is pre-corrected based on the candidate offset information for the iteration, and the predicted posture information of each second limb and the predicted interaction information between at least two second limbs are obtained. The initial trajectory information can be pre-corrected through the candidate offset information to predict the posture of each second limb in the second object after correction, as well as the interaction between the second limbs after correction. Moreover, pre-correction is performed once in each iteration, and the posture of a single second limb of the second object and the interaction between multiple second limbs can be predicted multiple times through multiple iterations. In each iteration, the single limb constraint information between the first limb and the second limb is determined based on the limb posture information before migration and the predicted posture information after pre-correction, so that the posture characteristics of the single limb are taken into account when the limb migration information is transferred. The generated single limb constraint information can enable the single second limb to maintain a posture consistent with the single first limb. Based on the limb interaction information and the predicted interaction information of each iteration, limb interaction constraint information between the first object and the second object in each iteration is generated. The limb interaction constraint information enables multiple second limbs to obtain the interaction relationship between multiple first limbs, thereby making the migration of trajectory information more accurate.
[0083] In one embodiment, for each iteration, based on the candidate offset information for that iteration, the initial trajectory information of each second limb is pre-corrected to obtain predicted posture information of each second limb and predicted interaction information between at least two second limbs, including:
[0084] For each iteration, the initial trajectory information of each second limb is pre-corrected based on the candidate offset information of the iteration to obtain the predicted trajectory information of each second limb; based on the predicted trajectory information of each second limb, the predicted posture information of each second limb is determined; based on the predicted trajectory information of each second limb, the predicted interaction information between at least two second limbs is determined.
[0085] Each iteration uses one candidate offset to pre-correct the initial trajectory information of each second limb, thereby obtaining predicted trajectory information for each second limb in that iteration. For each second limb, predicted posture information for that second limb is determined based on the predicted trajectory information for that second limb. Based on the predicted trajectory information for each second limb, predicted interaction information between at least two second limbs is determined.
[0086] In this embodiment, for each iteration, the initial starting position and initial ending position of each second limb are corrected based on the candidate offset information for that iteration, thereby obtaining a predicted starting position and predicted ending position corresponding to each second limb in that iteration, thereby obtaining corresponding position information based on the correction under the specific candidate offset information. Based on the predicted starting position and predicted ending position corresponding to each second limb in that iteration, the posture information of each second limb in that iteration can be accurately predicted, as well as the interaction information between multiple second limbs.
[0087] In one embodiment, correcting the initial trajectory information of each second limb based on the single-limb constraint information and the limb interaction constraint information of each iteration to obtain the target trajectory information of each second limb includes:
[0088] For each second limb, based on the single limb constraint information and limb interaction constraint information of each iteration, the target offset information of the second limb is screened out from the candidate offset information of each iteration; according to the target offset information of the second limb, the initial trajectory information of the second limb is corrected to obtain the target trajectory information of the second limb.
[0089] For each iteration, the computer device determines target constraint information for each second limb in the targeted iteration based on the limb interaction constraint information and the single-limb constraint information for each second limb in the targeted iteration. For each second limb, the target iteration to which the target constraint information that satisfies the correction condition belongs is determined from the target constraint information for the second limb in each iteration, and the candidate offset information in the target iteration is used as the target offset information corresponding to the targeted second limb.
[0090] In this embodiment, target offset information is filtered through multiple iterations of single-limb constraint information and limb interaction constraint information. This filtered target offset information satisfies multiple constraints, including single-limb constraints and limb interaction constraints, resulting in more accurate target offset information. Based on the target offset information for a second limb, the initial trajectory information for that second limb is corrected to obtain target trajectory information for that second limb. This corrected target trajectory information better matches the characteristics of the second target limb, thereby improving the accuracy of trajectory migration.
[0091] In this embodiment, the first limb includes a starting joint and an end joint, and the second limb includes a starting joint and an end joint. The starting joint of the first limb is the first starting joint, and the end joint of the first limb is the first end joint. The second limb includes a starting joint and an end joint, the starting joint of the second limb is the second starting joint, and the end joint of the second limb is the second end joint. The limb trajectory information includes the three-dimensional coordinates of the first starting joint and the three-dimensional coordinates of the first end joint. The initial trajectory information includes the initial three-dimensional coordinates of the second starting joint and the initial three-dimensional coordinates of the second end joint. The single limb constraint information includes the single joint chain constraint value, the limb interaction constraint information includes the joint chain interaction constraint value, the candidate offset information includes the candidate offset, and the target offset information includes the target offset, which can specifically be a three-dimensional coordinate.
[0092] After the computer device calculates the single joint chain constraint value and the joint chain interaction constraint value in each iteration, for each second limb, based on the single joint chain constraint value and the joint chain interaction constraint value of the second limb in each iteration, the computer device selects a target offset for the second limb from the candidate offsets in each iteration; based on the target offset for the second limb, the computer device corrects the initial three-dimensional coordinates of the second endpoint joint of the second limb to obtain the target three-dimensional coordinates of the second endpoint joint. The computer device can also correct the initial three-dimensional coordinates of the second starting point joint based on the target offset for the second limb to obtain the target three-dimensional coordinates of the second starting point joint.
[0093] In this embodiment, the target offset may also be a two-dimensional coordinate, that is, including the coordinate on the x-axis and the coordinate on the y-axis, and the coordinate on the z-axis may be set to 0.
[0094] In this embodiment, limb trajectory information is obtained for each of at least two first limbs of a first subject. The at least two first limbs of the first subject correspond one-to-one with at least two second limbs of a second subject to determine to which second limb the limb trajectory information of the first limb should be transferred. Limb trajectory information is transferred from each first limb of the first subject to the corresponding second limb of the second subject to preliminarily obtain initial trajectory information for each second limb. Based on the limb trajectory information of each first limb, limb posture information of each first limb and limb interaction information between at least two first limbs are determined, thereby determining the posture of each first limb and the interaction relationship between multiple first limbs. The initial trajectory information of each second limb is pre-corrected to estimate the posture of each second limb after pre-correction, as well as the interaction relationship between each second limb after pre-correction. Based on the limb posture information of each first limb and the predicted posture information of the corresponding second limb, single-limb constraint information is determined between each first limb and the corresponding second limb. The generated single-limb constraint information enables the second limb to obtain the posture of the first limb. Based on the limb interaction information and the predicted interaction information, limb interaction constraint information between the first object and the second object is determined. This limb interaction constraint information enables multiple second limbs to obtain interaction relationships between multiple first limbs. Based on each single limb constraint information and the limb interaction constraint information, the initial trajectory information of each second limb is corrected to obtain the target trajectory information of each second limb. This allows each second limb of the second object to obtain a posture consistent with each first limb of the first object, and the interaction relationship between each second limb is also consistent with the interaction relationship between each first limb, thereby making the migration of trajectory information more accurate.
[0095] In one embodiment, limb trajectory information of each first limb of a first object is obtained, and the limb trajectory information is migrated from each first limb of the first object to the corresponding second limb of the second object to obtain initial trajectory information of each second limb; candidate offset information is obtained, and based on the initial trajectory information of each second limb and the candidate offset information, predicted posture information of each second limb and predicted interaction information between multiple second limbs are determined; for each first limb, single limb constraint information between the first limb and the corresponding second limb is generated according to the limb posture information of the first limb and the predicted posture information of the corresponding second limb; limb interaction constraint information between the first object and the second object is generated according to the limb interaction information and the predicted interaction information; the candidate offset information is adjusted based on a preset step size to obtain updated candidate offset information ; Enter the next iteration, use the updated candidate offset information as the candidate offset information in the next iteration, and return to the steps of determining the predicted posture information of each second limb and the predicted interaction information between multiple second limbs based on the initial trajectory information and candidate offset information of each second limb and continue to execute until the iteration stop condition is met, and obtain the single limb constraint information of each second limb in each iteration, as well as the limb interaction constraint information in each iteration; for each second limb, according to the single limb constraint information and limb interaction constraint information of the second limb in each iteration, filter out the target offset information of the second limb from the candidate offset information of each iteration; based on the target offset information of the second limb, correct the initial trajectory information of the second limb to obtain the target trajectory information of the second limb.
[0096] In one embodiment, migrating limb trajectory information from each first limb of a first object to a corresponding second limb of a second object to obtain initial trajectory information of each second limb includes:
[0097] Determine the first limb length of each first limb, and determine the second limb length of each second limb; for each first limb, adjust the limb trajectory information of the targeted first limb according to the first limb length of the targeted first limb and the second limb length of the corresponding second limb to obtain the initial trajectory information of each second limb.
[0098] The first limb length refers to the length from the first starting joint to the first end joint of the first limb. For example, if the first limb is a lower limb, the first starting joint is the hip joint, and the first end joint is the ankle joint, then the first limb length of the lower limb is the length from the hip joint to the ankle joint. If the first limb is an upper limb, the first starting joint is the shoulder joint, and the first end joint is the wrist joint, then the first limb length of the upper limb is the length from the shoulder joint to the wrist joint. The second limb length refers to the length from the second starting joint to the second end joint of the second limb.
[0099] The computer device determines a first limb length for each first limb and a second limb length for each second limb. For each first limb, the limb trajectory information of the first limb is adjusted based on the first limb length of the first limb and the second limb length of the corresponding second limb to obtain adjusted trajectory information. The original limb trajectory information corresponding to the second limb is modified to the adjusted trajectory information to obtain initial trajectory information for the corresponding second limb.
[0100] In this embodiment, the limb trajectory information includes the three-dimensional coordinates of the first starting point joint and the three-dimensional coordinates of the first end point joint. The initial trajectory information includes the initial three-dimensional coordinates of the second starting point joint and the initial three-dimensional coordinates of the second end point joint. The computer device can determine the first limb length of the first limb, determine the second limb corresponding to the first limb, and determine the second limb length of the second limb. The computer device determines the ratio between the second limb length and the first limb length, and multiplies the ratio with the limb trajectory information of the first limb to obtain the initial trajectory information corresponding to the corresponding second limb. That is, the ratio is multiplied by the three-dimensional coordinates of the first starting point joint to obtain the initial three-dimensional coordinates of the second starting point joint. The ratio is multiplied by the three-dimensional coordinates of the first end point joint to obtain the initial three-dimensional coordinates of the second end point joint.
[0101] For example, trajectory migration is performed according to the following formula:
[0102] in, is the initial trajectory information of the second limb, X k is the limb trajectory information of the first limb, is the length of the second limb, and L is the length of the first limb.
[0103] In this embodiment, the first limb length of each first limb is determined, and the second limb length of each second limb is determined. For each first limb, the limb trajectory information of the first limb is adjusted based on the first limb length of the first limb and the second limb length of the corresponding second limb, so as to transfer the limb trajectory information of the first limb to the corresponding second limb. Furthermore, the transfer is performed in conjunction with the limb length information so that the transferred trajectory information is proportionally consistent with the limb of the second subject, thereby preliminarily obtaining the initial trajectory information of each second limb.
[0104] In one embodiment, the initial trajectory information includes an initial starting position and an initial ending position of the second limb, and the predicted trajectory information includes a predicted starting position and a predicted ending position of the second limb;
[0105] Determining predicted posture information for each second limb based on the predicted trajectory information for each second limb, including: determining the second limb length of each second limb; for each second limb, determining the predicted posture information for the second limb based on the predicted starting position, the predicted ending position, and the length of the second limb;
[0106] Based on the predicted trajectory information of each second limb, the predicted interaction information between at least two second limbs is determined, including: according to the predicted starting position and predicted end position of each second limb, the predicted interaction information between at least two second limbs is determined.
[0107] The second limb includes a starting joint and an ending joint. The starting joint of the second limb is the second starting joint, and the ending joint of the second limb is the second ending joint. The initial trajectory information of the second limb includes the initial starting position and initial ending position of the second limb, where the initial starting position of the second limb is the initial starting position of the second starting joint, and the initial ending position of the second limb is the initial ending position of the second ending joint.
[0108] The predicted trajectory information of the second limb includes the predicted starting position and predicted end position of the second limb. The predicted starting position of the second limb is the predicted starting position of the second starting joint, and the predicted end position of the second limb is the predicted end position of the second starting joint. The initial starting position refers to the position of the second starting joint before pre-correction, and the predicted starting position refers to the position of the second starting joint after pre-correction. The initial end position refers to the position of the second end joint before pre-correction, and the predicted end position refers to the position of the second end joint after pre-correction.
[0109] For this iteration, the computer device determines candidate offset information for this iteration. In this iteration, for each second starting joint of the second limb, the computer device pre-corrects the initial starting position of the second starting joint based on the candidate offset information for this iteration, thereby obtaining a predicted starting position for the second starting joint in this iteration. Based on the candidate offset information for this iteration, the computer device corrects the initial ending position of the second ending joint, thereby obtaining a predicted ending position for the second ending joint in this iteration.
[0110] For each second limb, the predicted posture information of the second limb in this iteration is determined based on the predicted starting position, predicted ending position, and length of the second limb in this iteration. Similar processing can be used to obtain the predicted posture information of each second limb in this iteration.
[0111] The computer device can determine the predicted interaction information between multiple second limbs in this iteration based on the predicted starting position and predicted ending position of each second limb in this iteration.
[0112] The other iterative processes are processed similarly to obtain the predicted posture information of each second limb in each iteration, as well as the predicted interaction information between multiple second limbs.
[0113] In this embodiment, the length of the second limb of each second limb is determined, and in each iteration, for each second limb, based on the predicted starting position, predicted end position and second limb length of the second limb, the posture of each second limb after pre-correction in the iteration is accurately predicted, and the interaction relationship between multiple second limbs after pre-correction is accurately predicted.
[0114] In one embodiment, the predicted posture information of each second limb in the iteration and the predicted interaction information between the plurality of second limbs are determined based on the predicted starting position and the predicted ending position corresponding to each second limb in the iteration, including:
[0115] Determine the length of each of the multiple second limbs of the second object, and determine the predicted posture information corresponding to each of the second limbs in the targeted iteration based on the predicted starting position, predicted ending position and second limb length corresponding to each of the second limbs in the targeted iteration; determine the predicted interaction information between the multiple second limbs in the targeted iteration based on the predicted starting position and predicted ending position of the multiple second limbs in the targeted iteration.
[0116] The computer device determines the second limb length of each second limb, and for each iteration, determines the distance between the predicted end position and the predicted starting position corresponding to the same second limb in the iteration, and uses the ratio of the distance to the second limb length of the second limb as the predicted posture information of the second limb. Similar processing is performed to obtain the predicted posture information of each second limb in each iteration.
[0117] For each iteration, the computer device determines the distance between the predicted starting positions of the multiple second limbs in the iteration, and the distance between the predicted end positions of the multiple second limbs, and determines the predicted interaction information between the multiple second limbs in the iteration based on each distance.
[0118] For example, the predicted starting position and the predicted ending position of the second limb j are The length of the second limb j is L j , then the predicted posture information It can be determined according to the following formula, where the predicted posture information Represented as a normalized vector:
[0119] The two second limbs of the second object are 0 and 1 respectively, and the predicted end positions of the second limb 0 and the second limb 1 are The predicted starting positions of the second limb 0 and the second limb 1 are Then the normalized vectors of the second limb 0 and the second limb 1 Defined as:
[0120] Among them, the normalized vector That is the predicted interaction information between the second limb 0 and the second limb 1.
[0121] In this embodiment, the length of each of the second limbs of the second object is determined. Based on the predicted starting position, predicted ending position, and second limb length corresponding to each second limb in the targeted iteration, the predicted posture information corresponding to each second limb in the targeted iteration can be accurately determined, so as to accurately construct constraints between the individual limbs of different objects based on the predicted posture information of the individual second limbs. Based on the predicted starting position and predicted ending position of each of the multiple second limbs in the targeted iteration, the predicted interaction information between the multiple second limbs in the targeted iteration can be accurately determined, so as to construct interaction constraints based on the interaction information between the second limbs, so that the constraints of the single target limb and the constraints of multiple target limbs can be simultaneously utilized to more accurately determine the target trajectory information after migration.
[0122] In one embodiment, the limb trajectory information includes a limb starting position and a limb ending position of a first limb; based on the limb trajectory information of each first limb, determining the limb posture information of each first limb and the limb interaction information between at least two first limbs includes:
[0123] Determine the first limb length of each first limb; for each first limb, determine the limb posture information corresponding to the targeted first limb based on the limb starting position, limb ending position and first limb length of the targeted first limb; determine the limb interaction information between at least two first limbs based on the limb starting position and limb ending position of each first limb.
[0124] The computer device determines the limb starting position of each first limb and the limb ending position of each first limb. The computer device determines the first limb length of each first limb. For each first limb, the distance between the limb ending position and the limb starting position of the first limb is determined, and the ratio between the distance and the first limb length of the first limb is used as the limb posture information of the first limb.
[0125] The computer device determines the distance between the limb starting positions of the multiple first limbs, and the distance between the limb ending positions of the multiple first limbs, and determines the limb interaction information between the multiple first limbs based on the respective distances.
[0126] In this embodiment, the first limb length of each first limb is determined. For each first limb, limb posture information of the first limb can be accurately determined based on the limb starting position, limb ending position, and first limb length of the first limb. Based on the limb starting position and limb ending position of each first limb, the interaction relationship between the first limbs can be accurately determined.
[0127] In one embodiment, based on the single-limb constraint information and the limb interaction constraint information, correcting the initial trajectory information of each second limb to obtain the target trajectory information of each second limb includes:
[0128] Determine the weight parameters of the single limb constraint information and the weight parameters of the limb interaction constraint information; determine the target constraint information corresponding to each second limb based on the limb interaction constraint information, the single limb constraint information and the weight parameters; based on the target constraint information corresponding to each second limb, correct the initial trajectory information of each second limb to obtain the target trajectory information of each second limb.
[0129] In this embodiment, the weight parameters of the single limb constraint information and the weight parameters of the limb interaction constraint information are determined; for each iteration, the target constraint information of each second limb in the iteration is determined based on the limb interaction constraint information, the single limb constraint information of each second limb and the weight parameters; for each second limb, based on the target constraint information of the second limb in each iteration, the initial trajectory information of the second limb is corrected to obtain the target trajectory information of the second limb.
[0130] Among them, each single limb constraint information corresponds to the same weight parameter, and each limb interaction constraint information corresponds to the same weight parameter.
[0131] The computer device determines weight parameters for the single-limb constraint information and weight parameters for the limb interaction constraint information. For each iteration, a weighted sum is performed based on the weight parameters for the single-limb constraint information, the weight parameters for the limb interaction constraint information, the limb interaction constraint information for the iteration, and the single-limb constraint information for a second limb in the iteration to obtain target constraint information for the second limb in the iteration. Similar processing is performed to obtain target constraint information for each second limb in the iteration.
[0132] For each second limb, based on the target constraint information for the second limb in each iteration, the target offset information for the second limb is filtered from the candidate offset information for each iteration. Based on the target offset information for the second limb, the initial trajectory information for the second limb is corrected to obtain the target trajectory information for the second limb. Similar processing is performed to obtain the target trajectory information for each second limb.
[0133] In this embodiment, weight parameters for the single-limb constraint information and the limb interaction constraint information are determined to determine the proportion of the single-limb constraint information and the limb interaction constraint information in the trajectory migration process. Over multiple iterations, the target constraint information for each second limb in the iteration is accurately determined based on the limb interaction constraint information in the iteration, the single-limb constraint information for each second limb, and the weight parameters. This combines the single-limb constraint information and the limb interaction constraint information to determine the target offset information, thereby accurately determining the target trajectory information for each second limb.
[0134] In one embodiment, the limb trajectory information includes a limb starting position and a limb ending position of a first limb; determining weight parameters of single limb constraint information and weight parameters of limb interaction constraint information includes:
[0135] According to the limb starting position and limb ending position of each first limb, the weight parameters of the single limb constraint information are determined; according to the weight parameters of the single limb constraint information, the weight parameters corresponding to the limb interaction constraint information are determined.
[0136] The limb trajectory information includes the limb starting position and the limb ending position of the first limb.
[0137] The computer device determines a limb starting point position for each first limb and determines a limb end point position for each first limb. The computer device determines a distance between the limb end points of each of the plurality of first limbs and determines a distance between the limb starting points of each of the plurality of first limbs, and determines a weight parameter for the single limb constraint information based on each distance.
[0138] The computer device determines the weight parameter of the limb interaction constraint information based on the weight parameter of the single limb constraint information. Furthermore, the weight parameter of the limb interaction constraint information is determined based on the difference between a preset value and the weight parameter of the single limb constraint information. The preset value is a pre-set empirical value.
[0139] In this embodiment, the weight parameters of the single limb constraint information are determined based on the limb starting position and the limb ending position of each first limb, including:
[0140] According to the starting position of each first limb, the Euclidean distance between the starting positions of each limb is determined; according to the Euclidean distance and the distance between the end positions of each limb, the weight parameter corresponding to the single limb constraint information is determined.
[0141] In this embodiment, candidate weight parameters are determined based on the limb starting and ending positions of each of the plurality of first limbs; weight parameters for the single-limb constraint information are determined from the candidate weight parameters and a preset value; and weight parameters for the limb interaction constraint information are determined based on the preset value and the weight parameters for the single-limb constraint information. If the candidate weight parameter is less than the preset value, the candidate weight parameter is used as the weight parameter; if the candidate weight parameter is greater than the preset value, the preset value is used as the weight parameter.
[0142] In this embodiment, the starting positions of the limbs of the first subject are determined in a preset pose, and the Euclidean distances between the starting positions of the limbs are determined. The preset pose can be an A-pose (A-Pose) as shown in FIG3 or a T-pose (T-Pose) as shown in FIG4.
[0143] For example, the two first limbs of the first object are i and j respectively, and the limb end positions of the first limb i and the first limb j are The Euclidean distance between the limb starting points of the first limb i and the first limb j is Ls ij , then the target constraint information corresponding to the first limb for:
[0144] in, w k Indicates single limb constraint information The weight parameter, (1-w k ) represents the limb interaction constraint information The weight parameter of .
[0145] In this embodiment, the weight parameters of the single limb constraint information are determined based on the limb starting position and limb ending position of each of the multiple first limbs, so that the proportion of the single limb constraint information in the trajectory migration process can be determined based on the limb starting position and limb ending position of the first limb. According to the weight parameters corresponding to the single limb constraint information, the weight parameters of the limb interaction constraint information are determined to determine the proportion of the multi-joint chain constraint information in the trajectory migration process, so that the target trajectory information of the second limb can be calculated more accurately based on the single limb constraint information and the single limb interaction constraint information.
[0146] In one embodiment, as shown in FIG5 , the method further includes:
[0147] Step S502: Determine the limb speed information of each first limb based on the limb trajectory information of each first limb.
[0148] The limb trajectory information includes the limb endpoint positions of the first limb at at least two moments; and determining the limb velocity information of each first limb based on the limb trajectory information of each first limb includes:
[0149] For each first limb, determine the first time relationship of the first limb at at least two moments; determine the limb speed information of the first limb based on the limb terminal position and the first time relationship of the first limb at at least two moments.
[0150] The at least two moments may be two adjacent moments. The first time relationship refers to the time difference between the first limb and the two moments.
[0151] The first limb includes a first endpoint joint, and the limb trajectory information includes the limb endpoint positions of the first endpoint joint at at least two moments in time. For each first endpoint joint of the first limb, a first time relationship between the first endpoint joint at at least two moments in time is determined. For each first limb, limb velocity information for the first limb is determined based on the limb endpoint positions and the first time relationship between the endpoint joint of the first limb at at least two moments in time.
[0152] In this embodiment, for each first limb, the first time relationship of the targeted first limb at at least two moments is determined, and the time relationship between the same first limb at different moments can be determined. Based on the limb endpoint position and the first time relationship of the targeted first limb at at least two moments, the limb velocity information of the targeted first limb can be accurately determined.
[0153] Step S504: In each iteration, based on the predicted trajectory information of each second limb, determine the predicted speed information of each second limb.
[0154] The predicted speed information refers to the predicted information on the speed of the second limb.
[0155] In this embodiment, the initial trajectory information also includes the initial endpoint positions of the second limb at at least two moments, and the predicted trajectory information includes the predicted endpoint positions of the second limb at at least two moments;
[0156] In each iteration, based on the predicted trajectory information of each second limb, the predicted velocity information of each second limb is determined, including:
[0157] In each iteration, for each second limb, the second time relationship of the second limb at at least two moments is determined; based on the predicted end position and the second time relationship of the second limb at at least two moments, the predicted speed information of the second limb is determined.
[0158] In this embodiment, the initial trajectory information also includes the initial terminal position of the second terminal joint of the second limb at at least two moments, and the predicted trajectory information includes the predicted terminal position of the second terminal joint of the second limb at at least two moments; in each iteration, for the second terminal joint of each second limb, the second time relationship of the second terminal joint at at least two moments is determined; for each second limb, the predicted speed information of the second limb is determined based on the predicted terminal position and the second time relationship of the second terminal joint of the second limb at at least two moments.
[0159] The at least two moments may be two adjacent moments. The second time relationship refers to the time difference between the second limb and the two moments.
[0160] In this embodiment, the predicted end position of the second limb at two adjacent moments is determined, and the distance between the two predicted end positions is determined. Based on the time difference between the two adjacent moments and the distance, the predicted speed information of the second limb is determined.
[0161] In this embodiment, in each iteration, for each second limb, the second time relationship of the second limb at at least two moments is determined, and the time relationship between the same second limb at different moments can be determined. Based on the predicted endpoint position of the second limb at at least two moments and the second time relationship, the predicted speed information of the second limb is accurately determined.
[0162] Step S506: For each iteration, based on the limb speed information of each first limb in the iteration and the predicted speed information of the corresponding second limb, determine the timing constraint information between each first limb and the corresponding second limb in the iteration.
[0163] The timing constraint information refers to the timing constraint information when the limb trajectory information of the first limb is transferred to the second limb of the second object. Specifically, it can be the timing constraint information when the limb end position of the first limb at each moment is transferred to the corresponding second limb.
[0164] The computer device generates timing constraint information between each first limb and the corresponding second limb in the iteration based on the limb speed information of each of the multiple first limbs and the predicted speed information in the iteration.
[0165] Based on the single limb constraint information and the limb interaction constraint information of each iteration, target offset information is filtered out from the candidate offset information of each iteration, including step S508:
[0166] Step S508 : Filtering target offset information from candidate offset information of each iteration based on the single limb constraint information, limb interaction constraint information, and timing constraint information of each iteration.
[0167] For each second limb, the computer device determines target offset information for the second limb from the candidate offset information for each iteration based on the single-limb constraint information, limb interaction constraint information, and timing constraint information for the second limb in each iteration. Based on the target offset information for the second limb, the initial trajectory information for the second limb is corrected to obtain target trajectory information for the second limb.
[0168] In this embodiment, for each second limb, based on the single limb constraint information, limb interaction constraint information, and timing constraint information of the second limb in each iteration, the target offset information for the second limb is determined from the candidate offset information of each iteration, including:
[0169] For each iteration, the target constraint information of each second limb in the iteration is determined based on the limb interaction constraint information and the single limb constraint information of each second limb in the iteration; for each second limb, the target offset information of the second limb is determined from the candidate offset information of each iteration according to the target constraint information and timing constraint information of the second limb in each iteration.
[0170] In this embodiment, for each iteration, based on the limb interaction constraint information and the single limb constraint information of each second limb in the iteration, target constraint information for each second limb in the iteration is determined, including:
[0171] Determine the weight parameters of the single limb constraint information and the weight parameters of the limb interaction constraint information; for each iteration, determine the target constraint information of each second limb in the iteration based on the limb interaction constraint information in the iteration, the single limb constraint information of each second limb and the weight parameters.
[0172] In one embodiment, for each second limb, determining target trajectory information of the second limb according to target constraint information and timing constraint information corresponding to the second limb in each iteration includes:
[0173] For each second limb, the target offset information corresponding to the second limb is determined from the candidate offset information of each iteration according to the target constraint information and timing constraint information corresponding to the second limb in each iteration; the corresponding initial trajectory information is corrected based on the target offset information corresponding to the second limb to obtain the target trajectory information of the second limb.
[0174] In this embodiment, for each second limb, according to the target constraint information and timing constraint information corresponding to the second limb in each iteration, the target offset information corresponding to the second limb is determined from the candidate offset information of each iteration, including:
[0175] For each second limb, from the timing constraint information of the targeted second limb in each iteration, the target timing constraint information that meets the timing conditions is screened out; the target iteration to which each target timing constraint information belongs is determined; from the candidate offset information of each target iteration, the candidate offset information that makes the target constraint information in the corresponding target iteration meet the correction conditions is selected as the target offset information corresponding to the targeted second limb.
[0176] In this embodiment, the limb velocity information of each first limb is determined based on the limb trajectory information of each first limb. For each iteration, the predicted velocity information of each second limb in the iteration is determined based on the initial trajectory information of each second limb and the candidate offset information of the iteration. Based on the limb velocity information of multiple first limbs and the predicted velocity information in the iteration, the timing constraint information between the first object and the second object in the iteration is generated to constrain the migration of the limb trajectories at different moments through the timing constraint information. For each second limb, the target offset information is screened from the candidate offset information of each iteration based on multiple constraints such as the single limb constraint information, limb interaction constraint information, and timing constraint information of the second limb in each iteration. This makes the determined target offset information more consistent with the characteristics of the second limb, thereby improving the accuracy of trajectory migration.
[0177] In one embodiment, a first limb is connected to a first foot of a first object, and a second limb is connected to a second foot of a second object; for each iteration, determining timing constraint information between each first limb and the corresponding second limb in the iteration based on limb velocity information of each first limb and predicted velocity information of the corresponding second limb in the iteration includes:
[0178] Determine a first foot length for each first foot and determine a second foot length for each second foot; for each iteration, determine timing constraint information between each first limb and the corresponding second limb in the iteration based on the limb velocity information, the first foot length, the second foot length, and the predicted velocity information in the iteration.
[0179] The first limb is the lower limb of the first subject, and the second limb is the lower limb of the second subject. The first subject has at least two first limbs and at least two first feet. The at least two first limbs and at least two first feet have a one-to-one correspondence, i.e., one first limb is connected to one first foot. The second subject has at least two second limbs and at least two second feet. The at least two second limbs and at least two second feet have a one-to-one correspondence, i.e., one second limb is connected to one second foot.
[0180] In this embodiment, the first limb has the first subject's hip joint as a first starting joint and the first subject's ankle joint as a first ending joint. The second limb has the second subject's hip joint as a second starting joint and the second subject's ankle joint as a second ending joint.
[0181] The computer device determines the length of each first foot, i.e., the first foot length. For each first limb, the computer device determines a first ratio of the limb velocity information of the first limb to the first foot length, i.e., obtains a first ratio corresponding to the first limb.
[0182] The computer device determines the length of each second foot, i.e., the second foot length. In the iteration, a second ratio is determined between the predicted velocity information of each second limb in the iteration and the corresponding second foot length, i.e., a second ratio corresponding to each second limb in the iteration.
[0183] The computer device determines a difference between the first ratio of the targeted first limb and the second ratio of the corresponding second limb in the current iteration, and uses the difference as timing constraint information between the targeted first limb and the corresponding second limb in the current iteration. Timing constraint information between each second limb and the corresponding first limb in each iteration can be obtained by similar processing.
[0184] In this embodiment, the first foot length of each first foot and the second foot length of each second foot are determined, so as to generate timing constraint information between each first limb and the corresponding second limb in the iteration based on the speed information of each limb, the length of each first foot, the length of each second foot and the predicted speed information in the iteration. In this way, the migration of limb trajectories at different moments can be constrained by the timing constraint information, so that the posture and interaction relationship of the first limb at different moments can be accurately transferred to the second limb at the corresponding moment, avoiding problems such as sliding of the second limb after migration due to timing confusion, and further improving the accuracy of migration.
[0185] In one embodiment, for each second limb, determining target trajectory information of the second limb based on the single limb constraint information, limb interaction constraint information, and timing constraint information of the second limb in each iteration includes:
[0186] For each second limb, the target offset information corresponding to the targeted second limb is determined from the candidate offset information of each iteration based on the single limb constraint information, limb interaction constraint information and timing constraint information of the targeted second limb in each iteration; based on the target offset information corresponding to the targeted second limb, the corresponding initial trajectory information is corrected to obtain the target trajectory information of the targeted second limb.
[0187] For each iteration, the computer device determines target constraint information corresponding to each second limb in the targeted iteration based on the limb interaction constraint information in the targeted iteration and the single-limb constraint information corresponding to each second limb. For each second limb, the target offset information corresponding to the targeted second limb is determined from the candidate offset information for each iteration based on the target constraint information and timing constraint information corresponding to the targeted second limb in each iteration. The corresponding initial trajectory information is corrected based on the target offset information corresponding to the targeted second limb to obtain the target trajectory information for the targeted second limb.
[0188] In this embodiment, the initial trajectory information includes the initial end point position of the second limb. Based on the target offset information corresponding to the second limb, the initial end point position of the second limb is corrected to obtain the target end point position of the second limb, and the target end point position is used as the target trajectory information.
[0189] In this embodiment, for each second limb, the target offset information corresponding to the targeted second limb is determined from the candidate offset information of each iteration based on the single-limb constraint information, limb interaction constraint information, and timing constraint information of the targeted second limb in each iteration. This ensures that the determined target offset information can simultaneously satisfy multiple constraints, such as single-joint chain constraints, multi-joint chain constraints, and timing constraints, thereby making the determined target offset information more accurate. Based on the target offset information corresponding to the targeted second limb, the corresponding initial trajectory information is corrected to obtain the target trajectory information for the targeted second limb. This corrected target trajectory information is more consistent with the characteristics of the second limb, thereby improving the accuracy of trajectory migration.
[0190] In one embodiment, as shown in FIG6 , based on the single limb constraint information, limb interaction constraint information, and timing constraint information of each iteration, target offset information is filtered out from candidate offset information of each iteration, including:
[0191] Step S602 : for each second limb, filter out target timing constraint information that meets the timing conditions from the timing constraint information of the second limb in each iteration.
[0192] The computer device obtains the preset timing conditions. For each second limb, the computer device filters out the timing constraint information that meets the timing conditions from the timing constraint information of the targeted second limb in each iteration. The filtered timing constraint information is the target timing constraint information.
[0193] In this embodiment, the timing condition may specifically be a timing threshold, and the timing constraint information may include a timing constraint value. The computer device compares the timing constraint value of the second limb in each iteration with the timing threshold, and selects the timing constraint value that is less than the timing threshold as the target timing constraint value. For example, the timing threshold may be 10 -6 , filter out less than 10 -6 The timing constraint value is used as the target timing constraint value.
[0194] Step S604: Determine the target iteration to which each target timing constraint information belongs.
[0195] For each target timing constraint information of each second limb, the computer device determines the target iteration to which the target timing constraint information belongs, and thus obtains the target iteration corresponding to the second limb. By similar processing, the target iteration corresponding to each second limb can be obtained.
[0196] Furthermore, the computer device determines each target timing constraint value corresponding to the second limb, and determines to which iteration each target timing constraint value belongs.
[0197] Step S606: Select the candidate offset information from each target iteration so that the single limb constraint information and the limb interaction constraint information in the corresponding target iteration meet the correction conditions as the target offset information corresponding to the second limb.
[0198] The correction condition refers to the condition used to select target offset information from candidate offset information of multiple target iterations.
[0199] For each iteration, the computer device determines the target constraint information corresponding to each second limb in the iteration based on the limb interaction constraint information in the iteration and the single limb constraint information corresponding to each second limb.
[0200] The computer device selects the candidate offset information from the candidate offset information of each target iteration so that the target constraint information in the corresponding target iteration meets the correction condition, and uses the selected candidate offset information as the target offset information corresponding to the second limb.
[0201] In this embodiment, the single-limb constraint information includes a single-joint chain constraint value, the limb interaction constraint information includes a joint chain interaction constraint value, and the target constraint information includes a target constraint value. The correction condition may specifically be that the target constraint value in each target iteration is minimized. The computer device may select the minimum target constraint value from the target constraint values of the second limb in each target iteration. The candidate offset information in the target iteration to which the minimum target constraint value belongs is used as the target offset information corresponding to the second limb.
[0202] In this embodiment, the timing constraint information is used as a constraint condition that must be met. For each second limb, the target timing constraint information that meets the timing condition is screened out from the timing constraint information of the targeted second limb in each iteration, so that the candidate offset information that makes the timing constraint information meet the condition can be screened out, which can effectively avoid problems such as sliding after migration caused by timing disorder. The target iteration to which each target timing constraint information belongs is determined, and from the candidate offset information of each target iteration, the candidate offset information that makes the single limb constraint information and the limb interaction constraint information in the corresponding target iteration meet the correction condition is selected as the target offset information corresponding to the targeted second limb. On the basis of the screening based on the timing condition, the screened candidate offset information is screened again, so that the target offset information that makes the single limb constraint information and the limb interaction constraint information meet the correction condition can be screened out. The initial trajectory of the second limb is corrected by the target offset information to obtain an accurate target trajectory.
[0203] In one embodiment, the first limb includes a first joint chain, which is formed by connecting multiple joints of the first object and parts between the multiple joints. The second limb includes a second joint chain, which is formed by connecting multiple joints of the second object and parts between the multiple joints. The single limb constraint information is the constraint information between the first joint chain and the second joint chain. The limb interaction constraint information is the constraint information between the first interaction relationship and the second interaction relationship. The first interaction relationship is the interaction relationship between at least two first joint chains, and the second interaction relationship is the interaction relationship between at least two second joint chains.
[0204] The first object has multiple first limbs. Each first limb has multiple joints and at least one portion connecting the multiple joints. The multiple joints of the first limb and the portions between the multiple joints are connected to form a first joint chain. The multiple joints of the first limb include a first starting joint and a first ending joint.
[0205] The second object has multiple second limbs. Each second limb has multiple joints and at least one portion connecting the multiple joints. The multiple joints of the second limb and the portions between the multiple joints are connected to form a second joint chain. The multiple joints of the second limb include a second starting joint and a second ending joint.
[0206] Single-limb constraint information refers to single-joint chain constraints. This information constrains the pose of a single joint chain. When migrating limb trajectory information, the pose of the first joint chain is transferred to the second joint chain, giving the second joint chain the same pose as the first. This single-joint chain constraint constrains the transferred pose so that it matches the pose of the second joint chain.
[0207] Limb interaction constraint information refers to multi-joint chain interaction constraint information. This information constrains the interaction relationships between the joint chains. When migrating limb trajectory information, the first interaction relationship between two first joint chains is migrated to two second joint chains, resulting in a second interaction relationship between the two second joint chains. This multi-joint chain interaction constraint information is used to constrain the migrated interaction relationships, ensuring that the coordination between the two joint chains is taken into account during the migration, thereby ensuring more accurate limb trajectory migration.
[0208] In one embodiment, a trajectory information processing method is provided, which is applied to a computer device and includes:
[0209] Obtain the limb starting position and limb ending position of each of the multiple first limbs of the first object; determine the first limb length of each first limb, and the second limb length of each of the multiple second limbs of the second object; for each first limb, adjust the limb starting position and limb ending position of the targeted first limb according to the first limb length and the corresponding second limb length of the targeted first limb, and generate the initial starting position and initial ending position corresponding to the corresponding second limb.
[0210] For each first limb, the limb posture information corresponding to the first limb is determined based on the limb starting position, limb ending position and first limb length of the first limb; the limb interaction information between multiple first limbs is determined based on the limb starting position and limb ending position of each of the multiple first limbs.
[0211] Obtain the candidate offset information for each iteration, and for each iteration, correct the initial starting position and initial ending position of each second limb based on the candidate offset information for the iteration, to obtain the predicted starting position and predicted ending position corresponding to each second limb in the iteration.
[0212] Based on the predicted starting position, predicted ending position and second limb length corresponding to each second limb in the targeted iteration, the predicted posture information corresponding to each second limb in the targeted iteration is determined; based on the predicted starting position and predicted ending position of multiple second limbs in the targeted iteration, the predicted interaction information between multiple second limbs in the targeted iteration is determined.
[0213] In each iteration, for each first limb, based on the limb posture information of the first limb and the predicted posture information of the corresponding second limb, single limb constraint information between the first limb and the corresponding second limb is generated; based on the limb interaction information between the multiple first limbs and the predicted interaction information in each iteration, limb interaction constraint information between the first object and the second object in each iteration is generated;
[0214] Determine the weight parameters of the single limb constraint information based on the limb starting point positions and limb ending point positions of each of the multiple first limbs; determine the weight parameters corresponding to the limb interaction constraint information based on the weight parameters corresponding to the single limb constraint information; for each iteration, determine the target constraint information corresponding to each second limb in the iteration based on the limb interaction constraint information in the iteration, the single limb constraint information corresponding to each second limb, and the weight parameters;
[0215] For each iteration, determining predicted speed information for each second limb in the iteration based on the predicted endpoint position of each second limb and the candidate offset information for the iteration;
[0216] Determine the first foot lengths of the feet connected to each of the multiple first limbs and the second foot lengths of the feet connected to each of the multiple second limbs; based on the speed information of each limb, the first foot lengths, the second foot lengths and the predicted speed information in the iteration, generate timing constraint information between the first object and the second object in the iteration.
[0217] For each second limb, from the timing constraint information of the targeted second limb in each iteration, the target timing constraint information that meets the timing conditions is screened out; the target iteration to which each target timing constraint information belongs is determined; from the candidate offset information of each target iteration, the candidate offset information that makes the target constraint information in the corresponding target iteration meet the correction conditions is selected as the target offset information corresponding to the targeted second limb.
[0218] The corresponding initial trajectory information is corrected based on the target offset information corresponding to the second limb to obtain the target trajectory information of the second limb.
[0219] In one embodiment, a trajectory information processing method is provided, which is applied to animation redirection scenarios. Animation redirection aims to migrate the animation resources of an existing object to a new object. Based on this technology, when a new animation object is completed, there is no need to make additional animations for the new animation object, but the existing animation can be reused at zero cost. Animation redirection is an essential part of the mainstream animation production process. The trajectory information processing method of this embodiment can replace the footstep trajectory migration method of traditional animation redirection and be directly combined with the existing animation production process. In terms of specific applications, the trajectory information processing method of this embodiment can be applied to any scene that requires reuse of animations, such as three-dimensional games, metaverse products, virtual live broadcasts, film and television media, etc., but not limited to this. The footstep trajectories of an animation sequence can be migrated between any objects without the need for animators to make corresponding animations for each object separately, thereby achieving zero-cost reuse of animation materials.
[0220] Animation sequences refer to the logic and data behind driving object motion and achieving dynamic effects. They are widely used in games, film, and television, and can be seen in the movements of objects in 3D games. In this embodiment, an "animation sequence" can be the physical animation of an object in a 3D scene.
[0221] Animation retargeting refers to the transfer of animation sequences between different objects. For example, if there is an animation sequence for object A and a model for object B, animation retargeting involves transferring the animation sequence from object A to object B, preserving the motion characteristics of object A, such as joint bending and movement trends, while adapting to the object characteristics of object B, such as skeleton topology and model shape.
[0222] A footstep trajectory, or limb trajectory information, refers to the trajectory consisting of the footstep positions of an object in each frame of a given animation sequence. Taking a humanoid object as an example, the target limb is the humanoid's lower limb, and the footstep positions are the position sequence of the ankle joints. The first object is the character whose animation is to be migrated, that is, Object A in the animation redirection definition. The original animation, or limb trajectory information, refers to the animation sequence to be migrated, that is, the animation sequence of Object A in the animation redirection definition. The second object is the target of the animation migration, that is, Object B in the animation redirection definition.
[0223] The binding pose is the preset pose. When a modeler creates a 3D model, the default pose used for binding bones is usually A-pose or T-pose, as shown in Figures 3 and 4.
[0224] The overall process of the trajectory information processing method in this embodiment is shown in Figure 7. The input is the footstep trajectory of the first subject, and the output is the footstep trajectory of the second subject performing the same action. The footstep trajectory of the first subject can be obtained by reading an offline animation file in .fbx format or through a real-time animation stream. The overall process is divided into four steps: 1. Preliminary adjustment of the footstep trajectory of the original animation; 2. Constructing joint chain constraints for the subject's lower limbs; 3. Constructing timing constraints for the footstep trajectory; 4. Constructing and solving a constrained migration problem, outputting the footstep trajectory of the second subject.
[0225] In this embodiment, a wavy line is added to the corresponding symbol of the first object to represent the corresponding physical quantity of the second object. For example, L represents the length of the lower limb of the first object, then Represents the length of the second subject's lower limb.
[0226] 1. Initially adjust the footstep trajectory of the original animation
[0227] The original animation is divided into multiple frames according to the duration. The footstep trajectory of the original animation is adjusted according to the body proportions of the first and second objects. The length of the lower limbs of the first object is L. The footstep trajectory of the first object is X. k , including the three-dimensional coordinates of the footsteps of the first object in each frame, that is, the starting position of the limb, and may include the end position of the limb. The footstep trajectory of the second object is The initial three-dimensional coordinates of the footsteps of the second object in each frame, that is, the initial starting position, may also include the initial end position. It can be calculated by the following formula:
[0228] For example, the footstep trajectory X of the first object k Including the three-dimensional coordinates of the footsteps of the first object in the k-th frame, the initial three-dimensional coordinates corresponding to the footsteps of the second object in the k-th frame can be obtained through the above formula.
[0229] This step roughly adjusts the footstep trajectory of the original animation. The resulting footstep trajectory can be adapted to the body proportions of the second object and used as input for subsequent steps.
[0230] 2. Construction of joint chain constraints for the object's lower limbs
[0231] The object's lower limbs are modeled in a joint chain data format, and the original animation's footstep trajectory information is encoded as joint chain constraints, including: 1) encoding a single lower limb posture with a single joint chain constraint; 2) encoding the interaction information between lower limbs with multiple joint chain constraints. The specific process is as follows:
[0232] 1) Single joint chain constraint encoding a single lower limb posture
[0233] The three-dimensional coordinate X of the footstep of the first object in the kth frame of the animation k , which may include the three-dimensional coordinates of the starting point and the end point (i.e., the thigh root and the ankle joint) of the joint chain j of the first object's lower limb, respectively The initial three-dimensional coordinates of the second object's footsteps in the kth frame The initial 3D coordinates of the starting point and the ending point of the joint chain j of the second subject's lower limb are included. The initial 3D coordinates of the starting point and the ending point corresponding to the second subject's footstep in the k-th frame are corrected based on the candidate offset to obtain the predicted 3D coordinates of the starting point and the ending point of the second subject's footstep in the k-th frame, i.e., the predicted starting position and the predicted ending position.
[0234] Consider a single lower limb pose, encoded as a normalized vector pointing from the start point to the end point of a lower limb joint chain. For example, if both the first and second objects are humanoids, the joint chain consists of several joints with parent-child relationships and their corresponding bones. As shown in Figure 8, the thigh, knee, and ankle joints, along with the bones between them, are organized into a joint chain. Adjusting the joint's translation and rotation, among other transformations, drives the motion of the bones in the joint chain, and thus the entire object.
[0235] The three-dimensional coordinates of the starting point and end point of joint chain j (i.e., thigh root and ankle joint) in the kth frame of the animation are The sum of the lengths of the bones in joint chain j (i.e., the lengths connecting the thigh joint, knee joint, and ankle joint) is L j , the corresponding normalized vector for:
[0236] According to this formula, the limb posture information corresponding to the lower limb of the first object in the kth frame can be obtained: According to the predicted three-dimensional coordinates of the starting point and the end point of the joint chain j of the second object, the predicted posture information corresponding to the lower limb of the second object in the kth frame can be obtained.
[0237] The single joint chain constraint is designed to keep the single lower limb posture of the first object and the second object consistent. The number of lower limb joint chains of the objects is M. The single joint chain constraint at the kth frame of the animation is Defined as:
[0238] 2) Multi-joint chain constraints encode interaction information between lower limbs
[0239] Multi-joint chain constraints are joint chain interaction constraints. Considering the interaction information between the lower limbs, it is encoded as a normalized vector between the ends of the joint chains of different lower limbs. As shown in Figure 9, taking a humanoid object as an example, the left and right leg joint chains of the first object in the kth frame of the original animation are denoted as the i-th and j-th joint chains, and the positions of their end joints (i.e., ankle joints) are respectively The positions of the starting joints of the two joint chains (i.e. the thigh joints) in the binding posture are Then the normalized vector between joint chain i and joint chain j of the first object is defined as:
[0240] For example, let the left and right leg joint chains of the first object in the kth frame of the original animation be the 0th and 1st joint chains, and the positions of their end joints are The starting positions of the two joint chains in the binding pose are Ps0 and Ps1 respectively, then the normalized vector between joint chain 0 and joint chain 1 of the first object is defined as:
[0241] The normalized vector between the joint chain 0 and the joint chain 1 of the first object is the limb interaction information between the joint chain 0 and the joint chain 1 of the first object. Following a similar process, the predicted interaction information between the joint chain 0 and the joint chain 1 of the second object can be obtained.
[0242] The above normalized vectors can be obtained between all the lower limb joint chains of the object. The number of lower limb joint chains of the object is M. The multi-joint chain constraint at the kth frame of the animation Defined as:
[0243] 3) Combination of single-joint chain and multi-joint chain constraints
[0244] As shown in Figure 10, according to the adaptive combination of the above two types of lower limb semantics based on the action of the object's lower limbs, the three-dimensional coordinates between the end joints of joint chain i and joint chain j in the kth frame of the original animation are recorded as The Euclidean distance of the starting joint in the original character binding posture is Ls ij , defined at the kth frame of the animation, the target constraint obtained after combination for:
[0245] Among them, the weight parameter
[0246] 3. Construction of footstep trajectory timing constraints
[0247] Based on the construction of timing constraints on the footstep trajectory, the goal is to maintain the dynamic information of the original character's footstep trajectory and avoid sliding. The velocity of the jth lower limb joint chain end joint in the kth frame of the original animation is The length of the first subject's foot is L f (For a humanoid object, the foot length is the Euclidean distance between the ankle joint and the toe joint.) The timing constraint at the kth frame of the animation Defined as:
[0248] Among them, the foot length of the second object is The velocity of the end joint of the j-th lower limb joint chain of the second object in the k-th frame is Should It is calculated based on the predicted three-dimensional coordinates of the endpoint joint in the kth frame and the predicted three-dimensional coordinates of the endpoint joint in the adjacent frames.
[0249] 4. Migration Problem Construction and Solution
[0250] Based on single-joint chain constraints, double-joint chain constraints, and timing constraints, a constrained migration problem is constructed to solve the target character's footstep trajectory. The offset is the horizontal displacement of the second character's initial footstep trajectory. For a humanoid character, as shown in Figure 11, the offset is the horizontal and vertical displacement of the left and right ankle joints (black circles).
[0251] During the migration process, in order to avoid obvious defects such as sliding, the timing constraints of step 3 are set as hard constraints, that is, the solution must meet this constraint; the joint chain constraints of step 2 have a relatively low priority and are set as soft constraints, that is, the soft constraints are met as much as possible under the premise of meeting the hard constraints. At the kth frame of the animation, the constraints of the migration problem are defined as follows:
[0252] The migration solution uses the local migration algorithm COBYLA, and the convergence condition is that the change between the offsets in two consecutive iterations is less than 10 -5 , that is, when the difference between the candidate offsets used in two adjacent iterations is less than 10 -5The iteration stops when . The candidate offset used in each iteration is different. The processing of each iteration refers to step 1 to step 4 to obtain the target constraint value in each iteration. and timing constraint values
[0253] Get the target constraint value for each iteration and timing constraint values After that, first start from each timing constraint value Filter out less than 10 -6 The timing constraint value of the selected timing constraint value is determined, and the iteration to which the selected timing constraint value belongs is determined. From the target constraint value of the owning iteration Select the minimum objective constraint value And the minimum objective constraint value The candidate offset in the iteration is used as the target offset to obtain the offset of the second object's footstep trajectory in the horizontal plane. The target offset is applied to the second object's footstep trajectory to output the final second object's footstep trajectory.
[0254] In this embodiment, other migration solution methods can be used to replace the COBYLA algorithm, such as the gradient-based SLSQP or the global migration-based StoGO algorithm, but are not limited thereto.
[0255] The trajectory information processing method in this embodiment is a footstep trajectory migration method for animation redirection. By using a joint chain to model the legs, the footstep trajectory information of the original animation is encoded into the constraint information of the joint chain. Based on this information, a constrained migration problem is constructed, and the footstep trajectory of the target character is obtained by solving it, thereby solving the problem of footstep trajectory migration in animation redirection.
[0256] The trajectory information processing method in this embodiment proposes a constraint information construction scheme based on single-joint and double-joint chains, as well as an adaptive constraint combination method. This method can simultaneously encode the lower limb posture and lower limb interaction information of the original animation, and output footstep trajectories that preserve the original animation lower limb posture and interaction relationship between the lower limbs. Furthermore, the proposed timing constraints can avoid problems such as slipping during footstep trajectory migration. This trajectory information processing method is applicable to footstep trajectory migration between objects with any number of lower limb joints and has strong generalization and robustness.
[0257] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0258] Based on the same inventive concept, the present application also provides a trajectory information processing device for implementing the aforementioned trajectory information processing method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more trajectory information processing device embodiments provided below can be found in the above-mentioned limitations of the trajectory information processing method and will not be repeated here.
[0259] In one embodiment, as shown in FIG12 , a trajectory information processing device 1200 is provided, comprising: a migration module 1202 , a prediction module 1204 , a first generation module 1206 , a second generation module 1208 , and a correction module 1210 , wherein:
[0260] The migration module 1202 is used to obtain the limb trajectory information of at least two first limbs of the first object, and the at least two first limbs of the first object correspond one-to-one to the at least two second limbs of the second object; the limb trajectory information is migrated from each first limb of the first object to the corresponding second limb of the second object to obtain the initial trajectory information of each second limb.
[0261] Prediction module 1204 is used to determine the limb posture information of each first limb and the limb interaction information between at least two first limbs based on the limb trajectory information of each first limb; pre-correct the initial trajectory information of each second limb to obtain the predicted posture information of each second limb and the predicted interaction information between at least two second limbs.
[0262] The first generation module 1206 is used to determine single-limb constraint information between each first limb and the corresponding second limb based on the limb posture information and the predicted posture information.
[0263] The second generating module 1208 is configured to determine limb interaction constraint information between the first object and the second object according to the limb interaction information and the predicted interaction information.
[0264] The correction module 1210 is used to correct the initial trajectory information of each second limb based on each single limb constraint information and limb interaction constraint information to obtain the target trajectory information of each second limb.
[0265] In this embodiment, limb trajectory information is obtained for each of at least two first limbs of a first subject. The at least two first limbs of the first subject correspond one-to-one with at least two second limbs of a second subject to determine to which second limb the limb trajectory information of the first limb should be transferred. Limb trajectory information is transferred from each first limb of the first subject to the corresponding second limb of the second subject to preliminarily obtain initial trajectory information for each second limb. Based on the limb trajectory information of each first limb, limb posture information of each first limb and limb interaction information between at least two first limbs are determined, thereby determining the posture of each first limb and the interaction relationship between multiple first limbs. The initial trajectory information of each second limb is pre-corrected to estimate the posture of each second limb after pre-correction, as well as the interaction relationship between each second limb after pre-correction. Based on the limb posture information of each first limb and the predicted posture information of the corresponding second limb, single-limb constraint information is determined between each first limb and the corresponding second limb. The generated single-limb constraint information enables the second limb to obtain the posture of the first limb. Based on the limb interaction information and the predicted interaction information, limb interaction constraint information between the first object and the second object is determined. This limb interaction constraint information enables multiple second limbs to obtain interaction relationships between multiple first limbs. Based on each single limb constraint information and the limb interaction constraint information, the initial trajectory information of each second limb is corrected to obtain the target trajectory information of each second limb. This allows each second limb of the second object to obtain a posture consistent with each first limb of the first object, and the interaction relationship between each second limb is also consistent with the interaction relationship between each first limb, thereby making the migration of trajectory information more accurate.
[0266] In one embodiment, the migration module 1202 is also used to determine the first limb length of each first limb and the second limb length of each second limb; for each first limb, the limb trajectory information of the first limb is adjusted according to the first limb length of the first limb and the second limb length of the corresponding second limb to obtain the initial trajectory information of each second limb.
[0267] In this embodiment, the first limb length of each first limb and the second limb length of each second limb are determined. For each first limb, the limb trajectory information of the first limb is adjusted based on the first limb length of the first limb and the second limb length of the corresponding second limb, so that the limb trajectory information of the first limb can be transferred to the corresponding second limb. Furthermore, the transfer is combined with the limb length information so that the transferred trajectory information is proportionally consistent with the limb of the second object, thereby roughly generating the initial trajectory information of each second limb.
[0268] In one embodiment, the prediction module 1204 is also used to obtain candidate offset information for each iteration; for each iteration, based on the candidate offset information for the iteration, the initial trajectory information of each second limb is pre-corrected to obtain predicted posture information of each second limb, as well as predicted interaction information between at least two second limbs.
[0269] The correction module 1210 is further used to correct the initial trajectory information of each second limb based on the single-limb constraint information and limb interaction constraint information of each iteration, and obtain the target trajectory information of each second limb.
[0270] In this embodiment, candidate offset information is obtained for each iteration, and for each iteration, the initial trajectory information of each second limb is pre-corrected based on the candidate offset information for the iteration, and the predicted posture information of each second limb and the predicted interaction information between at least two second limbs are obtained. The initial trajectory information can be pre-corrected through the candidate offset information to predict the posture of each second limb in the second object after correction, as well as the interaction between the second limbs after correction. Moreover, pre-correction is performed once in each iteration, and the posture of a single second limb of the second object and the interaction between multiple second limbs can be predicted multiple times through multiple iterations. In each iteration, the single limb constraint information between the first limb and the second limb is determined based on the limb posture information before migration and the predicted posture information after pre-correction, so that the posture characteristics of the single limb are taken into account when the limb migration information is transferred. The generated single limb constraint information can enable the single second limb to maintain a posture consistent with the single first limb. Based on the limb interaction information and the predicted interaction information of each iteration, limb interaction constraint information between the first object and the second object in each iteration is generated. The limb interaction constraint information enables multiple second limbs to obtain the interaction relationship between multiple first limbs, thereby making the migration of trajectory information more accurate.
[0271] In one embodiment, the prediction module 1204 is also used to pre-correct the initial trajectory information of each second limb based on the candidate offset information of the iteration for each iteration to obtain the predicted trajectory information of each second limb; determine the predicted posture information of each second limb based on the predicted trajectory information of each second limb; and determine the predicted interaction information between at least two second limbs based on the predicted trajectory information of each second limb.
[0272] In this embodiment, for each iteration, the initial starting position and initial ending position of each second limb are corrected based on the candidate offset information for that iteration, thereby obtaining a predicted starting position and predicted ending position corresponding to each second limb in that iteration, thereby obtaining corresponding position information based on the correction under the specific candidate offset information. Based on the predicted starting position and predicted ending position corresponding to each second limb in that iteration, the posture information of each second limb in that iteration can be accurately predicted, as well as the interaction information between multiple second limbs.
[0273] In one embodiment, the initial trajectory information includes the initial starting position and the initial ending position of the second limb; the prediction module 1204 is also used to determine the second limb length of each second limb; for each second limb, based on the predicted starting position, predicted ending position and second limb length of the second limb, the predicted posture information of the second limb is determined; and based on the predicted starting position and predicted ending position of each second limb, the predicted interaction information between at least two second limbs is determined.
[0274] In this embodiment, for each iteration, the initial starting position and initial ending position of each second limb are corrected based on the candidate offset information for that iteration, thereby obtaining a predicted starting position and predicted ending position corresponding to each second limb in that iteration, thereby obtaining corresponding position information based on the correction under the specific candidate offset information. Based on the predicted starting position and predicted ending position corresponding to each second limb in that iteration, the posture information of each second limb in that iteration can be accurately predicted, as well as the interaction information between multiple second limbs.
[0275] In one embodiment, the correction module 1210 is also used to, for each second limb, based on the single limb constraint information and limb interaction constraint information of each iteration, filter out the target offset information for the second limb from the candidate offset information of each iteration; and correct the initial trajectory information for the second limb according to the target offset information for the second limb to obtain the target trajectory information for the second limb.
[0276] In this embodiment, target offset information is filtered through multiple iterations of single-limb constraint information and limb interaction constraint information. This filtered target offset information satisfies multiple constraints, including single-limb constraints and limb interaction constraints, resulting in more accurate target offset information. Based on the target offset information for a second limb, the initial trajectory information for that second limb is corrected to obtain target trajectory information for that second limb. This corrected target trajectory information better matches the characteristics of the second target limb, thereby improving the accuracy of trajectory migration.
[0277] In one embodiment, the correction module 1210 is also used to determine the limb velocity information of each first limb based on the limb trajectory information of each first limb; in each iteration, determine the predicted velocity information of each second limb based on the predicted trajectory information of each second limb; for each iteration, determine the timing constraint information between each first limb and the corresponding second limb in the iteration based on the limb velocity information of each first limb and the predicted velocity information of the corresponding second limb; and based on the single limb constraint information, limb interaction constraint information and timing constraint information of each iteration, filter out the target offset information from the candidate offset information of each iteration.
[0278] In this embodiment, the limb velocity information of each first limb is determined based on the limb trajectory information of each first limb. For each iteration, the predicted velocity information of each second limb in the iteration is determined based on the initial trajectory information of each second limb and the candidate offset information of the iteration. Based on the limb velocity information of multiple first limbs and the predicted velocity information in the iteration, the timing constraint information between the first object and the second object in the iteration is generated to constrain the migration of the limb trajectories at different moments through the timing constraint information. For each second limb, the target offset information is screened from the candidate offset information of each iteration based on multiple constraints such as the single limb constraint information, limb interaction constraint information, and timing constraint information of the second limb in each iteration. This makes the determined target offset information more consistent with the characteristics of the second limb, thereby improving the accuracy of trajectory migration.
[0279] In one embodiment, the limb trajectory information includes the limb endpoint positions of the first limb at at least two moments;
[0280] The correction module 1210 is also used to determine, for each first limb, the first time relationship of the first limb at at least two moments; and to determine the limb speed information of the first limb based on the limb terminal position and the first time relationship of the first limb at at least two moments.
[0281] In this embodiment, for each first limb, the first time relationship of the targeted first limb at at least two moments is determined, and the time relationship between the same first limb at different moments can be determined. Based on the limb endpoint position and the first time relationship of the targeted first limb at at least two moments, the limb velocity information of the targeted first limb can be accurately determined.
[0282] In one embodiment, the initial trajectory information further includes the initial endpoint positions of the second limb at at least two moments, and the predicted trajectory information includes the predicted endpoint positions of the second limb at at least two moments;
[0283] The correction module 1210 is also used to determine, for each second limb in each iteration, the second time relationship of the second limb at at least two moments; and to determine the predicted speed information of the second limb based on the predicted end position and the second time relationship of the second limb at at least two moments.
[0284] In this embodiment, in each iteration, for each second limb, the second time relationship of the second limb at at least two moments is determined, and the time relationship between the same second limb at different moments can be determined. Based on the predicted endpoint position of the second limb at at least two moments and the second time relationship, the predicted speed information of the second limb is accurately determined.
[0285] In one embodiment, the first limb is connected to the first foot of the first object, and the second limb is connected to the second foot of the second object; the correction module 1210 is also used to determine the first foot length of each first foot and determine the second foot length of each second foot; and for each iteration, based on the limb speed information, the first foot length, the second foot length and the predicted speed information in the iteration, determine the timing constraint information between each first limb and the corresponding second limb in the iteration.
[0286] In this embodiment, the first foot length of each first foot and the second foot length of each second foot are determined, so as to generate timing constraint information between each first limb and the corresponding second limb in the iteration based on the speed information of each limb, the length of each first foot, the length of each second foot and the predicted speed information in the iteration. In this way, the migration of limb trajectories at different moments can be constrained by the timing constraint information, so that the posture and interaction relationship of the first limb at different moments can be accurately transferred to the second limb at the corresponding moment, avoiding problems such as sliding of the second limb after migration due to timing confusion, and further improving the accuracy of migration.
[0287] In one embodiment, the correction module 1210 is also used to, for each second limb, filter out target timing constraint information that meets the timing conditions from the timing constraint information of the second limb in each iteration; determine the target iteration to which each target timing constraint information belongs; and select, from the candidate offset information of each target iteration, the candidate offset information that makes the single limb constraint information and the limb interaction constraint information in the corresponding target iteration meet the correction conditions, as the target offset information for the second limb.
[0288] In one embodiment, the correction module 1210 is also used to determine the weight parameters of the single limb constraint information and the weight parameters of the limb interaction constraint information; determine the target constraint information corresponding to each second limb based on the limb interaction constraint information, the single limb constraint information and the weight parameters; and based on the target constraint information corresponding to each second limb, correct the initial trajectory information of each second limb to obtain the target trajectory information of each second limb.
[0289] In this embodiment, the weight parameters of the single-limb constraint information and the weight parameters of the limb interaction constraint information are determined to determine the proportion of the single-limb constraint information and the multi-joint chain constraint information in the trajectory migration process. In multiple iterations, based on the limb interaction constraint information in the iteration, the single-limb constraint information corresponding to each second limb, and the weight parameters, the target constraint information corresponding to each second limb in the iteration is accurately determined. Thus, the single-limb constraint information and the multi-joint chain constraint information are combined to select the final offset information to accurately determine the target trajectory information for each second limb.
[0290] In one embodiment, the limb trajectory information includes the limb starting position and the limb ending position of the first limb; the correction module 1210 is also used to determine the weight parameters of the single limb constraint information based on the limb starting position and the limb ending position of each first limb; and determine the weight parameters corresponding to the limb interaction constraint information based on the weight parameters corresponding to the single limb constraint information.
[0291] In this embodiment, the weight parameters of the single limb constraint information are determined based on the limb starting position and the limb ending position of each first limb, so that the proportion of the single limb constraint information in the trajectory migration process can be determined based on the limb starting position and the limb ending position of the first limb. According to the weight parameters corresponding to the single limb constraint information, the weight parameters corresponding to the limb interaction constraint information are determined to determine the proportion of the limb interaction constraint information in the trajectory migration process, so that the target trajectory information of the second limb can be calculated more accurately based on the single limb constraint information and the limb interaction constraint information.
[0292] In one embodiment, the limb trajectory information includes a limb starting position and a limb ending position of the first limb;
[0293] The prediction module 1204 is also used to determine the first limb length of each first limb; for each first limb, determine the limb posture information of the first limb based on the limb starting position, limb ending position and first limb length of the first limb; and determine the limb interaction information between at least two first limbs based on the limb starting position and limb ending position of each first limb.
[0294] In this embodiment, the first limb length of each first limb is determined. For each first limb, limb posture information of the first limb can be accurately determined based on the limb starting position, limb ending position, and first limb length of the first limb. Based on the limb starting position and limb ending position of each first limb, the interaction relationship between the first limbs can be accurately determined.
[0295] In one embodiment, the first limb includes a first joint chain, which is formed by connecting multiple joints of the first object and parts between the multiple joints. The second limb includes a second joint chain, which is formed by connecting multiple joints of the second object and parts between the multiple joints. The single limb constraint information is the constraint information between the first joint chain and the second joint chain. The limb interaction constraint information is the constraint information between the first interaction relationship and the second interaction relationship. The first interaction relationship is the interaction relationship between at least two first joint chains, and the second interaction relationship is the interaction relationship between at least two second joint chains.
[0296] In this embodiment, the single limb constraint information is the single joint chain constraint information, and the single joint chain constraint information is the constraint information on the posture of a single joint chain. When migrating the limb trajectory information, the posture of the first joint chain will be migrated to the second joint chain, so that the second joint chain has the posture of the first joint chain. The migrated posture is constrained by the single joint chain constraint information so that the posture migrated to the second joint chain can fit the second joint chain. The limb interaction constraint information is the multi-joint chain interaction constraint information. The multi-joint chain interaction constraint information is the constraint information on the interaction relationship of the joint chains. When migrating the limb trajectory information, the first interaction relationship between the two first joint chains will be migrated to the two second joint chains to obtain the second interaction relationship between the two second joint chains. The coordination between the two joint chains is taken into consideration during the migration, so that the migration of the limb trajectory is more accurate.
[0297] Each module in the trajectory information processing device described above can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0298] In one embodiment, a computer device is provided, which may be a terminal or a server. Taking a terminal as an example, its internal structure diagram may be shown in Figure 13. The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, while the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless means. The wireless means may be implemented via Wi-Fi, a mobile cellular network, NFC (near-field communication), or other technologies. When executed by the processor, the computer-readable instructions implement a trajectory information processing method. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0299] Those skilled in the art will understand that the structure shown in FIG13 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0300] In one embodiment, a computer device is further provided, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps in the above-mentioned method embodiments when executing the computer-readable instructions.
[0301] In one embodiment, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0302] In one embodiment, a computer program product is provided, comprising computer-readable instructions, which implement the steps in the above-mentioned method embodiments when executed by a processor.
[0303] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0304] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile computer-readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0305] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0306] The above embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A trajectory information processing method, executed by a computer device, the method comprising: Acquire limb trajectory information of at least two first limbs of a first object, wherein the at least two first limbs of the first object correspond one-to-one to the at least two second limbs of the second object; Migrating limb trajectory information from each first limb of the first object to the corresponding second limb of the second object to obtain initial trajectory information of each second limb; Determine limb posture information of each of the first limbs and limb interaction information between the at least two first limbs based on the limb trajectory information of each of the first limbs; Pre-correcting the initial trajectory information of each second limb to obtain predicted posture information of each second limb and predicted interaction information between the at least two second limbs; Determining single limb constraint information between each of the first limbs and the corresponding second limb according to the limb posture information and the predicted posture information; determining limb interaction constraint information between the first object and the second object according to the limb interaction information and the predicted interaction information; and Based on each of the single limb constraint information and the limb interaction constraint information, the initial trajectory information of each of the second limbs is corrected to obtain the target trajectory information of each of the second limbs.
2. The method according to claim 1, wherein the step of migrating limb trajectory information from each first limb of the first object to the corresponding second limb of the second object to obtain initial trajectory information of each second limb comprises: Determine a first limb length of each of the first limbs, and determine a second limb length of each of the second limbs; and For each of the first limbs, the limb trajectory information of the first limb is adjusted according to the first limb length of the first limb and the second limb length of the corresponding second limb to obtain the initial trajectory information of each of the second limbs.
3. The method according to claim 1 or 2, wherein the initial trajectory information of each second limb is pre-corrected to obtain the predicted posture information of each second limb and the predicted interaction information between the at least two second limbs, comprising: Get candidate offset information for each iteration; For each iteration, based on the candidate offset information of the iteration, pre-correct the initial trajectory information of each second limb to obtain the predicted posture information of each second limb and the predicted interaction information between the at least two second limbs; and The method of correcting the initial trajectory information of each second limb based on the single limb constraint information and the limb interaction constraint information to obtain the target trajectory information of each second limb includes: Based on each iterative single limb constraint information and limb interaction constraint information, the initial trajectory information of each second limb is corrected to obtain the target trajectory information of each second limb.
4. The method according to claim 3, wherein for each iteration, based on the candidate offset information of the iteration, the initial trajectory information of each second limb is pre-corrected to obtain the predicted posture information of each second limb and the predicted interaction information between the at least two second limbs, comprising: For each iteration, pre-correcting the initial trajectory information of each second limb based on the candidate offset information of the iteration, to obtain predicted trajectory information of each second limb; Determining predicted posture information of each second limb based on the predicted trajectory information of each second limb; and Based on the predicted trajectory information of each of the second limbs, predicted interaction information between the at least two second limbs is determined.
5. The method according to claim 4, characterized in that The initial trajectory information includes an initial starting position and an initial end position of the second limb, and the predicted trajectory information includes a predicted starting position and a predicted end position of the second limb; determining predicted posture information of each second limb based on the predicted trajectory information of each second limb, include: determining a second limb length of each of the second limbs; For each of the second limbs, determining predicted posture information for the second limb based on the predicted starting position, predicted ending position, and length of the second limb; and The step of determining predicted interaction information between the at least two second limbs based on the predicted trajectory information of each second limb comprises: The predicted interaction information between the at least two second limbs is determined according to the predicted starting position and the predicted ending position of each second limb.
6. The method according to claim 5, wherein the initial trajectory information of each second limb is corrected based on each iterative single limb constraint information and limb interaction constraint information to obtain the target trajectory information of each second limb, comprising: For each of the second limbs, based on the single limb constraint information and the limb interaction constraint information of each iteration, the target offset information for the second limb is screened out from the candidate offset information of each iteration; and According to the target offset information of the second limb, the initial trajectory information of the second limb is corrected to obtain the target trajectory information of the second limb.
7. The method according to claim 6, further comprising: Determining limb velocity information of each of the first limbs according to the limb trajectory information of each of the first limbs; In each iteration, based on the predicted trajectory information of each second limb, the predicted speed information of each second limb is determined; For each iteration, determining timing constraint information between each of the first limbs and the corresponding second limb in the iteration based on the limb velocity information of each of the first limbs in the iteration and the predicted velocity information of the corresponding second limb; and The step of selecting target offset information from candidate offset information of each iteration based on the single limb constraint information and the limb interaction constraint information of each iteration includes: Based on the single limb constraint information, the limb interaction constraint information and the timing constraint information of each iteration, target offset information is screened out from the candidate offset information of each iteration.
8. The method according to claim 7, wherein the limb trajectory information includes the limb endpoint positions of the first limb at at least two moments; The determining, according to the limb trajectory information of each of the first limbs, the limb velocity information of each of the first limbs comprises: For each of the first limbs, determining a first time relationship of the first limb at the at least two moments; and The limb speed information of the first limb is determined based on the limb endpoint position of the first limb at the at least two moments and the first time relationship.
9. The method according to claim 7, wherein the initial trajectory information further includes the initial end position of the second limb at at least two moments, and the predicted trajectory information includes the predicted end position of the second limb at at least two moments; Determining predicted speed information of each second limb based on predicted trajectory information of each second limb in each iteration includes: In each iteration, for each of the second limbs, determining a second time relationship of the second limb at the at least two moments; and The predicted speed information of the second limb is determined based on the predicted terminal position of the second limb at the at least two moments and the second time relationship.
10. The method of claim 7, wherein the first limb is connected to a first foot of the first object, and the second limb is connected to a second foot of the second object; For each iteration, based on the limb speed information of each first limb in the iteration and the predicted speed information of the corresponding second limb, the timing between each first limb and the corresponding second limb in the iteration is determined. Bundle information, including: determining a first foot length of each first foot, and determining a second foot length of each second foot; and For each iteration, timing constraint information between each first limb and the corresponding second limb in the iteration is determined based on the limb speed information, the first foot length, the second foot length and the predicted speed information in the iteration.
11. The method according to claim 7, wherein the step of filtering out target offset information from candidate offset information of each iteration based on the single limb constraint information, the limb interaction constraint information and the timing constraint information of each iteration comprises: For each of the second limbs, from the timing constraint information of the second limb in each iteration, each target timing constraint information satisfying the timing condition is screened out; Determine the target iteration to which each target timing constraint information belongs; and From the candidate offset information of each of the target iterations, the candidate offset information that makes the single limb constraint information and the limb interaction constraint information in the corresponding target iteration meet the correction condition is selected as the target offset information for the second limb.
12. The method according to claim 1, wherein the initial trajectory information of each second limb is corrected based on the single limb constraint information and the limb interaction constraint information to obtain the target trajectory information of each second limb, comprising: Determining a weight parameter of the single limb constraint information and a weight parameter of the limb interaction constraint information; Determine target constraint information corresponding to each second limb according to the limb interaction constraint information, the single limb constraint information and each weight parameter; and Based on the target constraint information corresponding to each of the second limbs, the initial trajectory information of each of the second limbs is corrected to obtain the target trajectory information of each of the second limbs.
13. The method according to claim 12, wherein the limb trajectory information includes a limb starting position and a limb ending position of the first limb; and the determining of the weight parameters of the single limb constraint information and the weight parameters of the limb interaction constraint information comprises: Determining a weight parameter of the single limb constraint information according to a limb starting point position and a limb end point position of each of the first limbs; and The weight parameter of the limb interaction constraint information is determined according to the weight parameter of the single limb constraint information.
14. The method according to any one of claims 1 to 13, wherein the limb trajectory information comprises a limb starting position and a limb ending position of the first limb; The determining, based on the limb trajectory information of each of the first limbs, the limb posture information of each of the first limbs and the limb interaction information between the at least two first limbs comprises: determining a first limb length of each of the first limbs; For each of the first limbs, determining limb posture information of the first limb according to the limb starting position, limb ending position and first limb length of the first limb; and Limb interaction information between the at least two first limbs is determined according to the limb starting position and the limb ending position of each of the first limbs.
15. According to the method described in any one of claims 1 to 14, the first limb includes a first joint chain, the first joint chain is formed by connecting multiple joints of the first object and parts between the multiple joints, the second limb includes a second joint chain, the second joint chain is formed by connecting multiple joints of the second object and parts between the multiple joints, the single limb constraint information is the constraint information between the first joint chain and the second joint chain, the limb interaction constraint information is the constraint information between the first interaction relationship and the second interaction relationship, the first interaction relationship is the interaction relationship between at least two of the first joint chains, and the second interaction relationship is the interaction relationship between at least two of the second joint chains.
16. A trajectory information processing device, the device comprising: The migration module is used to obtain limb trajectory information of at least two first limbs of a first object, wherein the at least two first limbs of the first object correspond to the at least two second limbs of the second object in a one-to-one manner; a limb to a corresponding second limb of the second object, performing migration of limb trajectory information, and obtaining initial trajectory information of each of the second limbs; A prediction module, configured to determine limb posture information of each first limb and limb interaction information between the at least two first limbs based on the limb trajectory information of each first limb; pre-correct the initial trajectory information of each second limb to obtain predicted posture information of each second limb and predicted interaction information between the at least two second limbs; A first generating module, configured to determine limb interaction constraint information between the first object and the second object according to the limb interaction information and the predicted interaction information; A second generating module, configured to determine limb interaction constraint information between the first object and the second object according to the limb interaction information and the predicted interaction information; and A correction module is used to correct the initial trajectory information of each second limb based on each single limb constraint information and the limb interaction constraint information, and obtain the target trajectory information of each second limb.
17. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the method according to any one of claims 1 to 15 when executing the computer-readable instructions.
18. A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 15.
19. A computer program product comprising computer readable instructions, which when executed by a processor implement the steps of the method according to any one of claims 1 to 15.
