A high-precision multi-view motion capture method and system

Through multi-process synchronization and LSTM network, combined with multi-view 2D key point cycle consistency multi-way matching and human structure constraints, high-precision estimation and robustness of multi-target 3D poses in multi-person multi-view motion capture technology are achieved, solving the problem The challenge of multi-view motion capture in general application scenarios enables fast and accurate multi-target matching and tracking.

CN118506458BActive Publication Date: 2024-10-11NEUTON HEALTH (WUHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410958594.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-11
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

In general application scenarios, multi-person and multi-view motion capture technology faces challenges such as human body occlusion, motion physical quantity measurement, multi-view video synchronization, and fast and accurate matching and tracking of multiple targets, making it difficult to achieve high-precision three-dimensional human posture estimation.

Method used

Multi-process synchronization is used to collect multi-view video data, the human skeleton 2D key point detection method is used to estimate the 2D key point position and confidence of each person, preliminary synchronization is performed through the world timestamp, and rough 3D key point reconstruction is performed based on the 2D skeleton key point sequence. , combining multi-view 2D key point cycle consistency multi-path matching, human structure constraints and spatio-temporal constraints for optimization, and using the LSTM network to predict human anatomy points.

Benefits of technology

It achieves high accuracy and robustness of multi-person and multi-view three-dimensional human posture estimation, quickly and accurately performs multi-target matching and tracking, is simple to operate, and can more accurately unify the timing of multiple-view videos to fully display the movements of various parts of the human body. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506458B_ABST
    Figure CN118506458B_ABST
Patent Text Reader

Abstract

The invention discloses a high-precision multi-view motion capture method and system, and relates to the technical field of computer vision. The invention collects multi-view data synchronously; performs preliminary multi-person 3D key point reconstruction based on the two-dimensional posture of a human body in each view, which includes multi-view multi-person cyclic consistency multi-path matching, human body structure constraint, spatiotemporal constraint multi-target matching tracking optimization, and triangulation reconstruction with confidence weights; projects the preliminary 3D key points to each view, normalizes and aligns with the original two-dimensional posture sequence, and performs multi-view video precise time-series synchronous reconstruction; and predicts anatomical key points that are more in line with human body movement using an LSTM network according to the three-dimensional human body posture points after refined synchronous reconstruction. The invention can realize multi-target three-dimensional human body key point tracking, and improves the accuracy and robustness of multi-person multi-view three-dimensional human body posture estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a high-precision multi-view motion capture method and system. Background Art

[0002] In recent years, with the rapid development of deep learning, human two-dimensional posture estimation has achieved high-precision and useful work. For example, a series of open source projects such as HRNet and Openpose can detect the coordinates of 2D key points of the human body in real time. However, there are still many problems in directly using single-view posture detection in some real-world tasks, such as human occlusion, measurement of physical quantities of motion, etc. Then, multi-view markerless human motion capture based on vision can detect the posture of the same target from different perspectives for three-dimensional reconstruction, which can better capture the human motion posture. However, multi-person multi-view motion capture in general scenarios faces a series of challenges, such as the use of general cameras, non-customized hardware synchronous acquisition cameras, high-precision synchronization of multi-view videos collected; fast and accurate matching and tracking of multiple targets under multiple perspectives; more in line with the key points of human anatomy to construct the posture of human motion, etc.

[0003] In summary, in general application scenarios, a simple, stable, and high-precision multi-view motion capture method and system is urgently needed. Summary of the invention

[0004] In view of the above problems, the purpose of the present invention is to provide a high-precision multi-view motion capture method and system to achieve multi-target three-dimensional human body key point tracking, thereby improving the accuracy and robustness of multi-person multi-view three-dimensional human body posture estimation.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0006] The present invention provides a high-precision multi-view motion capture method, comprising:

[0007] 1) Use multi-process to synchronously collect video data from multiple perspectives, and record the world timestamp of each frame of data in each perspective video; use the human skeleton 2D key point detection method to estimate the 2D key point position and confidence of each person in n perspectives;

[0008] 2) Perform preliminary multi-view video synchronization based on the world timestamp; perform rough 3D key point reconstruction based on the 2D skeleton key point sequence: multi-view 2D key point cycle consistency multi-way matching, human body structure constraints, spatiotemporal constraint multi-target matching tracking optimization, and triangulation reconstruction with confidence weights;

