Real-time 3D hand mesh reconstruction method and system for real scenes

By using the MobileNetV2 backbone network and the two-hand feature interactor, combined with affine transformation, the problem of poor 3D hand mesh reconstruction in real scenes is solved, efficient hand reconstruction on resource-constrained devices is achieved, and the Lu Stickiness and accuracy.

CN118379441BActive Publication Date: 2024-08-23JIANGXI UNIVERSITY OF FINANCE AND ECONOMICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410846890.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-23
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing 3D hand mesh reconstruction technology does not perform well in real scenes, mainly due to high computing power, interference from ambient light and objects, occlusion problems caused by hand interaction, high inference costs on resource-constrained devices, and lack of real scenes. data set, resulting in poor robustness.

Method used

MobileNetV2 is used as the backbone network for feature extraction, and the attention mechanism is used to capture the long-distance dependencies of the hand features through the hand feature interactor, and the 3D relative offset of the hands is obtained through affine transformation to achieve real-time 3D hand mesh reconstruction.

Benefits of technology

It reduces the number of parameters and inference costs of the model, making it more efficient to run on resource-constrained devices, improving the accuracy and robustness of hand reconstruction, and is suitable for hand reconstruction in real scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379441B
    Figure CN118379441B
Patent Text Reader

Abstract

The present invention proposes a real-time 3D hand mesh reconstruction method and system for real scenes, the method comprising constructing a backbone network based on the MobileNetV2 network, using the backbone network to extract features from an RGB image containing images of both hands, and obtaining feature information of both hands; constructing a two-hand feature interactor based on MobileNetV2, separating the feature information of both hands, obtaining left-hand features and right-hand features, and inputting the features into the two-hand feature interactor for feature interaction, and obtaining left-hand tokens and right-hand tokens; meshing the left-hand tokens and right-hand tokens, obtaining 2.5D heat maps of both hands and hand meshes, and performing affine transformation on the 2.5D heat maps of both hands to obtain 3D relative offsets of both hands for reconstruction. The present invention effectively solves the problem that the current 3D hand mesh reconstruction technology has poor reconstruction effect on real scenes, and greatly reduces the number of model parameters by lightweighting the backbone network, so that the network can run on resource-constrained mobile and embedded devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a real-time 3D hand mesh reconstruction method and system for real scenes. Background Art

[0002] 3D hand reconstruction technology based on single RGB images has been widely used in virtual reality, augmented reality, human-computer interaction and other fields, but it is a challenging problem due to the occlusion caused by the interaction of both hands, the self-occlusion of one hand and the similarity of the appearance of both hands. In the existing 3D hand mesh reconstruction technology, there are the following problems: First, the fully convolutional network based on the encoder and decoder architecture uses non-standardized Gaussian heat maps to train different key points, first predicts the 2D key point coordinates of the hand and then promotes them to 3D according to the coordinates of the 2D key points. This method has relatively high computing power requirements and cannot perform an end-to-end training of the 3D hand reconstruction network; secondly, the existing hand mesh reconstruction technology is mainly based on the results obtained in the laboratory environment, and due to factors such as uneven ambient light and object interference in real scenes, the 3D reconstruction effect in real scenes is not good; finally, since the backbone network of the current mainstream 3D hand network reconstruction technology is based on the Resnet residual network, this leads to high inference computing costs, making it difficult to deploy on resource-constrained devices.

[0003] The 3D hand mesh reconstruction in real scenes is not good. On the one hand, it is extremely difficult to annotate 3D hand mesh data in real scenes. Annotating 3D hand data requires dozens of calibrated and synchronized cameras. It is difficult to deploy so many devices in real scenes, so there is currently no large-scale real-scene 3D hand dataset. In addition, the 3D hand data in laboratory scenes cannot produce a robust result for real scenes. On the other hand, the Transformer architecture used based on the two-handed interaction problem uses tokens with separated features of both hands as the input of the Transformer, which leads to the long-distance labeling problem. The long-distance labeling problem makes it impossible for the Transformer to effectively capture the correlation between two tokens, resulting in inaccurate hand posture estimation.

[0004] The backbone network of the current mainstream 3D hand mesh reconstruction technology. The Resnet residual network used in it effectively solves the gradient vanishing problem in the deep network by introducing residual blocks, allowing the network to be trained deeper. However, due to the excessive number of layers in the residual network, it brings significantly high computational costs in the process of hand feature extraction. Summary of the invention

