Gesture grid point prediction method, electronic equipment and storage medium

By performing feature extraction and upsampling on the hand image, combined with hand key point prediction and feature point sampling, and using the pre-trained gesture grid point prediction model, we solve the problem that the gesture grid point prediction algorithm in the existing technology cannot achieve both high accuracy and accuracy. Real-time problems achieve more efficient prediction results.

CN118609199APending Publication Date: 2024-09-06BEIJING JIIOV TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410369766.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing gesture grid point prediction algorithm cannot meet the requirements of high accuracy and real-time performance at the same time, and it is difficult to take into account both.

Method used

By performing feature extraction, upsampling, hand key point prediction and feature point sampling on the original hand image, the pre-trained gesture grid point prediction model, including the encoder and decoder, is used to perform multiple decoding processes to generate the gesture network grid prediction results.

Benefits of technology

It improves the real-time and accuracy of gesture grid point prediction and solves the problem of being unable to balance high accuracy and real-time in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609199A
    Figure CN118609199A
Patent Text Reader

Abstract

The invention provides a gesture grid point prediction method, electronic equipment and a storage medium, and relates to the technical field of image processing. In order to improve the real-time performance and accuracy of gesture grid point prediction, the gesture grid point prediction method provided by the invention comprises the following steps: carrying out feature extraction on an original hand image to obtain a hand feature map; performing up-sampling on the hand feature map to obtain a to-be-sampled hand feature map; performing hand key point prediction on the hand feature map to obtain prediction positions of a plurality of hand key points; based on the predicted positions of the plurality of hand key points, carrying out feature point sampling on the to-be-sampled hand feature map to obtain a plurality of hand feature points; and performing feature processing on the plurality of hand feature points to obtain a gesture grid point prediction result. Through the gesture grid point prediction method provided by the invention, the problem that high precision and real-time performance of gesture grid point prediction cannot be considered in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of image processing technology, and in particular to a gesture grid point prediction method, electronic device, and storage medium. Background Art

[0002] In the gesture reconstruction task, the skin of the hand is composed of a series of triangular faces. The mesh points are the vertices of the triangular faces, totaling 778, which are used to indicate the shape of the hand. For the prediction of the gesture mesh points, the gesture prediction algorithm can be set as F, the hand image as X, and the predicted gesture mesh points mesh_prediction = F(X). Given the complexity of the gesture task, the related gesture mesh prediction algorithms are currently unable to meet the requirements of high precision and real-time performance at the same time. Summary of the invention

[0003] Embodiments of the present invention provide a gesture grid point prediction method, an electronic device, and a storage medium to improve the real-time performance and accuracy of gesture grid point prediction.

[0004] A first aspect of an embodiment of the present invention provides a gesture grid point prediction method, the method comprising:

[0005] Perform feature extraction on the original hand image to obtain a hand feature map;

[0006] Upsampling the hand feature map to obtain a hand feature map to be sampled;

[0007] Predicting hand key points on the hand feature map to obtain predicted positions of multiple hand key points;

[0008] Based on the predicted positions of the multiple hand key points, feature point sampling is performed on the hand feature map to be sampled to obtain multiple hand feature points;

[0009] Feature processing is performed on the multiple hand feature points to obtain gesture grid point prediction results.

[0010] Optionally, upsampling the hand feature map to obtain a hand feature map to be sampled includes:

[0011] The hand feature map is subjected to multi-layer deconvolution up-sampling processing to obtain a hand feature map to be sampled.

[0012] Optionally, the method is implemented by a pre-trained gesture grid point prediction model, the gesture grid point prediction model at least includes an encoder; the encoder at least includes: a first branch and a second branch; the upsampling of the hand feature map to obtain the hand feature map to be sampled includes:

[0013] The hand feature map is subjected to multi-layer deconvolution up-sampling processing by the first branch to obtain the hand feature map to be sampled;

[0014] The step of predicting the hand key points on the hand feature map to obtain predicted positions of a plurality of hand key points includes:

[0015] The hand key points are predicted on the hand feature map through the second branch to obtain predicted positions of multiple 2D hand key points.

[0016] Optionally, the method is implemented by a pre-trained gesture grid point prediction model, the gesture grid point prediction model at least comprising a decoder, the decoder comprising: a plurality of decoding units connected in sequence, each decoding unit comprising at least: a feature processing module and an upsampling module connected in sequence;

[0017] The performing feature processing on the plurality of hand feature points to obtain a gesture grid point prediction result includes:

[0018] The decoder performs multiple decoding processes on the multiple hand feature points to obtain multiple predicted gesture grid points output by the gesture grid point prediction model;

[0019] The step of performing a decoding process by a decoding unit at least includes:

[0020] Performing feature processing on the input of the current decoding unit through the feature processing module to obtain intermediate processed hand feature points;

[0021] The intermediate processed hand feature points are up-sampled by the up-sampling module to obtain the output of the current decoding unit;

[0022] In the case where the current decoding unit is the first decoding unit, the input of the current decoding unit includes: the plurality of hand feature points;

[0023] In the case that the current decoding unit is any decoding unit except the first decoding unit, the input of the current decoding unit includes: the output of the previous decoding unit.

[0024] Optionally, each decoding unit further includes: a position encoding module connected before the feature processing module, and the step of performing a decoding process by a decoding unit further includes:

[0025] Processing the input of the current decoding unit through the position encoding module to obtain a position encoding result;

[0026] The position encoding result is used as the encoded input of the current decoding unit, so that the encoded input of the current decoding unit is subjected to feature processing by the feature processing module.

[0027] Optionally, each decoding unit further includes: a compression module; before the feature processing module performs feature processing on the input of the current decoding unit to obtain the intermediate processed hand feature points, the step of performing a decoding process by a decoding unit further includes:

[0028] The compression module compresses the input of the compression module in terms of feature dimension to obtain compressed features, and uses the compressed features as updated inputs of the current decoding unit; the input of the compression module includes: the input of the current decoding unit, or the encoded input of the current decoding unit;

[0029] The feature processing module performs feature processing on the input of the current decoding unit to obtain intermediate processed hand feature points, including:

[0030] The updated input of the current decoding unit is subjected to feature processing by the feature processing module to obtain the intermediate processed hand feature points.