[0009] 3) After obtaining the rough 3D key points from step 2), project them to various viewing angles, reconstruct the 3D key points based on the precise alignment of the human body’s 2D posture sequence; then use the LSTM network to predict the final human anatomical points;

[0010] The rough 3D key point reconstruction step of step 2) includes:

[0011] 2-1) Preliminary video timing alignment of video frame sequences according to the world timestamp;

[0012] According to the world timestamp, the longest continuous video sequence of each perspective video is intercepted, and the continuity judgment equation is t i+1 -t i >2 / fps, where t i represents the world timestamp of the i-th frame, and fps represents the frame rate of the camera;

[0013] Taking the longest continuous sequence of a video from a certain perspective as a reference, align the longest continuous sequences in the videos from other perspectives, and calculate the time difference formula as follows:

[0014]

[0015] where d j represents the frame difference between the video of the view angle j and the video of the reference view angle b, and e, s represents the end time and the start time of the intercepted video frame and e j -s j =e b -s b ; Represents the time sequence of the view video with sequence number j;

[0016] 2-2) After the initial alignment of the video timing, multi-view 2D key points are cycle-consistently matched in multiple ways;

[0017] Multi-view 2D keypoint cycle consistency multi-way matching methods include:

[0018] 2-2-1) First, calculate the distance matrix between all targets, and construct the Plücker line by connecting the camera optical center and the 3D posture point. It means that when the 2D point on the image is back-projected, its corresponding 3D coordinate is on this Plücker line. Then the distance between their Plücker lines represents their distance. The formula is:

[0019]

[0020] Among them, A ij (x i ,x j ) represents the distance between the current target posture i and other viewpoint targets j, represents the key point of sequence number n of target i, N represents the total number of 2D key points, Represents 2D key points under viewing angle The back-projected point is connected to the camera optical center, d represents the distance function between the straight lines, A ij Represents the distance matrix between targets i and j;

[0021] 2-2-2) Multi-view multi-target matching, based on the distance matrix A ij And the cycle consistency constraint, the same target can have a match in another perspective. Assuming there is a matching matrix M, the relationship is:

[0022]

[0023] in, represents the matching relationship function, λ represents the low-rank constraint, ‖·‖ * represents the matrix nuclear norm, <·,·> represents the matrix inner product, and n represents the total number of targets to be matched;

[0024] The present invention is further configured as follows: the rough 3D key point reconstruction step of step 2) further includes:

[0025] 2-3) Based on the matching matrix M in 2-2), the corresponding 2D key points and confidences of the same target at different viewing angles are obtained, and 3D reconstruction with confidence is performed; the projection matrix of each camera is known to be P camera , the 2D key point is x and the corresponding 3D key point is X, the confidence of the 2D key point is c, then the relationship is:

[0026] cx×P camera X=0 (5),

[0027] Where × represents the cross product, and the singular value decomposition algorithm is used to solve X in the equation. The weight of the 2D point position of the target under different viewing angles in the triangulation reconstruction process is determined according to the confidence c;

[0028] 2-4) The human body structure is constrained according to the reconstructed 3D human body key points, and the length of each part of the reconstructed human body is judged to be reasonable according to the average length of the human body parts. The judgment method is:

[0029]

[0030]

[0031] 0<θ1,θ2<1, where |·| represents the absolute value function, D reconstruct , D meandenote the reconstructed and preset average human body part distances, s denotes the average human body part length adjustment factor, which adjusts the average human body preset value according to the reconstructed overall human body part length, mean(·), max(·), min(·) denote the mean, maximum and minimum functions, respectively, θ body ,θ1,θ2 represent the preset ratio thresholds;

[0032] According to the reconstructed 3D human body key points, spatiotemporal constraints are performed, and the spatiotemporal constraints include: three-dimensional coordinate position constraints and two-dimensional coordinate position constraints;

[0033] The present invention is further configured as follows: In step 2-4) performing the spatiotemporal constraint step:

[0034] The three-dimensional coordinate position constraints include: filtering out three-dimensional reconstruction targets that are not in a reasonable world coordinate space area according to the world coordinate space area after camera calibration; merging multiple reconstructed targets according to the human body distance between different reconstructed targets;

[0035] Two-dimensional coordinate position constraint: project the coordinates of the three-dimensional reconstruction to each viewing angle, and use the intersection and union ratio with the target area at the previous viewing angle to determine whether the matched target is accurate. If the intersection and union ratio is less than the judgment threshold, the 2D key points matched at the wrong viewing angle will be deleted and three-dimensional reconstruction will be performed again.

[0036] The present invention is further configured as follows: the rough 3D key point reconstruction step of step 2) further includes:

[0037] 2-5) Tracking the 3D human body points after time and space constraints, calculating the distance between the 3D points of all current human bodies and all the tracked target group members to track the target;

[0038] If the distance is less than the set distance threshold, it is considered to be the same target, otherwise it is a new target;

[0039] If a target is lost for a continuous period of time, it is removed from the group of detected targets;

[0040] 2-5) According to the tracked 3D human body points, a Euro filtering algorithm will be used to smooth the 2D human body points and the 3D human body points;

[0041] Among them, 2D human body point smoothing maintains the 2D human body point tracking relationship under each perspective according to the matching matrix P and the tracked target, constructs the tracking sequence of the target under different perspectives, and performs 2D human body point smoothing;

[0042] The 3D human body point is smoothed, and according to the smoothed 2D human body key points and the camera projection matrix, 3D reconstruction is performed again to obtain new 3D human body points, and the new 3D human body points are smoothed using an algorithm;

[0043] The present invention is further configured as follows: in step 3), the 3D key points are reconstructed based on the precise alignment of the human body's two-dimensional posture time sequence in the following manner:

[0044] 3-1) After obtaining the rough 3D key points from step 2), perform fine temporal alignment:

[0045] Select the 2D time series points and 3D time series points of the target with the longest continuous time series in each view as the input sequence for alignment, perform n-fold linear interpolation, and obtain the coordinates of the time series less than 1 / fps;

[0046] Project the interpolated three-dimensional coordinate series to each viewing angle, and normalize and align the projected two-dimensional coordinate series with the original two-dimensional coordinate series. The time series difference will be less than

[0047] When the sequences are normalized and aligned, the normalized correlation coefficient is used to represent the distance d between the two time series. i , where 0≤i≤n*fps, i represents the time of a sequence offset, and the maximum range is within 1s, then the alignment time is min(d i ) at the time node; at the same time, the coordinates of the key points with a confidence level lower than 0.5 are filtered to prevent errors in timing alignment caused by human body point occlusion;

[0048] According to the calculated timing difference, the two-dimensional coordinates of all tracked and matched targets in all video sequences are linearly interpolated and normalized and aligned, and then the three-dimensional position of the target is reconstructed using the confidence triangulation method in steps 2-3) again;

[0049] The present invention is further configured as follows: in step 3), the step of using the LSTM network to predict the final human anatomical point position includes:

[0050] 3-2) Based on the target 3D key point sequence in 3-1), use 2 LSTM long short-term memory neural networks, body model and arm model to predict 35 3D key points of the body and 8 key points of the arm respectively;

[0051] The input data of the LSTM model is preprocessed and normalized according to the waist midpoint, and the model is trained using the root mean square error function and the Adam gradient descent algorithm;

[0052] The feature dimension of the LSTM layer output of the body model is 128, the learning rate is 7e-5, and the input is a total of 15 lower limb and body trunk points;

[0053] The LSTM layer output feature dimension of the arm model is 80, the learning rate is 3e-5, and the input is a total of 7 arm and torso points;

[0054] The points output by the two models are combined to obtain a total of 43 body points;

[0055] The present invention also discloses a high-precision multi-view motion capture system, comprising:

[0056] The video data acquisition module is responsible for collecting video data from multiple perspectives at the same time and recording the world timestamp of each frame of data. Through multi-process synchronization, the time base of the collected data from each perspective is kept consistent;

[0057] The 2D key point detection and preliminary multi-view video synchronization module uses the 2D key point detection of the human skeleton to estimate the position and confidence of the 2D key points of the human body in the video of each view, and performs preliminary multi-view video synchronization based on the world timestamp;

