A two-stream multi-scale hand pose estimation method based on a single RGB image
Through dual-stream multi-scale network and semantic graph convolution network, the problem of self-occlusion and neighbor joint prediction ambiguity in gesture pose estimation under single RGB image input is solved, high-precision hand 3D pose estimation is achieved, and the accuracy of pose estimation is improved. accuracy.
Patent Information
- Application Number
- CN202110273215.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-03-11
AI Technical Summary
Existing gesture pose estimation methods face self-occlusion and neighbor joint prediction ambiguity problems when inputting a single RGB image, and traditional graph convolution shares weights at each node and lacks semantic information, making it difficult to accurately estimate the 3D pose of the hand.
A hand pose estimation method based on dual-stream multi-scale network is proposed. Dual-branch networks with two topological structures are used for 2D pose estimation, and semantic graph convolution network and multi-scale U-Net are introduced for 3D pose regression to ensure that each joint Node weights are different and can effectively describe semantic information.
It achieves high-precision estimation of the three-dimensional coordinates of hand joints from a single RGB image, improves the accuracy of 2D pose estimation and 3D pose regression, and solves the problems of self-occlusion and neighbor joint prediction ambiguity, which is superior to traditional methods.
Smart Images

Figure CN113052030B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision, and in particular relates to a hand posture estimation method based on a dual-stream multi-scale network for RGB images. Background Art
[0002] In the daily communication between people, natural language, written language and body language are the three most important ways of expression. However, the first two are subject to regional, national, racial and cultural restrictions, while body language is not only flexible and can express some basic intentions of people, but also intuitive and easy to understand, and not prone to ambiguity. Therefore, body language has gradually gained the favor of human-computer interaction researchers. Human hands are one of the most important parts of body language expression, which can convey rich information. Therefore, it is valuable and necessary to let computers understand the information conveyed by human hands.
[0003] Gestures are the main way for humans to transmit information to the outside world. Due to their flexibility, freedom, complexity and variability, gestures contain a lot of useful information. Hands undertake most of the work in life, such as communication and operation. As we all know, most machine operations are completed by hand. Therefore, whether it is natural human-computer interaction or transferring human hand operation experience to robots, the first thing to do is to estimate the posture of the human hand and transmit the hand posture information to the machine equipment, and then conduct human-computer interaction.
[0004] At present, the methods of hand posture estimation are roughly divided into two stages. First, the 2D posture of the hand is estimated by inputting an image, and then the 3D posture of the hand is regressed from the 2D posture. According to the type of input image, hand posture estimation can be roughly divided into three categories: 1) Hand posture estimation based on depth image: Traditionally, the method based on depth image is the main method of hand posture estimation. Depth image contains certain depth information, which can better obtain the three-dimensional information of hand joints in the process of 3D posture regression. However, the imaging range of current depth cameras is very limited, and the quality is not high enough, which will have a great impact on the hand posture estimation method that relies on depth image as input; at the same time, depth image is not widely used in practice, and it is usually difficult for people to obtain depth image. 2) Hand posture estimation based on multiple RGB images: Compared with the method based on depth image, it is easier to obtain images based on multiple RGB. At the same time, multiple RGB images taken from different views contain rich 3D information. Therefore, some methods take multiple images as input to reduce the occlusion problem. Although this method can obtain a higher accuracy and can effectively solve the problem of hand self-occlusion, it requires large training and testing resources, and the collection of data sets is also relatively complex. 3) Hand pose estimation based on a single RGB image: Compared with the above two methods, a single RGB image is easier to obtain and more practical. Currently, hand pose estimation based on a single RGB image has attracted widespread attention. However, estimating the 3D hand pose from a single RGB image is more challenging due to the lack of input depth information. Hand pose estimation methods usually include two stages: estimating the 2D pose of the hand based on the input image, and regressing the 3D pose of the hand through the 2D pose.
[0005] Factors that affect hand gesture estimation include self-occlusion of some gestures, prediction ambiguity of certain neighboring joints during 3D gesture regression, etc. The present invention works on these issues. Summary of the invention
[0006] The present invention aims at three problems: gesture self-occlusion, neighboring joint prediction ambiguity, and traditional graph convolution sharing weights at each node, thus lacking semantic information. Starting from the two stages of gesture posture estimation, the present invention proposes an improved hand posture estimation method. It includes: proposing a dual-stream gesture posture estimation method based on two topological structures to solve the problem of gesture self-occlusion; proposing a multi-scale U-net 3D gesture posture regression method to solve the problem of prediction ambiguity of neighboring joints during regression; introducing a semantic graph convolutional network to the hand posture estimation problem for the first time, so that the node weights of each joint are different, thereby effectively describing the semantic information of each joint, and in summary improving the accuracy of 2D posture estimation and 3D posture regression. The specific technical scheme is as follows:
[0007] Step 1) extract the features of a single image and obtain the initial coordinates of the 2D posture of the hand joints;
[0008] Step 2) using a dual-branch network to perform 2D posture estimation to obtain accurate 2D posture coordinates of hand joints, wherein the dual-branch network has two branches with the same structure;
[0009] Through the first step, we get an N×F feature matrix, where N represents the number of hand joints and F represents the feature dimension. At the same time, we can get a graph. In the second step, we use the graph obtained in the first step to design two graph structures according to the different connection relationships of the hands. Each graph structure is represented by a different adjacency matrix, thus designing a dual-branch network structure. Each branch inputs the feature matrix obtained above and the corresponding adjacency matrix into the 2D posture optimization network composed of semantic graph convolution layers, so that each branch obtains a 2D posture of the hand.
[0010] Step 3) using a multi-scale semantic graph U-Net network to estimate the 3D coordinates of the hand joints, the multi-scale semantic graph U-Net network has two branches with the same structure, and the multi-scale semantic graph U-Net network input of each branch is the 2D posture coordinates and the corresponding adjacency matrix obtained by one branch in step 2), and the output is the 3D posture of the hand joints; then the 3D postures obtained by the two branches are added and averaged, and finally the 3D coordinates of the hand joints are output.
[0011] Beneficial Effects
[0012] The present invention proposes a new dual-stream, multi-scale network model based on two topological structures of hand joints, which solves the self-occlusion and neighbor joint prediction ambiguity problems based on a single RGB image, and achieves high-precision three-dimensional coordinates of hand joints from a single RGB image. Most existing methods use depth images as a guide for training network models during the training process to obtain more accurate three-dimensional coordinates of hand joints. Compared with existing methods, the present invention is based on two different topological structures of the hand to better utilize the information between the hand joints, and at the same time, uses the fact that information of different hand joints may exist in different features to design a dual-stream multi-scale network model. Finally, high-precision hand posture estimation is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 Overall schematic diagram of the hand pose estimation method;
[0014] Figure 2 Schematic diagram of two topological structures of the hand;
[0015] Figure 3 Multi-scale graph U-net network model;
[0016] Figure 4 Schematic diagram of hand bone loss. DETAILED DESCRIPTION
[0017] The present invention consists of three parts: 1) feature extraction and 2D posture initialization, inputting the image into the network to extract the image features and obtain the initial 2D posture of the hand joints; 2) 2D posture estimation, using the features obtained in 1) and the initial 2D posture, obtain two topological structures of the hand joints and input them into the 2D posture optimization network to refine the 2D posture; 3) 3D posture regression, using the features of different hand joints that may have features at different scales, design a multi-scale feature fusion graph Unet 3D regression model. The overall schematic diagram of the hand posture estimation method is shown in the figure. Figure 1 As shown in Figure 2, the two topologies are Figure 2 As shown, the 3D regression model is Figure 3 shown.
[0018] 1) Feature extraction and 2D pose initialization
[0019] First, the Resnet50 network is used to extract the 2048-dimensional feature vector of the input image, and the 2048-dimensional vector is passed through an additional fully connected layer to obtain the initial 2D joint coordinates, and then the 2048-dimensional feature vector extracted by the Resnet50 network is spliced with the obtained initial 2D joint coordinates to obtain an N×F feature matrix, where N represents the number of hand joints. In the present invention, N=21, including 1 wrist joint, 5 metacarpophalangeal joints, and 3 finger joints of each finger; F represents the feature dimension. In the present invention, F=2050, including the 2048-dimensional features of the image and the 2D joint coordinates x and y of each joint point.
[0020] 2) 2D pose estimation
[0021] Through the graph obtained in the first step, we designed two different graph structures of the hand, thereby designing a dual-branch network; the two graph structures utilize different connection methods of the hands to complement features in the subsequent network, thereby obtaining a more accurate hand posture. These two graph structures are represented by different adjacency matrices in the present invention. The feature matrix N×F obtained in the first step and the adjacency matrix A of each branch are respectively input into a 2D posture optimization network composed of 3 layers of semantic graph convolution layers to obtain the 2D posture of the hand. In view of the fact that previous hand posture estimation methods cannot better express the relevant connections between hand joints when using graph convolutional networks, the present invention designs two different graph structures to better express the connections between hand joints. The two graph structures are as follows. Figure 2As shown. The first graph structure is called physical connection, which uses the connection between the physical joints of the hand. This is also a topological structure commonly used in previous methods. It can effectively use the relationship between the joints of each finger, so it is more advantageous for representing some simpler gestures. The second graph structure is called symmetric connection, which uses the connection between the same joints of each finger. Previous methods have never considered the interaction and spatial connection of the same joints of the fingers. It can effectively use the connection between the same joints of each finger, so as to effectively solve some self-occlusion problems. In addition, since the movements of the same joints of the fingers are very similar during the movement of the hand, there is a certain relationship between the adjacent joints during the movement. This graph structure can better express this relationship. For example, in the movement of the hand grasping an object and making a fist, the hand is self-occluded. Using this connection method, we can better estimate the occluded joints based on the visible joints. Therefore, this structure is more advantageous for some gestures with self-occluded hand joints. The two graph structures are represented by different adjacency matrices. The construction method of the symmetrically connected adjacency matrix is as follows: Let G = {V, E} represent a graph, where V is the set of N hand joints and E represents the edge; the adjacency matrix A, when two joints are connected, a ij =1 otherwise a ij =0, i and j represent two joints of the hand respectively; each finger has three joints, the fingertip is the third joint, and the two joints below the fingertip are the second joint and the first joint respectively. For example, the joints above the metacarpophalangeal joint of the middle finger are the first joint of the middle finger, the second joint of the middle finger, and the third joint of the middle finger respectively; the first joints of adjacent fingers are connected to each other, and the second joints are connected to each other, and the third joints are connected to each other; the palm has 6 joints, one of which is the wrist joint, which is connected to the remaining 5 metacarpophalangeal joints, and adjacent metacarpophalangeal joints are connected to each other.
[0022] Since there is a certain correlation between the joints of the hand, the adjacency relationship between the joints can be represented by an adjacency matrix, and the semantic graph convolution can well describe the connection between the joints and better extract the semantic information of each joint point, thereby obtaining a better feature representation. Therefore, the present invention adopts a 2D posture optimization network composed of 3 layers of semantic graph convolution layers as the basic network model for 2D posture estimation.
[0023] The basic formula of traditional graph convolution is as follows:
[0024]
[0025] in, is the input feature matrix of the lth layer, represents the output feature matrix of the lth layer; represents the number of joints, K represents the input feature dimension of the graph convolutional network, It is a matrix normalized symmetric to A, where A represents the adjacency matrix.
[0026] It can be seen that the traditional graph convolution operation shares weights at each node. In fact, each joint of the hand has different effects on other joints of the hand. Therefore, sharing weights is not appropriate. In order to better describe the semantic information of each node, this paper introduces semantic graph convolution to hand posture estimation for the first time in the hope of achieving better results. The semantic graph convolution formula is as follows:
[0027] X (l+1) =σ(WX (l) ρ i (M⊙A)) (2)
[0028] where ρ i is the Softmax nonlinear transformation, which is used to normalize the matrix elements. ⊙ represents the matrix pixel-level operation. If the element a in the matrix A ij The value of is 1, then the value of m in the matrix M is returned. ij The value of the element, otherwise, the return value is passed through ρ i The operation obtains a value close to 0. Matrix A is the adjacency matrix of the node, which indicates the connection relationship between the nodes. σ represents the ReLu nonlinear activation function. represents the learnable weight matrix. 0 is the input of the network. In the present invention, X 0 =N×F is the feature matrix obtained in the first stage.
[0029] In this paper, accurate 2D pose estimation is achieved through three semantic graph convolution layers, with input X 0 =N×F feature matrix, and the output is the 2D coordinates of the N joint points that are accurately estimated. The input and output dimensions of each layer are as follows, where the arrows represent semantic graph convolution operations: (21,2050)→(21,128)→(21,16)→(21,2). The first number 21 in the brackets represents the number of hand joints, and the second number represents the feature dimension of each joint.
[0030] 3) Multi-scale 3D hand pose estimation based on dual branches
[0031] Most of the literature uses graph convolution and Nonlocal modules as 3D posture regressors. In this paper, the graph U-Net network is used as the basic network model, and a multi-scale feature fusion process is designed to more accurately obtain the relationship between points, which can better eliminate the ambiguity generated by 2D posture to 3D posture. The network diagram is as follows Figure 3 As shown in the figure, the input is the 2D hand posture coordinates obtained in the second step. After downsampling, upsampling and multi-scale feature fusion, the 3D coordinates of the hand joints are output through a semantic graph convolution layer.
[0032] Multi-scale features have always been used in computer vision problems, and the fusion of multi-scale features has also shown amazing performance. Since the features of each part of the hand joints are not necessarily concentrated on the last layer of features, joints in different parts may be distributed on features of different scales. Therefore, the present invention uses the decoder process of the graph U-Net network to perform multi-scale feature fusion, and finally uses a semantic graph convolution layer to obtain the three-dimensional coordinates of the hand joints. The network includes three stages: downsampling, upsampling, and multi-scale feature fusion. The network first obtains the global information of the hand joints during the downsampling process, and then restores the resolution through upsampling. In order to retain the underlying information, the features of the downsampling stage are added to the upsampling branch through some skip connections. Finally, the features obtained under multiple scales are merged to predict the three-dimensional coordinates of the hand joints. The specific process is as follows.
[0033] Downsampling stage: In most literature, graph pooling uses the sigmoid function, which produces very small gradients during back propagation, resulting in the network not updating the randomly initialized selected nodes during the entire training phase, losing the advantages of the pooling layer. In this invention, a fully connected layer is used and applied to the transpose of the feature matrix. This fully connected layer can be used as the kernel of each feature and output the number of required nodes. The downsampling calculation process is as follows:
[0034] Y0=G0(x) (3)
[0035] P i =Pooling i (Y i-1 ) i=1,2,…,5 (4)
[0036]
[0037] in Represents the input of the network, which is the 2D pose coordinate matrix of the hand joints obtained in the second stage, N is the number of joints, l is the feature dimension (here N = 21, l = 2); i represents the number of downsampling, represents the down-sampled graph convolution operation, Y i Represents the output of graph convolution, Pooling i (·) represents downsampling calculation, i.e., pooling calculation, P i represents the output of the pooling layer, and FC(·) represents the fully connected layer operation.
[0038] Upsampling stage: In the present invention, the upsampling or unpooling layer uses the transposed convolution method, which is applied to the transposed matrix of the feature using a fully connected layer to obtain the required number of output nodes, and then the matrix is transposed again. The calculation process of the unpooling is as follows:
[0039]
[0040] Among them U i Indicates the output of each layer in the upsampling process, Unpooling i (·) represents the unpooling calculation (i.e. upsampling), It means feature fusion, i.e. feature concatenation. Represents a down-sampled graph convolution operation.
[0041] Multi-scale feature extraction stage: Since the multi-scale strategy can better capture global context information, the present invention directly upsamples to 21 nodes at each scale in the upsampling stage, and then outputs the node dimension as 4 dimensions (21,4) through a graph convolution layer, and then concatenates the features of each scale and obtains the three-dimensional coordinates of the hand joints through two graph convolution layers. The calculation process is as follows:
[0042]
[0043]
[0044] in represents the multi-scale graph convolution calculation, F i The output of the convolutional layer at different scales, Unpooling i (·) represents the unpooling calculation (i.e., upsampling). out represents the output after multi-scale fusion.
[0045] In order to better train the network end-to-end, we use the following loss function as the objective function of the entire network.
[0046] In the 2D pose estimation and 2D pose initiation process, the loss we use is:
[0047]
[0048] Among them, H j Labels representing 2D poses, i.e., the 2D coordinates that come with the public dataset, represents the predicted 2D pose coordinates, N represents the total number of hand joints, where N = 21.
[0049] Using pose loss L in 3D pose estimation pose , bone length loss L len and the bone orientation loss Ldir .
[0050] Posture loss L pose for:
[0051]
[0052] in Labels representing 3D poses, i.e., the 3D coordinates that come with the public dataset, Represents the predicted 3D pose coordinates.
[0053] Bone length loss L len and the bone orientation loss L dir for:
[0054]
[0055]
[0056] where b i,j Represents the bone vector between the i-th joint and the j-th joint of the hand, that is:
[0057]
[0058] The loss function L of the 3D hand pose estimation network 3D for:
[0059] L 3D =λ pose L pose +λ len L len +λ dir L dir (14)
[0060] where λ pose , len and λ dir are the weight hyperparameters between 3D posture loss, bone length loss and bone direction loss, respectively. Here we set λ pose =1,λ len =0.01,λ dir = 0.1. The bone loss diagram is as follows Figure 4 shown.
[0061] The overall objective function L is:
[0062] L=λ init L init +λ 2D L 2D +λ 3D L 3D (15)
[0063] where λ init , 2D and λ 3D are the hyperparameters of initial 2D posture loss, 2D posture loss and 3D posture loss, respectively, and are set here as: init =0.01,λ 2D =0.01,λ 3D =1.
[0064] The present invention uses the public data sets STB and FeriHand as training and testing data sets for the model for verification, and uses the public Obman data set as a pre-training data set for the network model.
[0065] Dataset
[0066] FeriHand dataset: This dataset consists of real images and shows samples with and without object interactions. It is captured with a multi-view setting and contains 33,000 samples. Hand gestures are recorded for 32 objects and 3D annotations for 21 joints are provided. For this invention, the dataset is divided into 80% for training and 20% for testing.
[0067] STB dataset: The STB dataset is a real dataset that contains 18,000 images, 21 ground truths of 3D hand joint positions, and corresponding depth images. In the experiment, 15,000 images are used for training samples and 3,000 images are used for testing samples. In order to be consistent with the Obman dataset, the root joint of the STB dataset is moved from the center of the palm to the wrist.
[0068] Obman dataset: The Obman dataset is a synthetic large-scale dataset for hand posture estimation verification. The images in this dataset are obtained by rendering the hands using ShapeNet. Obman contains 141,550 training data, 6463 verification data, and 6285 test data. Despite the large amount of annotated data, the models trained with these synthetic images do not generalize well to real images. However, it is helpful for the model training of the present invention to pre-train the model on Obman's large-scale dataset and then fine-tune the network model using real images.
[0069] Evaluation Metrics
[0070] The present invention evaluates the model by calculating the Euclidean distance between the 3D label coordinates and the estimated coordinates. The calculation formula is as follows:
[0071]
[0072] Where MPJPE is the mean joint error, T is the number of samples, and N is the number of joint points (here N = 21). represents the label coordinates of the i-th joint in the t-th image, represents the predicted coordinates of the i-th joint in the t-th image.
[0073] Experiments and Results
[0074] The experiments of the present invention were trained and tested on an Ubuntu 16.04 system computer with an Intel Core i5 CPU, 11GB RAM, and an NVIDIA GTX2080TI GPU. The framework used was Pytorch 1.3.1. We first pre-trained the network model using the synthetic dataset Obman. The initial learning rate was set to 0.001, and the learning rate was multiplied by 0.1 every 500 epochs, for a total of 5000 epochs; then the model was trained end-to-end for 500 epochs using the FeriHand dataset, with an initial learning rate of 0.001 and a learning rate multiplied by 0.1 every 100 epochs. All images were resized to 224×224 pixels and passed to the Resnet network.
[0075] The present invention has designed and completed two experiments. The first experiment is to compare with the baseline of the present invention. Here, the baseline adopts the method of Bardia et al., uses the Resnet50 network to extract image features, and then uses the adaptive graph convolution and graph U-net network to perform 2D and 3D posture regression. Ablation experiments were performed on the two-stream network and multi-scale model involved in the present invention. The second experiment is to compare with some of the latest research methods for hand posture estimation based on RGB images. The experimental results are shown in the following table:
[0076] Table 1 Comparison with existing methods on the STB dataset
[0077] method Average joint error (unit: mm) Theodoridis et al. 6.93 Spurr et al. 8.56 Ge et al. 6.37 Yang et al. 7.05 The present invention 5.972
[0078] Table 2 Comparison with existing methods on the FeriHand dataset
[0079] method Average joint error (unit: mm) Parelli M et al. 11 Doosti B et al. 8.887 Ge et al. 15.36 The present invention 8.247
[0080] Table 3 Ablation experiment of the method proposed in the present invention (average joint error, unit: mm)
[0081] method STB Dataset FeriHand Dataset Baseline 8.573 8.887 Baseline+Semantic Graph Convolution 7.256 8.406 Resnet50+ dual-stream network 8.044 8.637 Resnet50+two-stream network+semantic graph convolution 7.202 8.358 Resnet50+ multi-scale 7.657 8.559 Resnet50+multi-scale+semantic graph convolution 6.655 8.435 Resnet50+dual stream+multi-scale 6.085 8.401 Resnet50+dual stream+multi-scale+semantic graph convolution 5.972 8.247
[0082] Based on the above analysis, the dual-stream, multi-scale network model proposed in the present invention is superior to the traditional hand posture estimation method, that is, it can obtain a more accurate hand posture estimation with a single RGB image as input. The model of the present invention uses two different graph structures of the hand, so that the features between adjacent joints of the hand joints can be better utilized, and there are also complementary structural features between the two structures; and the multi-scale features can better utilize the semantic information of the hand joints to reduce the ambiguity of the prediction of neighboring joints in the regression process of a single RGB image; the introduction of the semantic graph convolutional network to hand posture estimation more effectively describes the semantic information of each joint. Thus, a more accurate 3D hand posture is obtained.
Claims
1. A two-stream multi-scale hand posture estimation method based on a single RGB image, characterized by The following steps are involved: Step 1) extract the features of a single image and obtain the initial coordinates of the 2D posture of the hand joints; Step 2) using a dual-branch network to perform 2D posture estimation to obtain accurate 2D posture coordinates of hand joints, wherein the dual-branch network has two branches with the same structure; Step 3) using a multi-scale semantic graph U-Net network to estimate the 3D coordinates of the hand joints, wherein the multi-scale semantic graph U-Net network has two branches with the same structure, and the multi-scale semantic graph U-Net network input of each branch is the 2D posture coordinates and the corresponding adjacency matrix obtained by one branch in step 2), and the output is the 3D posture of the hand joints; then the 3D postures obtained by the two branches are added and averaged, and finally the 3D coordinates of the hand joints are output; Step 1) is as follows: The Resnet50 network is used to encode a single input RGB image, and each input image generates a 2048-dimensional feature vector; Then, an additional fully connected layer is used to generate the initial predicted two-dimensional coordinates of the hand joints. At the same time, the obtained feature vector is concatenated with the initial two-dimensional predicted coordinates of each joint point to generate a graph with F features for each node, that is, an N×F feature matrix is obtained, where N represents the number of hand joints and F represents the feature dimension. Step 2) specifically includes, According to the N×F feature matrix obtained in the first step, N represents the number of hand joints and F represents the feature dimension, two graph structures are obtained. Each graph structure is represented by an adjacency matrix. The first graph structure is called physical connection, which is used to represent the connection between the physical joints of the hand. The second graph structure is called symmetric connection, which is used to represent the connection between the same joints of each finger. The N×F feature matrix and the physically connected adjacency matrix are input into one branch of the two-branch network, and the N×F feature matrix and the symmetrically connected adjacency matrix are input into the other branch of the two-branch network. Each network consists of three layers of semantic graph convolutional layers connected in series. The construction method of the symmetrically connected adjacency matrix is as follows: Let G = {V, E} represent a graph, where V is the set of N hand joints and E represents the edge; the adjacency matrix A, when two joints are connected, a ij =1 otherwise a ij = 0, i and j represent two joints of the hand respectively; each finger has three joints, the fingertip is the third joint, and the two joints below the fingertip are the second joint and the first joint respectively; the same joints of adjacent fingers are connected to each other; the palm has 6 joints, one of which is the wrist joint, which is connected to the other 5 metacarpophalangeal joints, and adjacent metacarpophalangeal joints are connected to each other; The branch structure in the multi-scale semantic graph U-Net network consists of three stages: downsampling, upsampling, and multi-scale feature fusion. Among them, the calculation process of the downsampling stage is as follows: Y0=G0(x) (3) P i =Pooling i (Y i-1 ) i=1,2,…,5 (4) in Represents the input of the network, which is the 2D posture coordinate matrix of the hand joints obtained in the second stage, N is the number of joints, l is the feature dimension; i represents the number of downsampling times, represents the down-sampled graph convolution operation, Y i Represents the output of graph convolution, Pooling i (·) represents downsampling calculation, i.e., pooling calculation, P i represents the output of the pooling layer, and FC(·) represents the fully connected layer operation; Upsampling stage: The upsampling or anti-pooling layer uses the transposed convolution method, applies it to the transposed matrix of the feature using a fully connected layer to obtain the required number of output nodes, and then transposes the matrix again. The anti-pooling calculation process is as follows: Among them U i Indicates the output of each layer in the upsampling process, Unpooling i (·) represents the anti-pooling calculation, that is, upsampling, It means feature fusion, i.e. feature concatenation. represents the down-sampled graph convolution operation; In the multi-scale feature extraction stage, the calculation process is as follows: in represents the multi-scale graph convolution calculation, F i The output of the convolutional layer at different scales, Unpooling i (·) represents the anti-pooling calculation (i.e., upsampling), and out represents the output after multi-scale fusion.
2. The dual-stream multi-scale hand posture estimation method based on a single RGB image according to claim 1, characterized in that: The semantic graph convolution formula is as follows: X (l+1) =σ(WX (l) r i (M⊙A)) (2) where ρ i is the Softmax nonlinear transformation, which is used to normalize the matrix elements. ⊙ represents the matrix pixel-level operation. If the element a in the matrix A ij The value of is 1, then the value of m in the matrix M is returned. ij The value of the element, otherwise, the return value is passed through ρ i The operation obtains a value close to 0. The matrix A is the adjacency matrix of the node, which indicates the connection relationship between the nodes. σ indicates the ReLu nonlinear activation function. represents the learnable weight matrix, X 0 is the input of the network, that is, X 0 =N×F is the feature matrix obtained in step 1), and the output is the accurately estimated 2D coordinates of N joint points.
3. The dual-stream multi-scale hand posture estimation method based on a single RGB image according to claim 1, characterized in that: The overall objective function L is: L=λ init L init +λ 2D L 2D +λ 3D L 3D (15) where λ init , 2D and λ 3D are the hyperparameters of initial 2D pose loss, 2D pose loss and 3D pose loss, respectively. init is the loss in the 2D pose estimation and 2D pose initialization process, as follows: Among them, H j Labels representing 2D poses, i.e., the 2D coordinates that come with the public dataset, Represents the predicted 2D pose coordinates; L 3D Loss function for the 3D hand pose estimation network: L 3D =λ pose L pose +λ len L len +λ dir L dir (14) where λ pose , len and λ dir are the weight hyperparameters between 3D posture loss, bone length loss and bone orientation loss, Posture loss L pose for: in Labels representing 3D poses, i.e., the 3D coordinates that come with the public dataset, Represents the predicted 3D pose coordinates; Bone length loss L len and the bone orientation loss L dir for: where b i,j Represents the bone vector between the i-th joint and the j-th joint of the hand, that is:
