Method, device, electronic device and storage medium for establishing three-dimensional human body model

By fusing feature maps and two-dimensional key point locations, using graph convolutional neural networks to improve the accuracy of pose parameters, and combining morphology and camera parameters to build a high-precision three-dimensional human body model, the problem of low accuracy in the existing technology is solved and achieved for more efficient 3D model building.

CN114078181BActive Publication Date: 2024-10-29BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010839251.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-19
Publication Date
2024-10-29
Estimated Expiration
2040-08-19

AI Technical Summary

Technical Problem

In the existing technology, the three-dimensional human body model established based on a single image using deep neural networks has low accuracy, and lacks versatility and speed.

Method used

By obtaining the image to be processed of the human body, extracting the intermediate feature map and two-dimensional key point positions, inputting the graph convolutional neural network after fusion processing, obtaining the pose parameters, establishing a three-dimensional model based on the morphology and camera parameters, using the graph convolutional neural network Graph data characteristics improve the accuracy of pose parameters.

Benefits of technology

It improves the accuracy and versatility of the three-dimensional human body model, reduces the amount of calculation and parameters, is suitable for transplantation on different platforms, and makes up for the lack of spatial information in two-dimensional regression to three-dimensional.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114078181B_ABST
    Figure CN114078181B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, electronic device and storage medium for establishing a three-dimensional model of a human body, which is helpful to improve the accuracy of the established three-dimensional model of a human body. The method includes: obtaining an image to be processed including a human body; inputting the image to be processed into a neural network model to obtain a first intermediate feature map and the positions of two-dimensional key points of the human body in the image to be processed respectively; the first intermediate feature map is used to characterize the surface structural information of the human body in the image to be processed; the first intermediate feature map and the positions of two-dimensional key points of the human body are fused to obtain a fused feature map; the fused feature map is input into a graph convolutional neural network to obtain the posture parameters of the human body; the fused feature map is input into a parameter extraction network to obtain the human body morphological parameters and camera parameters; according to the posture parameters, the human body morphological parameters and the camera parameters, a three-dimensional model of the human body is established.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical fields of computer vision and computer graphics, and in particular to a method, device, electronic device and storage medium for establishing a three-dimensional model of a human body. Background Art

[0002] The establishment of a 3D human body model is a key issue in the field of computer vision and computer graphics technology. High-quality 3D human body models have broad application prospects and important application value in the fields of film and television entertainment, population data statistical analysis, etc.

[0003] At present, the establishment of high-quality human 3D models usually relies on expensive laser scanners or multi-camera array systems. This method of establishing human 3D models has poor versatility, limited applicable scenarios, and takes a long time to build. Using deep neural networks to reconstruct human 3D models based on a single image is fast and versatile, but the accuracy of the established human 3D models is low. Summary of the invention

[0004] The present disclosure provides a method, device, electronic device and storage medium for establishing a three-dimensional human body model, so as to solve the problem of low accuracy of the three-dimensional human body model currently established based on a single image using a deep neural network.

[0005] The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, an embodiment of the present disclosure provides a method for establishing a three-dimensional model of a human body, the method comprising: obtaining an image to be processed including a human body; inputting the image to be processed into a neural network model to obtain a first intermediate feature map and the positions of two-dimensional key points of the human body in the image to be processed, respectively; the first intermediate feature map is used to characterize the surface structure information of the human body in the image to be processed; the first intermediate feature map and the positions of the two-dimensional key points of the human body are fused to obtain a fused feature map; the fused feature map is input into a graph convolutional neural network to obtain posture parameters of the human body; the fused feature map is input into a parameter extraction network to obtain human body morphological parameters and camera parameters; and a three-dimensional model of the human body is established according to the posture parameters, human body morphological parameters and camera parameters.

