Human body posture estimation method and device, equipment and storage medium

By using the bounding box feature extraction and feature alignment fusion technology of multi-frame sports pictures in badminton, the problem of insufficient accuracy of human posture estimation in highly dynamic environments is solved, and more accurate human posture recognition is achieved.

CN118658107AActive Publication Date: 2024-09-17JIHUA LAB
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411154173.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-09-17
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

Existing human pose estimation methods are difficult to effectively capture and utilize the complementary information between adjacent frames in highly dynamic environments such as badminton, resulting in insufficient accuracy and robustness of the estimation results.

Method used

Multi-frame motion pictures are used for bounding box feature extraction, HRNet backbone network and dense feature alignment module are used for feature extraction and alignment processing, and a progressive fusion module is used for feature fusion to generate a more accurate feature heat map.

Benefits of technology

Through in-depth analysis across stages and scales, it can effectively capture large motion amplitudes and changes in human body shape, improve feature extraction and recognition capabilities, and improve the accuracy and robustness of human posture estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658107A
    Figure CN118658107A
Patent Text Reader

Abstract

The invention relates to the technical field of image recognition, in particular to a human body posture estimation method and device, equipment and a storage medium, and the method comprises the steps: extracting a bounding box feature map from a plurality of frames of obtained motion pictures; performing feature extraction on the extracted bounding box feature map, and inputting the extracted current feature vectors of the multiple stages and the adjacent feature vectors of the multiple stages into a dense feature alignment module to perform alignment processing to obtain adjacent alignment feature vectors of the multiple stages; performing fusion processing on the current feature vectors of the multiple stages and the adjacent alignment feature vectors of the multiple stages based on a progressive fusion module to obtain fusion features; processing the fused features by using a detector to obtain a feature heat map corresponding to the current frame of motion picture; according to the method disclosed by the invention, the problem of human body feature change caused by large motion amplitude or lens shaking and the like can be solved, so that a more accurate human body posture in a motion scene can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image recognition technology, and in particular to a method, device, equipment and storage medium for estimating human body posture. Background Art

[0002] Human posture estimation is a crucial research task in the field of computer vision. Its goal is to accurately identify and predict the joint positions of all human individuals from images or video data from various sources. It has far-reaching significance for understanding human behavior and improving human-computer interaction experience. At present, human posture estimation methods have shown broad application prospects in many fields such as motion analysis, rehabilitation training, virtual reality, etc.

[0003] For the specific scenario of badminton, due to its unique motion characteristics: specifically, athletes usually have large movement amplitude and fast movement speed, which leads to large spatial differences in human body features between the target frame and adjacent frames. For example, the athlete's body appears to be greatly misaligned and has huge morphological differences in adjacent frames. This high degree of dynamics and complexity poses severe challenges to existing human posture estimation methods.

[0004] At present, for human posture estimation in badminton, most methods tend to simply align features of a fixed scale. This processing method may achieve good results in static or low-dynamic scenes, but in high-dynamic environments such as badminton, it is difficult to effectively capture and utilize the complementary information between adjacent frames, which limits the accuracy and robustness of the estimation results.

[0005] It can be seen that the existing technology still needs to be improved and enhanced. Summary of the invention

[0006] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a human body posture estimation method, which can solve the changes in human body features caused by large motion amplitude or lens jitter, and thus obtain a more accurate human body posture in motion scenes.

[0007] The first aspect of the present invention provides a method for estimating a human posture, comprising: obtaining multiple frames of motion pictures in a motion scene, and extracting a bounding box feature map from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frame of motion pictures located before and after the current frame of motion pictures; performing feature extraction on the extracted bounding box feature map based on the HRNet backbone network to obtain current feature vectors of multiple stages corresponding to the current frame of motion pictures, and adjacent feature vectors of multiple stages corresponding to the adjacent frame of motion pictures; performing alignment processing on the current feature vectors of multiple stages and the adjacent feature vectors of multiple stages based on a dense feature alignment module to obtain adjacent aligned feature vectors of multiple stages; performing fusion processing on the current feature vectors of multiple stages and the adjacent aligned feature vectors of multiple stages based on a progressive fusion module to obtain fused features; and using a detector to process the fused features to obtain a feature heat map corresponding to the current frame of motion pictures.

