Three-dimensional human body reconstruction method based on single image and related equipment

By acquiring features through the global encoder and local decoder and performing component interaction, the problem of low accuracy of 3D human body reconstruction in the existing technology is solved, and a more natural and accurate 3D human body reconstruction result is achieved.

CN117392326BActive Publication Date: 2024-09-20INST OF AUTOMATION CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311490396.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2024-09-20
Estimated Expiration
2043-11-09

AI Technical Summary

Technical Problem

Existing 3D human body reconstruction methods have low accuracy due to independent parameter estimation, resulting in unnatural connections between the body, hands and head.

Method used

A three-dimensional human body reconstruction method based on a single image is used to obtain body parameters and global two-dimensional features through a global encoder, a local decoder to separate and adjust hand and head features, and a component interaction module to interact with information to optimize parameters and improve reconstruction accuracy. .

Benefits of technology

It realizes the natural interaction of information between the body, hands and head, and improves the accuracy of three-dimensional human body reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117392326B
    Figure CN117392326B
Patent Text Reader

Abstract

The present invention provides a three-dimensional human body reconstruction method based on a single image and related equipment, which relates to the field of image processing technology. The method comprises: inputting a single human body image into a global encoder to obtain a first body parameter and a global two-dimensional feature; inputting a first hand feature, a first head feature and a single human body image into a local decoder to obtain a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature; inputting the first body parameter, the first hand parameter and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, the hand and the head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter. The present invention improves the accuracy of the three-dimensional human body reconstruction result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a three-dimensional human body reconstruction method based on a single image and related equipment. Background Art

[0002] 3D human reconstruction can simultaneously estimate the movements of the head, body, and hands. 3D human reconstruction plays an important role in computer vision and computer graphics.

[0003] Most of the current 3D human body reconstruction methods adopt a two-stage framework, that is, the hand and head bounding boxes are detected from the image in advance, cropped and enlarged; the image, the enlarged hand bounding box, and the enlarged head bounding box are then input into three independent networks respectively to estimate the body parameters, hand parameters and head parameters; finally, the body parameters, hand parameters and head parameters are fused to obtain the 3D human body reconstruction result.

[0004] Although this method can solve the problem of small resolution of hands and head, the connection between the three parts is not natural and realistic enough because the parameter estimation of the three parts is relatively independent, resulting in low accuracy of 3D human body reconstruction. Summary of the invention

[0005] The present invention provides a three-dimensional human body reconstruction method based on a single image and related equipment, which are used to solve the defect of low accuracy of three-dimensional human body reconstruction in the prior art and improve the accuracy of three-dimensional human body reconstruction.

[0006] The present invention provides a three-dimensional human body reconstruction method based on a single image, comprising:

[0007] Input a single human body image into a global encoder to obtain first body parameters and global two-dimensional features;

[0008] Inputting the first hand feature, the first head feature and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature;

[0009] The first body parameter, the first hand parameter and the first head parameter are input into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, hand and head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter.

[0010] In some embodiments, the global encoder includes: an encoder and a first regression module;

[0011] The step of inputting a single human body image into a global encoder to obtain a first body parameter and a global two-dimensional feature includes:

[0012] Inputting the single human body image into the encoder for feature extraction to obtain the global two-dimensional feature;

[0013] The global two-dimensional feature is input into the first regression module to obtain the first body parameter.

[0014] In some embodiments, the local decoder includes: a human pose estimation network, a cross-attention module, a feed-forward neural network, a second regression module, and a third regression module;

[0015] The step of inputting the first hand feature, the first head feature, and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter includes:

[0016] Inputting the single human body image into the human body posture estimation network to obtain hand key points and head key points;

[0017] Inputting the hand key points, the head key points, and the first hand features and the first head features after upsampling into the cross attention module to obtain a second hand feature and a second head feature;

[0018] Inputting the second hand feature and the second head feature into the feedforward neural network respectively to obtain a hand decoding value and a head decoding value;

[0019] Inputting the hand decoding value into the second regression module to obtain the first hand parameter;

[0020] The header decoding value is input into the third regression module to obtain the first header parameter.