[0007] The disclosed embodiment processes the image to be processed including the human body to obtain the first intermediate feature map and the positions of the two-dimensional key points of the human body in the image to be processed, fuses the first intermediate feature map and the positions of the two-dimensional key points of the human body to obtain a fused feature map, and inputs the fused feature map into the graph convolutional neural network to obtain the posture parameters of the human body. Since the joints of the human body naturally have a connection relationship, the posture parameters of the human body obtained using the graph convolutional neural network are more accurate. The fused feature map obtained by fusing the first intermediate feature map with the positions of the two-dimensional key points of the human body enriches the input of the graph convolutional neural network, further improving the accuracy of the predicted posture parameters of the human body. This makes the accuracy of the three-dimensional human body model established using the posture parameters of the human body, human body morphology parameters and camera parameters obtained in this application higher.

[0008] In a possible implementation, the above-mentioned inputting the fused feature map into the parameter extraction network to obtain human body morphological parameters and camera parameters includes: inputting the fused feature map into the parameter extraction network, fusing the fused feature map, the initial human body morphological parameters and the preset camera parameters to obtain a feature map of preset dimension; inputting the feature map of preset dimension into the first fully connected layer in the parameter extraction network to obtain human body morphological parameters; inputting the feature map of preset dimension into the second fully connected layer in the parameter extraction network to obtain camera parameters.

[0009] In another possible implementation, the above-mentioned inputting the fused feature map into the graph convolutional neural network to obtain the posture parameters of the human body includes: adjusting the fused feature map to a preset size; inputting the adjusted fused feature map and the preset adjacency matrix into the graph convolutional neural network to obtain the posture parameters of the human body; wherein the preset adjacency matrix is ​​used to characterize the positional relationship between the two-dimensional key points of the human body.

[0010] In another possible implementation, the number of rows and columns of the preset adjacency matrix are equal to the number of two-dimensional key points of the human body; the method also includes: performing the following operations for each element in the preset adjacency matrix to determine the value of each element in the preset adjacency matrix: when the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is adjacent to the key point corresponding to the column where the element is located, determining the value of the element to be a first value; when the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is not adjacent to the key point corresponding to the column where the element is located, determining the value of the element to be a second value.

[0011] In another possible implementation, the above-mentioned fusion processing of the first intermediate feature map and the two-dimensional key point positions of the human body to obtain a fused feature map includes: inputting the first intermediate feature map and the two-dimensional key point positions of the human body into a fusion network, multiplying the first intermediate feature map, the two-dimensional key point positions of the human body and a three-dimensional weight matrix preset in the fusion network, and adding the product obtained by the multiplication to the offset matrix preset in the fusion network to obtain the fused feature map.

[0012] According to a second aspect of an embodiment of the present disclosure, a device for establishing a three-dimensional model of a human body is provided, comprising: an acquisition module, configured to acquire an image to be processed including a human body; a preprocessing module, configured to input the image to be processed into a neural network model to respectively obtain a first intermediate feature map and the positions of two-dimensional key points of the human body in the image to be processed; the first intermediate feature map is used to characterize the surface structural information of the human body in the image to be processed; a fusion module, configured to fuse the first intermediate feature map and the positions of the two-dimensional key points of the human body to obtain a fused feature map; a parameter extraction module, configured to input the fused feature map into a graph convolutional neural network to obtain posture parameters of the human body; input the fused feature map into a parameter extraction network to obtain human body morphological parameters and camera parameters; and an establishment module, configured to establish a three-dimensional model of the human body according to the posture parameters, human body morphological parameters and camera parameters.

[0013] In a possible implementation, the parameter extraction module is specifically configured as follows: inputting the fused feature map into a parameter extraction network, fusing the fused feature map, initial human body morphological parameters and preset camera parameters to obtain a feature map of preset dimensions; inputting the feature map of preset dimensions into the first fully connected layer in the parameter extraction network to obtain human body morphological parameters; inputting the feature map of preset dimensions into the second fully connected layer in the parameter extraction network to obtain camera parameters.

[0014] In another possible implementation, the parameter extraction module is further configured to: adjust the fused feature map to a preset size; input the adjusted fused feature map and the preset adjacency matrix into the graph convolutional neural network to obtain the posture parameters of the human body; wherein the preset adjacency matrix is ​​used to characterize the positional relationship between the two-dimensional key points of the human body.