[0008] Optionally, in a first implementation manner of the first aspect of the present invention, the step of acquiring multiple frames of motion pictures in a motion scene and extracting bounding box feature maps from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frame motion pictures before and after the current frame of motion pictures, includes: acquiring multiple frames of motion pictures in a motion scene, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frame motion pictures before and after the current frame of motion pictures; based on a Faster-RCNN algorithm, extracting a feature bounding box from the current frame of motion pictures, and amplifying the feature bounding box to obtain a current bounding box feature map corresponding to the current frame of motion pictures; based on the Faster-RCNN algorithm, extracting an adjacent bounding box feature map from the adjacent frame motion pictures according to boundary information of the current bounding box feature map; and integrating the current bounding box feature map and the adjacent bounding box feature map to obtain the bounding box feature map.

[0009] Optionally, in a second implementation method of the first aspect of the present invention, feature extraction is performed on the extracted bounding box feature map based on the HRNet backbone network to obtain current feature vectors of multiple stages corresponding to the current frame motion picture, and neighboring feature vectors of multiple stages corresponding to the adjacent frame motion picture, including: feature extraction is performed on the extracted current bounding box feature map based on the HRNet backbone network to obtain current frame feature vectors of four stages corresponding to the current frame motion picture; feature extraction is performed on the extracted neighboring bounding box feature map based on the HRNet backbone network to obtain neighboring frame feature vectors of four stages corresponding to the adjacent frame motion picture.

[0010] Optionally, in a third implementation method of the first aspect of the present invention, the dense feature alignment module performs alignment processing on the current feature vectors of multiple stages and the neighboring feature vectors of multiple stages respectively to obtain neighboring aligned feature vectors of multiple stages, including: using a batch embedding method, inputting the current feature vectors of multiple stages and the neighboring feature vectors of multiple stages into the density feature alignment module respectively; obtaining the query matrix Q corresponding to the current feature vector of each stage through the multi-head attention layer and linear mapping layer of the density feature alignment module; obtaining the key matrix K and value matrix V corresponding to the neighboring feature vector of each stage through the multi-head attention layer and linear mapping layer of the density feature alignment module; inputting the obtained query matrix Q, key matrix K and value matrix V into the cross attention layer of the density feature alignment module to perform alignment processing to obtain neighboring aligned feature vectors of multiple stages.

[0011] Optionally, in a fourth implementation method of the first aspect of the present invention, the obtained query matrix Q, key matrix K and value matrix V are input into the cross-attention layer of the density feature alignment module for alignment processing to obtain neighboring alignment feature vectors of multiple stages, including: inputting the obtained query matrix Q, key matrix K and value matrix V into the cross-attention layer of the density feature alignment module; in the cross-attention layer, multiplying the query matrix Q, key matrix K and value matrix V belonging to the same stage to obtain a correlation matrix corresponding to the stage; based on the correlation matrix corresponding to the stage and the query matrix Q, obtaining a neighboring alignment feature vector corresponding to the stage.

[0012] Optionally, in a fifth implementation of the first aspect of the present invention, the obtained query matrix Q, key matrix K and value matrix V are input into the cross-attention layer of the density feature alignment module for alignment processing to obtain neighboring aligned feature vectors of multiple stages, and then also includes: based on the KL divergence constraint method, constraint processing is performed on the neighboring aligned feature vectors and the current feature vector belonging to the same stage one by one to complete the constraint processing of the neighboring aligned feature vectors of multiple stages.

[0013] Optionally, in a sixth implementation of the first aspect of the present invention, the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages are fused based on the progressive fusion module to obtain fused features, including: inputting the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages into the progressive fusion module respectively, the current feature vector of each stage includes current feature maps of multiple scales, and the neighboring aligned feature vector of each stage includes neighboring aligned feature maps of multiple scales; in the progressive fusion module, the current feature map and the neighboring aligned feature map belonging to the same stage and the same scale are fused. An addition operation is performed, and the result of the addition operation is further operated through the channel attention layer and the convolution layer of the progressive fusion module to obtain a plurality of first fusion features corresponding to the stage and the scale; an addition operation is performed on the current feature map and the neighboring aligned feature map belonging to the adjacent stage and the same scale, and the result of the addition operation is further operated through the channel attention layer and the convolution layer of the progressive fusion module to obtain a plurality of second fusion features corresponding to the stage and the scale; a third fusion feature is obtained based on the plurality of first fusion features and the current feature map corresponding to the stage; the first fusion feature, the second fusion feature and the third fusion feature are integrated to obtain a fusion feature.