[0031] Optionally, the multiple hand feature points are 21 hand feature points, the multiple decoding units are 3 decoding units, the output of the first decoding unit is 84-dimensional features, the output of the second decoding unit is 336-dimensional features, the output of the last decoding unit is 778-dimensional features, and the multiple predicted gesture grid points are 778 predicted gesture grid points.

[0032] Optionally, the gesture grid point prediction model is obtained by training based on an initial gesture grid point prediction model, the initial gesture grid point prediction model at least includes: an initial encoder and an initial decoder, the initial encoder at least includes: an initial first branch and an initial second branch; the training steps of the initial gesture grid point prediction model at least include:

[0033] Performing feature extraction on a sample hand image to obtain a sample hand feature map; the sample hand image carries a plurality of 2D hand key point labels, a plurality of 3D hand key point labels, and a plurality of gesture grid point labels;

[0034] Performing multi-layer deconvolution up-sampling processing on the sample hand feature map based on the initial first branch to obtain a sample hand feature map to be sampled;

[0035] Predicting hand key points of the sample hand feature map based on the initial second branch to obtain predicted positions of multiple sample 2D hand key points;

[0036] Based on the predicted positions of the multiple sample 2D hand key points, feature point sampling is performed on the hand feature map of the sample to be sampled to obtain multiple sample hand feature points;

[0037] The initial decoder performs multiple decoding processes on the multiple sample hand feature points to obtain multiple sample predicted gesture grid points output by the initial gesture grid point prediction model;

[0038] Predicting gesture grid points and regression matrices based on the multiple samples, obtaining multiple sample 3D hand key points;

[0039] Based on the multiple 2D hand key point labels and the multiple sample 2D hand key points, the multiple 3D hand key point labels and the multiple sample 3D hand key points, and the multiple gesture grid point labels and the multiple sample predicted gesture grid points, the model parameters of the initial gesture grid point prediction model are updated to obtain the pre-trained gesture grid point prediction model.

[0040] A second aspect of an embodiment of the present invention provides a gesture grid point prediction device, the device comprising:

[0041] A feature extraction module is used to extract features from the original hand image to obtain a hand feature map;

[0042] An upsampling module, used for upsampling the hand feature map to obtain a hand feature map to be sampled;

[0043] A key point prediction module, used to predict the hand key points on the hand feature map to obtain predicted positions of multiple hand key points;

[0044] A feature point sampling module, used for sampling feature points on the hand feature map to be sampled based on the predicted positions of the multiple hand key points, to obtain multiple hand feature points;

[0045] The grid point prediction module is used to perform feature processing on the multiple hand feature points to obtain gesture grid point prediction results.

[0046] A third aspect of an embodiment of the present invention 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, the steps in the gesture grid point prediction method as described in the first aspect of the present invention are implemented.

[0047] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the gesture grid point prediction method described in the first aspect of the present invention are implemented.

[0048] In an embodiment of the present invention, for the hand feature map after feature extraction of the original hand image, not only is upsampling performed to obtain a hand feature map to be sampled, but hand key point prediction is also performed to obtain multiple hand key points. Then, based on the predicted positions of the multiple hand key points, feature point sampling is performed on the hand feature map to be sampled to obtain multiple hand feature points, thereby effectively selecting distinctive and representative hand feature points. Then, feature processing is performed on the selected multiple hand feature points to predict the gesture grid point prediction results, thereby not only improving the real-time performance of the gesture grid point prediction, but also improving the accuracy of the gesture grid point prediction, thereby solving the problem in the related art that it is impossible to take into account both the high precision and real-time performance of the gesture grid point prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0050] Figure 1 is a flow chart of a gesture grid point prediction method according to an embodiment of the present invention;

[0051] Figure 2 is a schematic diagram of a key point of a hand according to an embodiment of the present invention;

[0052] Figure 3 is a schematic diagram of a gesture grid point according to an embodiment of the present invention;

[0053] Figure 4 is a schematic diagram of performing feature point sampling on a hand feature map to be sampled according to an embodiment of the present invention;

[0054] Figure 5 is a schematic structural diagram of a decoding unit according to an embodiment of the present invention;

[0055] Figure 6 is a processing schematic diagram of a gesture grid point prediction method according to an embodiment of the present invention;

[0056] Figure 7 is a schematic diagram of a gesture grid point prediction device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0058] Currently, for the prediction of gesture mesh points, the underlying structure of related technologies generally adopts deep learning structures, including CNN and transformer. In terms of algorithm flow, the paradigm of first extracting features (feature encoder) and then reconstructing mesh (mesh decoder) is generally adopted.

[0059] For the feature encoding stage, there are many feature enhancement methods and sampling methods: feature enhancement methods include: global average pooling, feature gridding, deconvolution, deconvolution plus feature fusion, feature masking, etc. Sampling methods include global sampling, grid sampling, predicting key points and using key points to guide sampling, predicting coarse-grained mesh (which can be understood as a mesh that is downsampled multiple times, such as 778 points downsampled to 46) and guiding sampling, etc.

[0060] For the Mesh decoding stage, the relevant methods mainly include: parametric method and non-parametric method. The parametric method refers to prediction with the help of predefined hand model parameters, such as specifying a reference gesture and then using the reference gesture + variation coefficient to represent the actual gesture, or introducing the relationship between the local gesture grid point mesh, or the relationship between the gesture grid point mesh and the key points into the model for training. The parametric method tends to keep the gesture grid point mesh in the shape of the hand and is easier to converge, but the design is complex and the amount of calculation is large. In addition, there is a natural error between the predefined hand model and the real hand; on the contrary, the non-parametric method directly predicts the gesture grid point mesh, the design is simple, but the performance is poor, and other designs are often required to make up for the performance loss. Under the same performance, the amount of calculation is not significantly better than the parametric method.

[0061] In summary, although the relevant technologies have made a lot of designs for the feature encoder stage and the mesh decoder stage respectively, they still cannot simultaneously meet the requirements of high precision and real-time performance of gesture mesh point prediction.

[0062] Therefore, in order to at least partially solve one or more of the above-mentioned problems and other potential problems, an embodiment of the present invention proposes a gesture grid point prediction method, which not only performs upsampling on the hand feature map after feature extraction of the original hand image to obtain the hand feature map to be sampled, but also performs hand key point prediction to obtain multiple hand key points, and then performs feature point sampling on the hand feature map to be sampled based on the predicted positions of the multiple hand key points to obtain multiple hand feature points, so as to effectively select distinctive and representative hand feature points; then, feature processing is performed on the selected multiple hand feature points to predict the gesture grid point prediction results, thereby not only improving the real-time performance of the gesture grid point prediction, but also improving the accuracy of the gesture grid point prediction.

[0063] Hereinafter, specific examples of the present solution will be described in more detail with reference to the accompanying drawings.

[0064] Reference Figure 1 , shows a flow chart of a gesture grid point prediction method according to an embodiment of the present invention. The gesture grid point prediction method provided by the embodiment of the present invention can be used to process a single image or to process each frame of an image in a video. The gesture grid point prediction method provided by the embodiment of the present invention may include the following steps:

[0065] S101, extracting features from the original hand image to obtain a hand feature map.

[0066] In an embodiment of the present invention, the original hand image is an image containing a hand that needs to be predicted for gesture grid points, and the original hand image may also be an image captured in real time or non-real time. In an embodiment of the present invention, feature extraction may be performed on the original hand image to extract image features and obtain a hand feature map. In particular, the embodiment of the present invention does not impose any limitation on the feature extraction method, and any feature extraction method may be used.

[0067] S102, up-sampling the hand feature map to obtain a hand feature map to be sampled.

[0068] In the embodiment of the present invention, after the hand feature map is obtained, upsampling processing may be performed on the hand feature map to obtain a hand feature map to be sampled.

[0069] Specifically, in an optional implementation manner, the step S102 may include sub-step S1021:

[0070] S1021, subjecting the hand feature map to multi-layer deconvolution up-sampling processing to obtain a hand feature map to be sampled.

[0071] In an embodiment of the present invention, the hand feature map may be subjected to multi-layer deconvolution upsampling processing to obtain a hand feature map to be sampled. The multi-layer deconvolution of this embodiment may be any deconvolution of more than two layers, and there is no limitation on this. For example, after two layers of deconvolution processing, the hand feature map is upsampled 4 times to obtain a hand feature map to be sampled; after four layers of deconvolution processing, the hand feature map is upsampled 8 times to obtain a hand feature map to be sampled. Preferably, the hand feature map may be subjected to two layers of deconvolution upsampling processing to obtain a hand feature map to be sampled.

[0072] S103, predicting hand key points on the hand feature map to obtain predicted positions of multiple hand key points.

[0073] In the embodiment of the present invention, after obtaining the hand feature map, the hand key points can be predicted on the hand feature map, and multiple hand key points can be predicted, and the predicted positions of the multiple hand key points can be obtained. The hand key points in the embodiment of the present invention are the skeleton points or joint points of the hand, which are denoted as joints. The hand generally has 21 hand key points, including wrist, palm and finger joints. Figure 2 As shown, Figure 2 is a schematic diagram of a hand key point according to an embodiment of the present invention, Figure 2 It can be seen that the lines connecting the joint points are the bones of the hand.

[0074] The embodiment of the present invention does not limit the method for predicting hand key points. For example, a hand key point prediction model can be used to process the hand feature map to predict multiple hand key points and the predicted positions of the multiple hand key points.

[0075] It should be noted that the embodiment of the present invention does not limit the execution order of the above-mentioned step S102 and step S103. For example, S102 may be executed first and then S103, or S103 may be executed first and then S102, or S102 and S103 may be executed simultaneously.

[0076] In combination with the above embodiments, in an optional implementation manner, the gesture grid point prediction method is implemented by a pre-trained gesture grid point prediction model, and the gesture grid point prediction model at least includes an encoder; the encoder at least includes: a first branch and a second branch; S102 may include sub-step S102-1, and S103 may include sub-step S103-1:

[0077] S102-1, performing multi-layer deconvolution up-sampling processing on the hand feature map through the first branch to obtain the hand feature map to be sampled.

[0078] In the embodiment of the present invention, a gesture grid point prediction model is pre-trained, the input of the gesture grid point prediction model is the original hand image, and the output is the gesture grid point prediction result, which at least includes: multiple predicted gesture grid points, that is, multiple predicted gesture meshes, wherein the predicted gesture grid points are the predicted gesture grid points. Figure 3 As shown, Figure 3 is a schematic diagram of a gesture grid point in an embodiment of the present invention, from Figure 3 It can be seen that the skin on the hand is composed of multiple triangular faces. Figure 3 The arrow in the figure points to a gesture mesh point, that is, a gesture mesh.

[0079] In an embodiment of the present invention, the original hand image is input into a pre-trained gesture grid point prediction model, and after obtaining a hand feature map, the hand feature map can be input into an encoder. The first branch and the second branch are two parallel processing branches in the encoder, both of which directly process the hand feature map. Among them, the hand feature map to be sampled can be obtained by performing multi-layer deconvolution upsampling processing on the hand feature map through the first branch in the encoder. Similarly, the multi-layer deconvolution of this embodiment can be any deconvolution of more than two layers, and there is no limitation to this. Preferably, the hand feature map to be sampled can be obtained by performing two layers of deconvolution processing on the hand feature map through the first branch, and the hand feature map can be upsampled four times.

[0080] S103-1, predicting hand key points on the hand feature map through the second branch to obtain predicted positions of multiple 2D hand key points.

[0081] In an embodiment of the present invention, the hand key point prediction can be performed on the hand feature map through the second branch in the encoder to predict multiple 2D hand key points and obtain the predicted positions of multiple 2D hand key points. Similarly, the embodiment of the present invention does not limit the method for predicting hand key points. For example, a hand key point prediction model can be used to process the hand feature map to predict multiple 2D hand key points and the predicted positions of multiple 2D hand key points.

[0082] S104, based on the predicted positions of the multiple hand key points, feature point sampling is performed on the hand feature map to be sampled to obtain multiple hand feature points.

[0083] In the embodiment of the present invention, after obtaining the hand feature map to be sampled and the predicted positions of multiple hand key points, feature point sampling can be performed on the hand feature map to be sampled based on the predicted positions of the multiple hand key points to obtain multiple hand feature points. In the embodiment of the present invention, by performing point sampling of multiple hand key points on the upsampled hand feature map to be sampled, sampling of distinctive and representative hand feature points is achieved.

[0084] In one embodiment, if Figure 4 As shown, Figure 4 is a schematic diagram of sampling feature points on a hand feature map to be sampled according to an embodiment of the present invention. Figure 4 In the figure, the square on the left is the hand feature map, the square on the right is the feature map to be sampled after 4 times upsampling (i.e. two layers of deconvolution), and the rectangle in the middle is the multiple 2D hand key points obtained by predicting the hand key points of the hand feature map. Figure 4 It can be seen that the solid grid points on the right are the multiple hand feature points obtained after sampling. Experiments have shown that key point guided sampling with 4 times upsampling can produce enhanced features.

[0085] S105, performing feature processing on the plurality of hand feature points to obtain gesture grid point prediction results.

[0086] In the embodiment of the present invention, after sampling to obtain a plurality of hand feature points, feature processing may be performed on the plurality of hand feature points to obtain gesture grid point prediction results, thereby achieving prediction of gesture grid points in the original hand image.

[0087] In an embodiment of the present invention, for the hand feature map after feature extraction of the original hand image, not only is upsampling performed to obtain a hand feature map to be sampled, but hand key point prediction is also performed to obtain a plurality of hand key points. Then, based on the predicted positions of the plurality of hand key points, feature point sampling is performed on the hand feature map to be sampled to obtain a plurality of hand feature points, thereby effectively selecting distinctive and representative hand feature points. Then, feature processing is performed on the selected plurality of hand feature points to predict the gesture grid point prediction results, thereby not only improving the real-time performance of the gesture grid point prediction, but also improving the accuracy of the gesture grid point prediction, thereby solving the problem in the related art that both high precision and real-time performance of the gesture grid point prediction cannot be taken into account.

[0088] In combination with the above embodiments, in an optional implementation manner, the gesture grid point prediction method is implemented by a pre-trained gesture grid point prediction model, and the gesture grid point prediction model at least includes a decoder; the decoder includes: a plurality of decoding units connected in sequence; S105 may include sub-step S1051:

[0089] S1051, performing multiple decoding processes on the multiple hand feature points through the decoder to obtain multiple predicted gesture grid points output by the gesture grid point prediction model.

[0090] In an embodiment of the present invention, a gesture grid point prediction model is pre-trained, the input of the gesture grid point prediction model is the original hand image, and the output is the gesture grid point prediction result, which at least includes: multiple predicted gesture grid points, that is, multiple predicted gesture meshes, wherein the predicted gesture grid point is the predicted gesture grid point.

[0091] By inputting the original hand image into the pre-trained gesture grid point prediction model, multiple hand feature points can be obtained. For example, the hand feature map to be sampled and the predicted positions of multiple hand key points can be obtained through the first branch and the second branch of the encoder in the aforementioned embodiment, and then the encoder samples feature points on the hand feature map to be sampled based on the predicted positions of multiple hand key points to obtain multiple hand feature points.

[0092] After obtaining multiple hand feature points, the multiple hand feature points can be input into the decoder, and the multiple hand feature points can be decoded multiple times by multiple decoding units in the decoder to obtain multiple predicted gesture grid points output by the decoder, that is, multiple predicted gesture grid points output by the gesture grid point prediction model.

[0093] The steps of performing a decoding process by a decoding unit at least include S201 and S202:

[0094] S201, performing feature processing on the input of the current decoding unit through the feature processing module to obtain intermediate processed hand feature points.

[0095] In an embodiment of the present invention, each decoding unit at least includes: a feature processing module and an upsampling module connected in sequence. For the input of each decoding unit, that is, for the input of the current decoding unit, the feature processing module in the current decoding unit can perform feature processing on the input of the current decoding unit to obtain intermediate processed hand feature points. Among them, the feature processing module of the embodiment of the present invention can be a transformer module for feature processing. The intermediate processed hand feature points of the embodiment of the present invention are hand feature points processed by the feature processing module.

[0096] S202, performing up-sampling processing on the intermediate processed hand feature points through the up-sampling module to obtain the output of the current decoding unit.

[0097] In an embodiment of the present invention, after obtaining the intermediate processed hand feature points output by the feature processing module, the intermediate processed hand feature points can be input into the upsampling module of the current decoding unit to perform upsampling processing on the intermediate processed hand feature points to obtain the output of the current decoding unit.

[0098] Among them, when the current decoding unit is the first decoding unit, the input of the current decoding unit includes: multiple hand feature points; when the current decoding unit is any decoding unit except the first decoding unit, the input of the current decoding unit includes: the output of the previous decoding unit; the output of the last decoding unit is the output of the decoder, and also the output of the gesture grid point prediction model: multiple predicted gesture grid points.

[0099] In an embodiment of the present invention, feature processing and upsampling processing are performed in sequence by multiple decoding units, so that multiple sparse hand feature points can be gradually upsampled into a dense network, thereby realizing the prediction of multiple gesture grid points. In this way, not only the accurate prediction of gesture grid points is achieved, but also the simple structure in the decoder realizes the lightweight of the gesture grid point prediction model, thereby achieving both high precision and real-time performance of gesture grid point prediction.

[0100] In combination with the above embodiments, in an embodiment of the present invention, each decoding unit further includes: a position encoding module connected before the feature processing module; the steps of performing a decoding process by one decoding unit include S200-1 and S200-2 in addition to the above S201 and S202:

[0101] S200-1, processing the input of the current decoding unit through the position encoding module to obtain a position encoding result.

[0102] In an embodiment of the present invention, the position encoding module may first perform position encoding processing on the input of the current decoding unit to obtain a position encoding result. Specifically, the position encoding (position embedding) may be performed based on the position information of the input of the current decoding unit by the posture encoding module to obtain the position encoding result of the input of the current decoding unit.

[0103] S200-2, using the position encoding result as the encoded input of the current decoding unit, so as to perform feature processing on the encoded input of the current decoding unit through the feature processing module

[0104] In the embodiment of the present invention, the position coding result can be used as the encoded input of the current decoding unit, so as to perform feature processing on the encoded input of the current decoding unit through the feature processing module; it can be understood that after obtaining the position coding result, this embodiment inputs the position coding result into the feature processing module for feature processing. That is to say, after executing S200-2, the embodiment of the present invention executes S201 and S202: after obtaining the encoded input of the current decoding unit, the encoded input of the current decoding unit can be feature processed by the feature processing module to obtain intermediate processed hand feature points, and then the intermediate processed hand feature points are upsampled by the upsampling module to obtain the output of the current decoding unit.

[0105] In response to the problem that the current gesture grid point prediction model has good performance but a complex model structure, an embodiment of the present invention proposes to add a position encoding module at the front of each decoding unit to adjust the spatial relationship without the need for manual design or introduction of additional computing resources, thereby further achieving model lightweight and prediction accuracy.

[0106] In combination with the above embodiments, in the embodiments of the present invention, each decoding unit further includes: a compression module; before S201, the step of performing a decoding process by a decoding unit further includes S200, and S201 may specifically include S2011:

[0107] S200: compressing the input of the compression module in terms of feature dimension through the compression module to obtain compressed features, and using the compressed features as updated input of the current decoding unit; the compression module of this embodiment functions to speed up processing.

[0108] In the embodiment of the present invention, the input of the determined compression module can be compressed by the compression module in terms of feature dimension to obtain compressed features, and the compressed features are used as updated inputs of the current decoding unit. The input of the compression module in the embodiment of the present invention includes: the input of the current decoding unit, or the encoded input of the current decoding unit.

[0109] S2011: Performing feature processing on the updated input of the current decoding unit through the feature processing module to obtain the intermediate processed hand feature points.

[0110] In an embodiment of the present invention, after obtaining the updated input of the current decoding unit, the updated input of the current decoding unit is input into a feature processing module, and the feature processing module performs feature processing on the updated input of the current decoding unit to obtain intermediate processed hand feature points.

[0111] That is to say, in an embodiment of the present invention, each decoding unit may include at least: a compression module, a feature processing module and an upsampling module; the steps of performing a decoding process by a decoding unit may include in sequence: S200, S2011 and S202, that is, for the input of the current decoding unit or the encoded input of the current decoding unit, feature compression is performed first, then feature processing is performed, and finally upsampling processing is performed.

[0112] Or, in an embodiment of the present invention, each decoding unit may include at least: a position encoding module, a compression module, a feature processing module and an upsampling module; the steps of performing a decoding process by a decoding unit may include in sequence: S200-1, S200-2, S200, S2011 and S202, that is, for the input of the current decoding unit, position encoding is performed first, then feature compression is performed, then feature processing is performed, and finally upsampling processing is performed.

[0113] In an optional embodiment, the multiple hand feature points in the embodiment of the present invention are 21 hand feature points, and the multiple decoding units are 3 decoding units, wherein the output of the first decoding unit is 84-dimensional features, the output of the second decoding unit is 336-dimensional features, and the output of the last decoding unit is 778-dimensional features, and the core function of each decoding unit is to gradually increase the number of features from the initial 21 to 778, and the predicted multiple predicted gesture grid points are 778 predicted gesture grid points.

[0114] In one embodiment, if Figure 5 As shown, Figure 5 Schematic diagram of a decoding unit according to an embodiment of the present invention. Figure 5 In the figure, the decoder includes three decoding units. The decoding unit is mesh decoder. In the first column from left to right, the dark shaded part is the positional encoding result of the input of the current decoding unit after positional encoding (Positional Embeddings), and the light shaded part is the original input (Input Tokens) of the current decoding unit. The two are used together as the input of the current decoding unit (the feature dimension is (N, C, D), where N is the batch size, C is the number of features, and D is the feature dimension) for subsequent processing; the second column is the compression module (Dimension Reducer), which can compress the input of the current decoding unit, compress the dimension of D to d, and obtain the compressed feature ((N, C, d)-dimensional feature); the third column is the Metaformer Block module, the Metaformer The Block module is an example of a transformer module, which is used to perform feature processing on the compressed features to obtain the intermediate processed hand feature points. The feature dimension of the output of the intermediate processed hand feature points is still (N, C, d); the fourth column is an upsampling module (Upsampler), which is used to upsample the intermediate processed hand feature points, upsample C to c, and obtain the output of the current decoding unit: (N, c, d)-dimensional features. The output of the current decoding unit is the fifth column (Output Tokens). After three decoding processes by three decoding units, the feature dimension of the final output is (N, 778, 1).

[0115] In one embodiment, if Figure 6 As shown, Figure 6 FIG. 1 is a processing diagram of a gesture grid point prediction method according to an embodiment of the present invention. Figure 6 In the , the gesture grid point prediction model includes: a backbone network (Backbone), an encoder (TokenGenerator, token generator) and a decoder (Mesh Regressor, grid point regressor), the encoder includes at least a first branch and a second branch, and the decoder includes three decoding units (Decoder Layer), each decoding unit is equivalent to Figure 5 The mesh decoder in .

[0116] First, the original hand image can be input into the gesture grid point prediction model, and the feature is first extracted through the backbone network to obtain a hand feature map (Feature). The backbone network can be any backbone network, such as HRNet network, etc., and there is no restriction on this.

[0117] Then, the hand feature map is input into the encoder, and the hand feature map can be subjected to multi-layer deconvolution upsampling processing through the first branch, such as 2-layer deconvolution upsampling (Upsample) processing, to obtain the hand feature map to be sampled (UpsampledFeature); and the hand key points are predicted on the hand feature map through the second branch, for example, a global feature map is obtained through pooling (Pooling), and then after Project processing, multiple 2D hand key points (2D Keypoints) are predicted. Finally, based on the positions of multiple hand key points, feature point sampling is performed on the hand feature map to be sampled to obtain multiple hand feature points (Point Sample).

[0118] Finally, multiple hand feature points are input into the decoder and decoded three times by three decoding units in sequence to obtain multiple predicted gesture grid points mesh (Mesh Coordinates), so as to reconstruct the gesture based on the multiple predicted gesture grid points.

[0119] In combination with the above embodiments, in an embodiment of the present invention, the gesture grid point prediction model is obtained by training based on the initial gesture grid point prediction model, and the initial gesture grid point prediction model at least includes: an initial encoder and an initial decoder, and the initial encoder at least includes: an initial first branch and an initial second branch; the training steps of the initial gesture grid point prediction model at least include:

[0120] S301, extract features from a sample hand image to obtain a sample hand feature map; the sample hand image carries a plurality of 2D hand key point labels, a plurality of 3D hand key point labels, and a plurality of gesture grid point labels.

[0121] In an embodiment of the present invention, a plurality of sample hand images may be obtained, and feature extraction may be performed on the sample hand images to extract image features and obtain a sample hand feature map. The sample hand image is an image including a hand, and the sample hand image carries a plurality of 2D hand key point labels, a plurality of 3D hand key point labels, and a plurality of gesture grid point labels, that is, the sample hand image is annotated with a plurality of 2D hand key point labels, a plurality of 3D hand key point labels, and a plurality of gesture grid point labels. Among them, the 2D hand key point labels are the actual 2D hand key points in the sample hand image, the 3D hand key point labels are the actual 3D hand key points in the sample hand image, and the gesture grid point labels are the actual hand grid point mesh in the sample hand image.