[0015] In another possible implementation, the number of rows and columns of the preset adjacency matrix are equal to the number of two-dimensional key points of the human body; the establishment module is also configured to: perform the following operations for each element in the preset adjacency matrix to determine the value of each element in the preset adjacency matrix: when the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is adjacent to the key point corresponding to the column where the element is located, determine that the value of the element is a first value; when the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is not adjacent to the key point corresponding to the column where the element is located, determine that the value of the element is a second value.

[0016] In another possible implementation, the fusion module is specifically configured to: input the first intermediate feature map and the two-dimensional key point positions of the human body into the fusion network, multiply the first intermediate feature map, the two-dimensional key point positions of the human body and the three-dimensional weight matrix preset in the fusion network, and add the product obtained by the multiplication to the preset offset matrix in the fusion network to obtain a fused feature map.

[0017] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor. The processor is configured to execute the instructions to implement the method for establishing a three-dimensional human body model as shown in the first aspect and any possible implementation of the first aspect.

[0018] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a method for establishing a three-dimensional model of a human body as shown in the first aspect and any possible implementation of the first aspect.

[0019] According to the fifth aspect of the embodiments of the present disclosure, a computer program product is provided, which can be directly loaded into the internal memory of a computer and contains software code. After being loaded and executed by the computer, the computer program can implement the method for establishing a three-dimensional human body model shown in the first aspect and any possible implementation method of the first aspect.

[0020] Any of the above-mentioned three-dimensional human body model building devices, electronic devices, computer-readable storage media, or computer program products is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding schemes in the corresponding methods provided above, and will not be repeated here.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0023] Figure 1 is a picture including 24 key points of a human body according to an exemplary embodiment;

[0024] Figure 2 is a flow chart of a method for establishing a three-dimensional human body model according to an exemplary embodiment;

[0025] Figure 3 is a schematic diagram of an application scenario according to an exemplary embodiment;

[0026] Figure 4 is a block diagram of a device for establishing a three-dimensional human body model according to an exemplary embodiment;

[0027] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0028] For ease of understanding, the nouns involved in the embodiments of the present disclosure are explained below.

[0029] 1) Skinned multi-person linear (SMPL) model

[0030] A parametric 3D human body reconstruction model driven by SMPL parameters, which include shape parameters β and pose parameters θ. The shape parameters include 10 parameters such as the height, weight, and head-to-body ratio of the human body; the pose parameters include 72 parameters corresponding to 24 joints (the parameters corresponding to each joint are represented by a 3D rotation vector, so there are 24×3 parameters in total).

[0031] 2) Camera parameters

[0032] The camera parameters in the embodiments of the present disclosure refer to the camera's external parameter matrix, including a rotation matrix and a translation matrix. The rotation matrix and the translation matrix together describe how to transform a point from a world coordinate system to a camera coordinate system.

[0033] 3) Morphological parameters and camera parameter prediction model

[0034] A neural network model for predicting human body morphology and camera parameters in images. The model input of the model is an image, and the model output is 10-dimensional morphological parameters and 3-dimensional camera parameters.

[0035] 4) Key points of the human body

[0036] The key points of the human body refer to the key positions of various parts of the human body. The key points of the human body are crucial for describing human posture and predicting human behavior. The key points of the human body mainly include three points of the left and right arms (wrists, elbows, shoulders), three points of the left and right legs (ankles, knees, hips), hip and buttocks points, and head points (eyes, chin, top of the head).

[0037] like Figure 1 Shown is a picture including 24 key points of the human body.

[0038] 5) Others

[0039] The words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the disclosed embodiments should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific way.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0041] In the embodiments of the present disclosure, "at least one" means one or more, and "plurality" means two or more.

[0042] In the embodiments of the present disclosure, "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0043] like Figure 2 FIG. 1 is a flow chart of a method for establishing a three-dimensional human body model according to an exemplary embodiment. The method can be applied to a computer device. Figure 2 The method shown may include the following steps:

[0044] S100: Acquire an image to be processed including a human body.

[0045] The embodiments of the present disclosure do not limit the method for obtaining the image to be processed. In one possible implementation, the computer device obtains the image to be processed through a camera. In another possible implementation, the computer device selects the image to be processed indicated by the user selection instruction from the stored images according to the received user selection instruction. The user selection instruction may be a user selection instruction issued by the user through the input unit when the image to be processed is received.