[0005] In view of the above situation, the main purpose of the present invention is to propose a real-time 3D hand mesh reconstruction method and system for real scenes to solve the above technical problems.

[0006] The present invention proposes a real-time 3D hand mesh reconstruction method for real scenes, the method comprising the following steps:

[0007] Step 1: Build a backbone network based on the MobileNetV2 network, and use the backbone network to extract features from the RGB image containing the images of both hands to obtain the feature information of both hands;

[0008] Step 2: Build a two-hand feature interactor based on MobileNetV2, separate the feature information of both hands, obtain left-hand features and right-hand features, and input them into the two-hand feature interactor. Use the attention mechanism to interact the left-hand features and the right-hand features to capture the long-distance dependency between the left-hand features and the right-hand features, obtain the global representation of the two-hand features, and separate the global representation of the two-hand features again to obtain the left-hand token and the right-hand token.

[0009] Step 3: Reconstruct the meshes of the left hand token and the right hand token to obtain the 2.5D heat maps and hand meshes of the two hands, perform affine transformation on the 2.5D heat maps of the two hands to obtain the 3D relative offset of the two hands, and perform real-time 3D hand mesh reconstruction based on the 3D relative offset of the two hands and the hand meshes of the two hands.

[0010] The present invention also proposes a real-time 3D hand mesh reconstruction system for real scenes, wherein the system applies the real-time 3D hand mesh reconstruction method for real scenes as described above, and the system comprises:

[0011] Feature extraction module for:

[0012] A backbone network is built based on the MobileNetV2 network, and the backbone network is used to extract features from RGB images containing images of both hands to obtain feature information of both hands.

[0013] Two-hand feature interaction module, used for:

[0014] A two-hand feature interactor is built based on MobileNetV2, and the feature information of both hands is separated to obtain left-hand features and right-hand features, which are then input into the two-hand feature interactor. The left-hand features and the right-hand features are interacted with using the attention mechanism to capture the long-distance dependency between the left-hand features and the right-hand features, and the global representation of the two-hand features is obtained. The global representation of the two-hand features is separated again to obtain left-hand tokens and right-hand tokens.

[0015] Affine transformation module, for:

[0016] The left hand token and the right hand token are meshed to obtain 2.5D heat maps and hand meshes of the two hands. The 2.5D heat maps of the two hands are affine transformed to obtain the 3D relative offset of the two hands. Real-time 3D hand mesh reconstruction is performed based on the 3D relative offset of the two hands and the hand meshes of the two hands.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] 1) The existing 3D hand reconstruction technology cannot run in real time on resource-constrained mobile and embedded devices due to the high cost of backbone network inference during model inference. The present invention uses a lightweight backbone network MobileNetV2 to replace the traditional backbone network to significantly reduce the number of model parameters and improve the speed of network inference. MobileNetV2 is a lightweight convolutional neural network architecture developed for mobile and edge devices. A large number of linear bottleneck layers are stacked, and these layers use linear activation functions instead of ReLU activation functions at the end of the residual structure. This ensures that the activation function does not destroy information in low-dimensional space, which helps to lightweight the model and protect the integrity of feature information. The present invention uses MobileNetV2 as the backbone network, which significantly improves the model inference speed while maintaining feature extraction capabilities similar to traditional feature extraction networks.

[0019] 2) In the process of 3D hand mesh reconstruction, scenes of two-hand interaction are often encountered. Due to the mutual occlusion of the two hands during the interaction, the mesh reconstruction effect is not good. The present invention uses a two-hand feature interactor to share the feature information of both hands, thereby improving the effect of mesh reconstruction when both hands interact. In the process of 3D hand mesh reconstruction, the backbone network extracts features from the original image, and BoxNet separates the features of the two hands, which makes it impossible for the feature information of the two hands to interact and effectively resist occlusion. The present invention proposes InteractNet as a two-hand feature interactor, establishes a long-distance dependency relationship between the features of the two hands through a super-sampling attention mechanism, and then extracts tokens of the two hands from them, so as to improve the accuracy of hand reconstruction.