[0021] In some embodiments, the component interaction module includes: a three-dimensional data interaction module and a three-dimensional and two-dimensional interaction module;

[0022] Inputting the first body parameter, the first hand parameter, and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result, including:

[0023] The first body parameter, the first hand parameter and the first head parameter are input into the three-dimensional data interaction module to obtain a second body parameter, a second hand parameter and a second head parameter; the three-dimensional data interaction module is used to adjust the first hand parameter and the first head parameter respectively based on the first body parameter; and adjust the first body parameter based on the adjusted first hand parameter and the adjusted first head parameter;

[0024] The second body parameter, the second hand parameter and the second head parameter are input into a three-dimensional and two-dimensional interaction module to obtain the three-dimensional human body reconstruction result; the three-dimensional and two-dimensional interaction module is used to project the second body parameter, the second hand parameter and the second head parameter to an image coordinate system respectively, and adjust the second body parameter, the second hand parameter and the second head parameter respectively based on the error between the projection result and the actual projection.

[0025] In some embodiments, the three-dimensional data interaction module includes: a first softmax layer and a second softmax layer;

[0026] The step of inputting the first body parameter, the first hand parameter and the first head parameter into the three-dimensional data interaction module to obtain a second body parameter, a second hand parameter and a second head parameter comprises:

[0027] After inputting the first body parameter into the first softmax layer, multiplying it with the first hand parameter and the first head parameter respectively to obtain the second hand parameter and the second head parameter;

[0028] After the second hand parameter and the second head parameter are respectively input into the second softmax layer, they are multiplied with the first body parameter to obtain the second body parameter.

[0029] In some embodiments, the first regression module includes one convolutional layer and six linear layers.

[0030] In some embodiments, the feedforward neural network includes a fully connected layer.

[0031] The present invention also provides a three-dimensional human body reconstruction device based on a single image, comprising:

[0032] A first acquisition unit, used for inputting a single human body image into a global encoder to acquire a first body parameter and a global two-dimensional feature;

[0033] a second acquisition unit, configured to input the first hand feature, the first head feature, and the single human body image into a local decoder to acquire a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature;

[0034] A third acquisition unit is used to input the first body parameter, the first hand parameter and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, hand and head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter.

[0035] 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 computer program, a three-dimensional human body reconstruction method based on a single image as described above is implemented.

[0036] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the three-dimensional human body reconstruction method based on a single image as described in any one of the above is implemented.

[0037] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for reconstructing a three-dimensional human body based on a single image.

[0038] The three-dimensional human body reconstruction method based on a single image and related equipment provided by the present invention encode the entire single human body image through a global encoder to obtain global two-dimensional features, obtain accurate body parameters, and then adjust the first hand features and the first head features based on the single human body image through a local decoder to estimate the accurate first hand parameters and the first head parameters. Finally, through a component interaction module, information interaction is performed between the body, hand and head based on the first body parameters, the first hand parameters and the first head parameters to adjust the first body parameters, the first hand parameters and the first head parameters, thereby optimizing the first body parameters, the first hand parameters and the first head parameters, thereby improving the accuracy of the three-dimensional human body reconstruction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces 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 creative work.

[0040] Figure 1 This is one of the flow charts of a method for reconstructing a three-dimensional human body based on a single image provided by an embodiment of the present invention;

[0041] Figure 2This is a second flow chart of a method for reconstructing a three-dimensional human body based on a single image provided by an embodiment of the present invention;

[0042] Figure 3 is a schematic structural diagram of a three-dimensional human body reconstruction device based on a single image provided by an embodiment of the present invention;

[0043] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other in the absence of conflict. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0046] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0047] In the present invention, "at least one" means one or more, and "more than one" means two or more than two. The terms "first", "second", "third", "fourth", etc. (if any) in the present invention are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0048] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention 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 related concepts in a specific way.

[0049] Figure 1 is one of the flow charts of the method for 3D human body reconstruction based on a single image provided by an embodiment of the present invention, referring to Figure 1 As shown, the present invention provides a method for reconstructing a three-dimensional human body based on a single image, the method comprising the following steps:

[0050] Step 110, inputting a single human body image into a global encoder to obtain a first body parameter and a global two-dimensional feature;

[0051] Step 120, inputting the first hand feature, the first head feature and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature;

[0052] Step 130, input the first body parameter, the first hand parameter and the first head parameter into the component interaction module to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, the hand and the head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter.

[0053] Specifically, the present invention designs a single-stage human body reconstruction structure to simultaneously estimate body parameters, hand parameters and head parameters, which is composed of a global encoder, a local decoder and a component interaction module.

[0054] A single human body image is input into a global encoder, and the global encoder extracts features of the single human body image to obtain a global two-dimensional feature, and then obtains the first body parameter according to the global two-dimensional feature.

[0055] The first hand feature and the first head feature are separated from the global two-dimensional feature. The specific separation process may be: according to the positions of the first hand feature and the first head feature in the global two-dimensional feature, the first hand feature and the first head feature are separated from the global two-dimensional feature. Usually, the first hand feature and the first head feature are at the rear position in the global two-dimensional feature.

[0056] The expressions of the first hand feature and the first head feature are as follows:

[0057] f h ,f f=sep(f g )

[0058] In the formula, f h represents the first hand feature, f f represents the first head feature, sep() represents the separation function, f g Represents the global two-dimensional features.

[0059] After obtaining the first hand feature and the first head feature, the first hand feature, the first head feature and the single human body image are input into a local decoder. The local decoder adjusts the first hand feature and the first head feature based on the single human body image to estimate accurate first hand parameters and first head parameters.

[0060] The first body parameter, the first hand parameter and the first head parameter are input into the component interaction module, and the component interaction module performs information interaction between the body, the hand and the head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter to optimize the first body parameter, the first hand parameter and the first head parameter, thereby obtaining an accurate three-dimensional human body reconstruction result.

[0061] The single-image-based three-dimensional human body reconstruction method provided by an embodiment of the present invention encodes the entire single human body image through a global encoder to obtain global two-dimensional features, obtains accurate body parameters, and then adjusts the first hand features and the first head features based on the single human body image through a local decoder to estimate accurate first hand parameters and first head parameters. Finally, based on the first body parameters, the first hand parameters and the first head parameters, information interaction is performed between the body, the hand and the head through a component interaction module to adjust the first body parameters, the first hand parameters and the first head parameters, thereby optimizing the first body parameters, the first hand parameters and the first head parameters, thereby improving the accuracy of the three-dimensional human body reconstruction results.

[0062] In some embodiments, the global encoder includes: an encoder and a first regression module;

[0063] Input a single human image into the global encoder to obtain the first body parameters and global two-dimensional features, including:

[0064] A single human body image is input into the encoder for feature extraction to obtain global two-dimensional features;

[0065] The global two-dimensional features are input into the first regression module to obtain the first body parameters.

[0066] Specifically, Figure 2 This is a second flow chart of a method for reconstructing a three-dimensional human body based on a single image provided by an embodiment of the present invention, referring to Figure 2As shown, the global encoder includes: an encoder and a first regression module.

[0067] The encoder can be any form of neural network, for example, the convolution-based Residual Network (ResidualNetwork, ResNet) series, or the Transformer-based ViT (Vision Transformer).

[0068] Input a single human body image into the encoder for feature extraction to obtain global two-dimensional features. The global two-dimensional feature expression is as follows:

[0069] f g =encoder(x)

[0070] In the formula, f g Represents the global two-dimensional feature, encoder() represents the encoder, and x represents a single human image.

[0071] The global two-dimensional feature is input into the first regression module to obtain the first body parameter. The first regression module may include one convolution layer and six linear layers. The expression of the first body parameter is as follows:

[0072] b c =r b (f g )

[0073] Where b c represents the first body parameter, r b () represents the first regression module, f g Represents the global two-dimensional features.

[0074] The single-image-based three-dimensional human body reconstruction method provided in an embodiment of the present invention encodes the entire single human body image through an encoder to obtain global two-dimensional features, and then inputs all the features into a first regression module, which is further conducive to obtaining accurate body parameters.