[0122] S302: Perform multi-layer deconvolution upsampling processing on the sample hand feature map based on the initial first branch to obtain a sample hand feature map to be sampled.

[0123] In an embodiment of the present invention, the initial first branch and the initial second branch are two parallel processing branches in the initial encoder, both of which directly process the sample hand feature map. Among them, the sample hand feature map can be subjected to multi-layer deconvolution upsampling processing by the initial first branch in the initial encoder to obtain the sample hand feature map to be sampled. Similarly, the multi-layer deconvolution of this embodiment can be any deconvolution of more than two layers, and there is no limitation to this. Preferably, the sample hand feature map can be subjected to two-layer deconvolution processing by the initial first branch, and the sample hand feature map can be upsampled four times to obtain the sample hand feature map to be sampled.

[0124] S303: Predict hand key points on the sample hand feature map based on the initial second branch to obtain predicted positions of multiple sample 2D hand key points.

[0125] In an embodiment of the present invention, the sample hand feature map can be predicted for hand key points through the initial second branch in the initial encoder, and multiple sample 2D hand key points can be predicted, as well as the predicted positions of multiple sample 2D hand key points. Similarly, the embodiment of the present invention does not limit the method for predicting hand key points. For example, a trained hand key point prediction network can be used to process the sample hand feature map, and multiple sample 2D hand key points and the predicted positions of multiple sample 2D hand key points can be predicted.

[0126] S304: Based on the predicted positions of the multiple sample 2D hand key points, feature point sampling is performed on the hand feature map of the sample to be sampled to obtain multiple sample hand feature points.

[0127] In an embodiment of the present invention, after obtaining the hand feature map of the sample to be sampled and the predicted positions of the multiple sample 2D hand key points, feature point sampling can be performed on the hand feature map of the sample to be sampled based on the predicted positions of the multiple sample 2D hand key points to obtain multiple sample hand feature points. For example, feature point sampling can be performed on the hand feature map of the sample to be sampled based on the predicted positions of 21 sample 2D hand key points to obtain 21 sample hand feature points.

[0128] S305, performing multiple decoding processes on the multiple sample hand feature points through the initial decoder to obtain multiple sample predicted gesture grid points output by the initial gesture grid point prediction model.

[0129] In this embodiment, multiple sample hand feature points can be input into the initial decoder, and the multiple sample hand feature points can be decoded multiple times by the initial decoder to obtain multiple predicted gesture grid points of the samples output by the initial decoder, that is, multiple predicted gesture grid points output by the initial gesture grid point prediction model.

[0130] Furthermore, the initial decoder may include multiple initial decoding units, which may be the same as or similar to the aforementioned decoder. Specifically, multiple sample hand feature points may be decoded multiple times by multiple initial decoding units to obtain multiple predicted gesture grid points output by the initial gesture grid point prediction model.

[0131] S306, obtaining a plurality of sample 3D hand key points based on the plurality of sample predicted gesture grid points and the regression matrix.

[0132] In an embodiment of the present invention, multiple sample 3D hand key points can be obtained based on multiple sample prediction gesture grid points and regression matrices output by the initial gesture grid point prediction model. 3d =J×V 3d Determine the sample 3D hand key points, where J 3d represents the sample 3D hand key points, J 3d ∈R M×3 , J represents the regression matrix, V 3d Sample predicted gesture grid points representing the output of the initial gesture grid point prediction model.

[0133] S307, based on the multiple 2D hand key point labels and the multiple sample 2D hand key points, the multiple 3D hand key point labels and the multiple sample 3D hand key points, and the multiple gesture grid point labels and the multiple sample predicted gesture grid points, update the model parameters of the initial gesture grid point prediction model to obtain the pre-trained gesture grid point prediction model.

[0134] In an embodiment of the present invention, after obtaining multiple sample 2D hand key points, multiple sample 3D hand key points, and multiple sample 3D hand key points output by the initial gesture grid point prediction model, the loss value of the initial gesture grid point prediction model can be calculated through a loss function based on multiple 2D hand key point labels and multiple sample 2D hand key points, multiple 3D hand key point labels and multiple sample 3D hand key points, and multiple gesture grid point labels and sample predicted gesture grid points, and the model parameters of the initial gesture grid point prediction model are updated based on the loss value until the loss function converges to obtain a pre-trained gesture grid point prediction model.

[0135] In an optional example, based on multiple 2D hand key point labels and multiple sample 2D hand key points, a 2D hand key point loss value L is obtained. J2d ; Based on multiple 3D hand key point labels and multiple sample 3D hand key points, the 3D hand key point loss value L is obtained J3d ; and, based on multiple gesture grid point labels and samples, predict the gesture grid points to obtain the gesture grid point loss value Lvert ; Based on the 2D hand key point loss value L J2d , 3D hand key point loss value L J3d and gesture grid point loss value L vert , and obtain the loss value L of the initial gesture grid point prediction model.

[0136] For example, the loss function may be an L1 Loss function, and the loss value L of the initial gesture grid point prediction model may be obtained by the following formula:

[0137]

[0138]

[0139]

[0140]

[0141] Among them, J′ 3d is the sample 3D hand key point, J 3d is the 3D hand key point label, J′ 2d is the sample 2D hand key point, J 2d is the 2D hand key point label, V 3d Predict gesture grid points for samples, V 3d w is the gesture grid point label; 3d 、w 2d and w vert are the weight values ​​corresponding to the 3D hand key points, 3D hand key points, and gesture grid points, respectively. In an optional example, since the embodiment of the present invention is mainly for gesture grid point prediction, the 2D hand key points only affect the point sampling and do not need to be highly accurate, so w 3d 、w 2d and w vert Set them to: 10, 1, 10 respectively.