[0058] The rough 3D key point reconstruction module preliminarily aligns the frame sequences of the videos from different perspectives according to the world timestamp, uses the distance matrix between the 2D key points of multiple perspectives, and obtains the 2D key points and confidence of the same target at different perspectives according to the matching matrix, and uses the triangulation reconstruction algorithm to combine the confidence information to perform 3D reconstruction with confidence;

[0059] 3D human key point verification module, which verifies the reconstructed 3D human key points using human structure constraints and spatiotemporal constraints;

[0060] The human anatomical point prediction module selects the target with the longest continuous time sequence according to the rough 3D key point reconstruction results, and performs precise time sequence alignment; the time sequence point is obtained through linear interpolation and normalized alignment;

[0061] Based on the aligned time-series point sequences, two LSTM long short-term memory neural networks are used to predict the key points of the body and arms respectively. By training and fusing the outputs of the two models, the human anatomical body points are obtained.

[0062] Compared with the prior art, the present invention has the following beneficial effects:

[0063] The present invention is simple to operate and easy to implement;

[0064] The present invention is based on multi-view 2D key point cyclic consistency multi-way matching, human body structure constraints, spatiotemporal constraint multi-target matching tracking optimization, and triangulation reconstruction with confidence weights, which can quickly and accurately perform multi-view target matching tracking;

[0065] The present invention can more accurately unify the timing of multiple perspective videos based on the alignment of video frame timestamps and the normalization alignment of the rough three-dimensional key point projection 2D key point sequence and the original detected 2D key point sequence;

[0066] The present invention uses an LSTM network to predict more body points that are more consistent with human anatomy and more fully display the movements of various parts of the human body. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a flow chart of the high-precision multi-view motion capture method of the present invention;

[0068] Figure 2 It is a preliminary three-dimensional reconstruction flow chart of the high-precision multi-view motion capture method of the present invention;

[0069] Figure 3 It is a 2D point map of human body posture detection in the high-precision multi-view motion capture method of the present invention;

[0070] Figure 4 The anatomical point map of the high-precision multi-view motion capture method of the present invention;

[0071] Figure 5 This is a multi-person matching result diagram of the high-precision multi-view motion capture method of the present invention;

[0072] Figure 6 This is a 3D reconstruction result diagram of multi-person matching using the high-precision multi-view motion capture method of the present invention. DETAILED DESCRIPTION

[0073] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0074] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0075] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0076] Example

[0077] See also Figure 1-Figure 6 The present invention provides a high-precision multi-view motion capture method, comprising the following steps:

[0078] 1) Use multi-process synchronization to use a general ordinary camera to capture sports videos of multiple people, such as walking, running, skipping rope, etc.;

[0079] 2) Perform simple video timing synchronization based on the timestamps recorded in all frames of each video. First, intercept the longest time sequence in each group of videos. If the difference between the previous and next frames of the timestamp in the sequence is less than 2 / fps, where fps is the video frame rate, the sequence is considered continuous. Then, align the time sequences of all viewpoints, and use one viewpoint sequence as a template to calculate the time difference between other viewpoint video sequences. The calculation method is as follows:

[0080]

[0081] where d j represents the frame difference between the video of view j and the video of reference view b, and e,s represents the end time and start time of the intercepted video frame and e j -s j =e b -s b ; Represents the time sequence of the view video with sequence number j;

[0082] 3) Use open source human posture detection models such as HRNet or Openpose to detect the 2D key point coordinates and confidence of all people in the synchronized video sequence;

[0083] 4) According to the camera projection principle, a two-dimensional coordinate point on the image is back-projected into the world space and can be represented by a straight line. The Plücker line is constructed by connecting the camera optical center and the 3D posture point, and the distance between different target posture points is constructed as a relationship matrix:

[0084]

[0085] Among them A ij Represents any two targets x in the set of all detected viewpoint targets i ,x j The distance between represents the key point of sequence number n of target i, N represents the total number of 2D key points, Represents 2D key points under viewing angle The back-projected point is connected to the camera optical center, and d represents the distance function between the straight lines.

[0086] 5) Use the cycle consistency multi-way matching algorithm to match the detected 2D target set according to the view set, so that the distance between the 2D projections of the same target at different view angles is minimized and the 2D projection of the same target cannot appear at the same view angle. The relationship is as follows:

[0087]

[0088] in represents the matching relationship function, λ represents the low-rank constraint, ‖·‖ * represents the matrix nuclear norm, <·,·> represents the matrix inner product. M is the constraint that the matching matrix needs to satisfy.

[0089]

[0090] Where n represents the total number of targets to be matched. To solve formula (3), first randomly initialize M and iteratively update M using the alternating direction multiplication method:

[0091]

[0092]

[0093] in represents the singular value threshold algorithm function, Indicated in The projection on represents the matrix set that satisfies the constraints of formula (4), ρ represents the update weight coefficient, and Q is a temporary variable. k represents the last update time. The termination condition of the iterative update is: or k>K, where δ represents the similarity threshold between M and the previous moment, and K represents the upper limit of the number of iterations.

[0094] 6) Given the 2D key point coordinate information of a target at each viewing angle and the projection relationship of the camera, the 3D key point reconstruction will be performed according to the following formula:

[0095] cx×P camera X=0 (7),

[0096] The camera's projection matrix is ​​P camera , the 2D key point x and the corresponding 3D key point are X, and the confidence of the 2D key point is c. × represents the cross product, and the singular value decomposition algorithm can be used to solve X in the above equation. Compared with the traditional triangulation method, the confidence of the 2D key points of the human body is introduced (the larger the confidence, the more accurate the key point). The weight of the 2D key points for 3D reconstruction can be allocated according to their accuracy, and the influence of some occluded and out-of-screen human body points on 3D reconstruction can be intelligently constrained.

[0097] 7) The matching relationship solved in step 5) is a rough match. There may be a series of problems such as the target's 2D posture matching in a certain perspective successfully matches other targets, or a target is divided into multiple non-intersecting sub-matches in different perspectives. Therefore, further constraints are needed. Mainly including: human body structure constraints and time-space constraints.

[0098] The human body structure constraint is to determine whether the reconstructed human body points are reasonable. The reconstructed body parts are compared with the average human body parts. The human body includes the following parts: torso, shoulders, waist, thighs, calves, upper arms, elbows, etc. The judgment equation is:

[0099]

[0100]

[0101] 0<θ1,θ2<1,

[0102] where |·| represents the absolute value function, D reconstruct , D mean Respectively represent the reconstructed and preset average human body part distances, s represents the average human body part length adjustment factor, which adjusts the average human body preset value according to the reconstructed overall human body part length to meet some special human body structure scenarios. mean(·), max(·), min(·) represent the mean, maximum and minimum functions, respectively, θ body ,θ1,θ2 represent some preset ratio thresholds.

[0103] According to formula (9), some 3D human postures with abnormal limb reconstruction will be filtered out, which may cause 2D key point matching errors in some special scenarios such as when multiple people are superimposed.

[0104] The spatiotemporal constraints are used to further optimize the multi-person matching reconstruction process. The three-dimensional coordinate position constraint determines whether the reconstructed coordinates are reasonable based on the target's reconstructed three-dimensional coordinate position and whether the X, Y, and Z coordinate axis ranges are reasonable; at the same time, the identity of multiple reconstructed targets is determined, mainly based on the distance between them to determine whether they are the same person. The two-dimensional coordinate constraint projects the reconstructed three-dimensional coordinates to each perspective, and calculates the intersection and union ratio of the target area at the previous perspective to determine whether the matched target is accurate, thereby constraining its incorrect target matching.

[0105] 8) According to the matching relationship constrained by 7), target tracking and smoothing will be performed. The same target is tracked according to the distance between the three-dimensional coordinates, and the 2D point and 3D point smoothing of each target will be performed according to the tracking results. 2D point smoothing is to use the Euro filter algorithm to smooth the two-dimensional coordinate sequence matched at each perspective; 3D point smoothing is to use the smoothed 2D points to reconstruct the 3D coordinates, and then use the Euro filter algorithm to smooth. After the above steps, the preliminary 3D reconstruction results of multi-target tracking can be obtained.

[0106] 9) Based on the preliminary 3D reconstruction results of multi-target tracking, select a target with the longest appearance time sequence for the next step of precise time sequence alignment.