[0075] In some embodiments, the local decoder includes: a human pose estimation network, a cross-attention module, a feed-forward neural network, a second regression module, and a third regression module;

[0076] Inputting the first hand feature, the first head feature, and the single human body image into the local decoder to obtain the first hand parameter and the first head parameter, including:

[0077] Input a single human image into the human pose estimation network to obtain the key points of the hands and head;

[0078] Input the hand key points, the head key points, and the upsampled first hand features and the first head features into the cross attention module to obtain the second hand features and the second head features;

[0079] Inputting the second hand feature and the second head feature into a feedforward neural network respectively to obtain a hand decoding value and a head decoding value;

[0080] Input the hand decoding value into the second regression module to obtain the first hand parameter;

[0081] The header decoding value is input into the third regression module to obtain the first header parameter.

[0082] Specifically, refer to Figure 2 As shown, the local decoder includes: a human posture estimation network, a cross-attention module, a feedforward neural network, a second regression module and a third regression module.

[0083] A single human image is input into the human pose estimation network, which locates the key points of the human body in the single human image and extracts the hand key points and the head key points from the key points of the human body.

[0084] The first hand feature and the first head feature are upsampled to reduce the impact of low resolution.

[0085] The expression for upsampling the first hand feature is as follows:

[0086] F h = upsampl(f h )

[0087] In the formula, F h represents the first hand feature after upsampl(), upsampl() represents upsampling, f h Represents the first hand feature.

[0088] The expression for upsampling the first head feature is as follows:

[0089] F f = upsampl(f f )

[0090] In the formula, F f represents the first head feature after upsampl(), upsampl() represents upsampling, f f Indicates the first head feature.

[0091] The hand key points, head key points, and the first hand feature F after upsampling h , and the first head feature F after upsampling fInput the cross attention module. Under the guidance of the hand key points, the cross attention module performs the upsampled first hand feature F h Under the guidance of the head key points, the cross attention module adjusts the first head feature F after upsampling. f Adjustments are made to obtain the second head feature.

[0092] The second hand feature and the second head feature are respectively input into the feedforward neural network for decoding to obtain a hand decoding value and a head decoding value. The feedforward neural network includes a fully connected layer. The hand decoding value is input into the second regression module to obtain the first hand parameter; the head decoding value is input into the third regression module to obtain the first head parameter. The second regression module and the third regression module each include a convolution layer and six linear layers.

[0093] The expression for the first hand parameter is as follows:

[0094] h c =r h (ffn(attention(F h )))

[0095] In the formula, h c represents the first hand parameter, r h () represents the second regression module, ffn() represents the feedforward neural network, attention() represents the cross attention module, F h Represents the first hand feature after upsampling.

[0096] The expression for the first header parameter is as follows:

[0097] f c =r f (ffn(attention(F f )))

[0098] In the formula, f c Indicates the first header parameter, r f () represents the third regression module, ffn() represents the feedforward neural network, attention() represents the cross attention module, F f Represents the first head feature after upsampling.

[0099] The single-image-based three-dimensional human body reconstruction method provided by an embodiment of the present invention locates the human body key points in a single human body image through a human posture estimation network, thereby obtaining the hand key points and the head key points. The cross-attention module adjusts the first hand features under the guidance of the hand key points, and adjusts the first head features under the guidance of the head key points, which is further conducive to estimating the accurate first hand parameters and first head parameters.

[0100] In some embodiments, the component interaction module includes: a three-dimensional data interaction module and a three-dimensional and two-dimensional interaction module;

[0101] Inputting the first body parameter, the first hand parameter, and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result, including:

[0102] Inputting the first body parameter, the first hand parameter and the first head parameter into the three-dimensional data interaction module to obtain the second body parameter, the second hand parameter and the second head parameter; the three-dimensional data interaction module is used to adjust the first hand parameter and the first head parameter respectively based on the first body parameter; adjusting the first body parameter based on the adjusted first hand parameter and the adjusted first head parameter;