[0014] The second aspect of the present invention provides a human posture estimation device, including: a border extraction module, which is used to obtain multiple frames of motion pictures in a motion scene, and extract a bounding box feature map from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frame motion pictures located before and after the current frame of motion pictures; a feature extraction module, which is used to perform feature extraction on the extracted bounding box feature map based on the HRNet backbone network, and obtain current feature vectors of multiple stages corresponding to the current frame of motion pictures, and adjacent feature vectors of multiple stages corresponding to the adjacent frame of motion pictures; a feature alignment module, which is used to perform alignment processing on the current feature vectors of multiple stages and the adjacent feature vectors of multiple stages respectively based on a dense feature alignment module, and obtain adjacent aligned feature vectors of multiple stages; a feature fusion module, which is used to perform fusion processing on the current feature vectors of multiple stages and the adjacent aligned feature vectors of multiple stages based on a progressive fusion module, and obtain fused features; an output module, which is used to process the fused features using a detector, and obtain a feature heat map corresponding to the current frame of motion pictures.

[0015] The third aspect of the present invention provides a human body posture estimation device, which includes: a memory and at least one processor, wherein instructions are stored in the memory; at least one of the processors calls the instructions in the memory so that the human body posture estimation device performs each step of the human body posture estimation method described in any one of the above items.

[0016] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed by a processor, the various steps of any of the above-mentioned human body posture estimation methods are implemented.

[0017] The technical solution of the present invention includes a dense feature alignment module and a progressive fusion module. The dense feature alignment module performs refined multi-level alignment on the current feature vectors of multiple stages and the neighboring feature vectors of multiple stages to achieve in-depth analysis across stages and scales, and can effectively capture changes in human features in complex scenes such as large motion amplitudes and significant changes in human body morphology. The progressive fusion module performs multi-stage and multi-level fusion of the current feature map and the neighboring aligned feature map, which can promote information flow and interaction between different stages, effectively improve feature extraction and recognition capabilities, and thereby improve the accuracy and effectiveness of the generated feature heat map. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A first flow chart of a data processing method provided by an embodiment of the present invention; Figure 2 A second flow chart of the data processing method provided by an embodiment of the present invention; Figure 3 A third flow chart of the data processing method provided by an embodiment of the present invention; Figure 4 A fourth flow chart of the data processing method provided by an embodiment of the present invention; Figure 5 A fifth flow chart of the data processing method provided by the embodiment of the present invention; Figure 6 A sixth flow chart of the data processing method provided by an embodiment of the present invention; Figure 7 A schematic diagram of the structure of a data processing device provided by an embodiment of the present invention; Figure 8 A schematic diagram of the structure of a data processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present invention provides a method, apparatus, device and storage medium for estimating human posture. In the present invention, the terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0020] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the method for estimating human body posture in the embodiment of the present invention includes: 101. Acquire multiple frames of motion pictures in a motion scene, and extract bounding box feature maps from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frame of motion pictures before and after the current frame of motion pictures; In this embodiment, the adjacent frame motion pictures include motion pictures of a frame before and a frame after the current frame; the extracted bounding box feature map describes the boundary information of the moving object in the motion picture.

[0021] 102. Perform feature extraction on the extracted bounding box feature map based on the HRNet backbone network to obtain current feature vectors of multiple stages corresponding to the current frame motion picture and adjacent feature vectors of multiple stages corresponding to the adjacent frame motion pictures; In this embodiment, the extracted current feature vector and neighboring feature vectors capture different levels and detail information of the image at different stages.

[0022] 103. Based on the dense feature alignment module, current feature vectors of multiple stages and neighboring feature vectors of multiple stages are aligned respectively to obtain neighboring aligned feature vectors of multiple stages; In this embodiment, the current feature vector and the adjacent feature vectors are finely aligned by a dense feature alignment module, so that the feature vectors can maintain consistency and continuity in time.

[0023] 104. Based on the progressive fusion module, the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages are fused to obtain fused features; In this embodiment, the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages are fused through a progressive fusion module, and the complementarity between the feature vectors of different stages is fully considered to construct a more comprehensive and rich fusion feature.

[0024] 105. Use a detector to process the fused features to obtain a feature heat map corresponding to the current frame motion picture; In this embodiment, the detector is The convolution layer performs joint labeling on the fused features through the detector to obtain a feature heat map corresponding to the current frame motion picture, that is, a human body posture map corresponding to the current frame motion picture is obtained.

[0025] The present application discloses a method for estimating human posture, including a dense feature alignment module and a progressive fusion module. The dense feature alignment module is used to perform refined multi-level alignment of current feature vectors of multiple stages and neighboring feature vectors of multiple stages, thereby realizing in-depth analysis across stages and scales, and can effectively capture changes in human features in complex scenes such as those with large motion amplitudes and significant changes in human morphology. The progressive fusion module is used to perform multi-stage and multi-level fusion of the current feature map and the neighboring aligned feature map, thereby promoting information flow and interaction between different stages, effectively improving feature extraction and recognition capabilities, and thereby improving the accuracy and effectiveness of the generated feature heat map.

[0026] See also Figure 2 , a second embodiment of the method for estimating a human body posture in an embodiment of the present invention includes: 201. Acquire multiple frames of motion pictures in a motion scene, where the multiple frames of motion pictures include a current frame of motion picture and adjacent frames of motion pictures before and after the current frame of motion picture; 202. Based on the Faster-RCNN algorithm, extract a feature bounding box from the current frame motion picture, and enlarge the feature bounding box to obtain a current bounding box feature map corresponding to the current frame motion picture; In this embodiment, the extracted feature bounding box is enlarged by 25% to obtain a current bounding box feature map.

[0027] 203. According to the boundary information of the current bounding box feature map, based on the Faster-RCNN algorithm, extract the adjacent bounding box feature map from the adjacent frame motion picture; In this embodiment, the boundary information of the current bounding box feature map includes the current boundary position and the current bounding box size of the current bounding box feature map; based on the boundary position, the Faster-RCNN algorithm is used to extract the neighboring bounding boxes of the same size as the current bounding box from the same position of the adjacent frame motion picture to obtain the neighboring bounding box feature map.

[0028] 204. Integrate the current bounding box feature map and the neighboring bounding box feature map to obtain the bounding box feature map.

[0029] See also Figure 3 , a third embodiment of the method for estimating a human body posture in an embodiment of the present invention includes: 301. Perform feature extraction on the extracted current bounding box feature map based on the HRNet backbone network to obtain current frame feature vectors of four stages corresponding to the current frame motion picture; 302. Perform feature extraction on the extracted neighboring bounding box feature map based on the HRNet backbone network to obtain neighboring frame feature vectors of four stages corresponding to the neighboring frame motion picture; In this embodiment, step 301 and step 302 are respectively expressed as: ; in, represents the HRNet backbone network, Represents the feature map of the kth scale at the jth stage, including Frame, that is, the feature set of the current frame and its adjacent The feature set of the frame; represents the set of all features in the jth stage, where ,J is determined by the preset resolution requirement.

[0030] See also Figure 4 , a fourth embodiment of the method for estimating a human body posture in an embodiment of the present invention includes: 401. Using a batch embedding method, current feature vectors of multiple stages and neighboring feature vectors of multiple stages are respectively input into a density feature alignment module; In this embodiment, batch embedding is a common embedding method, which divides the input image into a series of small blocks of the same size, and then converts each small block into a vector representation of a fixed length. This conversion is usually achieved through convolution operations or linear transformations to convert the spatial information of the image into sequence information that can be processed by the model. The batch embedding method can reduce the computational complexity while retaining important feature information of the image, so that the model can process image data more efficiently.

[0031] 402. Obtain a query matrix Q corresponding to the current feature vector of each stage through the multi-head attention layer and the linear mapping layer of the density feature alignment module; In this embodiment, the multi-head attention layer allows the model to simultaneously focus on information at different positions in the sequence when processing sequence data; in the multi-head attention layer, the input sequence is first converted into a sequence of three vectors: query, key, and value. Then, by calculating the similarity between the query vector and the key vector, the weight distribution of each query vector for all key vectors is obtained. The obtained weight distribution is then used to perform weighted averaging on the value vector to obtain the output representation of each query vector. Multi-head attention means that this process will be executed multiple times in parallel, each time using different query, key, and value projection matrices to capture different aspects of the sequence. Finally, the outputs of all subspaces will be spliced ​​together to form the final output representation.

[0032] In this embodiment, the linear mapping layer is generally used to convert the input vector into query, key and value vectors; the linear mapping layer is actually implemented by matrix multiplication, which multiplies the input vector by a predefined weight matrix (also called query matrix, key matrix and value matrix) to obtain the desired vector representation.

[0033] 403. Obtain the key matrix K and the value matrix V corresponding to the neighboring feature vectors of each stage through the multi-head attention layer and the linear mapping layer of the density feature alignment module; In this embodiment, the obtained query matrix Q, key matrix K and value matrix V are respectively expressed as: ; in, Represents the feature map of the t-th frame, j-th stage, and k-th scale; represents the feature map of the frame, j-th stage, and k-th scale, PE. is the position encoding; PatchEmb represents the batch embedding operation, MHSA represents the multi-head attention layer, and Linear represents the linear mapping layer.

[0034] 404. Input the obtained query matrix Q, key matrix K and value matrix V into the cross attention layer of the density feature alignment module to perform alignment processing to obtain neighbor alignment feature vectors of multiple stages; 405. Based on the KL divergence constraint method, constraint processing is performed on the neighboring aligned feature vectors and the current feature vector belonging to the same stage one by one, so as to complete the constraint processing of the neighboring aligned feature vectors of multiple stages; In this embodiment, step 405 is formalized as follows: ; in, represents the KL divergence constraint.

[0035] In this embodiment, in order to further constrain the auxiliary information obtained from adjacent frames and improve the relevance of information, the KL divergence constraint method is adopted to constrain the adjacent aligned feature vectors and the current feature vector belonging to the same stage one by one; KL divergence constraint is a technology used in machine learning, which constrains the preliminary aligned features to ensure that the distribution of these features is as close as possible to the target distribution; KL divergence is a method to measure the difference between two probability distributions P and Q, which represents the amount of information lost when one distribution Q is used to approximate another distribution P.

[0036] See also Figure 5 , a fifth embodiment of the method for estimating a human body posture in an embodiment of the present invention includes: 501. Input the obtained query matrix Q, key matrix K and value matrix V into the cross attention layer of the density feature alignment module; 502. In the cross attention layer, the query matrix Q, the key matrix K and the value matrix V belonging to the same stage are multiplied to obtain a correlation matrix corresponding to the stage; 503. Based on the correlation matrix corresponding to the stage and the query matrix Q, obtain a neighbor alignment feature vector corresponding to the stage; In this embodiment, the proximity alignment feature corresponding to the stage is expressed as: ; Among them, d represents the dimension of the attention vector and SoftMax represents the cross attention layer.

[0037] See also Figure 6 , a sixth embodiment of the method for estimating a human body posture in an embodiment of the present invention includes: 601. Inputting current feature vectors of multiple stages and neighbor alignment feature vectors of multiple stages into a progressive fusion module respectively, wherein the current feature vector of each stage includes current feature maps of multiple scales, and the neighbor alignment feature vector of each stage includes neighbor alignment feature maps of multiple scales; 602. In the progressive fusion module, the current feature map and the neighboring aligned feature map belonging to the same stage and the same scale are added, and the addition operation result is further operated by the channel attention layer and the convolution layer of the progressive fusion module to obtain a plurality of first fusion features corresponding to the stage and the scale; For example, taking the current feature map of the second stage and the second scale and the neighboring alignment feature map of the second stage and the second scale as examples, the first fused feature obtained by fusion processing is expressed as: ; Among them, sum represents the addition operation, ChannelAtt represents the channel attention layer, and Conv represents Convolutional layer.

[0038] 603. Perform an addition operation on the current feature map and the neighboring aligned feature map belonging to adjacent stages and the same scale, and further operate the addition operation result through the channel attention layer and the convolution layer of the progressive fusion module to obtain a plurality of second fusion features corresponding to the stages and scales; 604. Obtain a third fused feature based on the multiple first fused features and the current feature map corresponding to the stage; In this embodiment, the first fusion feature and the current feature map belonging to the same stage and different scales are fused. Specifically, the deep feature map of the first fusion feature is first upsampled, and the feature maps other than the shallowest layer are defined as deep feature maps; the upsampling result is added to the shallowest feature map in the current feature map of the same stage, and the addition operation result is further operated through the channel attention layer and the convolution layer of the progressive fusion module to obtain the third fusion feature.

[0039] For example, the third fusion feature of the second stage and the first scale is expressed as: ; Here, Up represents an upsampling operation.

[0040] 605. Integrate the first fusion feature, the second fusion feature, and the third fusion feature to obtain a fusion feature.

[0041] The above describes the human body posture estimation method in the embodiment of the present invention. The following describes the human body posture estimation device in the embodiment of the present invention. Figure 7 , an embodiment of a human body posture estimation device in an embodiment of the present invention includes: The frame extraction module 701 is used to obtain multiple frames of motion pictures in a motion scene and extract a bounding box feature map from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frames of motion pictures before and after the current frame of motion pictures; The feature extraction module 702 is used to extract features from the extracted bounding box feature map based on the HRNet backbone network to obtain current feature vectors of multiple stages corresponding to the current frame motion picture and adjacent feature vectors of multiple stages corresponding to the adjacent frame motion pictures; A feature alignment module 703 is used to align the current feature vectors of multiple stages and the neighboring feature vectors of multiple stages based on the dense feature alignment module to obtain neighboring aligned feature vectors of multiple stages; A feature fusion module 704 is used to fuse the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages based on the progressive fusion module to obtain fused features; The output module 705 is used to process the fused features using a detector to obtain a feature heat map corresponding to the current frame motion picture.

[0042] above Figure 7 The human body posture estimation device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The human body posture estimation device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0043] Figure 8 8 is a schematic diagram of the structure of a human posture estimation device provided by an embodiment of the present invention. The human posture estimation device 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 810 (for example, one or more processors) and a memory 820, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 833 or data 832. Among them, the memory 820 and the storage medium 830 can be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the human posture estimation device 800. Furthermore, the processor 810 can be configured to communicate with the storage medium 830, and execute a series of instruction operations in the storage medium 830 on the human posture estimation device 800 to implement the steps of the human posture estimation method provided in the above-mentioned method embodiments.

[0044] The human body posture estimation device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input and output interfaces 860, and / or, one or more operating systems 831, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 8 The structure of the human body posture estimation device shown does not constitute a limitation on the human body posture estimation device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0045] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the human body posture estimation method.

[0046] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0047] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0048] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for estimating a human body posture, characterized in that: include: Acquire multiple frames of motion pictures in a motion scene, and extract bounding box feature maps from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frame of motion pictures located before and after the current frame of motion pictures; Based on the HRNet backbone network, feature extraction is performed on the extracted bounding box feature map to obtain current feature vectors of multiple stages corresponding to the current frame motion picture and adjacent feature vectors of multiple stages corresponding to the adjacent frame motion pictures; Based on the dense feature alignment module, current feature vectors of multiple stages and neighboring feature vectors of multiple stages are aligned respectively to obtain neighboring aligned feature vectors of multiple stages; Based on the progressive fusion module, the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages are fused to obtain fused features; The fused features are processed using a detector to obtain a feature heat map corresponding to the current frame motion picture.

2. The method for estimating human body posture according to claim 1, characterized in that: The method of acquiring multiple frames of motion pictures in a motion scene and extracting a bounding box feature map from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frame of motion pictures before and after the current frame of motion pictures, comprises: Acquire multiple frames of motion pictures in a motion scene, wherein the multiple frames of motion pictures include a current frame of motion picture and adjacent frame of motion pictures before and after the current frame of motion picture; Based on the Faster-RCNN algorithm, a feature bounding box is extracted from the current frame motion picture, and the feature bounding box is enlarged to obtain a current bounding box feature map corresponding to the current frame motion picture; According to the boundary information of the current bounding box feature map, based on the Faster-RCNN algorithm, the adjacent bounding box feature map is extracted from the adjacent frame motion picture; The current bounding box feature map and the neighboring bounding box feature map are integrated to obtain the bounding box feature map.

3. The method for estimating human body posture according to claim 2, characterized in that: The method of extracting features from the extracted bounding box feature map based on the HRNet backbone network to obtain current feature vectors of multiple stages corresponding to the current frame motion picture and adjacent feature vectors of multiple stages corresponding to the adjacent frame motion picture includes: Based on the HRNet backbone network, feature extraction is performed on the extracted current bounding box feature map to obtain the current frame feature vectors of four stages corresponding to the current frame motion picture; Based on the HRNet backbone network, feature extraction is performed on the extracted neighboring bounding box feature map to obtain four stages of neighboring frame feature vectors corresponding to the neighboring frame motion pictures.