[0107] First, perform n-fold linear interpolation on the selected target 3D coordinates and the 2D coordinates at each viewing angle, so that the time interval between their two frames will be less than 1 / fps. Next, project the interpolated 3D coordinates to each viewing angle to obtain the projected 2D coordinates and the interpolated 2D coordinates for normalization alignment. The normalized alignment method is to take the projected 2D coordinate sequence and the interpolated coordinate sequence at the same viewing angle, fix the projection sequence, translate the interpolated sequence at each step, and calculate the normalized correlation coefficient d of the two sequences. i Indicates the similarity between two sequences, where i, 0≤i≤n*fps represents the offset time, the maximum range of which is within 1s, and the alignment time point is min(d i ) moment; at the same time, the coordinate points with a confidence threshold lower than 0.5 are filtered out to prevent the influence of human body point occlusion on the normalized alignment calculation.

[0108] 10) After fine time alignment, two LSTM (Long Short-Term Memory) neural networks are used to predict 35 3D points of the body and 8 3D points of the arms, respectively.

[0109] The body model, whose LSTM layer outputs feature dimensions of 128, inputs a total of 15 reconstructed 3D points (mainly lower limbs and torso: neck, left and right shoulders, left and right hips, left and right knees, left and right ankles, left and right heels, left and right big toes, and left and right little toes), and then predicts 35 3D points of the corresponding limbs, including 1 neck, 2 left and right shoulder joints, 6 left and right hip areas, 10 left and right thighs, 8 left and right calves, and 8 left and right feet.

[0110] The arm model has an LSTM layer output dimension of 80. It inputs a total of 7 reconstructed 3D points (mainly arms and torso: neck, left and right shoulders, left and right elbows, left and right wrists) and predicts 8 3D points on the arms, including 4 left and right elbows and 4 left and right wrists.

[0111] By merging the points output by the two models, a total of 43 body points are obtained that are more in line with human anatomy. Predicting more 3D key points can more richly and freely represent the movement of human joints;

[0112] The present invention also discloses a high-precision multi-view motion capture system, comprising:

[0113] The video data acquisition module is responsible for collecting video data from multiple perspectives at the same time and recording the world timestamp of each frame of data. Through multi-process synchronization, the time base of the collected data from each perspective is kept consistent;

[0114] The 2D key point detection and preliminary multi-view video synchronization module uses the 2D key point detection of the human skeleton to estimate the position and confidence of the 2D key points of the human body in the video of each view, and performs preliminary multi-view video synchronization based on the world timestamp;

[0115] The rough 3D key point reconstruction module preliminarily aligns the frame sequences of the videos from different perspectives according to the world timestamp, uses the distance matrix between the 2D key points of multiple perspectives, and obtains the 2D key points and confidence of the same target at different perspectives according to the matching matrix, and uses the triangulation reconstruction algorithm to combine the confidence information to perform 3D reconstruction with confidence;

[0116] 3D human key point verification module, which verifies the reconstructed 3D human key points using human structure constraints and spatiotemporal constraints;

[0117] The human anatomical point prediction module selects the target with the longest continuous time sequence according to the rough 3D key point reconstruction results, and performs precise time sequence alignment; the time sequence point is obtained through linear interpolation and normalized alignment;

[0118] Based on the aligned time-series point sequences, two LSTM long short-term memory neural networks are used to predict the key points of the body and arms respectively. By training and fusing the outputs of the two models, the human anatomical body points are obtained.