[0142] In one embodiment, the gesture grid point prediction method proposed in the embodiment of the present invention is compared with the related gesture grid point prediction method, as shown in Table 1 below. The last two rows (Ours) are the gesture grid point prediction methods proposed in the embodiment of the present invention, and the other rows are the current mainstream gesture grid point prediction methods. In the selection of the backbone network, the gesture grid point prediction method proposed in the embodiment of the present invention selects HRNet and FastViT-MA36 respectively. It can be seen that the gesture grid point prediction method proposed in this embodiment has improved accuracy and frame rate (real-time performance, speed) compared with all the above methods. Among them, PA-MPJPE and PA-MPVPE represent accuracy, and the smaller the accuracy, the better. PA-MPJPE represents 21 hand key points, and PA-MPVPE represents 778 gesture grid points mesh; FPS is the number of frames that can be processed per second, representing speed, and the larger the FPS, the faster the speed.

[0143] Table 1

[0144]

[0145] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0146] Based on the same inventive concept, the embodiment of the present invention provides a gesture grid point prediction device 700, referring to Figure 7 , Figure 7 is a schematic diagram of a gesture grid point prediction device provided by an embodiment of the present invention, wherein the device 700 includes:

[0147] The feature extraction module 701 is used to extract features from the original hand image to obtain a hand feature map;

[0148] An up-sampling module 702 is used to up-sample the hand feature map to obtain a hand feature map to be sampled;

[0149] A key point prediction module 703 is used to predict the hand key points on the hand feature map to obtain predicted positions of multiple hand key points;

[0150] A feature point sampling module 704 is used to perform feature point sampling on the hand feature map to be sampled based on the predicted positions of the multiple hand key points to obtain multiple hand feature points;

[0151] The grid point prediction module 705 is used to perform feature processing on the multiple hand feature points to obtain gesture grid point prediction results.

[0152] Optionally, the up-sampling module 702 includes:

[0153] The first upsampling submodule is used to perform multi-layer deconvolution upsampling processing on the hand feature map to obtain a hand feature map to be sampled.

[0154] Optionally, the device 700 is implemented by a pre-trained gesture grid point prediction model, the gesture grid point prediction model at least includes an encoder; the encoder at least includes: a first branch and a second branch; the upsampling module 702 includes:

[0155] A second upsampling submodule, configured to perform multi-layer deconvolution upsampling processing on the hand feature map through the first branch to obtain the hand feature map to be sampled;

[0156] The key point prediction module 703 includes:

[0157] The key point prediction submodule is used to predict the hand key points of the hand feature map through the second branch to obtain the predicted positions of multiple 2D hand key points.

[0158] Optionally, the device 700 is implemented by a pre-trained gesture grid point prediction model, the gesture grid point prediction model at least includes a decoder, the decoder includes: a plurality of decoding units connected in sequence, each decoding unit at least includes: a feature processing module and an upsampling module connected in sequence;

[0159] The grid point prediction module 705 includes:

[0160] A grid point prediction submodule, configured to perform multiple decoding processes on the multiple hand feature points through the decoder to obtain multiple predicted gesture grid points output by the gesture grid point prediction model;

[0161] The device 700 further includes a decoding processing module, which is used to perform a decoding process step by a decoding unit, and the decoding processing module at least includes:

[0162] A feature processing submodule, used to perform feature processing on the input of the current decoding unit through the feature processing module to obtain intermediate processed hand feature points;

[0163] A third upsampling submodule, configured to perform upsampling processing on the intermediate processed hand feature points through the upsampling module to obtain an output of the current decoding unit;

[0164] In the case where the current decoding unit is the first decoding unit, the input of the current decoding unit includes: the plurality of hand feature points;

[0165] In the case that the current decoding unit is any decoding unit except the first decoding unit, the input of the current decoding unit includes: the output of the previous decoding unit.

[0166] Optionally, each decoding unit further includes: a position encoding module connected before the feature processing module, and the decoding processing module further includes:

[0167] A position coding submodule, used for processing the input of the current decoding unit through the position coding module to obtain a position coding result;

[0168] The position encoding result is used as the encoded input of the current decoding unit, so that the encoded input of the current decoding unit is subjected to feature processing by the feature processing module.

[0169] Optionally, each decoding unit further includes: a compression module; and the decoding processing module further includes:

[0170] A compression submodule, used for compressing the input of the compression module in terms of feature dimension before the feature processing module performs feature processing on the input of the current decoding unit to obtain the intermediate processed hand feature points, and using the compressed feature as the updated input of the current decoding unit; the input of the compression module includes: the input of the current decoding unit, or the encoded input of the current decoding unit;

[0171] The feature processing submodule includes:

[0172] The compressed feature processing submodule is used to perform feature processing on the updated input of the current decoding unit through the feature processing module to obtain the intermediate processed hand feature points.

[0173] Optionally, the multiple hand feature points are 21 hand feature points, the multiple decoding units are 3 decoding units, the output of the first decoding unit is 84-dimensional features, the output of the second decoding unit is 336-dimensional features, the output of the last decoding unit is 778-dimensional features, and the multiple predicted gesture grid points are 778 predicted gesture grid points.

[0174] Optionally, the gesture grid point prediction model is obtained by training based on an initial gesture grid point prediction model, the initial gesture grid point prediction model at least includes: an initial encoder and an initial decoder, the initial encoder at least includes: an initial first branch and an initial second branch; the device 700 also includes: a model training module, used to train the initial gesture grid point prediction model; the model training module at least includes:

[0175] A sample hand feature map determination module is used to extract features from a sample hand image to obtain a sample hand feature map; the sample hand image carries a plurality of 2D hand key point labels, a plurality of 3D hand key point labels, and a plurality of gesture grid point labels;

[0176] Sample upsampling processing, used to perform multi-layer deconvolution upsampling processing on the sample hand feature map based on the initial first branch to obtain a sample hand feature map to be sampled;

[0177] A sample key point prediction module, used to predict the hand key points of the sample hand feature map based on the initial second branch to obtain predicted positions of multiple sample 2D hand key points;

[0178] A sample feature point sampling module, used to perform feature point sampling on the hand feature map of the sample to be sampled based on the predicted positions of the multiple sample 2D hand key points, to obtain multiple sample hand feature points;

[0179] A sample grid point prediction module, configured to perform multiple decoding processes on the multiple sample hand feature points through the initial decoder to obtain multiple sample predicted gesture grid points output by the initial gesture grid point prediction model;

[0180] A sample 3D key point determination module, used to predict gesture grid points and regression matrices based on the multiple samples to obtain multiple sample 3D hand key points;