[0020] 3) Due to the lack of large-scale 3D hand datasets in real scenes, the current mainstream 3D hand mesh reconstruction methods all use 3D laboratory scene data for model training, which has poor generalization effect on real scenes. The present invention uses affine transformation to obtain the relative 2D information and posture information of the hand in the joint 2D space, and estimates the relative offset of the two hands. Since the hand data in the real scene is very different from the training set, in order to prevent the interference of the environment and the difference in hand scale from causing difficulties to model prediction, the present invention uses the invariance of the appearance of the hand's geometric features to normalize the 2.5D heat map of a single hand to the shared scale space of both hands with interference removed, so that only the geometric features of the hand can be used to estimate the relative offset of the two hands, producing robust results for the reconstruction of both hands in real scenes.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a flow chart of the real-time 3D hand mesh reconstruction method for real scenes proposed by the present invention;

[0023] Figure 2 This is the overall architecture diagram of the real-time 3D hand mesh reconstruction method for real scenes proposed by the present invention;

[0024] Figure 3 It is the ReLU6 function image used in MobileNetV2 of the present invention;

[0025] Figure 4 This is a network architecture diagram of Linear Bottleneck in MobileNetV2 of the present invention;

[0026] Figure 5 It is a framework diagram of the feature interactor of the present invention;

[0027] Figure 6 Schematic diagram of the super sampling attention mechanism of the present invention;

[0028] Figure 7 This is the overall architecture diagram of the affine transformation network of the present invention;

[0029] Figure 8 This is a schematic diagram of the structure of the real-time 3D hand mesh reconstruction system for real scenes proposed by the present invention. DETAILED DESCRIPTION

[0030] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0031] These and other aspects of the embodiments of the present invention will be apparent with reference to the following description and accompanying drawings. In these descriptions and accompanying drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited thereto.

[0032] See also Figure 1 and Figure 2 This embodiment provides a real-time 3D hand mesh reconstruction method for real scenes, the method comprising the following steps:

[0033] Step 1: Build a backbone network based on the MobileNetV2 network, and use the backbone network to extract features from the RGB image containing the images of both hands to obtain the feature information of both hands;

[0034] MobileNetV2 is an architecture specially customized for mobile and resource-constrained environments. The network uses a linear bottleneck layer as a reverse residual structure and stacks it as a basic module. The linear bottleneck layer uses a low-dimensional compressed representation of the image as input, first expands it to a high-dimensional space and filters it using lightweight deep convolutions, and then projects it back to a low-dimensional representation through linear convolutions. Because it does not require the use of intermediate tensors with large parameters during reasoning, it effectively reduces the memory footprint required during reasoning, so it is very suitable for mobile and embedded devices.

[0035] The overall architecture of the MobileNetV2 feature extraction network is shown in Table 1, which consists of a convolution module, a Bottleneck module, and a maximum pooling module.

[0036] Table 1 Overall network architecture of MobileNetV2

[0037]

[0038] The initial input of the MobileNetV2 feature extraction network is a full convolution module with 32 convolution kernels, and 19 linear bottles are stacked as feature extractors. Using the formula The ReLU6 function is used as a nonlinear activation function. Compared with the traditional nonlinear activation function, the ReLU6 function has stronger robustness under lightweight and low-precision calculation. The principle is that mobile or embedded devices mainly use Float16 low-precision operations when inferring models, such as Figure 3 As shown, ReLU6 suppresses the output value when x is higher than 6, resulting in better numerical resolution.

[0039] Linear Bottleneck network architecture Figure 4 As shown in the figure, it consists of input dimensionality increase convolution, high-dimensional feature extractor Diwse, output dimensionality reduction convolution and residual connection.

[0040] First, the input tensor is increased in dimension through a convolution layer with a convolution kernel of 1, in order to transform the low-dimensional space features into high-dimensional space to improve the richness of feature information; then the high-dimensional space features are extracted using a depthwise separable convolution (Dwise) layer; finally, a convolution layer with a convolution kernel of 1 is used for dimensionality reduction, transforming the extracted high-dimensional information into low-dimensional space and using residual connections to ensure the stability of feature extraction performance.

[0041] In neural networks, a series of convolution and activation layers are considered as an "interest manifold". In low-dimensional space, the completion of the "interest manifold" is high. When passing through the activation layer, it may cause the activation space to collapse and lose some important information. However, placing it in a high-dimensional space will lead to a surge in the number of parameters. Linear Bottleneck uses linear layers instead of activation layers to capture the "interest manifold", which can prevent nonlinearity from destroying too much information while maintaining low dimensionality.

