Method and system for generating drivable 3D human body model based on monocular self-rotation video
Through a method based on monocular self-rotation video, SMPL parameter prediction network and neural network are used to generate a driveable 3D human body model, which solves the problems of complex measurement systems and deformation expression in the existing technology, and achieves high-quality and convenient 3D digital Human model generation and driving.
Patent Information
- Application Number
- CN202211707554.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-12-28
AI Technical Summary
The existing 3D digital human modeling system requires a complex human body measurement system and artificial skin binding, cannot directly drive the model, and cannot effectively express the deformation of the human body's hair and clothes, affecting the high-quality expression of the reconstructed model.
A method based on monocular self-rotation video is used to generate a drivable 3D human body model through the SMPL parameter prediction network and neural network model. The self-rotation video is used to obtain shape and posture parameters, optimize the model vertex offset, and build the SMPL-D model. , to achieve high-quality expression and driving of the model.
It achieves the generation of a 3D digital human model that is easy to operate, fast to obtain, and low-cost, improves the geometric similarity between the model and the real object, and can maintain good skin deformation and high-quality expression during movement.
Smart Images

Figure CN117557715B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, virtual reality or mixed reality technology, and in particular to a method and system for generating a drivable 3D human body model based on a human body self-rotation video of a monocular camera. Background Art
[0002] 3D digital human is a virtual image with human or human-like appearance and behavior patterns produced through human body modeling, motion capture, artificial intelligence and other technical means and presented through display devices. It plays a core role in virtual reality and augmented reality, and has a wide range of applications in telecommunications, education, entertainment and other fields.
[0003] At present, high-precision 3D digital human modeling systems use optical measurement technology, image processing technology, and digital signal processing technology to perform non-contact automatic measurement of three-dimensional human body surface contours, which requires a dense camera matrix, specific lighting conditions, and complex environmental settings. The 3D digital human model generated by this method contains the three-dimensional information of all parts of the complete human body, and the overall accuracy is very high. However, this method only reconstructs a static model of the human body and cannot directly drive the model. It requires manual skinning and binding before it can be driven. At the same time, the complex modeling system seriously limits the deployment of 3D digital humans in practice.
[0004] With the development of artificial intelligence technology, the 3D digital human reconstruction algorithm based on the human body parametric model SMPL (Skinned Multi-Person Linear model) can reconstruct the human body model and simulate the complex posture changes of the human body through predefined skeleton and rotation parameters. However, the SMPL model cannot express the deformation of the human body's hair, clothes, etc., which affects the high-quality expression of the reconstructed model. Therefore, how to generate a 3D digital human model with details and can be directly driven is a problem we need to consider. Summary of the invention
[0005] Purpose of the invention: In view of the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a method and system for generating a drivable 3D human body model based on monocular self-rotating video, which does not require a complex human body measurement system, is easy to operate, has a fast acquisition speed, and can improve the similarity between the generated drivable 3D digital human model and the real object.
[0006] Technical solution: To achieve the above-mentioned purpose of the invention, the present invention provides a method for generating a drivable 3D human body model based on a monocular self-rotating video, comprising the following steps:
[0007] Use a fixed monocular camera to obtain a self-rotating video of a person;
[0008] Input each frame of the self-rotation video into the SMPL parameter prediction network to obtain corresponding SMPL parameters, including shape parameters and posture parameters;
[0009] Calculate the mean of the shape parameters of all images, combine the pose parameters of each frame image with the mean shape parameters to obtain the SMPL model, and optimize the pose parameters of each frame image through the contour loss between the 3D model rendering image and the 2D image portrait, so as to obtain the optimized SMPL model of each frame;
[0010] A neural network model is constructed, whose input is the posture parameters of each frame image, and whose output is the offset of each vertex of the SMPL model; the offset is superimposed on the corresponding SMPL model of each frame to obtain an SMPL-D model, and the difference in the portrait contour between the image rendered by the SMPL-D model and the original image is taken as the error, and the network model parameters are optimized to obtain a trained neural network model;
[0011] The offset of each frame is calculated through the trained neural network model, and the weight is attached according to the visible range of each frame;
[0012] The weighted offsets of each frame are weighted averaged to obtain the final offset, which is then superimposed with the SMPL model under the mean shape parameter to obtain the final SMPL-D model.
[0013] Preferably, the SMPL parameter prediction network can adopt a PyMaf network.
[0014] Preferably, the method for optimizing the posture parameters of each frame image is: for each frame image and the corresponding SMPL parameters, the 3D SMPL model is rendered into a 2D image through a 3D model toolkit, and the original each frame image is subjected to portrait cutout to obtain a human body contour map, and the posture parameters of each frame image are optimized based on the L1 distance loss between the rendered image and the human body contour map.
[0015] Preferably, the neural network model adopts a multi-layer perceptron MLP model.
[0016] Preferably, the parameter optimization method of the neural network model is: rendering the SMPL-D model into a 2D image through a 3D model toolkit, using the portrait image deducted from each original frame image, calculating the L1 distance loss of whether each pixel belongs to the inside of the portrait and the Laplace loss of the SMPL-D model, and optimizing the network model parameters.
[0017] Preferably, the weight of the offset of each vertex in the SMPL model is: if the vertex is within the visible range of the image, it is assigned a value of 1; if not, it is assigned a value of 0.
[0018] Based on the same inventive concept, the present invention provides a drivable 3D human body model generation system based on monocular self-rotation video, comprising:
[0019] The self-rotation video acquisition module is used to obtain the self-rotation video of a person using a fixed monocular camera;
[0020] A per-frame SMPL parameter prediction module, used for inputting each frame of the self-rotation video into the SMPL parameter prediction network to obtain corresponding SMPL parameters, including shape parameters and posture parameters;
[0021] The pose parameter optimization module is used to calculate the mean of the shape parameters of all images, combine the pose parameters of each frame of the image with the mean shape parameters to obtain the SMPL model, and optimize the pose parameters of each frame of the image through the contour loss between the 3D model rendering image and the 2D image portrait, so as to obtain the optimized SMPL model of each frame;
[0022] The network model parameter optimization module is used to construct a neural network model, whose input is the posture parameter of each frame image, and whose output is the offset of each vertex of the SMPL model; the offset is superimposed on the corresponding SMPL model of each frame to obtain an SMPL-D model, and the difference in the portrait contour between the image rendered by the SMPL-D model and the original image is taken as the error, and the network model parameters are optimized to obtain a trained neural network model;
[0023] And, the SMPL-D model optimization module is used to calculate the offset of each frame of the image through the trained neural network model, and attach a weight through the visible range of each frame; and to weighted average the weighted offset of each frame to obtain the final offset, and superimpose it with the SMPL model under the mean shape parameter to obtain the final SMPL-D model.
[0024] Based on the same inventive concept, the present invention provides a computer system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for generating a drivable 3D human body model based on a monocular self-rotating video is implemented.
[0025] Beneficial effects: Compared with the prior art, the present invention has the following advantages: 1. The present invention obtains the self-rotation video of the human body through a single RGB ordinary camera. Compared with the complex human body measurement system, it has the advantages of low acquisition cost, fast acquisition speed, few construction processes, and convenient operation. 2. The present invention adopts the SMPL-D model to describe the offset of the head and clothes to the SMPL model, which can increase the authenticity of the reconstructed human body, and can be driven by the posture parameters of the SMPL model, with good skin deformation during the movement, and has a high geometric similarity with the real object. 3. Compared with the problem that the single reconstruction cannot obtain the information of other perspectives of the human body, the reconstruction of other perspectives such as the back and the side is based on network prediction, which is not accurate enough, the present invention adopts self-rotation video reconstruction, which can obtain information from all angles of the human body, can completely reconstruct all parts of the human body, and the data collection is not much more troublesome than single reconstruction, and achieves superior performance with lower complexity. 4. Based on the self-rotation video of the human body, the present invention only needs one parameter calibration for the fixed camera, and can obtain accurate mean shape parameters, and then optimize the posture parameters predicted by the network in advance. Through the optimization of the posture parameters, the accuracy of the posture parameters can be improved, thereby improving the final reconstruction effect. 5. The present invention constructs a neural network model, establishes the relationship between the posture parameters of each frame and the vertex offset of the SMPL model, and guides the training of the network model through the original video image. The offset in the visible range of each frame can be well restored through network optimization. Then, by taking the visible range as a weight and performing weighted averaging, an accurate global offset expression can be obtained, thereby achieving high-quality expression of the reconstructed model. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 The figure is a flow chart of a method according to an embodiment of the present invention.
[0027] Figure 2 Schematic diagram of a folder for collecting data in an embodiment of the present invention.
[0028] Figure 3 This is a flow chart of SMPL attitude parameter optimization in an embodiment of the present invention.
[0029] Figure 4 This is an example diagram of SMPL posture parameter optimization in an embodiment of the present invention.
[0030] Figure 5 This is an example diagram of SMPL-D model generation for a single frame in an embodiment of the present invention.
[0031] Figure 6 An example diagram of the final SMPL-D model generation for the fused offset in an embodiment of the present invention.
[0032] Figure 7 Schematic diagram of system modules according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments.
[0034] like Figure 1 As shown, a method for generating a drivable 3D human body model based on a monocular self-rotating video disclosed in an embodiment of the present invention specifically includes the following steps:
[0035] Step 1. Use a bracket to fix a monocular RGB camera and shoot a self-rotation video of a person rotating around a fixed point.
[0036] Step 2. Use the camera fixed in step 1 and Zhang Zhengyou calibration method to calibrate the camera's intrinsic and extrinsic parameters using a checkerboard.
[0037] like Figure 2 In this example, the video is divided into pictures of each frame using OpenCV, and the camera's intrinsic and extrinsic calibration results are placed in a folder.
[0038] Step 3. Use the SMPL parameter prediction network to predict the SMPL parameters, and predict the SMPL parameters of each frame in the video, including shape parameters and posture parameters. In this example, PyMaf is used to predict the SMPL parameters of each frame, and the results of each frame are saved in the previous folder. The SMPL parameter prediction network can also use network models such as PARE, Hybrik, and SPIN.
[0039] Step 4. Calculate the mean of the SMPL shape parameters of all images as the mean shape parameter.
[0040] Step 5. Using the mean shape parameter calculated in step 4, the pose parameters of each frame are combined with the mean shape parameter to obtain the SMPL model, and the SMPL pose parameters of each frame image are optimized through the contour loss between the 3D model rendering image and the 2D image portrait.
[0041] Specifically, Figure 3 , 4 As shown in the figure, in this example, for each frame image and the corresponding SMPL parameters, the 3D SMPL model is rendered into a 2D image through the Pytorch3D library, and the original image is subjected to portrait cutout using U2Net to obtain the human body contour map, and the L1 distance loss between the rendered image and the human body contour map is calculated to optimize the SMPL posture parameters of each frame image.
[0042] Step 6. Construct a neural network whose input is the pose parameters of each frame and output is the offset of each vertex of the SMPL model.
[0043] Specifically, the constructed neural network is a regression network, whose input is the rotation matrix of 23 joint points of each frame posture, and whose output is the offset in three directions of each vertex of 6890 vertices of the SMPL model; the network adopts a multi-layer perceptron MLP network, and the number of neurons in the input layer and the output layer is determined according to the actual data dimension.
[0044] Step 7. Input the posture parameters optimized based on step 5 into the neural network and obtain a set of offsets as output for each frame.
[0045] Step 8. Superimpose the offset of each frame onto the initial SMPL model of each frame to obtain the SMPL-D model.
[0046] Specifically, the initial model of each frame is a SMPL model obtained by the mean shape parameter and the pose parameter of each frame. The calculated offset is added to the SMPL model to obtain the SMPL-D model, as shown in Figure 5 .
[0047] Step 9. The difference in portrait contour between the image rendered by the SMPL-D model and the original image is taken as the error, and the network model parameters are optimized.
[0048] Specifically, in this example, the SMPL-D model is rendered into a 2D image through the Pytorch3D library. The portrait image deducted in step 5 is used to calculate the L1 distance loss of whether each pixel belongs to the inside of the portrait and the Laplace loss of the SMPL-D model, so as to optimize the network model parameters.
[0049] Step 10. Based on step 9, the offset of each frame image is calculated through the trained network model, and a weight is attached according to the visible range of each frame.
[0050] Specifically, for each frame of the image, the offset of the SMPL model vertex is calculated through the trained network model to obtain the SMPL-D model. Then, it is determined whether each vertex of the model is in the visible range of the image. If so, it is assigned a value of 1, and if not, it is assigned a value of 0.
[0051] Step 11. Take the weighted average of the offsets with weights for each frame to get the final offset of the model, and superimpose it with the SMPL model under the mean shape parameter to get the final SMPL-D model, as shown in Figure 6 shown.
[0052] like Figure 7As shown, an embodiment of the present invention discloses a drivable 3D human body model generation system based on a monocular self-rotation video, comprising: a self-rotation video acquisition module, used to obtain a self-rotation video of a person using a fixed monocular camera; a per-frame SMPL parameter prediction module, used to input each frame image in the self-rotation video into an SMPL parameter prediction network to obtain corresponding SMPL parameters; a posture parameter optimization module, used to calculate the mean of shape parameters of all images, combine the posture parameters of each frame image with the mean shape parameters to obtain an SMPL model, and optimize the posture parameters of each frame image through the contour loss between the 3D model rendering image and the 2D image portrait, so as to obtain an optimized per-frame SMPL model; a network model parameter optimization module, used to use The invention relates to a neural network model, wherein the input is the posture parameter of each frame image, and the output is the offset of each vertex of the SMPL model; the offset is superimposed on the corresponding SMPL model of each frame to obtain the SMPL-D model, and the difference of the portrait contour between the image rendered by the SMPL-D model and the original image is taken as the error, and the network model parameters are optimized to obtain the trained neural network model; and the SMPL-D model optimization module is used to calculate the offset of each frame image through the trained neural network model, and attach a weight through the visible range of each frame; and the weighted average of the offset with weight of each frame is obtained to obtain the final offset, and it is superimposed with the SMPL model under the mean shape parameter to obtain the final SMPL-D model.
[0053] The specific working process of each module described above can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here. The module division is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system.
[0054] Based on the same inventive concept, an embodiment of the present invention discloses a computer system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for generating a drivable 3D human body model based on monocular self-rotation video is implemented.
[0055] It can be understood by those skilled in the art that the technical solution of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present invention. The storage medium includes: various media that can store computer programs, such as a USB flash drive, a mobile hard disk, a read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
Claims
1. A method for generating a drivable 3D human body model based on a monocular self-rotating video, characterized in that: The steps include: Use a fixed monocular camera to obtain a self-rotating video of a person; Input each frame of the self-rotation video into the SMPL parameter prediction network to obtain corresponding SMPL parameters, including shape parameters and posture parameters; The mean of the shape parameters of all images is calculated, and the posture parameters of each frame image are combined with the mean shape parameters to obtain the SMPL model, and the posture parameters of each frame image are optimized by the contour loss between the 3D model rendering image and the 2D image portrait, so as to obtain the optimized SMPL model of each frame; the optimization method of the posture parameters of each frame image is: for each frame image and the corresponding SMPL parameters, the 3D SMPL model is rendered into a 2D image through the 3D model toolkit, and the original each frame image is subjected to the portrait cutout to obtain the human body contour map, and the posture parameters of each frame image are optimized based on the L1 distance loss between the rendered image and the human body contour map; A neural network model is constructed, whose input is the posture parameters of each frame image, and whose output is the offset of each vertex of the SMPL model; the offset is superimposed on the corresponding SMPL model of each frame to obtain an SMPL-D model, and the difference in the portrait contour between the image rendered by the SMPL-D model and the original image is taken as an error, and the network model parameters are optimized to obtain a trained neural network model; the parameter optimization method of the neural network model is: the SMPL-D model is rendered into a 2D image through a 3D model toolkit, and the portrait image extracted from each original frame image is used to calculate the L1 distance loss of whether each pixel belongs to the inside of the portrait and the Laplace loss of the SMPL-D model, and the network model parameters are optimized; The offset of each frame is calculated through the trained neural network model, and the weight is assigned according to the visible range of each frame; The weighted offsets of each frame are weighted averaged to obtain the final offset, which is then superimposed with the SMPL model under the mean shape parameter to obtain the final SMPL-D model.
2. The method for generating a drivable 3D human body model based on a monocular self-rotation video according to claim 1, characterized in that: The SMPL parameter prediction network adopts the PyMaf network.
3. The method for generating a drivable 3D human body model based on a monocular self-rotation video according to claim 1, characterized in that: The neural network model adopts a multi-layer perceptron MLP model.
4. The method for generating a drivable 3D human body model based on a monocular self-rotation video according to claim 1, characterized in that: The weight of the offset of each vertex in the SMPL model is: if the vertex is within the visible range of the image, it is assigned a value of 1, and if it is not, it is assigned a value of 0.
5. A drivable 3D human body model generation system based on monocular self-rotation video, characterized in that: include: The self-rotation video acquisition module is used to obtain the self-rotation video of a person using a fixed monocular camera; A per-frame SMPL parameter prediction module, used for inputting each frame of the self-rotation video into the SMPL parameter prediction network to obtain corresponding SMPL parameters, including shape parameters and posture parameters; The pose parameter optimization module is used to calculate the mean of the shape parameters of all images, combine the pose parameters of each frame of the image with the mean shape parameters to obtain the SMPL model, and optimize the pose parameters of each frame of the image through the contour loss between the 3D model rendering image and the 2D image portrait, so as to obtain the optimized SMPL model of each frame; The network model parameter optimization module is used to construct a neural network model, whose input is the posture parameter of each frame image, and whose output is the offset of each vertex of the SMPL model; the offset is superimposed on the corresponding SMPL model of each frame to obtain an SMPL-D model, and the difference in the portrait contour between the image rendered by the SMPL-D model and the original image is taken as the error, and the network model parameters are optimized to obtain a trained neural network model; And, the SMPL-D model optimization module is used to calculate the offset of each frame of the image through the trained neural network model and assign weights according to the visible range of each frame; And the weighted average of the offsets with weights in each frame is obtained to obtain the final offset, and it is superimposed with the SMPL model under the mean shape parameter to obtain the final SMPL-D model; In the posture parameter optimization module, for each frame image and the corresponding SMPL parameters, the 3DSMPL model is rendered into a 2D image through a 3D model toolkit, and the original each frame image is subjected to portrait cutout to obtain a human body contour map, and the posture parameters of each frame image are optimized based on the L1 distance loss between the rendered image and the human body contour map; In the network model parameter optimization module, the SMPL-D model is rendered into a 2D image through a 3D model toolkit, and the portrait image extracted from each original frame image is used to calculate the L1 distance loss of whether each pixel belongs to the inside of the portrait and the Laplace loss of the SMPL-D model to optimize the network model parameters.
6. A computer system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is loaded into a processor, the method for generating a drivable 3D human body model based on a monocular self-rotation video according to any one of claims 1 to 4 is implemented.
