This application is based upon and claims priority to Chinese Patent Application No. CN 201910201559.3, filed on Mar. 18, 2019, the entire contents of which are incorporated herein by reference.
The present invention relates to the technical field of computer vision and pattern recognition, and particularly to a method for three-dimensional human pose estimation.
Three-dimensional (3D) human pose estimation based on computer vision technology has been widely used in many fields of human life, such as computer animation, medicine, human-computer interaction and so on. With the introduction of low-cost RGB-D sensors (such as Kinect), compared with RGB visual information, depth image can greatly avoid data defects caused by complex background and changes in light conditions. Therefore, the performance of 3D human pose estimation is improved obviously by using the depth information, which has become the current research hotspot. At present, many methods of 3D human pose estimation based on depth data have achieved better recognition results, but the further improvement of recognition accuracy still needs to overcome two inherent serious defects of depth data acquired by sensors: noise and occlusion.
There are two kinds of methods for 3D human pose estimation based on depth information: discriminant method and generating method. The former relies on a large number of training data, and therefore can adapt to the changes of different body types, but most of them can not get higher precision in the case of complex motion; the latter usually depends on complex and accurate human body model, and therefore can get high precision in the case of data loss, but in the case of fast and complex motion, it is easy to fall into local optimization and lose the global optimum solution. It can be seen that the implementation of high-performance 3D human pose estimation methods often depends on the following points: 1) a large number of accurate training data sets; 2) a huge pose database for tracking error recovery; 3) GPU acceleration support; 4) accurate 3D human model. These limitations limit the application of real-time human-computer interaction on the platform of general hardware configuration.
The technical problem addressed by the present invention is to overcome the deficiency in the prior art, and to provide a method for three-dimensional human pose estimation, which can realize the real-time and high-precision 3D human pose estimation without high configuration hardware support and precise human body model.
The technical solution of the present invention is that, in this method for three-dimensional human pose estimation, including the following steps:
The invention takes the depth map sequence as the input, optimizes and matches with the established 3D human body model and the 3D point cloud transformed from the depth map. The optimization process combines the global translation transformation and the local rotation transformation, and uses the dynamic database to recover the pose when the tracking error occurs, finally realizes the fast and accurate pose tracking, and obtains the estimated position of the joint points from the human body model. So the real-time and high-precision three-dimensional human pose estimation can be realized without high configuration hardware support and accurate human body model.
As shown as
The invention takes the depth map sequence as the input, optimizes and matches with the established 3D human body model and the 3D point cloud transformed from the depth map. The optimization process combines the global translation transformation and the local rotation transformation, and uses the dynamic database to recover the pose when the tracking error occurs, finally realizes the fast and accurate pose tracking, and obtains the estimated position of the joint points from the human body model. So the real-time and high-precision three-dimensional human pose estimation can be realized without high configuration hardware support and accurate human body model.
Preferably, in step (1):
Representation of human body surface with 57 spherical sets. Each sphere is characterized by a radium and a center, which are initialized empirically. By corresponding all the spheres to 11 body components, we define the sphere set S to be the collection of 11 component sphere set models, each of which represents a body component. That is,
Where cik,rik represent the center, the radius of the ith sphere in the kth component, respectively, and Nk represents the number of spheres contained in the kth component, with
Preferably, in step (1), ignore wrist and ankle movements.
Preferably, in step (1), for all 57 spheres, we construct a directed tree, each node of which corresponds to a sphere. The root of the tree is g11, and each of the other nodes has a unique parent node which is denoted by a black sphere. The definition of the parent nodes is given by:
parent(S1)=g11,parent(S2)=g11,parent(S3)=g22,parent(S4=g13,parent(S5)=g12,parent(S6)=g15,parent(S7)=g22,parent(S8)=g81,parent(S9)=g18,parent(S10)=g21,parent(S11)=g110 (2)
Based on this definition, the motion of each body part is considered to be determined by the rotation motion Rk in the local coordinate system with its parent node as the origin plus the global translation vector t in the world coordinate system. Using Fibonacci spherical algorithm to get spherical point cloud by dense sampling, a cloud point human body model of visible spherical distribution constraint is the formula (3):
Where Qk,i denotes the number of sampling points of the ith sphere of the kth component, and ϕ≈0.618 is the golden section ratio. For example, dk,ij denotes the direction vector of the jth sampling point of the ith sphere of the kth component. Therefore, each point is assigned a visibility attribute, which is determined by the observation coordinate system of the point cloud, and whether each point is visible through visibility. detection. A point set consisting of all spherical visible points is used to represent the human body model. It is a cloud point human body model of visible spherical distribution constraint.
Preferably, in step (2), the depth point cloud P transformed from the depth map is sampled to obtain
Preferably, in step (2),
After the correspondence between
Where λ, μk>0 and are weight parameters, the first term Ψcorr penalizes the distance between model surface point and input depth point cloud,
Where cparentk represents the center coordinate of the parent node of kth component. Based on this constraint, each point of the model is enforced to locate closer to the corresponding point cloud after rotation and translation. The second term Ψjoint is formula (6), using the joint position information and position direction information of the previous frame, it is used as a special marker information to restrict the excessive space movement and position rotation between the two frames, and to reduce the difference between the two frames to a certain extent
Ψjoint(Rk,t)=Σm=1M
Where jk,m,jk,minit represent the position of the mth joint of the kth component under current pose and initial pose, respectively. nk,m, nk,minit, represent the position of the mth joint and its parent joint under current pose and initial pose, respectively. The weight αk,m, βk,m for balancing the correspondence term and location is formula (7):
Where ω2,ω3, >0, and are weight parameters for controlling the range of error. τk,γk are scaling parameters which defined by:
Where Dist(
The third term Ψregu is formula (9). The large rotation of each part in the iterative process is constrained. The motion between two adjacent frames is regarded as the process of simultaneous change of each part
Ψregu(Rk)=∥Rk−I∥2(9).
Preferably, in step (3),
Using the overlap rate θoverlap and cost function value θcost of the input depth point cloud and the constructed human body model on the two-dimensional plane to determine whether the current tracking fails. Assuming that human limb motion segments have the repetitive characteristics in time series, the direction information of each body part is used to represent human three-dimensional motion, the upper and lower trunk parts are simplified into two mutually perpendicular main directions, each part of the limbs is represented by a direction vector, and the direction of the head is ignored, which is expressed as a formula (10):
v=(v1r, . . . v10r)r (10)
Where v1, v2 correspond to the pairwise perpendicular unit directions of upper torso, lower torso, respectively, and v3, . . . , v10 correspond to the unit direction of all components except upper torso, lower torso, head.
Preferably, in step (3),
PCA is used to extract the main direction [e1, e2, e3] of the depth point cloud, and the minimum bounding box [w,d,h] of the main direction is used to represent the characteristics of the depth point cloud, which is formula (11):
e=(we1r,de1r,he3r)r (11)
If the cost function of matching is less than the threshold value in the tracking process θoverlap≤θ1 and θcost≤θ2, the tracking is successful and update the database model D by extracting feature s [e,v]. The extracted characteristics [e,v] are saved in database as a pair of characteristic vectors. When the tracking fails, the Euclidean distance is calculated by using the characteristics e of the corresponding depth point cloud in the database, the first five positions {[e(i), v(i)]}i=15 with the smallest distance are found in the database, and the position with the highest overlap rate with the current input depth point cloud is retrieved by using v(i), i=1, . . . , 5 to recover the visible spherical distribution constraint point cloud manikin, so as to facilitate the recovery from the tracking failure.
The invention is described in more detail below.
The invention takes the depth map sequence as the input, optimizes the matching between the established 3D human body model and the 3D point cloud transformed from the depth map. The optimization process combines the global translation transformation and the local rotation transformation, and uses the dynamic database to recover the pose when the tracking error occurs, finally realizes the fast and accurate pose tracking, and obtains the estimated joint position from the human body model. The invention mainly includes three key technical points: (1) establishing a three-dimensional human body model matching the object, which combines the advantages of geometric model and mesh model. (2) On the basis of the model, the matching optimization problem between the human body model and the point cloud is transformed into solving the global translation transformation matrix and the local rotation transformation matrix based on the determination of the corresponding relationship between the human body model and the depth point cloud. (3) Building a small dynamic database to track reinitialization in case of failure.
1. A cloud point human body model of visible spherical distribution constraint:
As shown as
Where cik, rik represent the center, the radius of the ith sphere in the kth component, respectively, and Nk represents the number of spheres contained in the kth component, with
For simplification, ignore wrist and ankle movements.
For all 57 spheres, we construct a directed tree, each node of which corresponds to a sphere, as shown as
parent(S1)=g11,parent(S2)=g11,parent(S3)=g32,parent(S4=g13,parent(S5)=g12,parent(S6)=g15,parent(S7)=g22,parent(S8)=gz1,parent(S9)=g18,parent(S10)=g21,parent(S11)=g110 (2)
Based on this definition, the motion of each body part is considered to be determined by the rotation motion Rk in the local coordinate system with its parent node as the origin plus the global translation vector t in the world coordinate system.
Where Qk,i denotes the number of sampling points of the ith sphere of the kth component, and ϕ≈0.618 is the golden section ratio. For example, dk,ij denotes the direction vector of the jth sampling point of the ith sphere of the kth component. Therefore, each point is assigned a visibility attribute, which is determined by the observation coordinate system of the point cloud, and whether each point is visible through visibility. detection. A point set consisting of all spherical visible points is used to represent the human body model. It is a cloud point human body model of visible spherical distribution constraint. At this time, the model can not only control the shape of human body conveniently by changing the parameters of sphere definition, but also accurately represent the human body's pose by optimizing and matching with the input point cloud.
2. Matching and optimizing between human body model for human body pose tracking and depth point cloud
The depth point cloud P transformed from the depth map is sampled to obtain
After the correspondence between
Where λ, μk>0 and are weight parameters, the first term Ψcorr penalizes the distance between model surface point and input depth point cloud,
Where cparentk represents the center coordinate of the parent node of kth component. Based on this constraint, each point of the model is enforced to locate closer to the corresponding point cloud after rotation and translation. The second term Ψjoint is formula (6), using the joint position information and position direction information of the previous frame, it is used as a special marker information to restrict the excessive space movement and position rotation between the two frames, and to reduce the difference between the two frames to a certain extent
Ψjoint(Rk,t)=Σm=1M
Where jk,m, jk,minit, represent the position of the mth joint of the kth component under current pose and initial pose, respectively. nk,m,nk,minit, represent the position of the mth joint and its parent joint under current pose and initial pose, respectively. The weight αk,m, βk,m for balancing the correspondence term and location is formula (7):
Where ω2, ω3>0, and are weight parameters for controlling the range of error. τk,γk are scaling parameters which defined by:
Where Dist(
The third term Ψregu is formula (9). The large rotation of each part in the iterative process is constrained. The motion between two adjacent frames is regarded as the process of simultaneous change of each part
Ψragu(Rk)=∥Rk−I∥2 (9).
3. Recovering for pose tracking error based on dynamic database retrieval
Since the invention belongs to the unsupervised attitude estimation method, the attitude recovery operation is required when the tracking error occurs. Using the overlap rate θoverlap and cost function value θcost of the input depth point cloud and the constructed human body model on the two-dimensional plane to determine whether the current tracking fails. Assuming that human limb motion segments have the repetitive characteristics in time series, therefore, an attitude tracking recovery method based on small dynamic database is proposed. The direction information of each body part is used to represent human three-dimensional motion, as shown as
v=(v1r, . . . v10r)r (10)
Where v1, v2, correspond to the pairwise perpendicular unit directions of upper torso, lower torso, respectively, and v3, . . . , v10 correspond to the unit direction of all components except upper torso, lower torso, head.
As shown as
e=(we1r,de1r,he3r)r (11)
If the cost function of matching is less than the threshold value in the tracking process θoverlap≤θ1 and θcost≤θ2, the tracking is successful and update the database model D by extracting feature s [e,v]. The extracted characteristics [e,v] are saved in database as a pair of characteristic vectors. When the tracking fails, the Euclidean distance is calculated by using the characteristics e of the corresponding depth point cloud in the database, the first five positions {[e(i), v(i)]}i=15 with the smallest distance are found in the database, and the position with the highest overlap rate with the current input depth point cloud is retrieved by using v(i), i=1, . . . , 5 to recover the visible spherical distribution constraint point cloud manikin, so as to facilitate the recovery from the tracking failure.
The invention has been verified on the open data set SMMC and PDT data set, and good experimental results have been obtained.
The above contents are only the preferable embodiments of the present invention, and do not limit the present invention in any manner. Any improvements, amendments and alternative changes made to the above embodiments according to the technical spirit of the present invention shall fall within the claimed scope of the present invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 201910201559.3 | Mar 2019 | CN | national |