[0103] The second body parameter, the second hand parameter and the second head parameter are input into the three-dimensional and two-dimensional interaction module to obtain a three-dimensional human body reconstruction result; the three-dimensional and two-dimensional interaction module is used to project the second body parameter, the second hand parameter and the second head parameter to the image coordinate system respectively, and adjust the second body parameter, the second hand parameter and the second head parameter respectively based on the error between the projection result and the real projection.

[0104] Specifically, refer to Figure 2 As shown, the component interaction module includes: a three-dimensional data interaction module and a three-dimensional and two-dimensional interaction module.

[0105] The interaction between three-dimensional data means that body parameters can provide rough position information for hands and head to adjust hand parameters and head parameters; hand parameters and head parameters can adjust the detailed information of the body to adjust body parameters.

[0106] The first body parameter, the first hand parameter and the first head parameter are input into the three-dimensional data interaction module. The three-dimensional data interaction module can adjust the first hand parameter and the first head parameter respectively based on the first body parameter to obtain the second body parameter and the second hand parameter. The three-dimensional data interaction module can adjust the first body parameter based on the second body parameter and the second hand parameter to obtain the second body parameter.

[0107] Due to the serious self-occlusion of the human body, the related technology projects the estimated human body into the image coordinate system, and then uses the error calculated with the real projection image as the loss for supervision. This method can only make the entire human body contour smooth, but cannot ensure that the overlapping parts of the body such as hands and arms are well regressed.

[0108] In order to solve the above problems, the interaction between three-dimensional and two-dimensional data refers to projecting the body, hands, head and other parts respectively, then calculating the errors between the real projections respectively, and finally adjusting the body parameters, hand parameters and head parameters respectively.

[0109] The second body parameter, the second hand parameter and the second head parameter are input into the three-dimensional and two-dimensional interaction module, and the three-dimensional and two-dimensional interaction module projects the second body parameter, the second hand parameter and the second head parameter into the image coordinate system respectively to obtain the body projection parameter, the hand projection parameter and the head projection parameter.

[0110] The 3D and 2D interactive module adjusts the second body parameters based on the error between the body projection parameters and the real body projection parameters; adjusts the second hand parameters based on the error between the hand projection parameters and the real hand projection parameters; and adjusts the second head parameters based on the error between the head projection parameters and the real head projection parameters. Based on the final adjusted body parameters, hand parameters, and head parameters, the 3D human body reconstruction result is obtained.

[0111] The single-image-based three-dimensional human body reconstruction method provided in an embodiment of the present invention optimizes the first body parameter, the first hand parameter and the first head parameter through the interaction between three-dimensional data and the interaction between three-dimensional and two-dimensional data, thereby realizing information interaction between different components, which is further beneficial to improving the accuracy of the three-dimensional human body reconstruction results.

[0112] In some embodiments, the three-dimensional data interaction module includes: a first softmax layer and a second softmax layer;

[0113] Inputting the first body parameter, the first hand parameter and the first head parameter into the three-dimensional data interaction module to obtain the second body parameter, the second hand parameter and the second head parameter includes:

[0114] After the first body parameter is input into the first softmax layer, it is multiplied with the first hand parameter and the first head parameter respectively to obtain the second hand parameter and the second head parameter;

[0115] After the second hand parameter and the second head parameter are respectively input into the second softmax layer, they are multiplied with the first body parameter to obtain the second body parameter.

[0116] Specifically, refer to Figure 2 As shown, the three-dimensional data interaction module includes: a first softmax layer and a second softmax layer.

[0117] The first body parameter is input into the first softmax layer, and the first softmax layer normalizes the first body parameter. The normalized first body parameter is multiplied with the first hand parameter and the first head parameter respectively to obtain a second hand parameter and a second head parameter.

[0118] The expression for the second hand parameter is as follows:

[0119] H c =softmax(b c )·h c

[0120] In the formula, H c represents the second hand parameter, softmax() represents the softmax operation, b c represents the first body parameter, h c Represents the first hand parameters.

[0121] The expression for the second header parameter is as follows:

[0122] F c =softmax(b c )·f c

[0123] In the formula, F c Indicates the second head parameter, softmax() indicates the softmax operation, b c represents the first body parameter, f c Indicates the first header parameter.