[0119] The above contents are only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. A high-precision multi-view motion capture method, characterized in that: include: 1) Use multi-process to synchronously collect video data from multiple perspectives, and record the world timestamp of each frame of data obtained in each perspective video; Use the human skeleton 2D key point detection method to estimate the 2D key point position and confidence of each person in n perspectives; 2) Perform preliminary multi-view video synchronization based on the world timestamp; Based on the 2D skeleton key point sequence, rough 3D key point reconstruction is performed: multi-view 2D key point cycle consistency multi-way matching, human body structure constraints, spatiotemporal constraint multi-target matching tracking optimization, and triangulation reconstruction with confidence weights; 3) After obtaining the rough 3D key points from step 2), project them to various viewing angles, and reconstruct the 3D key points based on the precise alignment of the human body’s 2D posture time series; Then use the LSTM network to predict the final human anatomical points; The rough 3D key point reconstruction step of step 2) includes: 2-1) Preliminary video timing alignment of video frame sequences according to the world timestamp; According to the world timestamp, the longest continuous video sequence of each perspective video is intercepted, and the continuity judgment equation is t i+1 -t i >2 / fps, where t i represents the world timestamp of the i-th frame, and fps represents the frame rate of the camera; Taking the longest continuous sequence of a video from a certain perspective as a reference, align the longest continuous sequences in the videos from other perspectives, and calculate the time difference formula as follows: where d j represents the frame difference between the video of the view angle j and the video of the reference view angle b, and e, s represents the end time and the start time of the intercepted video frame and e j -s j =e b -s b ; Represents the time sequence of the view video with sequence number j; 2-2) After the initial alignment of the video timing, multi-view 2D key points are cycle-consistently matched in multiple ways; Multi-view 2D keypoint cycle consistency multi-way matching methods include: 2-2-1) First, calculate the distance matrix between all targets, and construct the Plücker line by connecting the camera optical center and the 3D posture point. It means that when the 2D point on the image is back-projected, its corresponding 3D coordinate is on this Plücker line. Then the distance between their Plücker lines represents their distance. The formula is: Among them, A ij (x i ,x j ) represents the distance between the current target posture i and other perspective targets j, represents the key point of sequence number n of target i, N represents the total number of 2D key points, Represents 2D key points under viewing angle The back-projected point is connected to the camera optical center, d represents the distance function between the straight lines, A ij Represents the distance matrix between targets i and j; 2-2-2) Multi-view multi-target matching, based on the distance matrix A ij And the cycle consistency constraint, the same target can have a match in another perspective. Assuming there is a matching matrix M, the relationship is: in, represents the matching relationship function, λ represents the low-rank constraint, ‖·‖ * represents the matrix nuclear norm, <·,·> represents the matrix inner product, and n represents the total number of targets to be matched.

2. A high-precision multi-view motion capture method according to claim 1, characterized in that: The rough 3D key point reconstruction step of step 2) also includes: 2-3) Based on the matching matrix M in 2-2), the corresponding 2D key points and confidences of the same target at different viewing angles are obtained, and 3D reconstruction with confidence is performed; the projection matrix of each camera is known to be P camera , the 2D key point is x and the corresponding 3D key point is X, the confidence of the 2D key point is c, then the relationship is: cx×P camera X=0 (5), Where × represents the cross product, and the singular value decomposition algorithm is used to solve X in the equation. The weight of the 2D point position of the target under different viewing angles in the triangulation reconstruction process is determined according to the confidence c; 2-4) The human body structure is constrained according to the reconstructed 3D human body key points, and the length of each part of the reconstructed human body is judged to be reasonable according to the average length of the human body parts. The judgment method is: 0<θ1,θ2<1, where |·| represents the absolute value function, D reconstruct , D mean denote the reconstructed and preset average human body part distances, s denotes the average human body part length adjustment factor, which adjusts the average human body preset value according to the reconstructed overall human body part length, mean(·), max(·), min(·) denote the mean, maximum and minimum functions, respectively, θ body ,θ1,θ2 represent the preset ratio thresholds; The spatiotemporal constraints are performed according to the reconstructed 3D human body key points, and the spatiotemporal constraints include: three-dimensional coordinate position constraints and two-dimensional coordinate position constraints.

3. A high-precision multi-view motion capture method according to claim 2, characterized in that: Step 2-4) performs the time and space constraint step: The three-dimensional coordinate position constraints include: filtering out three-dimensional reconstruction targets that are not in a reasonable world coordinate space area according to the world coordinate space area after camera calibration; merging multiple reconstructed targets according to the human body distance between different reconstructed targets; Two-dimensional coordinate position constraints, project the coordinates of the three-dimensional reconstruction to each viewing angle, and use the intersection and union ratio with the target area at the previous viewing angle to determine whether the matched target is accurate. If the intersection and union ratio is less than the judgment threshold, the 2D key points matched at the wrong viewing angle will be deleted and three-dimensional reconstruction will be performed again.