[0042] For the entire model calculation G, it consists of operations representing edges and intermediate calculation tensors representing nodes. The intermediate calculation tensors need to minimize the total number of tensors stored in memory to achieve the best efficiency of the model. In most cases, it is necessary to search for all reasonable calculation orders. Select the smallest one, and the specific calculation formula is as follows:

[0043] ;

[0044] in, Indicates that it contains connected A list of intermediate tensors for any node; Represents the size of tensor A; Indicates operation The total amount of storage required during the period.

[0045] For a graph with only branched parallel structures (such as residual structures), the total amount and memory required for reasoning on the computational graph G can be simplified as shown in the following formula:

[0046] ;

[0047] in, represents the size of tensor A, represents the size of the output tensor B, Indicates the size of the side branch tensor op.

[0048] For Linear Bottleneck Layer, a Bottleneck block operation is performed. It can be expressed as a combination of three operations, as shown in the following formula:

[0049] ;

[0050] in, represents a linear transformation; Represents the nonlinear transformation of each channel; represents a linear transformation of another output, Represents the length and width of the feature map before transformation, where the length and width are equal, Indicates the number of channels before transformation, represents the number of channels after transformation, Represents the length and width of the transformed feature map, where the length and width are equal, Indicates the number of channels after transformation.

[0051] For the MobileNetV2 network: And the result is applicable to the transformation of each channel, represents a depth-wise separable convolution. Assuming the input size is mainly composed of The output is mainly dominated by Leading, then The memory required for calculation can be reduced to .

[0052] Step 2: Build a two-hand feature interactor based on MobileNetV2, separate the feature information of both hands, obtain left-hand features and right-hand features, and input them into the two-hand feature interactor. Use the attention mechanism to interact the left-hand features and the right-hand features to capture the long-distance dependency between the left-hand features and the right-hand features, obtain the global representation of the two-hand features, and separate the global representation of the two-hand features again to obtain the left-hand token and the right-hand token.

[0053] The overall framework of the two-hand feature interactor is as follows: Figure 5 As shown in the figure, it consists of Concat feature stacking, ST Attention super attention sampling mechanism and feature separation convolution module.

[0054] In step 2, the left hand feature and the right hand feature are subjected to feature interaction using an attention mechanism to capture the long-distance dependency relationship between the left hand feature and the right hand feature. The method for obtaining the global representation of the two-hand features specifically includes the following steps:

[0055] The left hand features and the right hand features are stacked to meet the full interaction of the hand features and obtain the fusion features. The process relationship is as follows:

[0056] ;

[0057] in, represents the fusion feature, Indicates stacking the first dimension of the tensor. Represent left-hand features and right-hand features respectively;

[0058] The fused features are segmented through a convolution with an output channel number three times the number of original channels to obtain three query vectors. The process relationship is as follows:

[0059] ;

[0060] ;

[0061] in, represents the initial visual token, represents the convolution operation, which is used to obtain the initial visual token, Indicates the original number of channels, Indicates the number of output channels, Represent the query vector, key vector, and value vector respectively. Indicates dividing the tensor into three equal parts;

[0062] Attention calculation is performed on the three query vectors to obtain the global representation. The process relationship is as follows:

[0063] ;

[0064] ;

[0065] in, represents the attention mechanism function, represents the normalized exponential function, which is used to obtain the attention weight, Represents the dimension of the output vector, which is used to normalize the values ​​obtained by matrix multiplication to a standard normal distribution. represents the global representation;

[0066] The global representation is separated by two different convolutional blocks to obtain left-hand tokens and right-hand tokens. The process relationship is as follows:

[0067] ;

[0068] ;

[0069] in, represents the left-hand convolution operation, represents the convolution operation on the right hand, Indicates that the output channel of the convolution is 1 / 2 of the original input channel. represents the left-hand token, Indicates right hand token;

[0070] Stack the left-hand token and the right-hand token to obtain the visual token, and the relationship is as follows:

[0071] ;

[0072] in, represents a visual token, , represents the channel dimension, Indicates the position number of the token, , H and W represent the image height and width respectively;

[0073] Convolve the visual token to obtain the super token, define the relationship between the visual token and the super token, assume that the visual token belongs to one of the m super tokens, and then calculate the association graph between the visual token and the super token. The process relationship is as follows:

[0074] ;