[0046] Optionally, the image to be processed is preprocessed so that the image to be processed meets the model input requirements in subsequent processing. The preprocessing method includes cropping and resizing. For example, the size of the image to be processed after preprocessing is 256×256×3.

[0047] In one example, when a user is using an application in a computer device, the computer device receives an image processing instruction in the application selected by the user to "perform three-dimensional modeling of a human body in an image to be processed". The image to be processed is an image acquired in real time by a camera of the computer device.

[0048] S101: Input the image to be processed into the neural network model to obtain the first intermediate feature map and the positions of the two-dimensional key points of the human body in the image to be processed, wherein the first intermediate feature map is used to characterize the surface structure information of the human body in the image to be processed.

[0049] In a possible implementation, the neural network model processes the image to be processed through the following steps to obtain the first intermediate feature map and the positions of the two-dimensional key points of the human body in the image to be processed:

[0050] Step 1: Perform convolution, pooling, and full connection operations on the image to be processed to obtain the first intermediate feature map.

[0051] Step 2: Determine the position of key points of the human body based on the image to be processed.

[0052] Specifically, convolution operations, upsampling operations and convolution operations are performed on the processed image to obtain a heatmap of key points of the human body, and the obtained heatmap of key points of the human body is smoothed (softmax) in wide and high dimensions to obtain the positions of the two-dimensional key points of the human body.

[0053] Exemplarily, a convolution operation is performed on the processed image to obtain an (8×8×N) output image I2; a convolution operation and an upsampling operation are performed on the output image I2 to obtain a 64×64×256 output image I3, and a convolution operation is performed on the output image I3 to obtain a 64×64×14 human body key point hotspot map H, and then the positions of the two-dimensional key points of the human body are desired to be obtained in the wide dimension and high latitude of H.

[0054] S102: Fusing the first intermediate feature map and the two-dimensional key point positions of the human body to obtain a fused feature map;

[0055] In one possible implementation, a computer device inputs a first intermediate feature map and two-dimensional key point positions of a human body into a fusion network, multiplies the first intermediate feature map, the two-dimensional key point positions of a human body, and a three-dimensional weight matrix preset in the fusion network, and adds the product obtained by the multiplication to an offset matrix preset in the fusion network to obtain a fused feature map.

[0056] In this way, the fused feature map combines the high-dimensional feature information of the image to be processed and the two-dimensional key point position information of the human body, enriching the input of the graph convolutional neural network and further improving the accuracy of the graph convolutional neural network in predicting pose parameters.

[0057] The preset three-dimensional weight matrix and the preset offset matrix can be obtained by training when training the fusion network. The fusion network can be a neural network based on a fusion function bilinear.

[0058] Exemplarily, the fusion function can be represented by the following formula:

[0059] kps*W*f1+bias(480)

[0060] Among them, kps is used to characterize the two-dimensional key points of the human body, f1 is the first intermediate feature map. W is a three-dimensional weight matrix, and bias is a preset offset matrix. W and bias are parameters that can be obtained through learning of the network model. The function of this fusion function is to perform matrix multiplication of the three-dimensional weight matrix W with the two-dimensional key points of the human body and the first intermediate feature map, respectively, to obtain new feature information with a dimension of 480.

[0061] S103: Input the fused feature map into the graph convolutional neural network to obtain the posture parameters of the human body, wherein the posture parameters are used to characterize the posture of the human body in the image to be processed.

[0062] In a possible implementation, the computer device obtains the posture parameters of the human body through the following steps:

[0063] Step 1: The computer device adjusts the fused feature map to a preset size, which meets the input requirements of the graph convolutional neural network. Exemplarily, the first feature map is processed into a 24×20 image.