4. The method for estimating human body posture according to claim 1, characterized in that: The dense feature alignment module performs alignment processing on the current feature vectors of multiple stages and the neighboring feature vectors of multiple stages respectively to obtain the neighboring aligned feature vectors of multiple stages, including: Using batch embedding, the current feature vectors of multiple stages and the neighboring feature vectors of multiple stages are input into the density feature alignment module respectively; Obtain the query matrix Q corresponding to the current feature vector of each stage through the multi-head attention layer and linear mapping layer of the density feature alignment module; Obtain the key matrix K and value matrix V corresponding to the neighboring feature vectors of each stage through the multi-head attention layer and linear mapping layer of the density feature alignment module; The obtained query matrix Q, key matrix K and value matrix V are input into the cross attention layer of the density feature alignment module for alignment processing to obtain neighboring alignment feature vectors of multiple stages.

5. The method for estimating human body posture according to claim 4, characterized in that: The obtained query matrix Q, key matrix K and value matrix V are input into the cross attention layer of the density feature alignment module to perform alignment processing to obtain neighboring alignment feature vectors of multiple stages, including: Input the obtained query matrix Q, key matrix K and value matrix V into the cross attention layer of the density feature alignment module; In the cross-attention layer, the query matrix Q, key matrix K, and value matrix V belonging to the same stage are multiplied to obtain the correlation matrix corresponding to the stage; Based on the correlation matrix corresponding to the stage and the query matrix Q, a neighbor alignment feature vector corresponding to the stage is obtained.

6. The method for estimating human body posture according to claim 4, characterized in that: The obtained query matrix Q, key matrix K and value matrix V are input into the cross attention layer of the density feature alignment module to perform alignment processing to obtain neighboring alignment feature vectors of multiple stages, and then further include: Based on the KL divergence constraint method, constraint processing is performed on the neighboring aligned feature vectors and the current feature vector belonging to the same stage one by one to complete the constraint processing of the neighboring aligned feature vectors of multiple stages.

7. The method for estimating human body posture according to claim 1, characterized in that: The method of fusing the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages based on the progressive fusion module to obtain fused features includes: Inputting current feature vectors of multiple stages and neighbor alignment feature vectors of multiple stages into a progressive fusion module respectively, wherein the current feature vector of each stage includes current feature maps of multiple scales, and the neighbor alignment feature vector of each stage includes neighbor alignment feature maps of multiple scales; In the progressive fusion module, the current feature map and the neighboring aligned feature map belonging to the same stage and the same scale are added, and the addition operation result is further operated through the channel attention layer and the convolution layer of the progressive fusion module to obtain multiple first fusion features corresponding to the stage and scale; Performing an addition operation on the current feature map and the neighboring aligned feature map belonging to adjacent stages and the same scale, and further operating the addition operation result through the channel attention layer and the convolution layer of the progressive fusion module to obtain multiple second fusion features corresponding to the stage and scale; Acquire a third fused feature based on the plurality of first fused features and a current feature map corresponding to the stage; The first fusion feature, the second fusion feature and the third fusion feature are integrated to obtain a fusion feature.

8. A human body posture estimation device, characterized in that: include: A frame extraction module is used to obtain multiple frames of motion pictures in a motion scene and extract a bounding box feature map from the multiple frames of motion pictures, wherein the multiple frames of motion pictures include a current frame of motion pictures and adjacent frames of motion pictures located before and after the current frame of motion pictures; A feature extraction module is used to extract features from the extracted bounding box feature map based on the HRNet backbone network to obtain current feature vectors of multiple stages corresponding to the current frame motion picture and adjacent feature vectors of multiple stages corresponding to the adjacent frame motion pictures; A feature alignment module is used to align the current feature vectors of multiple stages and the neighboring feature vectors of multiple stages based on the dense feature alignment module to obtain neighboring aligned feature vectors of multiple stages; A feature fusion module is used to fuse the current feature vectors of multiple stages and the neighboring aligned feature vectors of multiple stages based on the progressive fusion module to obtain fused features; The output module is used to process the fused features using the detector to obtain a feature heat map corresponding to the current frame motion picture.

9. A human body posture estimation device, characterized in that: The human body posture estimation device comprises: a memory and at least one processor, wherein the memory stores instructions; At least one of the processors calls the instructions in the memory so that the human body posture estimation device performs each step of the human body posture estimation method as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the human body posture estimation method as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Video data processing method and device

    CN111914756A

  • Human body posture estimation method and device in motion scene, equipment and storage medium

    CN116386089A

  • Text-based image editing method and device, equipment, medium and program product

    CN117011414A

  • RAW domain multi-exposure image fusion method and device and storage medium

    CN118396868A

  • Image processing method and apparatus, and device

    WO2021168755A1