[0075] in, Represents the normalized exponential function, which is used to normalize the calculated value. Indicates the number of channels, Represents a correlation graph, represents the super token of the previous iteration, Express The transpose of

[0076] The column-normalized association graph and the weighted sum of the visual tokens are taken as the iteratively updated super token. The process relationship is as follows:

[0077] ;

[0078] in, Indicates column normalization , Express The transpose of Represents the super token after iterative update;

[0079] With the updated super token as input, the above steps are repeated several times in an iterative manner to obtain the final left-hand token and right-hand token.

[0080] like Figure 6 As shown in the figure, the super sampling attention mechanism consists of super token computing (Super Token Compute), token folding (Token Fold), multi-head self-attention mechanism (MHSA) and token unfolding (Token UnFold) modules, among which token folding and token unfolding are reflected before and after the multi-head attention mechanism, mainly to effectively establish long-distance dependencies between tokens, which are essentially transposed convolution and convolution operations.

[0081] Step 3: Reconstruct the meshes of the left hand token and the right hand token to obtain the 2.5D heat maps and hand meshes of the two hands, perform affine transformation on the 2.5D heat maps of the two hands to obtain the 3D relative offset of the two hands, and perform real-time 3D hand mesh reconstruction based on the 3D relative offset of the two hands and the hand meshes of the two hands.

[0082] In order to improve the robustness of the model to real scenes, the present invention uses 2D real scene data sets and 3D laboratory scene data sets for mixed batch training during the training process of the model, uses 2D GTs for weak supervision for the 2D real scene data sets, and uses 3D GTs for full supervision for the 3D laboratory scene data sets. The purpose of this is that the 2D real scene data exposes the network to different appearances, so that the generalization of the model to real scenes is enhanced, and because the hand mesh reconstruction uses MANO parameters for modeling, the 3D hand coordinates produced by the model can be projected into 2D space during training, so as to use 2D GTs to weakly supervise the network. Because the difference in the hand scale size of the two data sets is too large when the 2D real scene data is weakly supervised by 2D GTs, when calculating the relative translation of the hand mesh (the process of hand mesh reconstruction of both hands is roughly: separate reconstruction of the meshes of the two hands + relative offset of the meshes of the two hands), these scale differences and the environmental influence of the real scene lead to poor reconstruction of both hands.

[0083] In order to solve this problem, the present invention proposes Figure 7The TransNet affine transformation network shown in the figure is mainly composed of 2D coordinate transformation (2D affine transform), 2.5D Gaussian heatmap transformation (2.5D gassian heatmap), local backbone network (BackBone), feature stacking (Concat) and linear transformation (Linear). The specific steps are as follows:

[0084] The 2.5D heat maps of the two hands are transformed into the union of the two-hand detection frames using 2D coordinates, and then the affine transformation matrix is ​​calculated using the union information of the two-hand detection frames. The affine transformation matrix is ​​used to transform the 2.5D heat maps of the two hands to obtain the transformed 2.5D heat maps of the two hands;

[0085] The transformed 2.5D heat maps of the two hands are converted into 2.5D Gaussian heat maps of both hands. The 2.5D Gaussian heat maps are extracted through the local backbone network to obtain hand features. The hand features are bilinearly interpolated and stacked with the 2.5D Gaussian heat maps. The stacked results are placed in the fully connected layer to obtain the relative offset of the wrists.

[0086] Preferably, the 2.5D heat maps of the two hands are transformed into the union of the two-hand detection frames using 2D coordinates, and then the affine transformation matrix is ​​calculated using the union information of the two-hand detection frames. The affine transformation matrix is ​​used to transform the 2.5D heat maps of the two hands to obtain the transformed 2.5D heat maps of the two hands. The method specifically includes the following steps:

[0087] The BoxNet detector is used to detect the detection boxes of the two hands. The upper left corner vertex and the lower right corner vertex of the detection boxes of the two hands are compared to obtain a rectangular detection box to obtain the union of the bounding boxes of the two hands. The process has the following relationship:

[0088] ;

[0089] ;

[0090] ;

[0091] ;

[0092] in, and Respectively represent the coordinates of the upper left corner vertex and the lower right corner vertex of the union of the bounding boxes of the two hands, They represent the rectangular detection boxes of the two hands obtained by the BoxNet detector respectively;

[0093] The affine space vector, affine center point and affine scaling vector are calculated using the bounding box and vertex coordinate information. The process has the following relationship:

[0094] ;

[0095] ;

[0096] ;

[0097] in, represents the affine space vector used to transform the one-hand space to the union space of both hands, represents the affine center point used for the transformation from the center of the single-hand image to the center of the union of the two hands image, represents the affine scaling vector used to transform the one-hand coordinates to the union of the two hands coordinates, and Respectively represent the width and height of the predefined scaling space;

[0098] Obtain the affine transformation matrix using the affine space vector, affine center point, and affine scaling vector , multiply the original 2.5D heat map of the two hands by the affine transformation matrix to obtain the 2.5D heat map of the two hands after transformation and The process has the following relationship:

[0099] ;

[0100] ;

[0101] in, and Represents the 2.5D heat map of the two hands after transformation

[0102] According to the key point coordinates of the 2.5D heat map of the two hands after the transformation, the 2.5D heat map of the two hands after the transformation is transformed into the corresponding 2.5D Gaussian heat map. The process has the following relationship:

[0103] ;

[0104] ;

[0105] in, A 2.5D Gaussian heat map representing the hand, represents the exponential function, represents the width parameter of a given Gaussian function, Represents the key point coordinates of the hand, Represents 3D space coordinates, Indicates the coordinates used to form 3D space The function of Indicates the depth of a predefined scale space.

[0106] Preferably, the 2.5D Gaussian heat map of both hands is subjected to feature extraction through a local backbone network to obtain hand features, bilinear interpolation is performed on the hand features, and the hand features are stacked with the 2.5D Gaussian heat map, and the stacked results are placed in a fully connected layer to obtain the relative offset of both wrists. The following relationship exists in the process:

[0107] ;

[0108] ;

[0109] ;

[0110] ;

[0111] in, Represents the hand features after bilinear interpolation and two-handed Gaussian heatmap The function to perform stacking, Indicates hand features, represents the hand features after bilinear interpolation, Represents the stacked hand features represents the fully connected layer, Indicates the relative offset of the two hands obtained at the end, It means that bilinear interpolation operation is performed on the hand features. The calculation process of bilinear interpolation has the following relationship:

[0112] ;

[0113] ;

[0114] ;

[0115] in, represents the bilinear interpolation function, represents the linear interpolation function of the y-axis below, represents the linear interpolation function of the y-axis above, Represent the starting x coordinate and the ending x coordinate respectively, Represent the starting y coordinate and the ending y coordinate respectively, They represent the four coordinate vertices of the linear interpolation surface.

[0116] Please refer to Figure 8 This embodiment further provides a real-time 3D hand mesh reconstruction system for real scenes, wherein the system applies the real-time 3D hand mesh reconstruction method for real scenes as described above, and the system includes:

[0117] Feature extraction module for:

[0118] A backbone network is built based on the MobileNetV2 network, and the backbone network is used to extract features from RGB images containing images of both hands to obtain feature information of both hands.

[0119] Two-hand feature interaction module, used for:

[0120] A two-hand feature interactor is built based on MobileNetV2, and the feature information of both hands is separated to obtain left-hand features and right-hand features, which are then input into the two-hand feature interactor. The left-hand features and the right-hand features are interacted with using the attention mechanism to capture the long-distance dependency between the left-hand features and the right-hand features, and the global representation of the two-hand features is obtained. The global representation of the two-hand features is separated again to obtain left-hand tokens and right-hand tokens.

[0121] Affine transformation module, for:

[0122] The left hand token and the right hand token are meshed to obtain 2.5D heat maps and hand meshes of the two hands. The 2.5D heat maps of the two hands are affine transformed to obtain the 3D relative offset of the two hands. Real-time 3D hand mesh reconstruction is performed based on the 3D relative offset of the two hands and the hand meshes of the two hands.

[0123] In summary, the present invention proposes a real-time 3D hand reconstruction technology for real scenes, which effectively solves the problem that the current 3D hand mesh reconstruction technology has poor reconstruction effect on real scenes, and greatly reduces the number of model parameters through a lightweight backbone network, so that the network can run on resource-constrained mobile and embedded devices.