[0181] A model parameter updating module is used to update the model parameters of the initial gesture grid point prediction model based on the multiple 2D hand key point labels and the multiple sample 2D hand key points, the multiple 3D hand key point labels and the multiple sample 3D hand key points, and the multiple gesture grid point labels and the multiple sample predicted gesture grid points to obtain the pre-trained gesture grid point prediction model.

[0182] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0183] Based on the same inventive concept, an embodiment of the present invention provides an electronic device, including 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, the steps in the gesture grid point prediction method described in any of the above embodiments are implemented.

[0184] Based on the same inventive concept, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the gesture grid point prediction method described in any of the above embodiments are implemented.

[0185] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0186] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0187] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable image processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable image processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0188] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable image processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0189] These computer program instructions can also be loaded onto a computer or other programmable image processing terminal device, so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0190] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0191] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0192] The above is a detailed introduction to a gesture grid point prediction method, electronic device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A gesture grid point prediction method, characterized in that: The method comprises: Perform feature extraction on the original hand image to obtain a hand feature map; Upsampling the hand feature map to obtain a hand feature map to be sampled; Predicting hand key points on the hand feature map to obtain predicted positions of multiple hand key points; Based on the predicted positions of the multiple hand key points, feature point sampling is performed on the hand feature map to be sampled to obtain multiple hand feature points; Feature processing is performed on the multiple hand feature points to obtain gesture grid point prediction results.

2. The method according to claim 1, characterized in that The upsampling of the hand feature map to obtain the hand feature map to be sampled includes: The hand feature map is subjected to multi-layer deconvolution up-sampling processing to obtain a hand feature map to be sampled.

3. The method according to claim 1, characterized in that The method is implemented by a pre-trained gesture grid point prediction model, the gesture grid point prediction model at least comprising an encoder; The encoder at least includes: a first branch and a second branch; the upsampling of the hand feature map to obtain the hand feature map to be sampled includes: The hand feature map is subjected to multi-layer deconvolution up-sampling processing by the first branch to obtain the hand feature map to be sampled; The step of predicting the hand key points on the hand feature map to obtain predicted positions of a plurality of hand key points includes: The hand key points are predicted on the hand feature map through the second branch to obtain predicted positions of multiple 2D hand key points.

4. The method according to claim 1, characterized in that The method is implemented by a pre-trained gesture grid point prediction model, the gesture grid point prediction model at least comprising a decoder, the decoder comprising: a plurality of decoding units connected in sequence, each decoding unit at least comprising: a feature processing module and an upsampling module connected in sequence; The performing feature processing on the plurality of hand feature points to obtain a gesture grid point prediction result includes: The decoder performs multiple decoding processes on the multiple hand feature points to obtain multiple predicted gesture grid points output by the gesture grid point prediction model; The step of performing a decoding process by a decoding unit at least includes: Performing feature processing on the input of the current decoding unit through the feature processing module to obtain intermediate processed hand feature points; The intermediate processed hand feature points are up-sampled by the up-sampling module to obtain the output of the current decoding unit; In the case where the current decoding unit is the first decoding unit, the input of the current decoding unit includes: the plurality of hand feature points; In the case that the current decoding unit is any decoding unit except the first decoding unit, the input of the current decoding unit includes: the output of the previous decoding unit.

5. The method according to claim 4, characterized in that Each decoding unit further includes: a position encoding module connected before the feature processing module, and the step of performing a decoding process by a decoding unit further includes: Processing the input of the current decoding unit through the position encoding module to obtain a position encoding result; The position encoding result is used as the encoded input of the current decoding unit, so that the encoded input of the current decoding unit is subjected to feature processing by the feature processing module.

6. The method according to claim 4 or 5, characterized in that: Each decoding unit further includes: a compression module; before the feature processing module performs feature processing on the input of the current decoding unit to obtain the intermediate processed hand feature points, the step of performing a decoding process by a decoding unit further includes: The compression module compresses the input of the compression module in terms of feature dimension to obtain compressed features, and uses the compressed features as updated inputs of the current decoding unit; the input of the compression module includes: the input of the current decoding unit, or the encoded input of the current decoding unit; The feature processing module performs feature processing on the input of the current decoding unit to obtain intermediate processed hand feature points, including: The updated input of the current decoding unit is subjected to feature processing by the feature processing module to obtain the intermediate processed hand feature points.

7. The method according to claim 4, characterized in that The multiple hand feature points are 21 hand feature points, the multiple decoding units are 3 decoding units, the output of the first decoding unit is 84-dimensional features, the output of the second decoding unit is 336-dimensional features, the output of the last decoding unit is 778-dimensional features, and the multiple predicted gesture grid points are 778 predicted gesture grid points.

8. The method according to any one of claims 3 to 7, characterized in that: The gesture grid point prediction model is obtained by training based on the initial gesture grid point prediction model, the initial gesture grid point prediction model at least includes: an initial encoder and an initial decoder, the initial encoder at least includes: an initial first branch and an initial second branch; the training steps of the initial gesture grid point prediction model at least include: Performing feature extraction on a sample hand image to obtain a sample hand feature map; the sample hand image carries a plurality of 2D hand key point labels, a plurality of 3D hand key point labels, and a plurality of gesture grid point labels; Performing multi-layer deconvolution up-sampling processing on the sample hand feature map based on the initial first branch to obtain a sample hand feature map to be sampled; Predicting hand key points of the sample hand feature map based on the initial second branch to obtain predicted positions of multiple sample 2D hand key points; Based on the predicted positions of the multiple sample 2D hand key points, feature point sampling is performed on the hand feature map of the sample to be sampled to obtain multiple sample hand feature points; The initial decoder performs multiple decoding processes on the multiple sample hand feature points to obtain multiple sample predicted gesture grid points output by the initial gesture grid point prediction model; Predicting gesture grid points and regression matrices based on the multiple samples, obtaining multiple sample 3D hand key points; Based on the multiple 2D hand key point labels and the multiple sample 2D hand key points, the multiple 3D hand key point labels and the multiple sample 3D hand key points, and the multiple gesture grid point labels and the multiple sample predicted gesture grid points, the model parameters of the initial gesture grid point prediction model are updated to obtain the pre-trained gesture grid point prediction model.

9. 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 step of gesture grid point prediction according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the gesture grid point prediction method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Hand key point recognition model training method and device, recognition method and device

    CN110163048A

  • Non-contact intelligent control medical system, method, equipment and medium

    CN116631601A

  • 3D hand shape and pose estimation

    US20200184721A1