[0064] Step 2: The computer device inputs the adjusted fusion feature map and the preset adjacency matrix into the graph convolutional neural network to obtain the posture parameters of the human body. Among them, the preset adjacency matrix is ​​used to characterize the positional relationship between the two-dimensional key points of the human body. The preset adjacency matrix can be determined based on the positional relationship of the human body's joints. Exemplarily, the number of rows and columns of the preset adjacency matrix are equal to the number of two-dimensional key points of the human body. For each element in the preset adjacency matrix: if the key point corresponding to the row where the element is located is adjacent to the key point corresponding to the column where the element is located, the value of the element is set to 1, if not adjacent, the value of the element is set to 0, thereby constructing the preset adjacency matrix.

[0065] Specifically, the graph convolutional neural network includes: an input layer, a hidden layer, and an output layer. The graph convolutional neural network processes the adjusted fusion feature map in the following steps to obtain the posture parameters of the human body:

[0066] Step 1: Input the adjusted fusion feature map and the preset adjacency matrix into the input layer to obtain the first output intermediate map.

[0067] Exemplarily, the size of the first output intermediate image is 24×256.

[0068] Step 2: Input the first output intermediate image into the hidden layer, perform a preset number of graph convolution operations, and obtain a fused image.

[0069] Exemplarily, the hidden layer includes four convolutional layers, and the first output intermediate image is processed by the four convolutional layers to obtain a fused image with a size of 24×256.

[0070] Step 3: Perform graph convolution operation on the fused image input and output layers to obtain the posture parameters of the human body.

[0071] In this way, the graph convolutional neural network used in the embodiment of the present disclosure predicts the posture parameters of the human body. On the one hand, it can make good use of the connection characteristics of the human body joints to improve the accuracy of using the graph convolutional neural network to predict the posture parameters. On the other hand, the amount of calculation and the amount of parameters of the graph convolutional neural network are less than the linear regression of the neural network, which is conducive to the transplantation of neural networks between different platforms.

[0072] Exemplarily, the size of the human body's posture parameter is 24 × 3. The posture parameter output by the graph convolutional neural network is a 72-dimensional parameter, which is used to indicate the rotation vector of 24 joints of the human body.

[0073] S104: Input the fused feature map into a parameter extraction network to obtain human body morphological parameters and camera parameters.

[0074] Specifically, the parameter extraction network obtains the human body morphology parameters and camera parameters through the following steps:

[0075] Step 1: The parameter extraction network fuses the fused feature map, the initial human morphological parameters, and the preset camera parameters to obtain a feature map of preset dimensions. The initial human morphological parameters, the preset camera parameters, and the preset dimensions can be set based on experience. In this way, the feature map of preset dimensions fuses the features of the fused feature map, the features of the initial human morphological parameters, and the features of the preset camera parameters, enriching the input of the subsequent first fully connected layer and the second fully connected layer, and improving the accuracy of predicting human morphological parameters and camera parameters.

[0076] Step 2: The parameter extraction network inputs the feature map of the preset dimension into the first fully connected layer in the parameter extraction network for full connection processing to obtain the human body morphological parameters. The number of output parameters of the first fully connected layer is 10.

[0077] Step 3: The parameter extraction network inputs the feature map of the preset dimension into the second fully connected layer in the parameter extraction network for full connection processing to obtain the camera parameters. The number of output parameters of the second fully connected layer is 3.

[0078] Exemplarily, the parameter extraction network is built based on a simplified visual geometry group (VGG) network.

[0079] S105: Establishing a three-dimensional human body model of the human body in the image to be processed according to the acquired posture parameters, human body morphology parameters and camera parameters.

[0080] In one implementation, the computer device constructs a three-dimensional human body model of the human body in the image to be processed through the SMPL model according to the acquired posture parameters, human body morphology parameters and camera parameters.

[0081] In the embodiments of the present disclosure, on the one hand, since the key point information of the human body itself has the characteristics of graph data, the accuracy of the obtained posture parameters can be improved when the graph convolutional neural network is used to predict the posture parameters. In addition, the amount of calculation and the amount of parameters of the graph convolutional neural network are less than the linear regression of the neural network, which is conducive to the transplantation of neural networks between different platforms. On the other hand, the fused feature map obtained by fusing the first intermediate feature map with the two-dimensional key point position of the human body in the present disclosure makes up for the spatial information of the original image that is missing in the process of obtaining three-dimensional information from the two-dimensional regression of the original image, such as the mutual occlusion information of the joint points in the image to be processed. The input graph convolutional neural network is enriched, and the accuracy of the graph convolutional neural network in predicting posture parameters is further improved. As a result, the embodiments of the present disclosure improve the accuracy of establishing a three-dimensional human body model of the human body in the image to be processed.