[0124] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0125] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A real-time 3D hand mesh reconstruction method for real scenes, characterized in that: The method comprises the following steps: Step 1: Build a backbone network based on the MobileNetV2 network, and use the backbone network to extract features from the RGB image containing the images of both hands to obtain the feature information of both hands; Step 2: Build a two-hand feature interactor based on MobileNetV2, separate the feature information of both hands, obtain left-hand features and right-hand features, and input them into the two-hand feature interactor. Use the attention mechanism to interact the left-hand features and the right-hand features to capture the long-distance dependency between the left-hand features and the right-hand features, obtain the global representation of the two-hand features, and separate the global representation of the two-hand features again to obtain the left-hand token and the right-hand token. Step 3, reconstruct the meshes of the left hand token and the right hand token to obtain the 2.5D heat maps and hand meshes of the two hands, perform affine transformation on the 2.5D heat maps of the two hands to obtain the 3D relative offset of the two hands, and perform real-time 3D hand mesh reconstruction based on the 3D relative offset of the two hands and the hand meshes of the two hands; In step 2, the left hand feature and the right hand feature are subjected to feature interaction using an attention mechanism to capture the long-distance dependency relationship between the left hand feature and the right hand feature. The method for obtaining the global representation of the two-hand features specifically includes the following steps: The left hand features and the right hand features are stacked to meet the full interaction of the hand features and obtain the fusion features. The process relationship is as follows: ; in, represents the fusion feature, Indicates stacking the first dimension of the tensor. Represent left-hand features and right-hand features respectively; The fused features are segmented through a convolution with an output channel number three times the number of original channels to obtain three query vectors. The process relationship is as follows: ; ; in, represents the initial visual token, represents the convolution operation, which is used to obtain the initial visual token, Indicates the original number of channels, Indicates the number of output channels, Represent the query vector, key vector, and value vector respectively. Indicates dividing the tensor into three equal parts; Attention calculation is performed on the three query vectors to obtain the global representation. The process relationship is as follows: ; ; in, represents the attention mechanism function, represents the normalized exponential function, represents the dimension of the output vector, represents the global representation; The global representation is separated by two different convolutional blocks to obtain left-hand tokens and right-hand tokens. The process relationship is as follows: ; ; in, represents the left-hand convolution operation, represents the convolution operation on the right hand, Indicates that the output channel of the convolution is 1 / 2 of the original input channel. represents the left-hand token, Indicates right hand token; Stack the left-hand token and the right-hand token to obtain the visual token, and the relationship is as follows: ; in, represents a visual token, , represents the channel dimension, Indicates the position number of the token, , H and W represent the image height and width respectively; Convolve the visual token to obtain the super token, define the relationship between the visual token and the super token, assume that the visual token belongs to one of the m super tokens, and then calculate the association graph between the visual token and the super token. The process relationship is as follows: ; in, Represents the normalized exponential function, which is used to normalize the calculated value. Indicates the number of channels, Represents a correlation graph, represents the super token of the previous iteration, Express The transpose of The column-normalized association graph and the weighted sum of the visual tokens are taken as the iteratively updated super token. The process relationship is as follows: ; in, Indicates column normalization , Express The transpose of Represents the super token after iterative update; With the updated super token as input, the above steps are repeated several times in an iterative manner to obtain the final left-hand token and right-hand token.

2. The real-time 3D hand mesh reconstruction method for real scenes according to claim 1, characterized in that: In step 1, the MobileNetV2 network includes a convolution module, a Bottleneck module and a maximum pooling module.

3. The real-time 3D hand mesh reconstruction method for real scenes according to claim 1, characterized in that: In step 3, the method of performing affine transformation on the 2.5D heat maps of the two hands to obtain the 3D relative offset of the two hands specifically includes the following steps: The 2.5D heat maps of the two hands are transformed into the union of the two-hand detection frames using 2D coordinates, and then the affine transformation matrix is ​​calculated using the union information of the two-hand detection frames. The affine transformation matrix is ​​used to transform the 2.5D heat maps of the two hands to obtain the transformed 2.5D heat maps of the two hands; The transformed 2.5D heat maps of the two hands are converted into 2.5D Gaussian heat maps of both hands. The 2.5D Gaussian heat maps are extracted through the local backbone network to obtain hand features. The hand features are bilinearly interpolated and stacked with the 2.5D Gaussian heat maps. The stacked results are placed in the fully connected layer to obtain the relative offset of the wrists.