[0124] The second hand parameter and the second head parameter are respectively input into the second softmax layer, and the first softmax layer normalizes the second hand parameter and the second head parameter respectively. The normalized second hand parameter and the second head parameter are multiplied with the first body parameter to obtain the second body parameter.

[0125] The expression for the second body parameter is as follows:

[0126] B c =softmax(H c )•softmax(F c )·b c

[0127] In the formula, B c represents the second body parameter, softmax() represents the softmax operation, H c represents the second hand parameter, F c Indicates the second header parameter, b c Represents the first body parameter.

[0128] The single-image-based three-dimensional human body reconstruction method provided by an embodiment of the present invention optimizes the first hand parameters and the first head parameters based on the first body parameters to obtain the second hand parameters and the second head parameters, and then optimizes the first body parameters based on the second hand parameters and the second head parameters to obtain the second body parameters, thereby realizing information interaction between different components and further facilitating improving the accuracy of the three-dimensional human body reconstruction results.

[0129] The three-dimensional human body reconstruction device provided by the present invention is described below. The three-dimensional human body reconstruction device described below and the three-dimensional human body reconstruction method described above can be referenced to each other.

[0130] Figure 3 is a schematic diagram of the structure of a 3D human body reconstruction device based on a single image provided by an embodiment of the present invention, referring to Figure 3 As shown, the present invention provides a 3D human body reconstruction device based on a single image, comprising a first acquisition unit 310, a second acquisition unit 320 and a third acquisition unit 330; wherein:

[0131] A first acquisition unit 310 is used to input a single human body image into a global encoder to acquire first body parameters and global two-dimensional features;

[0132] A second acquisition unit 320 is used to input the first hand feature, the first head feature and the single human body image into a local decoder to acquire a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature;

[0133] The third acquisition unit 330 is used to input the first body parameter, the first hand parameter and the first head parameter into the component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, hand and head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter.

[0134] In some embodiments, the global encoder includes: an encoder and a first regression module;

[0135] The first acquisition unit 310 includes: a first acquisition subunit and a second acquisition subunit; wherein:

[0136] A first acquisition subunit, configured to input the single human body image into the encoder for feature extraction to acquire the global two-dimensional feature;

[0137] The second acquisition subunit is used to input the global two-dimensional feature into the first regression module to obtain the first body parameter.

[0138] In some embodiments, the local decoder includes: a human pose estimation network, a cross-attention module, a feed-forward neural network, a second regression module, and a third regression module;

[0139] The second acquisition unit 320 includes: a third acquisition subunit, a fourth acquisition subunit, a fifth acquisition subunit, a sixth acquisition subunit and a seventh acquisition subunit; wherein:

[0140] A third acquisition subunit is used to input the single human body image into the human body posture estimation network to obtain hand key points and head key points;

[0141] a fourth acquisition subunit, configured to input the hand key points, the head key points, and the first hand features and the first head features after upsampling into the cross attention module to acquire a second hand feature and a second head feature;

[0142] a fifth acquisition subunit, configured to input the second hand feature and the second head feature into the feedforward neural network respectively, to obtain a hand decoding value and a head decoding value;

[0143] a sixth acquisition subunit, configured to input the hand decoding value into the second regression module to obtain the first hand parameter;

[0144] The seventh acquisition subunit is used to input the header decoding value into the third regression module to obtain the first header parameter.

[0145] In some embodiments, the component interaction module includes: a three-dimensional data interaction module and a three-dimensional and two-dimensional interaction module;

[0146] The third acquisition unit 330 includes: an eighth acquisition subunit and a ninth acquisition subunit; wherein:

[0147] an eighth acquisition subunit, configured to input the first body parameter, the first hand parameter, and the first head parameter into the three-dimensional data interaction module to obtain a second body parameter, a second hand parameter, and a second head parameter; the three-dimensional data interaction module is configured to adjust the first hand parameter and the first head parameter respectively based on the first body parameter; and adjust the first body parameter based on the adjusted first hand parameter and the adjusted first head parameter;