[0082] It should be noted that the execution subject of the embodiments of the present disclosure may be a terminal device or a server. The terminal device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, etc. The server may be a single server, or a server cluster composed of multiple servers, which is not limited in the present disclosure.

[0083] In a possible application scenario, such as Figure 3 As shown, the terminal device 301 uploads the picture containing the human body image to the server 302. After receiving the picture, the server 302 executes the above S101 to S104 to obtain the posture parameters, human body morphology parameters and camera parameters, and sends the posture parameters, human body morphology parameters and camera parameters to the terminal device 301. After receiving the posture parameters, human body morphology parameters and camera parameters, the terminal device 301 establishes a three-dimensional human body model of the human body in the image to be processed through the SMPL model and displays it. Of course, if the terminal device 301 can also execute the above steps S100 to S105 by itself to complete the establishment of the three-dimensional human body model of the human body in the image to be processed, without the help of the server 302.

[0084] In other possible application scenarios, after the virtual reality (VR) device captures an image containing the player's human body through a camera, a three-dimensional model of the player's human body is established through the method provided by the embodiment of the present disclosure, and the three-dimensional model of the player's human body is displayed in real time in the VR screen, thereby increasing the player's sense of immersion when using the VR device. Of course, the embodiment of the present disclosure can also be used in other application scenarios of reconstructing a three-dimensional human body model based on a single picture (containing a human body) or a video (a video frame containing a continuous human body), and the embodiment of the present disclosure is not limited to this.

[0085] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the method steps of each example described in the embodiment disclosed in this article, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0086] The embodiments of the present disclosure can divide the computer device into functional modules according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0087] Figure 4 is a block diagram of a device for establishing a three-dimensional human body model according to an exemplary embodiment. Figure 4 , the device 20 for establishing a three-dimensional human body model includes an acquisition module 201, a preprocessing module 202, a fusion module 203, a parameter extraction module 204 and an establishment module 205. The acquisition module 201 is configured to acquire an image to be processed including a human body; the preprocessing module 202 is configured to input the image to be processed into a neural network model to obtain a first intermediate feature map and the positions of two-dimensional key points of the human body in the image to be processed respectively; the first intermediate feature map is used to characterize the surface structural information of the human body in the image to be processed; the fusion module 203 is configured to fuse the first intermediate feature map and the positions of two-dimensional key points of the human body in the image to be processed to obtain a fused feature map; the parameter extraction module 204 is configured to input the fused feature map into a graph convolutional neural network to obtain posture parameters of the human body; the fused feature map is input into a parameter extraction network to obtain human body morphological parameters and camera parameters; the establishment module 205 is configured to establish a three-dimensional human body model according to the posture parameters, human body morphological parameters and camera parameters. For example: combining Figure 2 The acquisition module 201 may be configured to execute S100. The preprocessing module 202 may be configured to execute S101. The fusion module 203 may be configured to execute S102. The parameter extraction module 204 may be configured to execute S103-S104. The establishment module 205 may be configured to execute S105.

[0088] Optionally, the parameter extraction module 204 is specifically configured to: input the fused feature map into the parameter extraction network, fuse the fused feature map, initial human body morphological parameters and preset camera parameters to obtain a feature map of preset dimensions; input the feature map of preset dimensions into the first fully connected layer in the parameter extraction network to obtain human body morphological parameters; input the feature map of preset dimensions into the second fully connected layer in the parameter extraction network to obtain camera parameters.

[0089] Optionally, the parameter extraction module 204 is also configured to: adjust the fused feature map to a preset size; input the adjusted fused feature map and the preset adjacency matrix into the graph convolutional neural network to obtain the posture parameters of the human body; wherein the preset adjacency matrix is ​​used to characterize the positional relationship between the two-dimensional key points of the human body.