4. The real-time 3D hand mesh reconstruction method for real scenes according to claim 3 is characterized in that: The method of transforming the 2.5D heat maps of the two hands into the union of the two-hand detection frames using 2D coordinates, calculating the affine transformation matrix using the union information of the two-hand detection frames, and transforming the 2.5D heat maps of the two hands using the affine transformation matrix to obtain the transformed 2.5D heat maps of the two hands specifically includes the following steps: The BoxNet detector is used to detect the detection boxes of the two hands. The upper left corner vertex and the lower right corner vertex of the detection boxes of the two hands are compared to obtain a rectangular detection box to obtain the union of the bounding boxes of the two hands. The process has the following relationship: ; ; ; ; in, and Respectively represent the coordinates of the upper left corner vertex and the lower right corner vertex of the union of the bounding boxes of the two hands, They represent the rectangular detection boxes of the two hands obtained by the BoxNet detector respectively; The affine space vector, affine center point and affine scaling vector are calculated using the bounding box and vertex coordinate information. The process has the following relationship: ; ; ; in, represents the affine space vector used to transform the one-hand space to the union space of both hands, represents the affine center point used for the transformation from the center of the single-hand image to the center of the union of the two hands image, represents the affine scaling vector used to transform the one-hand coordinates to the union of the two hands coordinates, and Respectively represent the width and height of the predefined scaling space; Obtain the affine transformation matrix using the affine space vector, affine center point, and affine scaling vector , multiply the original 2.5D heat map of the two hands by the affine transformation matrix to obtain the 2.5D heat map of the two hands after transformation and The process has the following relationship: ; ; in, and Respectively represent the 2.5D heat maps of the two hands after transformation; According to the key point coordinates of the 2.5D heat map of the two hands after the transformation, the 2.5D heat map of the two hands after the transformation is transformed into the corresponding 2.5D Gaussian heat map. The process has the following relationship: ; ; in, A 2.5D Gaussian heat map representing the hand, represents the exponential function, represents the width parameter of a given Gaussian function, Represents the key point coordinates of the hand, Represents 3D space coordinates, Indicates the coordinates used to form 3D space The function of Indicates the depth of a predefined scale space.

5. The real-time 3D hand mesh reconstruction method for real scenes according to claim 4, characterized in that: The local backbone network is used to extract the hand features from the 2.5D Gaussian heat map of both hands, and the hand features are bilinearly interpolated and stacked with the 2.5D Gaussian heat map. The stacked results are placed in the fully connected layer to obtain the relative offset of the two wrists. The following relationship exists in the process: ; ; ; ; in, Represents the hand features after bilinear interpolation and two-handed Gaussian heatmap The function to perform stacking, Indicates hand features, represents the hand features after bilinear interpolation, represents the stacked hand features, Indicates that bilinear interpolation is performed on the hand features. represents the fully connected layer, Indicates the relative offset of the hand.

6. The real-time 3D hand mesh reconstruction method for real scenes according to claim 5, characterized in that: The calculation process of bilinear interpolation has the following relationship: ; ; ; in, represents the bilinear interpolation function, represents the linear interpolation function of the y-axis below, represents the linear interpolation function of the y-axis above, Represent the starting x coordinate and the ending x coordinate respectively, Represent the starting y coordinate and the ending y coordinate respectively, They represent the four coordinate vertices of the linear interpolation surface.

7. A real-time 3D hand mesh reconstruction system for real scenes, characterized in that: The system applies the real-time 3D hand mesh reconstruction method for real scenes according to any one of claims 1 to 6, and the system comprises: Feature extraction module for: A backbone network is built based on the MobileNetV2 network, and the backbone network is used to extract features from RGB images containing images of both hands to obtain feature information of both hands. Two-hand feature interaction module, used for: A two-hand feature interactor is built based on MobileNetV2, and the feature information of both hands is separated to obtain left-hand features and right-hand features, which are then input into the two-hand feature interactor. The left-hand features and the right-hand features are interacted with using the attention mechanism to capture the long-distance dependency between the left-hand features and the right-hand features, and the global representation of the two-hand features is obtained. The global representation of the two-hand features is separated again to obtain left-hand tokens and right-hand tokens. Affine transformation module, for: The left hand token and the right hand token are meshed to obtain 2.5D heat maps and hand meshes of the two hands. The 2.5D heat maps of the two hands are affine transformed to obtain the 3D relative offset of the two hands. Real-time 3D hand mesh reconstruction is performed based on the 3D relative offset of the two hands and the hand meshes of the two hands.