[0148] The ninth acquisition subunit is used to input the second body parameter, the second hand parameter and the second head parameter into the three-dimensional and two-dimensional interaction module to obtain the three-dimensional human body reconstruction result; the three-dimensional and two-dimensional interaction module is used to project the second body parameter, the second hand parameter and the second head parameter to the image coordinate system respectively, and adjust the second body parameter, the second hand parameter and the second head parameter respectively based on the error between the projection result and the real projection.

[0149] In some embodiments, the three-dimensional data interaction module includes: a first softmax layer and a second softmax layer;

[0150] The eighth acquisition subunit includes: a first acquisition group and a second acquisition group; wherein:

[0151] a first acquisition group, for inputting the first body parameter into the first softmax layer, and then multiplying the first body parameter with the first hand parameter and the first head parameter respectively, so as to obtain the second hand parameter and the second head parameter;

[0152] The second acquisition group is used to input the second hand parameter and the second head parameter into the second softmax layer respectively, and then multiply them with the first body parameter to obtain the second body parameter.

[0153] In some embodiments, the first regression module includes one convolutional layer and six linear layers.

[0154] In some embodiments, the feedforward neural network includes a fully connected layer.

[0155] It should be noted here that the above-mentioned three-dimensional human body reconstruction device based on a single image provided by the present invention can implement all the method steps implemented by the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be specifically described here.

[0156] Figure 4 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as 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 body reconstruction method based on a single image, the method comprising: inputting a single human body image into a global encoder to obtain a first body parameter and a global two-dimensional feature; inputting a first hand feature, a first head feature and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature; inputting the first body parameter, the first hand parameter and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, the hand and the head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter.

[0157] 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.

[0158] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the three-dimensional human body reconstruction method based on a single image provided by the above methods, and the method includes: inputting a single human body image into a global encoder to obtain a first body parameter and a global two-dimensional feature; inputting a first hand feature, a first head feature and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature; inputting the first body parameter, the first hand parameter and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, the hand and the head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter.

[0159] 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 body reconstruction method based on a single image provided by the above-mentioned methods, the method comprising: inputting a single human body image into a global encoder to obtain a first body parameter and a global two-dimensional feature; inputting a first hand feature, a first head feature and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature; inputting the first body parameter, the first hand parameter and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, the hand and the head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter.

[0160] 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.

[0161] 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.

[0162] 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 method for reconstructing a three-dimensional human body based on a single image, characterized in that: include: Input a single human body image into a global encoder to obtain first body parameters and global two-dimensional features; Inputting the first hand feature, the first head feature and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature; Inputting the first body parameter, the first hand parameter and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result; the component interaction module is used to perform information interaction between the body, the hand and the head based on the first body parameter, the first hand parameter and the first head parameter to adjust the first body parameter, the first hand parameter and the first head parameter; The component interaction module includes: a three-dimensional data interaction module and a three-dimensional and two-dimensional interaction module; Inputting the first body parameter, the first hand parameter, and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result, including: The first body parameter, the first hand parameter and the first head parameter are input into the three-dimensional data interaction module to obtain a second body parameter, a second hand parameter and a second head parameter; the three-dimensional data interaction module is used to adjust the first hand parameter and the first head parameter respectively based on the first body parameter; and adjust the first body parameter based on the adjusted first hand parameter and the adjusted first head parameter; Inputting the second body parameter, the second hand parameter and the second head parameter into a three-dimensional and two-dimensional interaction module to obtain the three-dimensional human body reconstruction result; the three-dimensional and two-dimensional interaction module is used to project the second body parameter, the second hand parameter and the second head parameter to an image coordinate system respectively, and adjust the second body parameter, the second hand parameter and the second head parameter respectively based on the error between the projection result and the real projection; The three-dimensional data interaction module includes: a first softmax layer and a second softmax layer; The step of inputting the first body parameter, the first hand parameter and the first head parameter into the three-dimensional data interaction module to obtain a second body parameter, a second hand parameter and a second head parameter comprises: After inputting the first body parameter into the first softmax layer, multiplying it with the first hand parameter and the first head parameter respectively to obtain the second hand parameter and the second head parameter; After the second hand parameter and the second head parameter are respectively input into the second softmax layer, they are multiplied with the first body parameter to obtain the second body parameter.