[0090] Optionally, the number of rows and columns of the preset adjacency matrix are both equal to the number of two-dimensional key points of the human body; the method also includes: performing the following operations for each element in the preset adjacency matrix to determine the value of each element in the preset adjacency matrix: when the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is adjacent to the key point corresponding to the column where the element is located, determining the value of the element to be a first value; when the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is not adjacent to the key point corresponding to the column where the element is located, determining the value of the element to be a second value.

[0091] Optionally, the fusion module 203 is specifically configured to: input the first intermediate feature map and the two-dimensional key point positions of the human body into the fusion network, multiply the first intermediate feature map, the two-dimensional key point positions of the human body and the three-dimensional weight matrix preset in the fusion network, and add the product obtained by the multiplication with the offset matrix preset in the fusion network to obtain a fused feature map.

[0092] Regarding the apparatus for establishing a three-dimensional human body model in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0093] For the detailed description of the above optional methods, please refer to the above method embodiments, which will not be repeated here. In addition, the explanation of any of the above-mentioned human body three-dimensional model building devices 20 and the description of the beneficial effects can refer to the above-mentioned corresponding method embodiments, which will not be repeated here.

[0094] It should be noted that the actions performed by the above modules are only specific examples. The actions actually performed by each unit refer to the above-mentioned Figure 2 The actions or steps mentioned in the description of the embodiments are described.

[0095] The present disclosure also provides an electronic device, Figure 5 is a block diagram of an electronic device according to an exemplary embodiment. Figure 5 The electronic device 50 includes: a memory 501 and a processor 502; the memory 501 is used to store a computer program, and the processor 502 is used to call the computer program to execute the actions or steps mentioned in any of the embodiments provided above.

[0096] The embodiments of the present disclosure further provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed on a computer, the computer is enabled to execute the actions or steps mentioned in any of the embodiments provided above.

[0097] The present disclosure also provides a chip. The chip integrates a circuit and one or more interfaces for implementing the functions of the apparatus for building a three-dimensional human body model. Optionally, the functions supported by the chip may include: Figure 1 The processing actions in the embodiments are not described in detail here. A person of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a random access memory, etc. The processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.

[0098] The embodiment of the present disclosure also provides a computer program product including instructions, when the instructions are run on a computer, the computer executes any one of the methods in the above embodiments. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that may be integrated with one or more available media. The available media may be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (SSD)), etc.

[0099] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present disclosure, such as but not limited to the above-mentioned memories, computer-readable storage media and communication chips, etc., are all non-transitory.

[0100] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0101] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for establishing a three-dimensional human body model, It is characterized in that The method comprises: Acquire an image to be processed including a human body; Inputting the image to be processed into a neural network model to obtain a first intermediate feature map and positions of two-dimensional key points of a human body in the image to be processed; the first intermediate feature map is used to characterize surface structural information of a human body in the image to be processed; The first intermediate feature map and the two-dimensional key point positions of the human body are fused to obtain a fused feature map; the fusion processing of the first intermediate feature map and the two-dimensional key point positions of the human body to obtain a fused feature map includes: inputting the first intermediate feature map and the two-dimensional key point positions of the human body into a fusion network, multiplying the first intermediate feature map, the two-dimensional key point positions of the human body and a three-dimensional weight matrix preset in the fusion network, and adding the product obtained by the multiplication to the offset matrix preset in the fusion network to obtain the fused feature map; Inputting the fused feature map into a graph convolutional neural network to obtain posture parameters of the human body; Inputting the fused feature map into a parameter extraction network to obtain human body morphology parameters and camera parameters; A three-dimensional human body model of the human body is established according to the posture parameters, the human body morphology parameters and the camera parameters.

2. The method according to claim 1, It is characterized in that The step of inputting the fused feature map into a parameter extraction network to obtain human body morphology parameters and camera parameters includes: Inputting the fused feature map into a parameter extraction network, fusing the fused feature map, initial human body morphology parameters and preset camera parameters to obtain a feature map of preset dimensions; Inputting the feature map of the preset dimension into the first fully connected layer in the parameter extraction network to obtain the human body morphology parameters; The feature map of the preset dimension is input into the second fully connected layer in the parameter extraction network to obtain the camera parameters.