4. A high-precision multi-view motion capture method according to claim 3, characterized in that: The rough 3D key point reconstruction step of step 2) also includes: 2-5) Tracking the 3D human body points after time and space constraints, calculating the distance between the 3D points of all current human bodies and all the tracked target group members to track the target; If the distance is less than the set distance threshold, it is considered to be the same target, otherwise it is a new target; If a target is lost for a continuous period of time, it is removed from the group of detected targets; 2-5) According to the tracked 3D human body points, a Euro filtering algorithm will be used to smooth the 2D human body points and the 3D human body points; Among them, 2D human body point smoothing maintains the 2D human body point tracking relationship under each perspective according to the matching matrix P and the tracked target, constructs the tracking sequence of the target under different perspectives, and performs 2D human body point smoothing; The 3D human body points are smoothed, and according to the smoothed 2D human body key points and the camera projection matrix, 3D reconstruction is performed again to obtain new 3D human body points, and the new 3D human body points are smoothed using an algorithm.

5. A high-precision multi-view motion capture method according to claim 4, characterized in that: In step 3), the 3D key points are reconstructed based on the precise alignment of the human body's 2D posture sequence as follows: 3-1) After obtaining the rough 3D key points from step 2), perform fine temporal alignment: Select the 2D time series points and 3D time series points of the target with the longest continuous time series in each view as the input sequence for alignment, perform n-fold linear interpolation, and obtain the coordinates of the time series less than 1 / fps; The interpolated three-dimensional coordinate series is projected to each viewing angle, and the projected two-dimensional coordinate sequence is normalized and aligned with the original two-dimensional coordinate sequence. The time series difference will be less than When the sequences are normalized and aligned, the normalized correlation coefficient is used to represent the distance d between the two time series. i , where 0≤i≤n*fps, i represents the time of a sequence offset, and the maximum range is within 1s, then the alignment time is min(d i ) at the time node; at the same time, the coordinates of the key points with a confidence level lower than 0.5 are filtered to prevent errors in timing alignment caused by human body point occlusion; According to the calculated timing difference, the two-dimensional coordinates of all tracked and matched targets in all video sequences are linearly interpolated and normalized and aligned, and then the three-dimensional position of the target is reconstructed using the confidence triangulation method in step 2-3).

6. A high-precision multi-view motion capture method according to claim 5, characterized in that: In step 3), the steps of using the LSTM network to predict the final human anatomical points include: 3-2) Based on the target 3D key point sequence in 3-1), use 2 LSTM long short-term memory neural networks, body model and arm model to predict 35 3D key points of the body and 8 key points of the arm respectively; The input data of the LSTM model is preprocessed and normalized according to the waist midpoint, and the model is trained using the root mean square error function and the Adam gradient descent algorithm; The feature dimension of the LSTM layer output of the body model is 128, the learning rate is 7e-5, and the input is a total of 15 lower limb and body trunk points; The LSTM layer output feature dimension of the arm model is 80, the learning rate is 3e-5, and the input is a total of 7 arm and torso points; The points output by the two models are combined to obtain a total of 43 body points.

7. A high-precision multi-view motion capture system, characterized in that: A high-precision multi-view motion capture method according to any one of claims 1 to 6 is used, comprising: The video data acquisition module is responsible for collecting video data from multiple perspectives at the same time and recording the world timestamp of each frame of data. Through multi-process synchronization, the time base of the collected data from each perspective is kept consistent; The 2D key point detection and preliminary multi-view video synchronization module uses the 2D key point detection of the human skeleton to estimate the position and confidence of the 2D key points of the human body in the video of each view, and performs preliminary multi-view video synchronization based on the world timestamp; The rough 3D key point reconstruction module preliminarily aligns the frame sequences of the videos from different perspectives according to the world timestamp, uses the distance matrix between the 2D key points of multiple perspectives, and obtains the 2D key points and confidence of the same target at different perspectives according to the matching matrix, and uses the triangulation reconstruction algorithm to combine the confidence information to perform 3D reconstruction with confidence; 3D human key point verification module, which verifies the reconstructed 3D human key points using human structure constraints and spatiotemporal constraints; The human anatomical point prediction module selects the target with the longest continuous time sequence according to the rough 3D key point reconstruction results, and performs precise time sequence alignment; the time sequence point is obtained through linear interpolation and normalized alignment; Based on the aligned time series point sequence, two LSTM long short-term memory neural networks are used to predict the key points of the body and arms respectively. By training and fusing the outputs of the two models, the human anatomical body points are obtained.