Three-dimensional human motion capturing method and device
Through feature extraction and feature fusion of human action images, three-dimensional human action parameters are determined and actions are directly generated, which solves the problems of part distortion and low efficiency in human action capture in the existing technology, and achieves more efficient and accurate action capture effects. .
Patent Information
- Application Number
- CN202410654676.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
The postures and movements of various parts in existing human body motion capture technology are distorted and unnatural, resulting in low accuracy and efficiency of motion capture.
By extracting features from human action images, the body features are determined, and based on this, hand and head features are determined, three-dimensional human action parameters are generated, and three-dimensional human actions are directly generated, avoiding unnatural distortion caused by splicing of various parts, and improving processing speed.
It has improved the accuracy and efficiency of three-dimensional human motion capture, avoided unnatural arm rotation, accelerated the human motion capture process, and improved the coherence and stability of motion generation.
Smart Images

Figure CN118609206A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a three-dimensional human motion capture method and device. Background Art
[0002] With the rapid development of computer technology, the importance of human motion capture in the fields of computer vision and computer graphics has become increasingly prominent. In the past few decades, this technology has attracted widespread attention and has become a key technology for advanced application scenarios such as human-computer interaction, virtual reality, and augmented reality. However, as people's demand for motion capture accuracy and real-time performance continues to increase, existing human motion capture technology still faces many challenges.
[0003] Currently, most motion capture methods are multi-stage methods that need to predict the movements of the hands, head, and body separately, and then stitch the predicted movements of each part together. However, communication blockage between different components usually causes unnatural arm rotations, so post-processing is required to correct the hand posture, which significantly increases the inference time. Summary of the invention
[0004] The present invention provides a 3D human motion capture method and device, which are used to solve the defects of the prior art in human motion capture, such as distortion and unnatural postures and movements of various parts, low accuracy and efficiency of motion capture, and to determine hand features and head features through body features, and to determine 3D human motion parameters accordingly, and to directly generate 3D human motion according to the parameters, which not only avoids the distortion and unnaturalness caused by the splicing of various parts, but also improves the processing speed.
[0005] The present invention provides a three-dimensional human motion capture method, comprising:
[0006] Determine human action images;
[0007] Based on a motion capture network, feature extraction is performed on the human motion image, hand features and head features are determined based on body features obtained by feature extraction, and three-dimensional human motion parameters are determined based on the body features, the hand features and the head features;
[0008] Based on the three-dimensional human motion parameters, generating a three-dimensional human motion corresponding to the human motion image;
[0009] The motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
[0010] According to a 3D human motion capture method provided by the present invention, the feature extraction of the human motion image comprises:
[0011] Dividing the human action image into blocks to obtain a plurality of image blocks;
[0012] Performing feature extraction and position encoding on each image block to obtain image features and position features of each image block, and fusing the image features and position features to obtain fused features;
[0013] Feature encoding is performed on the fused features of the image blocks to obtain body features.
[0014] According to a 3D human motion capture method provided by the present invention, the fusion features of each image block are encoded to obtain body features, including:
[0015] Acquire a target body feature, wherein the target body feature is extracted from the sample human motion image based on the motion capture network;
[0016] The fusion features of the image blocks and the target body features are fused, and the fused features are feature encoded to obtain body features.
[0017] According to a 3D human motion capture method provided by the present invention, the body features obtained based on feature extraction, determining hand features and head features, comprises:
[0018] Based on the body features, determining the head joint positions and the hand joint positions;
[0019] Based on the body features, and the head joint positions and hand joint positions, head features and hand features are determined.
[0020] According to a 3D human motion capture method provided by the present invention, the 3D human motion parameters include body motion parameters, hand motion parameters and head motion parameters; the body motion parameters, the hand motion parameters and the head motion parameters are respectively obtained by regression based on the body features, the hand features and the head features;
[0021] Determining the head joint position and the hand joint position based on the body features includes:
[0022] Based on the body characteristics, determining body movement parameters;
[0023] Based on the body motion parameters, the head joint positions and the hand joint positions are determined.
[0024] According to a 3D human motion capture method provided by the present invention, the motion capture network is trained based on the following steps:
[0025] Obtain sample human action images;
[0026] Based on the initial network, determining predicted joint positions and predicted three-dimensional human motion parameters corresponding to the sample human motion image;
[0027] Determine a motion capture loss based on the predicted joint positions and the predicted three-dimensional human motion parameters, and sample joint positions and sample three-dimensional human motion parameters corresponding to the sample human motion image, and perform parameter iteration on the initial network based on the motion capture loss to obtain a motion capture network;
[0028] The initial network is used to perform feature extraction on the sample human motion image, determine the predicted joint positions based on the predicted body features obtained through feature extraction, determine the predicted head features and the predicted hand features based on the predicted body features and the predicted joint positions, and determine the predicted three-dimensional human motion parameters based on the predicted body features, the predicted hand features and the predicted head features.
[0029] According to a 3D human motion capture method provided by the present invention, the motion capture loss is determined based on the predicted joint positions and the predicted 3D human motion parameters, and the sample joint positions and sample 3D human motion parameters corresponding to the sample human motion image, including:
[0030] Determining a parameter prediction loss based on the predicted three-dimensional human motion parameter and the sample three-dimensional human motion parameter;
[0031] Determining a joint prediction loss based on the predicted joint position and the sample joint position;
[0032] Determine a joint projection loss based on the predicted joint position and the two-dimensional projection position of the sample joint position;
[0033] A motion capture loss is determined based on the parameter prediction loss, the joint prediction loss and the joint projection loss.
[0034] The present invention also provides a three-dimensional human motion capture device, comprising:
[0035] An image determination unit, used for determining a human action image;
[0036] A motion capture unit, configured to extract features from the human motion image based on a motion capture network, determine hand features and head features based on body features obtained through feature extraction, and determine three-dimensional human motion parameters based on the body features, the hand features, and the head features;
[0037] An action generating unit, configured to generate a three-dimensional human action corresponding to the human action image based on the three-dimensional human action parameter;
[0038] The motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
[0039] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a three-dimensional human motion capture method as described above is implemented.
[0040] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the three-dimensional human motion capture method as described in any one of the above is implemented.
[0041] The present invention provides a three-dimensional human motion capture method and device, which extracts features from human motion images, determines hand features and head features through the extracted body features, and determines three-dimensional human motion parameters based on the extracted features, and directly generates three-dimensional human motion according to the parameters, thereby overcoming the defects of distorted and unnatural motion postures of various parts in human motion capture in traditional solutions, as well as low accuracy and efficiency of motion capture. The determination of features of various parts is simplified based on the body features extracted by the motion capture network, thereby accelerating the capture of human motion and improving the efficiency of motion capture. Furthermore, motion generation is performed in a parameterized manner, and there is no need to splice the hands and head with the body, thereby avoiding the unnatural distortion caused by the splicing of various parts, thereby achieving improved efficiency and accuracy of motion capture. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 It is a flow chart of the three-dimensional human body motion capture method provided by the present invention;
[0044] Figure 2 is an example diagram of the multi-view mapping process provided by the present invention;
[0045] Figure 3 It is a structural schematic diagram of a three-dimensional human motion capture device provided by the present invention;
[0046] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0048] In recent years, human motion capture has attracted widespread attention in the fields of computer vision and computer graphics because it plays a vital role in AR (Augmented Reality), VR (Virtual Reality) applications, human motion detection, motion tracking in smart operating rooms, etc. However, as people's demand for motion capture accuracy and real-time performance continues to increase, existing human motion capture technology still faces many challenges.
[0049] Currently, most full-body motion capture methods are multi-stage methods, which require predicting each part of the human body separately and then splicing the predicted parts together. However, there is communication blockage between different components, which often leads to unnatural arm splicing. Therefore, subsequent processing is usually required to correct the unnatural rotation of the hand posture, which increases the inference time.
[0050] For example, the representative method HybrIK-X can only run at 4fps on a single GPU (Graphics Processing Unit). Recently, a one-stage method was proposed to recover human motion, which eliminates the need for a separate network for each body part. However, although this method is relatively simple, its speed is still insufficient, which greatly limits its practicality. That is, on a single GPU, it can only run at 14fps.
[0051] In this regard, the present invention provides a 3D human motion capture method, which aims to reduce the unnatural distortion of various parts of the human body in the captured 3D human motion, improve the accuracy and efficiency of 3D human motion capture, and enable it to run in real time on a GPU device. Figure 1 3D human motion capture method provided by the present invention is shown in FIG. Figure 1 As shown, the method includes:
[0052] Step 110, determining a human action image.
[0053] Specifically, before performing human motion capture, we first need to determine the object to be captured, that is, the carrier that carries the human motion, which can be a video or an image. As for the video, in the human motion capture task, it can usually be regarded as a set of images in a continuous time, which contains multiple images, and the images contain the human motion to be captured.
[0054] Based on this, in the embodiment of the present invention, in the actual three-dimensional human motion capture, the first thing that needs to be determined is the image containing human motion, which is referred to as human motion image here. Considering the integrity and comprehensiveness of human motion capture, as well as the subsequent applications based on the captured three-dimensional human motion, such as human animation generation in virtual reality, motion tracking in intelligent operating rooms, etc., the embodiment of the present invention selects full-body motion capture in motion capture, so that the movements of various parts can be compared during the capture process to avoid uncoordinated and unnatural situations, which greatly improves the accuracy of motion capture, and the completeness, comprehensiveness, smoothness and coordination of the captured movements, providing a wide range of choices for subsequent applications based on the captured three-dimensional human motion, and is more practical.
[0055] Here, the human motion image may be an image containing whole-body motion obtained by capturing images of a person, for example, an image obtained by photographing a person's movement process, sitting posture, etc.; it may also be an image containing whole-body motion of a person crawled / searched from the Internet by a web crawler, keyword search, etc.; it may also be an image containing whole-body motion extracted / captured from a human motion video. The embodiments of the present invention do not make specific limitations on this.
[0056] In addition, it should be noted that the human body motion image can be one or more. In the case of multiple human body motion images, human body motion capture needs to be performed on each human body motion image to determine the three-dimensional human body motion corresponding to each human body motion image. The human body motion to be identified in each human body motion image can also be one or more.
[0057] Step 120, based on the motion capture network, feature extraction is performed on the human motion image, hand features and head features are determined based on the body features obtained by feature extraction, and three-dimensional human motion parameters are determined based on the body features, hand features and head features;
[0058] The motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
[0059] Specifically, after obtaining the human body motion image, step 120 may be executed to extract features from the human body motion image to obtain human body features, and three-dimensional human body parameters are determined based on the features, so as to prepare for subsequent parameter-based motion generation.
[0060] Here, the human body features include not only the global body features corresponding to the human body motion image, but also the local head features and hand features. Considering both the local and global perspectives can well guarantee the accuracy and precision of motion capture, and greatly improve the refinement of the captured three-dimensional human body motion. However, considering the speed limitations of motion capture in traditional solutions, in an embodiment of the present invention, when determining the human body features, the global body features can be extracted first, and then the head features and hand features can be further determined on this basis to obtain complete human body features. This can not only improve the speed, but also well guarantee the accuracy of motion capture.
[0061] Based on this, in the embodiment of the present invention, after obtaining the human motion image, the human motion image can first be feature extracted to extract the information about human motion contained in the human motion image from a global perspective, such as the posture, action, and correlation of various parts of the human body, so as to obtain global body features. In order to improve the speed of motion capture and optimize the capture efficiency, in the embodiment of the present invention, the local features of the person in the human motion image can be further determined based on the body features, such as hand features, head features, etc., that is, the positioning of limbs, head and neck, joint point detection, and identification can be performed based on the body features of the person, and the hand features and head features of the person can be extracted on this basis.
[0062] Furthermore, based on the determination of complete human features, in the embodiments of the present invention, actions can be generated based on the human features to achieve the capture of human actions in human action images. However, considering the limitations of the method of directly generating actions based on features in terms of flexibility, editability, and complex and changeable action generation, that is, the complexity and variability of human actions make it very difficult to directly map from features to actions, which will be limited when processing complex actions and scenes, and it is impossible to achieve refined action generation and ensure precision and accuracy. Therefore, in the embodiments of the present invention, a parameterized method is selected, and after obtaining the human features, the three-dimensional human action parameters of the person are determined based on the human features, so as to subsequently generate actions based on the three-dimensional human action parameters.
[0063] Here, the three-dimensional human motion parameters may include parameters of multiple parts of a person in a human motion image, such as head motion parameters, body motion parameters, motion parameters of both hands, etc., which may be determined by corresponding human features.
[0064] In the embodiment of the present invention, human body characteristics can be converted into a series of controllable parameters through parameterization, so that the action generation based on three-dimensional human body parameters is more flexible and controllable. By adjusting the parameters, the generated actions can be avoided to be incoherent and uncoordinated, making the generated three-dimensional human body actions smoother and more fluent, thereby improving the coherence and stability of the action generation.
[0065] It should be noted that the above-mentioned motion capture process can be achieved through a motion capture network, that is, the human motion image can be used as input and input into the motion capture network. The motion capture network can first extract features to obtain body features, and then further determine hand features and head features based on the body features. After that, the motion capture network can determine the person's full-body motion parameters based on this and output them, and finally obtain the three-dimensional human motion parameters output by the motion capture network.
[0066] It is worth noting that before the human motion image is input into the motion capture network for feature extraction, in order to reduce the interference of background information in the human motion image on motion capture, in an embodiment of the present invention, the human motion image can also be preprocessed. The image preprocessing here includes two parts: human detection and image cropping. That is, the human motion image can first be subjected to human detection through the preprocessing module in the motion capture network to detect the area where the person is located and determine the detection frame of the person in the image (such as the minimum detection frame), and then the human motion image is cropped according to the detection frame to obtain the cropped human body area, and then the feature of the human body area can be extracted through the motion capture network.
[0067] Here, the image preprocessing process can be expressed as:
[0068] For an image containing human actions, that is, human action image I, the detection box of the human body in the image is obtained by the human body detection method D:
[0069] box=D(I)
[0070] Then, according to the detection box, the human body region I′ that contains the human body action as much as possible can be cropped from the human body action image I:
[0071] I′=Crop(I)
[0072] Among them, since the human body area I′ contains very little background information, motion capture based on this can greatly reduce the impact of the image background on the network performance of the motion capture network, thereby improving the network precision and the accuracy of motion capture.
[0073] In addition, it should be noted that before inputting the human motion image into the motion capture network, in order to ensure the pertinence and accuracy of the motion capture based on the human motion image, in an embodiment of the present invention, the motion capture network can also be pre-trained using training data. Here, the training process of the motion capture network includes: considering the application of parameterized human models in computer vision, which can improve the precise prediction results, therefore, in an embodiment of the present invention, an initial network of the training process can be constructed based on parameterized human models, such as SMPL (Skinned Multi-Person Linear Model), SMPL-X, etc.; then, the initial network is trained using pre-collected sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images, thereby obtaining a trained motion capture network.
[0074] Compared with the traditional method based on parametric human body model, although it can improve the accuracy, the speed is obviously limited, and it can only perform offline reasoning, but cannot capture human body movements in real time, which greatly limits the scope of application and has poor practicality. In the embodiment of the present invention, the advantages of parametric human body model in the field of computer vision are learned, and its disadvantages are optimized. The initial network is constructed and trained to obtain the motion capture network, and the feature extraction is performed through the motion capture network, and the local features are determined based on the body features, which greatly improves the speed of capturing the features of human body parts and ensures the coordination of the movements. It can improve the efficiency of motion capture while ensuring the accuracy of motion capture, and can perform online capture, which has good practicality.
[0075] Step 130 : generating a three-dimensional human body motion corresponding to the human body motion image based on the three-dimensional human body motion parameters.
[0076] Specifically, after the three-dimensional human body motion parameters are obtained through step 120, step 130 may be executed to generate three-dimensional human body motion using the three-dimensional human body motion parameters.
[0077] Specifically, after obtaining the three-dimensional human motion parameters, the motion parameters of each part in the three-dimensional human motion parameters can be combined to generate motions, thereby obtaining three-dimensional human motions corresponding to the human motion images. It should be noted that in order to ensure the accuracy and precision of motion capture, the generated three-dimensional human motions need to be as close as possible to the motions of the person contained in the human motion images, or completely consistent, so as to achieve true, accurate and effective motion capture and obtain three-dimensional human motions consistent with the captured object.
[0078] Here, the motion generation process based on the three-dimensional human motion parameters can be implemented through a motion capture network, or can be implemented through other algorithms, models, etc. that can generate human motion based on parameters, and the embodiment of the present invention does not specifically limit this. For example, the body motion parameters, head motion parameters, and hand motion parameters in the three-dimensional human motion parameters can be input into the motion generation module in the motion capture network, so that the motion generation module generates motion based on the input parameters, thereby obtaining the three-dimensional human motion output by the motion generation module.
[0079] The 3D human motion capture method provided by the present invention extracts features from human motion images, determines hand features and head features through the extracted body features, determines 3D human motion parameters based on the extracted features, and directly generates 3D human motion according to the parameters, thereby overcoming the defects of distorted and unnatural motion postures of various parts in human motion capture in traditional solutions, as well as low accuracy and efficiency of motion capture. The determination of features of various parts is simplified on the basis of body features extracted by a motion capture network, thereby accelerating the capture of human motion and improving the efficiency of motion capture. Furthermore, motion generation is performed in a parameterized manner, and there is no need to splice the hands and head with the body, thereby avoiding the unnatural distortion caused by the splicing of various parts, thereby achieving improved efficiency and accuracy of motion capture.
[0080] Based on the above embodiment, in step 120, feature extraction is performed on the human action image, including:
[0081] Performing image segmentation on the human action image to obtain a plurality of image blocks;
[0082] Perform feature extraction and position encoding on each image block to obtain image features and position features of each image block, and fuse the image features and position features to obtain fused features;
[0083] The fused features of each image block are encoded to obtain body features.
[0084] Specifically, the process of extracting features from the human motion image by the motion capture network in step 120 may include the following steps:
[0085] In the motion capture network, feature extraction of human motion images can be achieved through a feature extraction module. Here, the feature extraction module can be constructed on the basis of Transformer; that is, feature extraction of human motion images can be performed through the feature extraction module based on Transformer to extract global body features.
[0086] Specifically, when the feature extraction module performs global feature extraction on the human action image, the human action image can be cropped first to be cropped into multiple blocks, thereby obtaining multiple image blocks corresponding to the human action image, that is, an image segmentation operation can be performed based on the human action image to obtain multiple image blocks. Next, feature extraction and position encoding can be performed on each image block, that is, linear projection is performed on each image block through a convolutional layer to obtain image features of each image block, which are fused with position features to obtain a series of image features with position information, that is, fusion features T of each image block. f . This process can be expressed as:
[0087] T f =ζ(P p ,P e )
[0088] Among them, ζ represents the fusion operation, P p and P e They are image features and position features respectively.
[0089] Furthermore, after obtaining the fusion features of each image block, the body features corresponding to the human action image can be determined based on the fusion features. Here, the fusion features of each image block can be feature encoded to obtain the global body features, that is, the fusion features of each image block can be feature encoded through the full body Transformer encoder in the feature extraction module to obtain the encoded output body features.
[0090] Based on the above embodiment, feature encoding is performed on the fusion features of each image block to obtain body features, including:
[0091] Obtaining target body features, where the target body features are extracted from sample human motion images based on a motion capture network;
[0092] The fusion features of each image block and the target body features are fused, and the fused features are feature encoded to obtain the body features.
[0093] Specifically, the process of encoding the fusion features of each image block to obtain the body features may include:
[0094] After obtaining the fusion features of each image block, in order to incorporate prior knowledge of the body and encode body-specific information, in an embodiment of the present invention, prior information can be introduced in the process of extracting body features, that is, learnable body features are obtained, which are referred to as target body features here. This feature is learned from a large amount of human motion data and has the ability to represent human motion. It can be obtained in a variety of ways.
[0095] For example, a convolutional neural network or other deep learning model is used to automatically learn from a large amount of training data, and by continuously optimizing parameters, the body features corresponding to human movements are gradually extracted from the input image. Furthermore, in order to more accurately describe human movements, some specially designed deep learning models, such as models based on skeleton joint data, or models obtained using human posture estimation technology, can be used on the basis of a large amount of human movement data to describe human movements from different angles and levels, thereby extracting richer learnable body features. In the embodiment of the present invention, the target body features can be extracted from an average SMPL-X human three-dimensional model, and specifically can be extracted from sample human movement images through a motion capture network.
[0096] Furthermore, after obtaining the target body features, in the embodiment of the present invention, the fusion features T of each image block can be used as f With learnable physical features T b The fused features can be fused and feature encoded to obtain body features. f With learnable physical features T b Then, the spliced features are encoded through the whole body Transformer encoder γ to fuse the global features used to regress the three-dimensional human motion parameters, and the features are updated to obtain the body features (T f ′ ,T b ′ ). This process can be expressed as:
[0097] (T f ′ ,T b ′ )=γ(T f ,T b )
[0098] The encoder γ consists of multiple Transformer blocks, each of which contains multi-head self-attention, feedforward network and double-layer normalization.
[0099] Here, it should be noted that when performing feature fusion, the complementarity of the two needs to be considered. The fused features of each image block contain local action information, while the learnable body features may contain more global or abstract information. Through feature fusion, these two features can be effectively combined to obtain more accurate body features.
[0100] In the embodiment of the present invention, during the feature extraction process, the accuracy and robustness of three-dimensional human motion capture can be further improved by fusing the fusion features of each image block with the target body features learned from a large amount of data.
[0101] Based on the above embodiment, in step 120, determining the hand features and the head features based on the body features obtained by feature extraction includes:
[0102] Based on the body features, determine the head joint positions and hand joint positions;
[0103] Based on the body features, as well as the head joint positions and the hand joint positions, the head features and the hand features are determined.
[0104] Specifically, in step 120, the process of determining the hand features and the head features according to the body features obtained by feature extraction may specifically include:
[0105] It is understandable that after obtaining the body features, for considerations of speed and efficiency, in an embodiment of the present invention, local features, namely head features and hand features, can be extracted based on the body features. This can avoid the cumbersome and inconvenient traditional solution of capturing motions of various parts through models, as well as the problem of uncoordinated movements of various parts. This can not only improve the speed, but also ensure the accuracy of motion capture.
[0106] In detail, in an embodiment of the present invention, the hand joints and head joints of a person in a human motion image can be inferred first through body features, that is, the positions of the hand joints and the head joints of a person during motion can be predicted through information about human motion represented by body features, thereby obtaining the hand joint positions (left hand joint positions and right hand joint positions) and the head joint positions. Then, based on the head joint positions and the hand joint positions, the head features and the hand features of the person can be determined; here, specifically, the head features and the hand features can be obtained based on the body features in combination with the head joint positions and the hand joint positions; that is, the head joint positions and the hand joint positions are used to determine the local features, that is, the head features and the hand features, from the body features.
[0107] In an embodiment of the present invention, the joint points of the hands and the head are determined based on the body features, and the features of the corresponding parts are determined through the joint points of the hands and the head, thereby simplifying the capture of motion features and ensuring the coordination between actions, thereby improving the speed of motion capture while ensuring the precision and accuracy of motion capture.
[0108] Based on the above embodiment, the three-dimensional human motion parameters include body motion parameters, hand motion parameters and head motion parameters; the body motion parameters, hand motion parameters and head motion parameters are respectively obtained by regression based on body features, hand features and head features;
[0109] Based on the body features, determine the head joint position and hand joint position, including:
[0110] Based on the body characteristics, determine the body movement parameters;
[0111] Based on the body motion parameters, the head joint positions and the hand joint positions are determined.
[0112] In an embodiment of the present invention, the three-dimensional human motion parameters include three aspects, namely body motion parameters, hand motion parameters and head motion parameters, which can be obtained by regressing the motion regressor in the motion capture network based on the body features, hand features and head features, respectively. Among them, the motion regressor includes a first regressor and a second regressor; the first regressor is used to regress the body motion parameters, and the second regressor is used to regress the hand motion parameters and the head motion parameters. In addition, the motion parameters in the three-dimensional human motion parameters are not regressed together, but on the basis of the body features, the body motion parameters are first obtained by the first regressor, and then based on the body motion parameters, the hand joint positions and the head joint positions are inferred, and finally based on the hand joint positions, the head joint positions, and the body features, the hand features and the head features are first determined by the second regressor, and then the hand motion parameters and the head motion parameters are regressed. This process can be expressed as:
[0113] For physical characteristics (T f ′ ,T b ′ ), the body motion parameters can be regressed through the first regressor consisting of a series of fully connected layers. The specific formula is as follows:
[0114] P body =R b (T f ′ ,T b ′ )
[0115] Among them, P body is the body motion parameter, R b represents the first regressor.
[0116] Furthermore, in order to improve the regression speed while ensuring the accuracy of hand and head posture regression, in the embodiment of the present invention, the previously obtained P body , use the motion capture network to derive the joint positions of the head and hands Jhead , J rwrist and J lwrist .
[0117] Then, through the above three joint positions, (T f ′ ,T b ′ ) to determine the characteristics of each part, and regress to obtain the movement parameters of each part. The specific formula is as follows:
[0118] P lhand ,P rhand ,P head =R(J rwrist ,J lwrist ,J head ,T f ′ ,T b ′ )
[0119] Among them, P lhand and P rhand are the left hand motion parameters and the right hand motion parameters in the hand motion parameters, P head is the head motion parameter, and R represents the second regressor.
[0120] In the embodiment of the present invention, in the regression of the motion parameters of each part, the joint points of the hands and the head are used to simplify the posture regression of the corresponding parts, thereby ensuring the speed and accuracy of the posture estimation.
[0121] Based on the above embodiment, the motion capture network is trained based on the following steps:
[0122] Obtain sample human action images;
[0123] Based on the initial network, determine the predicted joint positions corresponding to the sample human action images and predict the three-dimensional human action parameters;
[0124] Based on the predicted joint positions and the predicted three-dimensional human motion parameters, as well as the sample joint positions and the sample three-dimensional human motion parameters corresponding to the sample human motion images, a motion capture loss is determined, and based on the motion capture loss, parameters of the initial network are iterated to obtain a motion capture network;
[0125] Among them, the initial network is used to extract features of sample human motion images, determine the predicted joint positions based on the predicted body features obtained by the feature extraction, determine the predicted head features and the predicted hand features based on the predicted body features and the predicted joint positions, and determine the predicted three-dimensional human motion parameters based on the predicted body features, the predicted hand features and the predicted head features.
[0126] Specifically, the training process of the motion capture network may include the following steps:
[0127] First, it is necessary to obtain sample human motion images. The sample human motion images here are sample images collected in advance for network training. Each sample image contains human motion, and therefore can be called a sample human motion image.
[0128] Here, it can be directly obtained from an open source action image dataset, or obtained by long-term image collection of a human body action process, or directly downloaded or crawled from the Internet, and the embodiment of the present invention does not make specific limitations on this.
[0129] Then, the sample human motion image can be processed to predict the joint positions and three-dimensional human motion parameters of each part corresponding to the sample human motion image, that is, predict the joint positions and predict the three-dimensional human motion parameters. Here, specifically, an initial network constructed on the basis of a parameterized human body model, such as SMPL, SMPL-X, etc., can be used to capture motion features and perform parameterization processing on the sample human motion image to obtain its corresponding predicted joint positions and predicted three-dimensional human motion parameters. Here, the predicted joint positions include predicting the hand joint positions and predicting the head joint positions, and the predicted three-dimensional human motion parameters include predicting the body motion parameters, predicting the hand motion parameters, and predicting the head motion parameters.
[0130] Here, the process of determining the predicted joint position and predicting the three-dimensional human motion parameters by the initial network can be specifically that after the sample human motion image is input into the initial network, the initial network first performs human body detection on the sample human motion image to determine the human body region therein and obtain the predicted human body region image; then the predicted human body region image is subjected to feature extraction to extract the information about human body motion contained in the predicted human body motion image, for example, the posture, action, and association relationship of each part of the human body, so as to obtain the predicted body features. Then, the predicted body motion parameters can be obtained by regression based on the extracted predicted body features, and the joint points of each part can be inferred based on the predicted body motion parameters, so as to obtain the joint positions of each part, that is, the predicted joint positions, which include the predicted hand joint positions and the predicted head joint positions. After that, the local features can be further captured, that is, the local features, that is, the predicted head features and the predicted hand features can be determined by predicting the body features and the predicted joint positions; finally, the predicted hand motion parameters and the predicted head motion parameters can be obtained by regression based on the predicted hand features and the predicted head features.
[0131] Afterwards, the initial network can be trained based on the predicted joint positions and predicted three-dimensional human motion parameters predicted by the initial network, as well as the sample joint positions (joint labels) and sample three-dimensional human motion parameters (parameter labels) corresponding to the sample human motion images, to obtain a trained motion capture network; during this training process, by comparing the network prediction results with the sample labels, the network's loss in the entire motion capture process, i.e., the motion capture loss, can be determined, which may include losses in joint prediction, losses in parameter prediction, etc.; based on this loss, the parameters of the initial network are adjusted so that the adjusted network can output the predicted joint positions corresponding to the input sample human motion images as close to or consistent with the sample joint positions as possible, and at the same time make the output predicted three-dimensional human motion parameters close to or consistent with the sample three-dimensional human motion parameters, and finally obtain a trained motion capture network.
[0132] Based on the above embodiment, the motion capture loss is determined based on the predicted joint positions and the predicted three-dimensional human motion parameters, as well as the sample joint positions and the sample three-dimensional human motion parameters corresponding to the sample human motion image, including:
[0133] Determining a parameter prediction loss based on the predicted three-dimensional human motion parameters and the sample three-dimensional human motion parameters;
[0134] Determine the joint prediction loss based on the predicted joint positions and the sample joint positions;
[0135] Determine a joint projection loss based on the predicted joint position and the two-dimensional projection position of the sample joint position;
[0136] The motion capture loss is determined based on the parameter prediction loss, joint prediction loss, and joint projection loss.
[0137] Specifically, when determining the motion capture loss based on the predicted joint positions and predicted three-dimensional human motion parameters, as well as the sample joint positions and sample three-dimensional human motion parameters corresponding to the sample human motion images, the network loss can be divided into three parts, namely the loss on parameter prediction, i.e., parameter prediction loss, the loss on joint position prediction, i.e., joint prediction loss, and joint projection loss. Here, the joint projection loss is essentially a loss for the joint points of each part proposed to supervise the predicted joint positions from different perspectives in order to reduce the unnatural distortion of each part, thereby improving the accuracy of motion capture. This loss is also called multi-perspective projection loss.
[0138] Here, the parameter prediction loss can be determined by the predicted 3D human motion parameters output by the initial network and the parameter label of the sample (sample 3D human motion parameters); specifically, the loss can be measured by the difference between the predicted 3D human motion parameters and the sample 3D human motion parameters, thereby obtaining the parameter prediction loss, which can be expressed as:
[0139] L p =||PP * ||
[0140] Among them, L p is the parameter prediction loss, P is the predicted 3D human motion parameter, P * is the sample 3D human motion parameter, ||PP * || indicates P and P * Error calculation.
[0141] The joint prediction loss can be determined by the predicted joint position output by the initial network and the joint label of the sample (sample joint position); specifically, the loss is measured by the difference between the predicted joint position and the sample joint position, thereby obtaining the joint prediction loss, which can be expressed as:
[0142]
[0143] Among them, L 3D is the joint prediction loss, J 3D represents the predicted joint position, represents the sample joint position, Indicates J 3D and Calculation error.
[0144] The joint projection loss can be determined by predicting the two-dimensional projection position of the joint position and the two-dimensional projection position of the sample joint position; specifically, the joint point is projected from the three-dimensional space to the two-dimensional plane through multi-view mapping. Figure 2 is an example diagram of the multi-view mapping process provided by the present invention, such as Figure 2 As shown in the figure, the predicted joint points and joint labels are mapped to the four faces of front, back, left, and right, and the joint errors are calculated in the four two-dimensional coordinate systems to obtain the joint projection loss. This process can be expressed as:
[0145]
[0146] Among them, L 2D is the joint projection loss, j represents the plane in the two-dimensional coordinate system, with a total of four faces: front, back, left, and right. represents the two-dimensional projection position of the predicted joint position, represents the predicted projection position of the sample joint position, Represents the error between the two-dimensional projection position of the predicted joint position and the sample joint position corresponding to the same plane.
[0147] It should be noted that after determining the above three losses, in the embodiment of the present invention, the parameter prediction loss, joint prediction loss and joint projection loss can be combined to determine the motion capture loss. For example, the motion capture loss of the initial network can be determined by summing, weighted summing, etc. on the basis of these three losses. Specifically in the embodiment of the present invention, the motion capture loss can be calculated by weighted summing, which can be expressed as:
[0148] L=λ1L p +λ2L 3D +λ3L 2D
[0149] Among them, L is the motion capture loss, λ1, λ2 and λ3 are the weights of parameter prediction loss, joint prediction loss and joint projection loss respectively.
[0150] The three-dimensional human motion capture device provided by the present invention is described below. The three-dimensional human motion capture device described below and the three-dimensional human motion capture method described above can be referenced to each other.
[0151] Figure 3 3D human motion capture device provided by the present invention is shown in FIG. Figure 3 As shown, the device comprises:
[0152] An image determining unit 310, configured to determine a human action image;
[0153] The motion capture unit 320 is used to extract features from the human motion image based on a motion capture network, determine hand features and head features based on body features obtained through feature extraction, and determine three-dimensional human motion parameters based on the body features, the hand features and the head features;
[0154] An action generating unit 330 is used to generate a 3D human action corresponding to the human action image based on the 3D human action parameter;
[0155] The motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
[0156] The 3D human motion capture device provided by the present invention extracts features from human motion images, determines hand features and head features through the extracted body features, determines 3D human motion parameters based on the extracted features, and directly generates 3D human motion according to the parameters, thereby overcoming the defects of distorted and unnatural motion postures of various parts in human motion capture in traditional solutions, as well as low accuracy and efficiency of motion capture. The determination of features of various parts is simplified on the basis of body features extracted by a motion capture network, thereby accelerating the capture of human motion and improving the efficiency of motion capture. Furthermore, motion generation is performed in a parameterized manner, and there is no need to splice the hands and head with the body, thereby avoiding the unnatural distortion caused by the splicing of various parts, thereby achieving improved efficiency and accuracy of motion capture.
[0157] Based on the above embodiment, the motion capture unit 320 is used for:
[0158] Dividing the human action image into blocks to obtain a plurality of image blocks;
[0159] Performing feature extraction and position encoding on each image block to obtain image features and position features of each image block, and fusing the image features and position features to obtain fused features;
[0160] Feature encoding is performed on the fused features of the image blocks to obtain body features.
[0161] Based on the above embodiment, the motion capture unit 320 is used for:
[0162] Acquire a target body feature, wherein the target body feature is extracted from the sample human motion image based on the motion capture network;
[0163] The fusion features of the image blocks and the target body features are fused, and the fused features are feature encoded to obtain body features.
[0164] Based on the above embodiment, the motion capture unit 320 is used for:
[0165] Based on the body features, determining the head joint positions and the hand joint positions;
[0166] Based on the body features, and the head joint positions and hand joint positions, head features and hand features are determined.
[0167] Based on the above embodiment, the three-dimensional human motion parameters include body motion parameters, hand motion parameters and head motion parameters; the body motion parameters, the hand motion parameters and the head motion parameters are respectively obtained by regression based on the body features, the hand features and the head features; the motion capture unit 320 is used to:
[0168] Based on the body characteristics, determining body movement parameters;
[0169] Based on the body motion parameters, the head joint positions and the hand joint positions are determined.
[0170] Based on the above embodiment, the device further includes a network training unit, which is used to:
[0171] Obtain sample human action images;
[0172] Based on the initial network, determining predicted joint positions and predicted three-dimensional human motion parameters corresponding to the sample human motion image;
[0173] Determine a motion capture loss based on the predicted joint positions and the predicted three-dimensional human motion parameters, and sample joint positions and sample three-dimensional human motion parameters corresponding to the sample human motion image, and perform parameter iteration on the initial network based on the motion capture loss to obtain a motion capture network;
[0174] The initial network is used to perform feature extraction on the sample human motion image, determine the predicted joint positions based on the predicted body features obtained through feature extraction, determine the predicted head features and the predicted hand features based on the predicted body features and the predicted joint positions, and determine the predicted three-dimensional human motion parameters based on the predicted body features, the predicted hand features and the predicted head features.
[0175] Based on the above embodiment, the network training unit is used for:
[0176] Determining a parameter prediction loss based on the predicted three-dimensional human motion parameter and the sample three-dimensional human motion parameter;
[0177] Determining a joint prediction loss based on the predicted joint position and the sample joint position;
[0178] Determine a joint projection loss based on the predicted joint position and the two-dimensional projection position of the sample joint position;
[0179] A motion capture loss is determined based on the parameter prediction loss, the joint prediction loss and the joint projection loss.
[0180] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute a three-dimensional human motion capture method, the method comprising: determining a human motion image; based on a motion capture network, performing feature extraction on the human motion image, determining hand features and head features based on the body features obtained by feature extraction, and determining three-dimensional human motion parameters based on the body features, the hand features and the head features; based on the three-dimensional human motion parameters, generating a three-dimensional human motion corresponding to the human motion image; wherein the motion capture network is trained based on a sample human motion image and a sample three-dimensional human motion parameter corresponding to the sample human motion image.
[0181] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0182] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the three-dimensional human motion capture method provided by the above-mentioned methods, and the method includes: determining a human motion image; based on a motion capture network, performing feature extraction on the human motion image, determining hand features and head features based on the body features obtained by the feature extraction, and determining three-dimensional human motion parameters based on the body features, the hand features and the head features; based on the three-dimensional human motion parameters, generating three-dimensional human motion corresponding to the human motion image; wherein the motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
[0183] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the three-dimensional human motion capture method provided by the above-mentioned methods, the method comprising: determining a human motion image; performing feature extraction on the human motion image based on a motion capture network, determining hand features and head features based on body features obtained by feature extraction, and determining three-dimensional human motion parameters based on the body features, the hand features and the head features; generating three-dimensional human motion corresponding to the human motion image based on the three-dimensional human motion parameters; wherein the motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
[0184] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0185] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0186] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A three-dimensional human motion capture method, characterized in that: include: Determine human action images; Based on a motion capture network, feature extraction is performed on the human motion image, hand features and head features are determined based on body features obtained by feature extraction, and three-dimensional human motion parameters are determined based on the body features, the hand features and the head features; Based on the three-dimensional human motion parameters, generating a three-dimensional human motion corresponding to the human motion image; The motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
2. The three-dimensional human motion capture method according to claim 1, characterized in that: The step of extracting features from the human action image comprises: Dividing the human action image into blocks to obtain a plurality of image blocks; Performing feature extraction and position encoding on each image block to obtain image features and position features of each image block, and fusing the image features and position features to obtain fused features; Feature encoding is performed on the fused features of the image blocks to obtain body features.
3. The three-dimensional human motion capture method according to claim 2, characterized in that: The step of encoding the fusion features of each image block to obtain body features includes: Acquire a target body feature, wherein the target body feature is extracted from the sample human motion image based on the motion capture network; The fusion features of the image blocks and the target body features are fused, and the fused features are feature encoded to obtain body features.
4. The method for capturing three-dimensional human motion according to any one of claims 1 to 3, characterized in that: The determining of hand features and head features based on the body features obtained by feature extraction includes: Based on the body features, determining the head joint positions and the hand joint positions; Based on the body features, and the head joint positions and hand joint positions, head features and hand features are determined.
5. The 3D human motion capture method according to claim 4, characterized in that: The three-dimensional human motion parameters include body motion parameters, hand motion parameters and head motion parameters; the body motion parameters, the hand motion parameters and the head motion parameters are respectively obtained by regression based on the body features, the hand features and the head features; Determining the head joint position and the hand joint position based on the body features includes: Based on the body characteristics, determining body movement parameters; Based on the body motion parameters, the head joint positions and the hand joint positions are determined.
6. The method for capturing 3D human motion according to any one of claims 1 to 3, characterized in that: The motion capture network is trained based on the following steps: Obtain sample human action images; Based on the initial network, determining predicted joint positions and predicted three-dimensional human motion parameters corresponding to the sample human motion image; Determine a motion capture loss based on the predicted joint positions and the predicted three-dimensional human motion parameters, and sample joint positions and sample three-dimensional human motion parameters corresponding to the sample human motion image, and perform parameter iteration on the initial network based on the motion capture loss to obtain a motion capture network; The initial network is used to perform feature extraction on the sample human motion image, determine the predicted joint positions based on the predicted body features obtained through feature extraction, determine the predicted head features and the predicted hand features based on the predicted body features and the predicted joint positions, and determine the predicted three-dimensional human motion parameters based on the predicted body features, the predicted hand features and the predicted head features.
7. The method for capturing 3D human motion according to claim 6, characterized in that: The determining of the motion capture loss based on the predicted joint positions and the predicted three-dimensional human motion parameters, and the sample joint positions and sample three-dimensional human motion parameters corresponding to the sample human motion image, comprises: Determining a parameter prediction loss based on the predicted three-dimensional human motion parameter and the sample three-dimensional human motion parameter; Determining a joint prediction loss based on the predicted joint position and the sample joint position; Determine a joint projection loss based on the predicted joint position and the two-dimensional projection position of the sample joint position; A motion capture loss is determined based on the parameter prediction loss, the joint prediction loss and the joint projection loss.
8. A three-dimensional human motion capture device, characterized in that: include: An image determination unit, used for determining a human action image; A motion capture unit, configured to extract features from the human motion image based on a motion capture network, determine hand features and head features based on body features obtained through feature extraction, and determine three-dimensional human motion parameters based on the body features, the hand features, and the head features; An action generating unit, configured to generate a three-dimensional human action corresponding to the human action image based on the three-dimensional human action parameter; The motion capture network is trained based on sample human motion images and sample three-dimensional human motion parameters corresponding to the sample human motion images.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the three-dimensional human motion capture method as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the three-dimensional human motion capture method as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Three-dimensional human body action capturing method for human body video and related equipment
CN119445649A
Method for capturing three-dimensional human motion from human video and related device
CN119445649B
Personal protection equipment compliance detection method
CN119741639A
A method for detecting compliance of personal protective equipment
CN119741639B
VR-based perioperative period virtual experience method and system
CN120260828A