3. The method according to claim 1 or 2, It is characterized in that The step of inputting the fused feature graph into a graph convolutional neural network to obtain the posture parameters of the human body includes: Adjusting the fused feature map to a preset size; The adjusted fusion feature map and the preset adjacency matrix are input into the graph convolutional neural network to obtain the posture parameters of the human body; wherein the preset adjacency matrix is ​​used to characterize the positional relationship between the two-dimensional key points of the human body.

4. The method according to claim 3, It is characterized in that The number of rows and columns of the preset adjacency matrix are both equal to the number of two-dimensional key points of the human body; the method further includes: The following operations are performed for each element in the preset adjacency matrix to determine the value of each element in the preset adjacency matrix: When a key point corresponding to a row where an element in the preset adjacency matrix is ​​located is adjacent to a key point corresponding to a column where the element is located, determining that the value of the element is a first value; When the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is not adjacent to the key point corresponding to the column where the element is located, it is determined that the value of the element is the second value.

5. A device for establishing a three-dimensional model of a human body, It is characterized in that include: An acquisition module, configured to acquire an image to be processed including a human body; A preprocessing module is configured to input the image to be processed into a neural network model to obtain a first intermediate feature map and positions of two-dimensional key points of a human body in the image to be processed; The first intermediate feature map is used to characterize the surface structure information of the human body in the image to be processed; A fusion module is configured to fuse the first intermediate feature map and the two-dimensional key point positions of the human body to obtain a fused feature map; the fusion module is specifically configured to: input the first intermediate feature map and the two-dimensional key point positions of the human body into a fusion network, multiply the first intermediate feature map, the two-dimensional key point positions of the human body and a three-dimensional weight matrix preset in the fusion network, and add the product obtained by the multiplication to the offset matrix preset in the fusion network to obtain the fused feature map; A parameter extraction module is configured to input the fused feature map into a graph convolutional neural network to obtain the posture parameters of the human body; Inputting the fused feature map into a parameter extraction network to obtain human body morphology parameters and camera parameters; A building module is configured to build a three-dimensional human body model of the human body according to the posture parameters, the human body morphology parameters and the camera parameters.

6. The establishment device according to claim 5, It is characterized in that The parameter extraction module is specifically configured as follows: Inputting the fused feature map into a parameter extraction network, fusing the fused feature map, initial human body morphology parameters and preset camera parameters to obtain a feature map of preset dimensions; Inputting the feature map of the preset dimension into the first fully connected layer in the parameter extraction network to obtain the human body morphology parameters; The feature map of the preset dimension is input into the second fully connected layer in the parameter extraction network to obtain the camera parameters.

7. The device according to claim 5 or 6, It is characterized in that The parameter extraction module is further configured to: Adjusting the fused feature map to a preset size; The adjusted fusion feature map and the preset adjacency matrix are input into the graph convolutional neural network to obtain the posture parameters of the human body; wherein the preset adjacency matrix is ​​used to characterize the positional relationship between the two-dimensional key points of the human body.

8. The establishment device according to claim 7, It is characterized in that The number of rows and columns of the preset adjacency matrix are both equal to the number of two-dimensional key points of the human body; the establishment module is further configured as follows: The following operations are performed for each element in the preset adjacency matrix to determine the value of each element in the preset adjacency matrix: When a key point corresponding to a row where an element in the preset adjacency matrix is ​​located is adjacent to a key point corresponding to a column where the element is located, determining that the value of the element is a first value; When the key point corresponding to the row where the element in the preset adjacency matrix is ​​located is not adjacent to the key point corresponding to the column where the element is located, it is determined that the value of the element is the second value.

9. An electronic device, It is characterized in that include: A processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the executable instructions to implement the method according to any one of claims 1 to 4.

10. A computer-readable storage medium, It is characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Training method of posture recognition model and image recognition method and device

    CN110020633A

  • Attitude estimation method, processing method based on attitude estimation and electronic equipment

    CN110472462A