2. The method for 3D human body reconstruction based on a single image according to claim 1, characterized in that: The global encoder comprises: an encoder and a first regression module; The step of inputting a single human body image into a global encoder to obtain a first body parameter and a global two-dimensional feature includes: Inputting the single human body image into the encoder for feature extraction to obtain the global two-dimensional feature; The global two-dimensional feature is input into the first regression module to obtain the first body parameter.

3. The method for reconstructing a 3D human body based on a single image according to claim 1, characterized in that: The local decoder includes: a human posture estimation network, a cross attention module, a feedforward neural network, a second regression module and a third regression module; The step of inputting the first hand feature, the first head feature, and the single human body image into a local decoder to obtain a first hand parameter and a first head parameter includes: Inputting the single human body image into the human body posture estimation network to obtain hand key points and head key points; Inputting the hand key points, the head key points, and the first hand features and the first head features after upsampling into the cross attention module to obtain a second hand feature and a second head feature; Inputting the second hand feature and the second head feature into the feedforward neural network respectively to obtain a hand decoding value and a head decoding value; Inputting the hand decoding value into the second regression module to obtain the first hand parameter; The header decoding value is input into the third regression module to obtain the first header parameter.

4. The method for 3D human body reconstruction based on a single image according to claim 2, characterized in that: The first regression module includes one convolutional layer and six linear layers.

5. The method for 3D human body reconstruction based on a single image according to claim 3, characterized in that: The feedforward neural network includes a fully connected layer.

6. A three-dimensional human body reconstruction device based on a single image, characterized in that: include: A first acquisition unit, used for inputting a single human body image into a global encoder to acquire a first body parameter and a global two-dimensional feature; a second acquisition unit, configured to input the first hand feature, the first head feature, and the single human body image into a local decoder to acquire a first hand parameter and a first head parameter; the first hand feature and the first head feature are separated from the global two-dimensional feature; a third acquisition unit, configured to input the first body parameter, the first hand parameter, and the first head parameter into a component interaction module for component interaction to acquire a three-dimensional human body reconstruction result; the component interaction module is configured to perform information interaction between the body, the hand, and the head based on the first body parameter, the first hand parameter, and the first head parameter to adjust the first body parameter, the first hand parameter, and the first head parameter; The component interaction module includes: a three-dimensional data interaction module and a three-dimensional and two-dimensional interaction module; Inputting the first body parameter, the first hand parameter, and the first head parameter into a component interaction module for component interaction to obtain a three-dimensional human body reconstruction result, including: The first body parameter, the first hand parameter and the first head parameter are input into the three-dimensional data interaction module to obtain a second body parameter, a second hand parameter and a second head parameter; the three-dimensional data interaction module is used to adjust the first hand parameter and the first head parameter respectively based on the first body parameter; and adjust the first body parameter based on the adjusted first hand parameter and the adjusted first head parameter; Inputting the second body parameter, the second hand parameter and the second head parameter into a three-dimensional and two-dimensional interaction module to obtain the three-dimensional human body reconstruction result; the three-dimensional and two-dimensional interaction module is used to project the second body parameter, the second hand parameter and the second head parameter to an image coordinate system respectively, and adjust the second body parameter, the second hand parameter and the second head parameter respectively based on the error between the projection result and the real projection; The three-dimensional data interaction module includes: a first softmax layer and a second softmax layer; The step of inputting the first body parameter, the first hand parameter and the first head parameter into the three-dimensional data interaction module to obtain a second body parameter, a second hand parameter and a second head parameter comprises: After inputting the first body parameter into the first softmax layer, multiplying it with the first hand parameter and the first head parameter respectively to obtain the second hand parameter and the second head parameter; After the second hand parameter and the second head parameter are respectively input into the second softmax layer, they are multiplied with the first body parameter to obtain the second body parameter.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the three-dimensional human body reconstruction method based on a single image as described in any one of claims 1 to 5 is implemented.

8. 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 method for reconstructing a three-dimensional human body based on a single image as described in any one of claims 1 to 5 is implemented.