Video-based posture estimation method, device, medium and electronic device

By using optical flow correction technology in human pose estimation, the problem of insufficient accuracy of human pose estimation in crowded scenes is solved. Optical flow smoothing improves the accuracy of bounding boxes and pose key points, and enhances the effect of human pose estimation. .

CN112651291BActive Publication Date: 2024-08-27YITU PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011164501.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-01
Filing Date
2020-10-27
Publication Date
2024-08-27
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

Existing human pose estimation methods lack accuracy in crowded scenes and rely on the output results of human detection models and pose estimation models. If the bounding box or joint point prediction is inaccurate, it will lead to inaccurate pose estimation.

Method used

The human body bounding box and pose key points in multi-frame multi-body images are detected through optical flow correction between adjacent multiple human body images, which improves the accuracy of the bounding box and pose key points detected by human body instances in the video, using optical flow. Stream smoothing avoids missing or dropped frames.

Benefits of technology

Improves the accuracy of bounding boxes and pose keypoints detected for human instances in multi-frame multi-body images, enhancing the accuracy of human pose estimation, especially in crowded scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112651291B_ABST
    Figure CN112651291B_ABST
Patent Text Reader

Abstract

The present application relates to the field of computer vision, and in particular discloses a method, device, medium and electronic device for estimating human posture based on video. The method for estimating human posture based on video of the present application comprises: obtaining multiple frames of multiple human body images in a video, wherein each frame of the multiple human body image comprises multiple human body instances, generating an initial human body boundary frame of the human body instances in each frame of the multiple human body image, correcting the initial human body boundary frame of the multiple human body image based on position difference data between the multiple human body image and a previous frame of the multiple human body image to obtain a detected human body boundary frame, wherein the position difference data comprises the position difference of the human body instances in the multiple human body image in the previous frame and the multiple human body image, and identifying the postures of the human body instances in the multiple human body images based on the detected human body boundary frame of the multiple human body image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision, and in particular discloses a method, device medium and electronic device for estimating human posture based on video. Background Art

[0002] With the rapid development of artificial intelligence technologies such as machine vision and deep learning, human pose estimation technology has also developed rapidly. Human pose estimation is of great significance in application fields such as activity recognition and motion capture. How to quickly and accurately estimate human pose has become a problem of widespread concern.

[0003] In the prior art, the method of human posture estimation mainly uses a human body detection model to identify the human body and generate a bounding box, then obtains the human body joints through a posture estimation model, and then analyzes the joints to obtain the human body posture. However, this method relies on the accuracy of the output results of the human body detection model and the posture estimation model. If the bounding box or joint point prediction is inaccurate, the subsequent posture estimated by the joint points will be inaccurate. Summary of the invention

[0004] The embodiments of the present application provide a video-based human posture estimation method and its device, medium and electronic device, which can detect the human body bounding box and posture key points of the human body instance in multiple frames of multi-human images through optical flow correction between adjacent multi-human images, improve the accuracy of the human body bounding box and posture key points detected for the human body instance in the video of multiple frames of multi-human images, and improve the accuracy of human body posture estimation of the human body instance.

[0005] In a first aspect, an embodiment of the present application discloses a method for estimating a human posture based on a video, the method comprising:

[0006] A plurality of frames of multi-body images in a video are obtained, wherein each frame of the multi-body image includes a plurality of human body instances; an initial human body bounding box of the human body instance in each frame of the multi-body image is generated; based on position difference data between the multi-body image and a previous frame of the multi-body image, the initial human body bounding box of the multi-body image is corrected to obtain a detected human body bounding box, wherein the position difference data includes the position difference between the human body instance in the multi-body image in the previous frame and the multi-body image; and the posture of the human body instance in the multi-body image is recognized based on the detected human body bounding box of the multi-body image.

[0007] It can be understood that a video containing multiple frames of multiple human images is a video in a crowded scene, and the multiple frames of multiple human images can be all images obtained by frame processing of the video. The initial human bounding box of the above human instance can be detected by a pre-trained human detection model or a conventional human detection model, wherein the pre-trained human detection model can be trained by a variety of training data sets in a crowded scene, and supports human instance detection in a crowded scene. In addition, the position difference data between two adjacent images can be the optical flow between the two images. For example, the position difference data between the above multi-human image and the previous frame image of the multi-human image is the optical flow between the two images, so that the position difference data includes the position difference of the human instance in the multi-human image in the previous frame image and the multi-human image, that is, it reflects the motion information of the human instance in the time domain from the previous frame image and the multi-human image, and further reflects the position change of the human bounding box of the human instance from the previous frame image to the multi-human image. Obviously, since the present solution uses the position difference data (i.e., optical flow) between adjacent multi-body images to correct the human body detection bounding box of each human body embodiment, and the position difference data reflects the information in the time domain, it is possible to combine the information in the time domain to avoid the situation of missing frames or dropped frames in the process of human body bounding box detection for multi-frame multi-body images, thereby achieving the smoothing of the human body bounding box of the human body instance in the multi-frame multi-body images (i.e., optical flow smoothing processing hereinafter). Furthermore, the human body bounding box of the human body instance in the multi-frame multi-body images is corrected by the position difference data between adjacent multi-body images, that is, the human body bounding box of the human body instance in the multi-frame multi-body images is optically smoothed, thereby improving the accuracy of the human body bounding box detected by the human body instance in the video of the multi-frame multi-body images, which is conducive to improving the accuracy of the subsequent human posture estimation based on the human body bounding box.

[0008] In addition, in some embodiments, the initial human body bounding box of the human body instance in the multi-human body image can also be corrected by using the position difference data between the next frame image of the multi-human body image and the frame of the multi-human body image, but the embodiments of the present application do not limit this.

[0009] In a possible implementation manner of the first aspect, based on position difference data between the multiple human body images and a previous frame image of the multiple human body images, correcting the initial human body bounding box of the multiple human body images to obtain a detected human body bounding box includes: correcting the i-th initial human body bounding box in the t-th frame image of the multiple frames of multiple human body images to obtain the i-th detected human body bounding box by the following formula:

[0010]

[0011]

[0012] in, represents the coordinate point set of the i-th initial human bounding box in the t-1-th frame image in multiple frames of multi-human images, F t-1→t Represents the position difference data between the t-1th frame image and the tth frame image, Indicates that based on F t-1→t The coordinate point set of the i-th predicted human body bounding box in the t-th frame image is obtained. represents the coordinate point set of the i-th initial human body bounding box in the t-th frame image, represents the coordinate point set of the i-th detected human body bounding box in the t-th frame image, and α is and The synthetic weight coefficients, i and t are both positive integers.

[0013] It can be understood that a set of coordinate points of a bounding box of a human body instance is used to represent the human body bounding box. Specifically, the i-th initial human body bounding box in the t-1-th frame image is used as the benchmark, according to F t-1→t The motion of the human instance in the t-1th frame image from the t-1th frame image to the tth frame image, that is, the position change of the i-th initial human bounding box in the t-1th frame image from the t-1th frame image to the tth frame image, obtains the i-th predicted human bounding box of the same human instance in the t-1th frame image. Then, by synthesizing the coordinate point set of the i-th predicted human bounding box in the t-1th frame image (i.e. ) and the coordinate point set of the i-th initial human body bounding box in the t-th frame image (i.e. ), that is, weighted averaging is performed on the corresponding coordinates of the two coordinate point sets, so that the i-th initial human body bounding box in the t-th frame image can be corrected to obtain a more accurate i-th detected human body bounding box.

[0014] In a possible implementation of the first aspect above, the postures of human body instances in multiple human body images are identified based on a detected human body boundary box of multiple human body images, including: generating initial posture key points of the human body instances in each frame of the multiple human body images based on the detected human body boundary box of the multiple human body images; correcting the initial posture key points of the human body instances in the multiple human body images to obtain detection posture key points based on position difference data between the multiple human body images and a previous frame of the multiple human body images, and position difference data between the multiple human body images and a subsequent frame of the multiple human body images, wherein the position difference data between the multiple human body images and the subsequent frame of the multiple human body images includes the position difference between the human body instances in the multiple human body images and the subsequent frame of the multiple human body images; and identifying the postures of the human body instances in the multiple human body images based on the detected posture key points in the multiple human body images.

[0015] It can be understood that the posture key points of the human body instance are the human body joint points (or joint points) mentioned below. Although the names are different, they are essentially the same, and are all key points used to mark human body postures. The initial posture key points of the above human body instance can be detected by a pre-trained human body posture estimation model or a conventional human body posture estimation model, wherein the pre-trained human body posture estimation model can be trained by a variety of training data sets in crowded scenes, supporting the detection of posture key points of human body instances in crowded scenes, and then realizing human body posture estimation in crowded scenes. Specifically, the position difference data between the above-mentioned multi-body image and the previous frame image of the multi-body image is the optical flow between the two images, so that the position difference data includes the position difference of the human body instance in the multi-body image in the previous frame image and the multi-body image, that is, it reflects the motion information of the human body instance between the previous frame image and the multi-body image in the time domain, and then reflects the position change of the posture key points of the human body instance from the previous frame image to the multi-body image. Similarly, the position difference data between the above-mentioned multi-body image and the next frame image of the multi-body image is the optical flow between the two images, reflecting the position change of the posture key points of the human body instance from the multi-body image to the next frame image. Obviously, since the present scheme uses the position difference data (i.e., optical flow) between adjacent multi-body images to correct the human body detection boundary box of each human body embodiment, and the position difference data reflects the information in the time domain, it is realized to combine the information in the time domain to avoid the situation of missing frames or dropped frames in the posture key point detection process of the human body instance in the multi-frame multi-body image, thereby realizing the smoothing processing of the human body key points of the human body instance in the multi-frame multi-body image (i.e., optical flow smoothing processing hereinafter). In this way, while correcting the human body boundary box detected by the human body instance in the multi-frame multi-body image by the position difference data between the adjacent multi-body images, the posture key points detected by the human body instance in the multi-frame multi-body image are corrected, that is, the posture key points of the human body instance in the multi-frame multi-body image are optically smoothed, which further improves the accuracy of human body posture estimation of the human body instance in the video of the multi-frame multi-body image.

[0016] In a possible implementation of the first aspect, based on the position difference data between the multi-body image and the previous frame image of the multi-body image, and the position difference data between the multi-body image and the subsequent frame image of the multi-body image, the initial posture key points of the human body instances in the multi-body images are corrected to obtain the detection posture key points, including: correcting the initial posture key points of the human body instances in the i-th detection human body boundary box in the t-th frame image in the multi-frame multi-body images by the following formula to obtain the detection posture key points:

[0017]

[0018]

[0019]

[0020] in, represents the coordinate point set of the initial pose key points of the human instance in the i-th detected human bounding box in the t-1-th frame of the multi-frame multi-human image, F t-1→t Represents the position difference data between the t-1th frame image and the tth frame image, Based on F t-1→t Obtain the coordinate point set of the predicted posture key points of the human instance in the i-th detected human body bounding box in the t-th frame image; represents the coordinate point set of the initial posture key points of the human instance in the i-th detected human body bounding box in the t+1-th frame image in the multi-frame multi-human image; F t→t+1 Represents the position difference data between the t-th frame image and the t+1th frame image; Based on F t→t+1 Obtain the coordinate point set of the predicted posture key points of the human instance in the i-th detected human body bounding box in the t-th frame image; represents the coordinate point set of the detected posture key points of the human instance in the i-th detected human bounding box in the t-th frame image, and β represents The weight coefficient synthesized between them, i and t are both positive integers.

[0021] It can be understood that the coordinate point set of the posture key points of a human body instance is used to represent the posture key points of the human body instance. Specifically, the pose key points of the human instance in the i-th initial human bounding box in the t-1-th frame image are used as the benchmark, according to F t-1→t The motion of the human instance in the t-1th frame image from the t-1th frame image to the tth frame image, that is, the position change of the i-th initial human bounding box in the t-1th frame image from the t-1th frame image to the tth frame image, obtains the posture key points of the same human instance in the tth frame image. Description and Similarly, no further description is given here. and That is, by performing weighted average processing on the corresponding coordinates of the three coordinate point sets, the initial posture key points of the human body instance in the t-th frame image can be corrected to obtain more accurate detection posture key points.

[0022] In a possible implementation of the first aspect above, before identifying the postures of human instances in multiple human images based on the detected human bounding boxes of multiple human images, the method further includes: generating identification information corresponding to the detected human bounding boxes of the human instances in each frame of the multiple human images, where the identification information is the ID below, and one of the identification information is used to identify the detected human bounding box of a human instance. It can be understood that the identification information corresponding to the detected human bounding box of the human instance specifically represents the human instance in the human detection bounding box. Specifically, in the process of each human instance moving in multiple frames of multiple human images, the human detection bounding boxes where different human instances are located can be distinguished through each piece of identification information, that is, different human instances can be distinguished.

[0023] In a possible implementation of the first aspect, the posture of human instances in multiple human images is identified based on the detection of human bounding boxes of multiple human images, including: based on the detection of human bounding boxes of multiple human images and identification information of the detection of human bounding boxes, the posture of human instances in multiple human images is identified. It can be understood that in the process of detecting and obtaining the posture detection key points of human instances in multiple frames of multiple human images, different human instances can be distinguished by detecting the identification information of the human bounding boxes, thereby ensuring that the posture key points of the same human instance in adjacent images are corrected, which is conducive to further improving the accuracy of the posture key points of the human instance (i.e., the posture detection key points), and further improving the accuracy of the posture estimation of the human instance.

[0024] In a possible implementation of the first aspect, the method further includes: tracking human instances in multiple frames of multiple human images based on identification information corresponding to the detected human body bounding boxes of the human body instances in each frame of multiple human images, and the postures of the human body instances. It is understandable that, since the time domain information reflected by the position difference data between the multiple human body images in each frame is used in the process of determining the posture key points of each human body instance in each frame of multiple human images, it is possible to ensure that each human body instance in each frame of multiple human images is subjected to relatively complete detection of the human body detection bounding boxes and posture key points, thereby avoiding missed detection or wrong detection. Thus, each identification information can more accurately identify the human body detection bounding boxes of each human body instance in multiple frames of multiple human images, that is, identify each human body instance, thereby achieving relatively accurate human body tracking. For example, the human instance "Zhang San" begins to appear in a frame of the above-mentioned multiple-frame multi-human images, that is, the identification information of the human body detection boundary box where the human body instance is located is "Zhang San", then as long as the human body instance "Zhang San" appears in each frame of the multi-human images after the multi-human image, the identification information "Zhang San" of the human body detection boundary box of the human body instance "Zhang San" will be accurately generated in these multi-human images.

[0025] In a possible implementation of the first aspect, the initial human bounding box of the human instance in each frame of the multi-human image is generated by a first neural network model, and the backbone network of the first neural network model includes at least one of the following: ResNet152 network, ResNeXt101 network, SeNet154 network. It can be understood that when the backbone network of the first neural network model includes the above-mentioned multiple networks, the first neural network model has all the functions of these networks. Specifically, the first neural network can be the human detection model mentioned below.

[0026] In a possible implementation of the first aspect above, the initial posture key points of the human body instances in each frame of the multi-human body image are generated by a second neural network model, and the backbone network of the second neural network model includes at least one of the following: HRNet and SimpleNet. It can be understood that when the backbone network of the second neural network model includes the above-mentioned multiple networks, the second neural network model has all the functions of these networks. Specifically, the second neural network can be the posture estimation model mentioned below.

[0027] In a second aspect, an embodiment of the present application discloses a video-based human posture estimation method, which includes: acquiring multiple frames of multiple human body images in a video, wherein each frame of the multiple human body image includes multiple human body instances; generating a detection human body boundary box for the human body instances in each frame of the multiple human body image; generating initial posture key points of the human body instances in each frame of the multiple human body image based on the detection human body boundary box of the multiple human body images; based on the position difference data between the multiple human body images and the previous frame images of the multiple human body images, and the position difference data between the multiple human body images and the subsequent frame images of the multiple human body images, correcting the initial posture key points of the human body instances in the multiple human body images to obtain detection posture key points, wherein the position difference data between the multiple human body images and the previous frame images include the position difference of the human body instances in the multiple human body images in the multiple human body images and the previous frame images, and the position difference data between the multiple human body images and the subsequent frame images include the position difference of the human body instances in the multiple human body images and the subsequent frame images; identifying the postures of the human body instances in the multiple human body images based on the detection posture key points in the multiple human body images.

[0028] In a possible implementation of the second aspect, based on position difference data between a multi-body image and a previous frame of the multi-body image, and position difference data between a multi-body image and a subsequent frame of the multi-body image, correcting initial posture key points of human body instances in the multi-body images to obtain detection posture key points includes:

[0029] The initial posture key points of the human instance in the i-th detected human body bounding box in the t-th frame image in the multi-frame multi-human image are corrected by the following formula to obtain the detection posture key points:

[0030]

[0031]

[0032]

[0033] in, represents the coordinate point set of the initial pose key points of the human instance in the i-th detected human bounding box in the t-1-th frame of the multi-frame multi-human image, F t-1→t Represents the position difference data between the t-1th frame image and the tth frame image, Based on F t-1→t Obtain the coordinate point set of the predicted posture key points of the human instance in the i-th detected human body bounding box in the t-th frame image; represents the coordinate point set of the initial posture key points of the human instance in the i-th detected human body bounding box in the t+1-th frame image in the multi-frame multi-human image; F t→t+1 Represents the position difference data between the t-th frame image and the t+1th frame image; Based on F t→t+1 Obtain the coordinate point set of the predicted posture key points of the human instance in the i-th detected human body bounding box in the t-th frame image; represents the coordinate point set of the detected posture key points of the human instance in the i-th detected human bounding box in the t-th frame image, and β represents The weight coefficient synthesized between them, i and t are both positive integers.

[0034] In a possible implementation of the second aspect, a detected human body bounding box of a human body instance in each frame of a multi-human body image is generated, including: generating an initial human body bounding box of the human body instance in each frame of the multi-human body image; correcting the initial human body bounding box of the multi-human body image based on position difference data between the multi-human body image and a previous frame of the multi-human body image to obtain a detected human body bounding box, wherein the position difference data includes the position difference between the human body instance in the multi-human body image in the previous frame and the multi-human body image; and identifying the posture of the human body instance in the multi-human body image based on the detected human body bounding box of the multi-human body image.

[0035] In a possible implementation manner of the second aspect, based on position difference data between the multiple human body images and a previous frame image of the multiple human body images, correcting the initial human body bounding box of the multiple human body images to obtain a detected human body bounding box includes: correcting the i-th initial human body bounding box in the t-th frame image of the multiple frames of multiple human body images to obtain the i-th detected human body bounding box by the following formula:

[0036]

[0037]

[0038] in, represents the coordinate point set of the i-th initial human bounding box in the t-1-th frame image in multiple frames of multi-human images, F t-1→t Represents the position difference data between the t-1th frame image and the tth frame image, Indicates that based on F t-1→t The coordinate point set of the i-th predicted human body bounding box in the t-th frame image is obtained. represents the coordinate point set of the i-th initial human body bounding box in the t-th frame image, represents the coordinate point set of the i-th detected human body bounding box in the t-th frame image, and α is and The synthetic weight coefficients, i and t are both positive integers.

[0039] In a third aspect, an embodiment of the present application discloses a video-based human posture estimation device, comprising: an image acquisition module, used to acquire multiple frames of multi-human images in a video, wherein each frame of the multi-human image includes multiple human instances; a human detection module, used to generate an initial human boundary box of the human body instance in each frame of the multi-human image; a human correction module, used to correct the initial human body boundary box of the multi-human image according to the position difference data between the multi-human image and the previous frame of the multi-human image to obtain a detected human body boundary box, wherein the position difference data includes the position difference between the human body instance in the multi-human image in the previous frame and the multi-human image; a posture estimation module, used to identify the posture of the human body instance in the multi-human image according to the detected human body boundary box of the multi-human image.

[0040] In a fourth aspect, an embodiment of the present application discloses a video-based human posture estimation device, comprising: an image acquisition module, used to acquire multiple frames of multiple human body images in a video, wherein each frame of the multiple human body image includes multiple human body instances; a human body detection module, used to generate a detection human body boundary box of the human body instance in each frame of the multiple human body image; a posture detection module, used to generate initial posture key points of the human body instance in each frame of the multiple human body image based on the detection human body boundary box of the multiple human body image; a posture correction module, based on the position difference data between the multiple human body image and the previous frame image of the multiple human body image, and the position difference data between the multiple human body image and the next frame image of the multiple human body image, corrects the initial posture key points of the human body instance in the multiple human body image to obtain the detection posture key points, wherein the position difference data between the multiple human body image and the previous frame image includes the position difference of the human body instance in the multiple human body image in the multiple human body image and the previous frame image, and the position difference data between the multiple human body image and the next frame image includes the position difference of the human body instance in the multiple human body image in the multiple human body image and the next frame image; a posture estimation module, used to identify the posture of the human body instance in the multiple human body image based on the detection posture key points in the multiple human body image.

[0041] In a fifth aspect, an embodiment of the present application discloses a readable medium having instructions stored thereon, which, when executed on an electronic device, enables the electronic device to execute the video-based human posture estimation method of the first aspect or the second aspect mentioned above.

[0042] On the sixth side, an embodiment of the present application discloses an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the processors of the electronic device, for executing the video-based human posture estimation method of the first aspect or the second aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 According to some embodiments of the present application, a schematic diagram of a target object is shown;

[0044] Figure 2 According to some embodiments of the present application, a schematic diagram of optical flow between two consecutive frames is shown;

[0045] Figure 3 According to some embodiments of the present application, a human body pose estimation scene graph is shown;

[0046] Figure 4 According to some embodiments of the present application, a schematic diagram of a composition architecture of a posture estimation scenario is shown;

[0047] Figure 5 According to some embodiments of the present application, a flow chart of a posture estimation method is shown;

[0048] Figure 6 According to some embodiments of the present application, a schematic diagram of a bounding box output by a human detection model is shown;

[0049] Figure 7 According to some embodiments of the present application, a schematic diagram of coordinate points of a human body bounding box corresponding to a human body instance is shown;

[0050] Figure 8 According to some embodiments of the present application, a schematic diagram of a composition architecture of gesture tracking is shown;

[0051] Fig. 9 According to some embodiments of the present application, a schematic diagram of the distribution of human joints and torso output by a human posture estimation model is shown;

[0052] Fig.10 According to some embodiments of the present application, a schematic diagram of human joint point coordinates detected by human body instances of multiple human body images is shown;

[0053] Fig.11 According to some embodiments of the present application, a schematic diagram of categories and probabilities that may be output by a human body detection model when detecting a human body instance is shown;

[0054] Fig.12 According to some embodiments of the present application, a video-based human body posture estimation device is shown;

[0055] Fig.13 According to some embodiments of the present application, another video-based human posture estimation device is shown;

[0056] Fig.14 According to some embodiments of the present application, a block diagram of an electronic device is shown;

[0057] Fig.15 According to some embodiments of the present application, a block diagram of a system on chip (SoC) is shown. Specific embodiments

[0058] The illustrative embodiments of the present application include, but are not limited to, a posture estimation method and apparatus, medium, and electronic device thereof.

[0059] The video-based posture estimation method in the present application is applicable to various video processing scenarios, especially video processing scenarios of crowded scenes. For example, the scenario is applied to robot vision processing, video surveillance and human motion recognition, animal motion recognition, etc. Specifically, for example, it can be used to determine whether an elderly person on the road or living alone is in a posture of falling, whether animals in the zoo have abnormal or dangerous postures, whether pedestrians in crowded scenes have pushing or trampling postures, etc.

[0060] The posture estimation method provided in the embodiment of the present application can obtain multiple frames of video to be processed, detect the bounding box of the human body in the multiple frames through the human body detection model for detecting the human body, and then detect the multiple frames of images that have detected the human body through the human body posture estimation model for detecting the human body posture, and obtain the joint points of each human body in the multiple frames. Then, the method can correct (i.e., smooth) the detected joint points of the human body through the optical flow between the multiple frames, that is, the motion information of the human body in the multiple frames based on the time domain, to avoid the phenomenon of missing frames and dropping frames when processing the multiple frames, and improve the accuracy of the joint points of the human body finally obtained, that is, improve the accuracy of human body posture estimation. In addition, after the method detects the bounding box of the human body from the multiple frames through the human body detection model, the bounding box of the detected human body can be corrected through the optical flow between the multiple frames, the phenomenon of missing frames and dropping frames in the multi-frame images is processed, and the accuracy of the bounding box of the human body finally detected is improved, which is conducive to improving the accuracy of subsequent human body posture estimation.

[0061] To facilitate understanding of the technical solutions provided in the embodiments of the present application, the key terms used in the embodiments of the present application are explained here:

[0062] Target object: For a frame of image, the target object is the object for which pose estimation is required. The setting of the target object can be different for different application scenarios, such as Figure 1 As shown in the figure, it is a schematic diagram of a frame of image. If the target object is set to be a person, then Figure 1 There are two target objects in total, namely target object 1 and target object 2. It can be understood that if in a zoo scene, the target object can be set to an animal such as an orangutan, a tiger, etc. In the embodiment of the present application, the target object is a person (i.e., a human body) as an example for explanation. In particular, the human body example or human body in this article refers to Figure 1 For the convenience of description, the human body in the text is sometimes referred to as “human body instance” and sometimes as “human body”.

[0063] Bounding box: A target detection box used to mark the position of a target object. The "target detection box" is also called a "bounding box". The target detection box can be a rectangular box, a circular box, or other shapes or an envelope that surrounds the target object. If the target detection box is a rectangular box, such as a long rectangular box or a square box, the position information of the target detection box includes the coordinates of the lower left corner point and the upper right corner point of the target detection box. If the target detection box is a circular box, the position information of the target detection box includes the coordinates of the center of the circle and the radius length of the target detection box. In the embodiments of the present application, the target detection box is a rectangular box as an example for explanation. In particular, the target object takes a person as an example. In this article, the bounding box of the human body or the human body bounding box refers to the position of the human body in the image.

[0064] Optical flow: It is used to define the movement of objects in an image sequence (such as images in a video stream), represented by a two-dimensional vector (or two-dimensional image), and is specifically used to represent the amount of movement of pixels representing the same object (object) in one frame of a video image to the next frame. In other words, the optical flow is the position difference of the target point when the time interval between video frames is very small, that is, between two consecutive frames of the video, that is, the change in the coordinates of the target point. In this way, the corresponding relationship between the previous frame and the current frame is found by using the change of pixels in the image sequence in the time domain and the correlation between adjacent frames, and the motion information of objects (such as the human body) between adjacent frames can be calculated. For example, Figure 2 The figure shows the optical flow between two consecutive frames (i.e., the t-1th frame and the tth frame) in a video stream. Figure 2 (a) is the image of the t-1th frame, Figure 2 (b) is the image of the tth frame, Figure 2 (c) is the optical flow from the t-1th frame to the tth frame. It can be seen from the figure that the optical flow is the displacement change in the time domain from the t-1th frame to the tth frame. In the embodiment of the present application, the optical flow is used to reflect the motion information of the human body between two consecutive frames in the video to be processed, that is, the position difference (i.e., displacement) of the human body. The optical flow can be expressed by the formula:

[0065] F t-1→t =I t (x+Δx,y+Δy)-I t-1 (x,y)

[0066] Among them, F t-1→t represents the optical flow from frame t-1 to frame t, (x, y) represents the non-boundary coordinate value of the image pixel, I t represents the t-th frame image, I t-1 represents the t-1th frame image. Δx, Δy represent the position difference between the t-1th frame and the tth frame.

[0067] Joint points: In the human body posture recognition scenario, joint points represent preset key points of the human body, such as neck key points, elbow key points, wrist key points, shoulder key points, head key points and other joint parts. In the embodiment of the present application, the joint points identified in the image are represented by the coordinate points corresponding to the joints in the image.

[0068] In order to facilitate the description of the technical solution of the present application, the following takes human posture estimation under video surveillance as an example.

[0069] like Figure 3 As shown in FIG. 1 , a scene of human posture estimation under video surveillance in a shopping mall is shown according to an embodiment of the present application. Figure 3As shown, the scene includes three cameras 301 and a video processing device 300. It can be understood that the posture estimation scene to which the technical solution of the present application is applicable may include any number of cameras, not limited to three.

[0070] Among them, the camera 301 is used to collect or shoot a video stream containing a human body, and the video processing device 300 is used to estimate the posture of the human body in the acquired video stream containing a human body, such as determining whether the posture of the human body is lying, sitting, standing, walking or climbing stairs.

[0071] In some embodiments, the camera 301 directly transmits the acquired video stream to the video processing device 300. In other embodiments, the camera 301 may also transmit the acquired video stream to a designated storage device for storage, and then the video processing device 300 obtains the video stream from the storage device, which is not limited in the embodiments of the present application.

[0072] In some embodiments of the present application, the video processing device 300 is a computer device with certain image or video processing capabilities, such as a personal computer (PC), a laptop or a server, etc. The server may be an independent physical server, or a server cluster consisting of multiple physical servers, or a server that provides basic cloud computing services such as cloud database, cloud storage and CDN. The scale of the server may be planned according to the number of video streams that need to be processed, and the embodiments of the present application do not limit this.

[0073] As an example, in a scenario of performing posture estimation on a human body in video surveillance, the camera 301 may be a surveillance camera installed in a shopping mall, a road, or a subway entrance, etc., for capturing video streams of pedestrians in these places. In practical applications, the above posture estimation scenario may include a large number of cameras 301, for example, cameras 301 installed at various locations on each floor of a shopping mall.

[0074] In some embodiments, the camera 301 and the video processing device 300 are independent devices, such as the camera is a surveillance camera and the video processing device 300 is a server that obtains video from the surveillance camera and processes the video stream. In other embodiments, the camera 301 and the video processing device 300 are different components in the same device, such as the camera and processor of a mobile phone, respectively.

[0075] In addition, the camera 301 and the video processing device 300 can be connected to each other through one or more networks. The network can be a wired network or a wireless network, for example, the wireless network can be a mobile cellular network, or a wireless fidelity (Wireless-Fidelity, WIFI) network, and of course, other possible networks, which are not limited in the embodiments of the present application.

[0076] In some embodiments of the present application, the video-based posture estimation method may be performed by a posture estimation component architecture, for example, the component architecture runs in the video processing device 300 .

[0077] Figure 4 According to an embodiment of the present application, a schematic diagram of a composition architecture of a posture estimation scene is shown. Figure 4 As shown, the composition architecture 40 includes a human body detection model 41, an optical flow smoothing branch 42, a multi-person tracking branch 43, a posture estimation model 44, an optical flow smoothing branch 45, continuous multi-frame images 46, continuous multi-frame images 47 for generating human body joints, and optical flow 48 between continuous multi-frame images.

[0078] The following describes in detail the components of the pose estimation scene architecture 40.

[0079] Human body detection model 41: used to detect human bodies in the input multi-frame images (i.e., image sequences). Specifically, the human body detection model 41 first classifies the objects in each frame of the image, obtains the area in the image where the human body instance is located, and then determines the position of the area where the human body instance is located in each frame of the image, and marks the bounding box of the human body at the corresponding position. The relevant content of the training of the human body detection model 41 will be described in detail below and will not be repeated here.

[0080] The optical flow smoothing branch 42 is used to correct the human body bounding box generated by the human body detection model 41. For the multiple frame images of the human body bounding box detected by the human body detection model 41, the optical flow 48 between the multiple frame images is used to optimize the human body bounding boxes, that is, to adjust the positions of the human body bounding boxes, that is, to adjust the positions of the detected human bodies in the multiple frame images.

[0081] The multi-person tracking branch 43 is used to distinguish human body instances in the image and realize multi-person tracking in different image frames. Specifically, for multi-frame images with detected human body bounding boxes, such as multi-frame images that are sequentially passed through the human body detection model 41 and the optical flow smoothing branch 42 and output, an ID is added to each human body instance in the image based on the human body bounding box generated for the output multi-frame images, the deep appearance features of the human body instance in the bounding box, and the position information of the human body instance in the image.

[0082] The posture estimation model 44 is used to estimate the posture of the human body in the input multi-frame images. Specifically, for the multi-frame images that pass through the human body detection model 41, the optical flow smoothing branch 42 and the multi-person tracking branch 43 in sequence, the posture estimation model 44 outputs the heat map features of the human body posture features, and then the human body joint point coordinates and torso can be obtained according to the human body posture feature heat map, and the human body posture can be estimated through the joint points and torso, for example, the posture of a human body instance is estimated to be walking up stairs, sitting or bending over, etc. The relevant content of the posture estimation model training will be described in detail below, and will not be repeated here.

[0083] The optical flow smoothing branch 45 is used to correct the human body joints output by the posture estimation model. The posture estimation model 44 detects the coordinates of the human body joints and uses the optical flow 48 between the multiple frame images to optimize the coordinates of the human body joints, that is, to adjust the positions of these joints, that is, to adjust the position of the detected human body in the multiple frame images.

[0084] The following will be combined Figures 1 to 5 Introduce the specific solution of this application. Figure 5 According to an embodiment of the present application, a flow chart of a posture estimation method is shown. Specifically, the scheme includes:

[0085] Step 502: the video processing device 300 obtains multiple frames of multiple human body images in a video, wherein each frame of the multiple human body image includes multiple human body instances.

[0086] In some embodiments of the present application, the video to be processed in the above step 502 may be a surveillance video taken by the camera 301, or a video uploaded by a user to a video platform or a short video social software. The video to be processed may also be a video in a test set, that is, the posture estimation method of the present application is used to estimate the posture of the human body in the video in the test set. The following mainly takes the human posture estimation of a video of a crowded scene as an example to illustrate the video-based posture estimation method of the present application.

[0087] In other embodiments of the present application, step 502 may first obtain the video to be processed, and then pre-process the video to be processed in real time, such as performing a frame division operation to obtain multiple frames of the video to be processed. For example, the video to be processed may be divided into frames using video division software or video capture software. For example, the video processing device 300 performs a frame division operation on the video to be processed through the videocapture function of the Opencv library of these software to generate continuous multiple frames of images 46.

[0088] For example, if the length of the video to be processed is 10 minutes, and the frame division operation is performed according to the preset frame rate, assuming that the frame rate is 60fps, then the number of images obtained after the frame division and parsing of the video to be processed should be 60*10*60=36,000. It can be understood that 36,000 images are obtained after the 10-minute video is divided into frames. Among them, "*" means multiplication.

[0089] It can be understood that the continuous multiple frame images 46 of the video to be processed are used to input into the human body detection model 41 for human body detection.

[0090] Step 504: the human body detection model 41 generates an initial human body bounding box of the human body instance in each frame of the multi-human body image.

[0091] The human body detection model 41 can achieve three tasks. The first is a classification task, which is to traverse each input frame image and classify the human body and non-human body in each frame image. The second is a regression task, which is to determine the position of the human body area in each frame image and mark the target detection bounding box at the corresponding position. The third is a coordinate point positioning task, which is to determine the position of the coordinate point of the bounding box of the human body, where the bounding box can be a rectangular box surrounding the area where the human body is located. For example, for Figure 6 In the image shown, the human body detection model 41 can generate a human body bounding box 1 for human body instance 1 and a human body bounding box 2 for human body instance 2. It can be understood that the above three tasks complement each other. For example, determining the position of the human body's bounding box coordinates is used to determine the position of the human body in the image.

[0092] Specifically, a human body's bounding box can be represented by a set of coordinate points composed of the coordinate points of its multiple vertices, for example, by the coordinates of the lower left corner and the upper right corner of the human body's bounding box. It can be understood that in the embodiment of the present application, the human body detection model 41 detects a human body instance and determines the human body's bounding box in the area where the human body is located, that is, determines the set of coordinate points of the human body's bounding box. That is to say, step 504 specifically detects and obtains the set of coordinate points of the bounding box of each human body of the multi-frame image.

[0093] In an embodiment of the present application, the process of human body detection by the human body detection model 41 on multiple human body images in the input continuous multi-frame image 46 includes: obtaining the position of each human body in the image, and predicting the bounding box of the human body for the area where each human body is located. Specifically, when performing human body detection on each frame of image, each frame of image can be input into a pre-trained human body detection model 41 for human body detection, and the area of ​​the human body in the image is obtained. The human body detection model 41 predicts the bounding box of the human body for the area where each human body is located. Among them, the human body detection model 41 can be a pre-trained deep learning convolutional neural network. The human body detection model 41 is trained using a large-scale training sample set composed of images with human body instance annotations. In the model training, it is necessary to enable the model to accurately predict the area where the human body is located in each frame of image, so that the predicted bounding box of the human body output by the human body detection model 41 is more accurate.

[0094] In an embodiment of the present application, taking the video to be processed as a video of a crowded scene with crowds as an example, for each continuous multi-frame image 46 after the video to be processed is framed, multiple human body images are sequentially input into a trained human body detection model 41 to obtain an initial human body boundary box output by the human body detection model 41.

[0095] Step 506: The optical flow smoothing branch 42 corrects the initial human body bounding box of the multi-human body image based on the position difference data between the multi-human body image and the previous frame image of the multi-human body image to obtain a detected human body bounding box, wherein the position difference data includes the position difference between the human body instances in the multi-human body image in the previous frame image and the multi-human body image.

[0096] In an embodiment of the present application, optical flow smoothing is performed on the bounding boxes of all human bodies in the multi-body image. Wherein, the optical flow smoothing is to correct the initial human body bounding box of the multi-body image according to the position difference (i.e., displacement) data between the multi-body image and the previous frame image of the multi-body image to obtain the detected human body bounding box, wherein the position difference data includes the position difference between the human body instance in the multi-body image in the previous frame image and the multi-body image. It can be understood that by predicting the bounding box of the human body in the current frame through the position difference in the time domain from the previous frame to the current frame, the situation of missing frames and dropped frames can be effectively avoided.

[0097] Specifically, for the same human body, the detected human body boundary box of the area where the human body is located is obtained according to the initial human body boundary box of the current frame output by the human body detection model 41 and the initial human body boundary box output by the human body detection model 41 of the previous frame combined with the optical flow from the previous frame to the current frame. Optical flow smoothing, that is, the motion information of the human body in the multi-frame image based on the time domain, corrects the detected initial boundary box (i.e., smoothing), avoids the phenomenon of missing frames when processing multi-frame images, and improves the accuracy of the final detected human body boundary box, that is, improves the accuracy of human body posture estimation.

[0098] It can be understood that in the embodiment of the present application, in the above step 504, the bounding box of the human body detected by the human body detection model 41 in the current frame is subjected to optical flow smoothing, specifically, the coordinate points in the coordinate point set of the bounding box of these human bodies are smoothed to obtain a set of detection coordinate points of the bounding box of each human body, that is, to obtain a detected human body bounding box of each human body in the current frame. Among them, in the embodiment of the present application, the detected human body bounding box of a human body is the bounding box of the human body optimized by optical flow smoothing, specifically, the coordinate points in the detection coordinate point set of the bounding box of a human body are the coordinate points optimized by optical flow smoothing. Among them, the detection coordinate point set of the detected human body bounding box of a human body obtained by the optical flow smoothing branch 42 is used for subsequent input into the multi-person tracking branch 43 and the posture estimation model 45 for processing.

[0099] Specifically, the following formula is used to take the optical flow smoothing processing of the bounding box of the i-th human body in the t-th frame image in the video (denoted as human body bounding box I1) as an example to illustrate that the optical flow smoothing branch 42 in the embodiment of the present application performs optical flow smoothing processing on the bounding box of the human body detected by the human body detection model 41. For example, the t-th frame image is the multi-human image in the above step 506.

[0100] Figure 7 is a schematic diagram of the coordinate points of the human body bounding box I1 corresponding to the human body instance I1 in the t-th frame multi-human image. Specifically, as shown in the figure, the coordinate point set detected by the human body bounding box I1 The upper right corner point n(x1, y1) of the bounding box of the human body and the lower left corner point m(x2, y2) of the bounding box of the human body are included. It can be understood that by obtaining the upper right corner point n(x1, y1) and the lower left corner point m(x2, y2) of the bounding box of the human body I1, the area of ​​the human body instance I1 in the multi-human body image can be known.

[0101] In a possible implementation, the embodiment of the present application calculates the coordinate point set of the human body boundary box I1 after optical flow smoothing by the following formula (1):

[0102]

[0103] In the formula, The t in it represents the t-th frame image, and i represents the bounding box of the i-th person in the t-th frame image.

[0104] α represents the weight coefficient, which is an empirical parameter and is taken as 0.5 in most cases.

[0105] It represents the coordinate point set of the human body bounding box I1 in the t-th frame image predicted according to the optical flow from the t-1th frame to the tth frame.

[0106] Represents the coordinate point set of the initial human body bounding box I1 in the t-th frame image output by the human body detection model 41.

[0107] It can be understood that the above formula (1) can realize the coordinate point set of the human body bounding box I1 of the t-th frame image predicted by the optical flow from the t-1th frame to the tth frame: and the initial human body bounding box I1 coordinate point set of the tth frame output by the human body detection model 41 Determine the coordinate point set of the human body bounding box I1 detected in the t-th frame image

[0108] In addition, some embodiments of the present application can use formula (2) to achieve the above "according to the optical flow from the t-1 frame to the t frame, the coordinate point set of the human body bounding box I1 of the t frame image is predicted

[0109]

[0110] In the formula, F k-1→k : The optical flow of the joint coordinates of the human body bounding box I1 from frame t-1 to frame t.

[0111] Represents the coordinate point set of the initial human body bounding box I1 of the t-1th frame output by the human body detection model 41.

[0112] Step 508: the multi-person tracking branch 43 generates identification information corresponding to the detected human body bounding boxes of the human body instances in the multi-person images of each frame, wherein one piece of identification information is used to identify the detected human body bounding box of one human body instance.

[0113] In the prior art, the overlap of the bounding box of the human body between the previous frame and the current frame or the similarity of the posture is used to determine whether it is from the same human instance, so as to track the posture of the same human instance in adjacent frames of multi-frame multi-human images. However, in crowded scenes, the human body is severely occluded and overlapped, and the posture of the same human instance in adjacent frames cannot be tracked by the prior art.

[0114] The multi-person tracking branch 43 generates identification information corresponding to the detected human body bounding box of the human body instance in each frame of the multi-person image. The identification information here is the ID below, and one of the identification information is used to identify the detected human body bounding box of a human body instance. It can be understood that the bounding box of the human body instance is associated with the human body instance. In the process of each human body instance moving in multiple frames of multi-person images, the human body detection bounding boxes where different human body instances are located can be distinguished through each identification information, that is, different human body instances can be distinguished.

[0115] In the embodiments of the present application, compared with the prior art, the present application adds a ReID model for identifying the deep appearance features of human instances. The ReID model distinguishes different human instances by identifying the deep appearance features of human instances. The ReID model is the Coarse-to-Fine Pyramidal model.

[0116] Combination Figure 4 and Figure 8 The multi-person tracking branch 43 includes a ReID model and a DeepSORT algorithm, wherein the DeepSORT algorithm is used to assign a unique ID to the bounding box of the human body by combining the position of the bounding box of the human body in the multi-person image and the appearance features of the human body. Specifically, the deep appearance features of the human body in each frame of the image are extracted by a pre-trained ReID model, and the appearance features extracted by the ReID model and the position information of the bounding box of the human body are input into the DeepSORT algorithm together to assign a unique ID to each human instance in the image. For example, Figure 8 As shown, the multi-body image 82 is a multi-body image of the bounding box of the marked human body generated by Human Detection81. The ReID model extracts features of the human body instances in the bounding box of the human body in the multi-body image 82, and the ReID model outputs the extracted features n×256 to the DeepSORT algorithm, where n represents the number of human body instances contained in the multi-body image 82, and 256 represents the long dimension of the image feature vector of the human body instance. Among them, the value of the long dimension is variable according to the dimensional requirement for extracting deep appearance features. The multi-body image 82 outputs the position information of the bounding box of the human body n×4 to the DeepSORT algorithm, where n represents the number of human body instances contained in the multi-body image 82, and 4 represents the horizontal and vertical coordinate points of the lower left corner and upper right corner of the bounding box of the human body. It can be understood that, on the one hand, for each frame of the multi-body image, the ReID model extracts the deep appearance features of the human body in the multi-body image, and the same human body instance is assigned a unique ID (i.e., identification information) in the multi-body images of different frames. It can be understood that assigning an ID to a human body instance is to assign an ID to the bounding box of the human body instance. On the other hand, when a new human instance appears in a multi-human image, the ReID model can distinguish the new human instance from the human instance with an assigned ID, and the multi-person tracking branch 43 assigns a unique ID to the new human instance. Compared with the existing technology, the ReID model pays more attention to the appearance of a person, so it is widely used in multi-person tracking in various scenarios.

[0117] In addition, for example, "Human Detection" 81 can be represented by Figure 4 The human body detection model 41 and the optical flow smoothing branch 42 are shown. Alternatively, Figure 8The optical flow smoothing branch 42 is omitted for convenience of description, but the bounding box of the human body in the image output by “HumanDetection” 81 is the bounding box of the human body after optical flow processing.

[0118] In the embodiments of the present application, in addition to adding a ReID model for identifying deep appearance features of human instances and distinguishing human instances, modifications are also made in the following two aspects.

[0119] (1) Optimal parameter search

[0120] In order to obtain the best parameter set so that the tracking method can run normally on the test set, the present application performs a grid search on the training set. The search space is designed and optimized for five parameters, namely, the maximum cosine distance (respectively the maximum cosine distance, max-cos-dis), the number of object appearance history (the number of object appearance history to keep, nn-budget), the maximum age of the track (the max age of atrack, max-age), the number of frames for a tentative track to be confirmed (the number of frames for a tentative track to be confirmed, nn-init) and the maximum IoU distance (the maximum IoU distance, max-iou-dis). The optimal parameter design is selected by the multi-target tracking evaluation index. The human body tracking performance results of the optimal parameters on the training and test sets and the multi-person tracking branch 43 under the optimal parameters are shown in Table 1. The performance in the table is also the performance of the final multi-person tracking branch 43 used in posture tracking in the present application embodiment. Among them, the multi-target tracking evaluation index is the multi-target tracking accuracy (Multiple Object Tracking Accuracy, MOTA), and the larger the value, the better the performance. Multiple Object Tracking Precision (MOTP), the larger the value, the better the performance. The total number of false positives (FP), the smaller the value, the better the performance. The total number of false negatives (FN), the smaller the value, the better the performance. The total number of identity switches (ID SW), the smaller the value, the better the performance.

[0121]

[0122] (2) Combination of ReID model functions

[0123] In the embodiments of the present application, the ReID model can extract the deep appearance features of the human body in the image. On the one hand, in an image containing multiple human body instances, different human body instances can be distinguished according to the deep appearance features of the human body. On the other hand, according to images of different frames, the same human body instance can be determined by confirming the same human body appearance features, thereby achieving human body posture tracking.

[0124] Specifically, the DeepSORT algorithm is combined with different strategies of the functions of the ReID model. Strategy A: a linear combination of the original features and the features extracted from the horizontally flipped humans; Strategy B: a linear combination of the ReID features extracted by using models trained at different scales. Table 2 lists the test results of multi-person tracking of the DeepSORT algorithm with different combination strategies of the ReID model, where the bounding box of the human body used for tracking is generated by the baseline model (baseline), which is a human detection model 41 of the Faster RCNN framework with ResNet50. Horizontal flip represents strategy A, and Scale represents strategy B. "+" represents the combination of the ReID model or strategy A or strategy B with the DeepSORT algorithm.

[0125] As can be seen from Table 2, based on multiple multi-target tracking evaluation indicators, the DeepSORT algorithm combined with the ReID model and the A strategy and the B strategy has the best performance test results. Specifically, MOTA increased from 27.11 to 53.96. FP increased from 5894 to 5922, FN decreased from 42668 to 24501, and ID Sw decreased from 2220 to 1657.

[0126]

[0127] Step 510: the human body pose estimation model 44 identifies the poses of human body instances in the multiple human body images based on the detected human body bounding boxes of the multiple human body images and the identification information of the detected human body bounding boxes.

[0128] In an embodiment of the present application, the design mode of the human posture estimation model 44 is a top-down mode, that is, the human body detection model 41 first obtains the position of each human body instance in the multi-human body image in the image and outputs the human body's bounding box, and then estimates the joint points of the human body instances in the human body's bounding box one by one. Specifically, the human posture estimation model 44 traverses each frame of the input image, and the middle layer of the model outputs the thermal map features of the posture features, and then the human body joints and torso can be obtained according to the posture feature thermal map, and the human body posture is estimated through the human body joints and torso. Among them, the torso represents the connection line of adjacent joints of the human body.

[0129] The human pose estimation model 44 is a pre-trained deep learning convolutional neural network. In the embodiments of the present application, two state-of-the-art single-person pose estimation models, HRNet and SimpleNet, are used as the basic networks for generating pose predictions. Unlike general high-to-low and low-to-high resolution modes, HRNet can maintain high-resolution representation throughout the process and fuse multi-resolution representations at the same time. SimpleNet is a simple and effective model, which consists only of a backbone network ResNet to reduce the resolution of feature maps and several deconvolution layers to form pose predictions. In addition, for SimpleNet, the present application inserts an FPN structure into it to enhance the performance of small instances. Finally, the present application fuses the results of the two models by averaging the heat maps generated by the two models. For example, as Figure 8 As shown, the posture estimation model 44 includes two basic networks, SimpleNet and HRNet. Specifically, the SimpleNet and HRNet networks in the posture estimation model 44 can output Figure 8 As shown in pose t, pose t represents the initial joint points of all human bodies in the t-th frame image.

[0130] Specifically, Fig. 9 As shown, it is a schematic diagram of the distribution of human joints and torso output by the human posture estimation model 44. The posture feature heat map obtained by the human posture estimation model includes a joint point heat map and a torso heat map. Fig. 9 The middle left picture is a schematic diagram of the distribution of human joints. There are 14 joints. Fig. 9 The 14 joint points in the middle left picture correspond to 14 joint point heat maps. Fig. 9 The middle right picture is a schematic diagram of the trunk distribution. There are 13 trunks, and each trunk is a line connecting adjacent joints. Fig. 9 The 13 trunks in the middle right figure correspond to 13 trunk heat maps. It can be understood that the number of joint points used for human posture estimation can be 14, 17, or 18. As long as the human posture can be estimated, there is no restriction on the number of human joint points and the positions of joint coordinate points.

[0131] Specifically, a human body instance posture is represented by a coordinate point set composed of multiple coordinate points, for example, by the coordinates of 14 joint points of the human body instance. It can be understood that in the embodiment of the present application, the human body posture estimation model 44 estimates the human body posture by determining the relative positions of the joint points of the human body instance, that is, the human body posture is estimated by determining the coordinate point set of the human body instance. In other words, step 510 determines the joint points of the human body instance to obtain the human body posture estimation of multiple frames of images.

[0132] In an embodiment of the present application, multiple frames of images with a tag ID generated by a multi-person tracking branch 43 are input into a human posture estimation model 44. The process of the human posture estimation model 44 outputting human joints and torso includes: obtaining a set of joint coordinate points for each human body, and predicting a posture for each human body based on the set of joint coordinate points of the human body. Specifically, for each frame of image, when performing posture estimation on a human body instance with each tag ID, each frame of image can be input into a pre-trained posture estimation model for posture estimation. The posture estimation model 44 can output an initial set of joint coordinate points of the human body and a predicted posture. It can be understood that the posture estimation model is trained using a large-scale set of posture training samples with human joint points annotated, so that the model can predict the human posture within the bounding box of the human body through the set of joint coordinate points of the human body.

[0133] Step 512: The optical flow smoothing branch 45 corrects the initial posture key points of the human body instances in the multi-body images based on the position difference data between the multi-body images and the previous frame images of the multi-body images, and the position difference data between the multi-body images and the subsequent frame images of the multi-body images to obtain the detected posture key points.

[0134] In an embodiment of the present application, in order to further overcome the missed frames and dropped frames that occur during the posture estimation process and reduce the tracking missed rate of the human posture estimation of the video to be processed, the optical flow smoothing branch 45 corrects the initial posture key points of the human body instances in the multiple human body images based on the position difference data between the multiple human body images and the previous frame images of the multiple human body images, and the position difference data between the multiple human body images and the subsequent frame images of the multiple human body images to obtain the detected posture key points, wherein the position difference data between the multiple human body images and the subsequent frame images of the multiple human body images include the position difference of the human body instances in the multiple human body images in the multiple human body images and the subsequent frame images, and obtains the posture of the detected human body instances. It can be understood that the smoothing processing is performed on the joint coordinate points of the same human body in different frames to obtain the posture of the detected human body instance in the area where the human body is located, that is, the detected coordinate point set of the human body joint points.

[0135] It can be understood that in the embodiment of the present application, if the same ID exists in the human body instance in the previous frame and the next frame, and their confidence scores are higher than a predetermined threshold, then the initial joint points of the human body instance output by the human body posture estimation model 44 in the current frame are subjected to optical flow smoothing in the above step 510, specifically, the coordinate points in the coordinate point set of these joint points are smoothed to obtain the detected joint coordinate point set of each human body instance, that is, the position of the detected joint point of each human body instance in the current frame is obtained. Among them, the relative position of the detected joint points of a human body instance in the embodiment of the present application is the joint coordinate point set optimized by optical flow smoothing. Among them, the detected joint coordinate point set of a human body instance obtained by the optical flow smoothing branch 45 is used for the final human body posture estimation according to the joint coordinate point set detected by the human body instance.

[0136] Specifically, the following formula is used to take the optical flow smoothing processing of the joint coordinate point set corresponding to the human instance with identification information Idi in the t-th frame multi-human image in the video as an example to illustrate that the optical flow smoothing branch 45 in the embodiment of the present application performs optical flow smoothing processing on the human joint coordinate point set obtained by the human posture estimation model 44. Figure 8 As shown, the t-th frame image passes through the human body pose estimation model 44 to output the image pose t, the t-1-th frame image passes through the human body pose estimation model 44 to output the image pose t-1, and the t+1-th frame image passes through the human body pose estimation model 44 to output the image pose t+1. It can be understood that the initial joint coordinate point set of the human body instance in the image pose t-1 is combined with the optical flow from the t-1 frame to the t-th frame to predict the joint coordinate point set of the human body instance in the t-th frame, and the initial joint coordinate point set of the human body instance in the image pose t+1 is combined with the optical flow from the t-th frame to the t+1 frame to predict the joint coordinate point set of the human body instance in the t-th frame. The joint coordinate point set predicted by the image pose t-1, the joint coordinate point set predicted by the image pose t+1, and the joint coordinate point set of the image pose t are weighted to generate the detection joint coordinate point set Final pose t. It can be understood that the detection joint coordinate point set is used for human body pose estimation in the embodiment of the present application.

[0137] Specifically, for example, Fig.10 Schematic diagram of the coordinates of the human joint points detected by the human instance IDi in the t-th frame image. Fig.10 As shown, taking the detected human joint point coordinate set obtained by the human instance IDi as an example, for example, the joint coordinate point set of the human body detected for the human body instance IDi of the t-th frame image is is a set of joint coordinate points containing 14 coordinate points, namely head A (x1′, y1′), neck B (x2′, y2′), left shoulder C (x3′, y3′), right shoulder D (x4′, y4′), left elbow E (x5′, y5′), right elbow F (x6′, y6′), left hand G (x7′, y7′), right hand H (x8′, y8′), left waist K (x9′, y9′), right waist L (x10′, y10′), right elbow F (x11′, y12′), left hand G (x12′, y13′), right hand H (x13′, y14′), left waist K (x14′, y15′), right waist L (x15′, y16′), left elbow E (x16′, y17′), right elbow F (x17′, y18′), left hand G (x18′, y19′), right hand H (x19′, y20′), left waist K (x11′, y11′), right waist L (x11′, y15′), left elbow E (x11′, y11′), right elbow F (x12′, y12′), left hand G (x13′, y13′), right hand H (x14′, y15′), left waist K (x15′, y15′), right waist L (x15′, 10 ′,y 10 ′) Left knee O(x 11 ′,y 11 ′)Right knee P(x 12 ′,y 12 ′)Left foot Q(x 13 ′,y 13 ′)Right foot R(x 14 ′,y 14 ′). Detected joint coordinate point set Calculated by formula 3:

[0138]

[0139] In the formula, The t in represents the tth frame, and i represents the human instance Idi.

[0140] β represents The weight coefficient synthesized between them is an empirical parameter.

[0141] Represents the set of joint coordinate points of the human body of human instance ID3 in the t-th frame image predicted based on the optical flow from the t-1th frame to the tth frame.

[0142] Represents the set of joint coordinate points of the human body of human instance ID3 in the t-th frame image predicted based on the optical flow from the t-th frame to the t+1-th frame.

[0143] Represents the initial joint coordinate point set of the human body of human instance ID3 in the t-th frame image output by the pose estimation model.

[0144] The joint coordinate point set of the human body of the t-th frame image of the human body instance ID3 predicted by the optical flow from the t-1th frame to the tth frame Calculated by formula 4:

[0145]

[0146] In the formula, Where t-1 represents the t-1th frame image, and i represents the i-th human body.

[0147] Represents the initial joint coordinate point set of the human body of human instance ID3 in the t-1th frame image output by the pose estimation model.

[0148] F t-1→t Represents the optical flow of the joint coordinate points of the human body from the t-1th frame to the tth frame of human instance ID3.

[0149] The joint coordinate point set of the human body of the t-th frame image of human instance ID3 predicted by the optical flow from frame t to frame t+1 By public

[0150] Formula 5 calculates:

[0151]

[0152] In the formula, Where t+1 represents the t+1th frame image, and i represents the i-th human body.

[0153] Represents the initial joint coordinate point set of the human body of human instance ID3 in the t+1th frame image output by the pose estimation model.

[0154] F t→t+1 Represents the optical flow of the posture coordinate points of the human body instance ID3 from frame t to frame t+1.

[0155] It can be understood that the postures of human instances in multiple human images are recognized based on the detected human joint points in the multiple human images.

[0156] In addition, it should be noted that, in the embodiment of the present application, based on the identification information corresponding to the detected human body bounding box of the human body instance in each frame of the multi-body image, and the posture of the human body instance, human body instance tracking is performed in multiple frames of multi-person images. It can be understood that by extracting the deep appearance features of the human body instance in combination with the position information of the human body instance, a unique ID is assigned to each human body instance. On the one hand, in different frames, the same human body instance can be determined by confirming the same appearance features and position information of the human body instance. On the other hand, different human body instances can be distinguished in one frame of image by confirming different deep appearance features and position information of the human body instance. Therefore, a more accurate human body posture is determined by optical flow smoothing of multiple frames of images, so that multi-person tracking can be achieved in multiple frames of images, especially tracking of newcomers and tracking of people who leave the screen halfway.

[0157] In the posture recognition solution of the present application, the human body in the multi-human image is detected by the human body detection model 41 to generate the human body boundary box. Specifically, the function and training process of the model are as follows:

[0158] 1) Training purpose of human body detection model 41

[0159] The embodiment of the present application uses a human body detection model 41 to conduct a test experiment on a video to be detected in a crowded scene. The performance of the human body detection model 41 is tested by two indicators: average precision (AP) and MMR. Among them, AP reflects the accuracy and recall rate of the detection result, and the value of MMR is between 0.01-100. MMR refers to the logarithmic average loss rate of false positives per frame image (False Positive Per Image, FPPI). MMR is very sensitive to false positives (FP), especially FP with high confidence will seriously damage the MMR ratio. In the embodiment of the present application, the larger the AP and the smaller the MMR, the better the performance of the human body detection model 41.

[0160] 2) Selection of model framework for human body detection model 41

[0161] In the prior art, for human instance detection in a video to be detected in a crowded scene, the detection framework in the human detection model 41 can be a one-stage detection framework, such as an SSD framework, a YOLO framework, etc., or a two-stage framework, wherein the one-stage detection framework detects human body recognition and human body positioning together, can run in real time, has a fast recognition speed, and has a lower accuracy than the two-stage framework. The two-stage detection framework divides human body recognition and human body positioning into two steps, which are completed separately, and the recognition accuracy is high.

[0162] Therefore, in an embodiment of the present application, for human instance detection in a video to be detected in a crowded scene, a two-stage framework is adopted, such as a cascade-region convolutional neural network architecture (cascade RCNN), a faster-region convolutional neural network architecture (faster RCNN), etc. Among them, the backbone network of the detection framework can be a ResNet152 network, a ResNeXt101 network, or a SeNet154 network.

[0163] The frame selection results in the human detection model 41 are evaluated in Table 3:

[0164] Table 3 gives the experimental results of human detection model 41 using different backbone networks and detection frameworks and combining with Feature-Pyramid Networks (FPN) for human detection on the HIE validation set. Among them, any human detection model 41 composed in the table is obtained by training the training sample set for the HIE dataset. The "+" in the table represents the component (or component) of the human detection model 41. For example, ResNet152+Faster RCNN+FPN means that the detection model consists of the backbone network ResNet50, the framework Faster RCNN and FPN. It should be noted that the baseline model is the human detection model 41 with the Faster RCNN framework of ResNet50. The other detection models in the table search for hyperparameters on the baseline model and then apply it to a larger backbone or framework.

[0165] As can be seen from Table 3, the performance of the detection model composed of the backbone network ResNet152 or ResNeXt101 and the framework Cascade RCNN and FPN is significantly improved compared with the baseline model. For example, the detection model composed of the backbone network ResNet152 and the framework CascadeRCNN and FPN is 9.38AP higher and 11.46MMR lower than the baseline model. The detection model composed of the backbone network ResNeXt101 and the framework Cascade RCNN and FPN is 9.38AP higher and 11.46MMR lower than the baseline model. First, the performance of the model increased by 5.64AP and 5.84MMR lower by adding FPN. Secondly, in the selection of the model backbone network: ResNet152 has a significant improvement in model performance compared to ResNet50 or SENet154. ResNeXt101 has a significant improvement in performance compared to SENet154. Thirdly, in the selection of the model framework network, Cascade RCNN has a 1.79AP improvement and a 2.33MMR reduction compared to FasterRCNN.

[0166]

[0167] 2) Selection of training sample dataset for human detection model 41

[0168] In an embodiment of the present application, for human body detection in a video to be detected in a crowded scene, a pre-trained human body detection model 41 is used to detect human body instances in an image. The human body training sample set used to train the human body detection model 41 includes human body bounding boxes marked with human body instances, wherein each human body instance is annotated with a full-body bounding box of the human body, and the human body training sample set contains many images of crowded scenes. The data in the human body training sample set is randomly scattered, and the sample set is divided into a training set, a verification set, and a test set according to a certain ratio. Specifically, based on the human body detection model 41, the human body detection model 41 is trained using the videos of human body instances in the training set and the data of the human body instance bounding boxes marked therein to obtain multiple human body detection intermediate models; each human body detection intermediate model is verified using a video verification set, and the human body detection intermediate model with the best verification result is extracted; the human body detection intermediate model is tested using a video test set (to prevent overfitting), and when the test result matches the verification result (the difference between the test result and the verification result is less than a preset threshold), the human body detection intermediate model is output as the human body detection model 41.

[0169] The selection and verification results of the training sample set used to train the human detection model 41 are evaluated in Table 4 below:

[0170] Table 4 shows the performance results of human detection on the HIE validation set by training human detection model 41 with different training sample sets, where human detection model 41 is the baseline model, and the baseline model is human detection model 41 with the FasterRCNN framework of ResNet50. The "+" in the table indicates the dataset included in the training sample set. For example, HIE+CityPerson indicates that the training sample set used to train the baseline model includes the HIE dataset and the CityPerson dataset. allextra data represents the combined dataset of the COCO dataset, the CityPerson dataset, the CrowndHuman dataset, and the self-collected dataset.

[0171] As can be seen from Table 4, the training sample set based on the HIE dataset: adding the CrowndHuman dataset, the COCO dataset, and the CityPerson dataset improves the detection performance by 16.85AP and reduces 15.38MMR. Adding the CrowndHuman dataset and the self-collected dataset improves the detection performance by 19.39AP and reduces 18.43MMR, and adding the all extra data dataset improves the detection performance by 19.68AP and reduces 18.84MMR. It can be understood that the human body detection performance of the baseline model trained by the training sample set composed of the HIE dataset and the all extra data dataset is the best, but compared with the human body detection performance of the baseline model trained by the training sample set composed of the HIE dataset, the CrowndHuman dataset, and the self-collected dataset, the human body detection performance is improved by 0.33AP and reduced by 0.41MMR. The performance has not been significantly improved, but the training time is three times higher due to the merging of the COCO dataset. It can be understood that the training sample set used to train the human detection model 41 in the embodiment of the present application includes the HIE dataset, the CrowndHuman dataset, and the self-collected dataset, weighing the detection performance and training time.

[0172]

[0173] 3) Training details of human body detection model 41

[0174] The detection method of the prior art is to predict a single candidate box for a single human instance. Since the human instances in the detection scene overlap with each other, during the model detection process, a part of the overlapping multiple human instances is likely to be eliminated by the set non-maximum suppression (NMS), and finally only the bounding boxes of the human body corresponding to the remaining human instances are obtained, wherein NMS is used to filter out the human bounding boxes with a high overlap rate (Intersection over Union, IOU) in the detection results of the human detection model 41. The present application applies a method to predict human instances in crowded scenes, called "Crowd-Det". The key idea of ​​Crowd-Det is to use the bounding box of the human body generated by the model as a candidate box, wherein each candidate box generated by the model does not identify a single instance, but predicts a candidate box for the highly overlapping human instances as a whole, and then post-processes the multiple human instances contained in a candidate box, and finally obtains a single human instance to obtain the bounding box of a single human body.

[0175] Specifically, the Crowd-Det algorithm includes at least one of the following implementations. The following takes a candidate box including two or more human instances and a candidate box including person instance A or person instance B as an example for explanation:

[0176] a. EMD loss, which is used to determine which of the two bounding boxes of human instances A and B corresponds to respectively. Specifically, for example, the candidate boxes are generated by the convolutional neural network to generate bounding boxes of two human instances, namely bounding box 1 and bounding box 2. Assume that bounding box 1 is the bounding box of human instance A and bounding box 2 is the bounding box of human instance B, and calculate the EMD loss. Assume that bounding box 2 is the bounding box of human instance A and bounding box 1 is the bounding box of human instance B, and calculate the EMD loss. The bounding boxes corresponding to human instance A and human instance B with the smallest EMD loss values ​​are used as output results.

[0177] b. Optimization module, used for secondary prediction of bounding boxes. Specifically, in the embodiment of the present application, the bounding box of human instance A and the bounding box of human instance B obtained by the Crowd-Det algorithm through the EMD loss mechanism are input into the optimization module together with the prediction box generated by the model. The optimization module generates two bounding boxes of human bodies, and uses EMD loss to determine the bounding boxes of the human bodies corresponding to human instance A and human instance B respectively.

[0178] c. Set NMS is used to insert an additional judgment to check whether the two boxes are from the same candidate box before the bounding box of one person suppresses the bounding box of another person in the NMS mechanism each time. If so, the suppression is skipped. It can be understood that the above-mentioned suppression of the bounding box of one person by the bounding box of another person in the NMS mechanism means that: in the bounding boxes of the two overlapping (such as high overlap) human bodies respectively corresponding to the bounding boxes of the front human body suppresses the bounding box of the rear occluded human body, resulting in the elimination of the bounding box of the rear occluded human body. For example, in order to prevent the bounding box of the human body predicted by the overlapping person instance A or person instance B from being eliminated by NMS, the original NMS is simply improved to obtain the above-mentioned "Set NMS" mechanism, that is, each time when the bounding box of one person overlaps with the bounding box of another person, it is judged whether the bounding boxes of the two human bodies are from the same candidate box; if so, the NMS suppression is skipped.

[0179]

[0180] Table 5 shows the human detection model 41 as the baseline model. The baseline model is trained on the training sample set and the human detection test verification results are performed on the HIE validation set. Among them, the baseline model is the human detection model 41 with the Faster RCNN framework of ResNet50. The training sample set includes the combined dataset of the HIE dataset, CityPerson dataset, COCO dataset, CrowndHuman dataset, and self-collected dataset.

[0181] As shown in Table 5, by adding crowd-Det's emd loss processing to the baseline model, the detection performance is improved by 0.37AP and reduced by 1.97MMR. By adding crowd-Det's emd loss processing and refine module processing to the baseline model, the detection performance is improved by 0.6AP and reduced by 4.32MMR. By adding crowd-Det's emd loss processing, refine module processing and set NMS processing to the baseline model, the detection performance is improved by 0.69AP and reduced by 5.54MMR. It can be understood that according to the results in the table, the Crowd-Det algorithm does improve the performance of crowded detection.

[0182] 4) KD regularization of human detection model 41

[0183] In an embodiment of the present application, during the process of human body detection performed on each frame of an image by the human body detection model 41, the output layer of the human body detection model 41 outputs the candidate box corresponding to the human body in the image, the possible categories of the human body in the candidate box, and the probabilities corresponding to the categories. The human body detection model 41 selects the bounding box with the highest category probability of the human body. In order to reduce the overfitting of the human body by the human body detection model 41 during the detection process, knowledge distillation (KD) regularization is additionally added during the training process of the human body detection model 41. Specifically, in the model training of the human body detection model 41, in addition to the conventional cross entropy (the first term in the formula below) as the loss function, KD regularization provides an additional regularization formula (the second term in the formula below). For example, during training, if Fig.11 As shown, for the human instance in the figure, the output layer of the human detection model 41 may output categories and probability distributions of categories with a probability of 0.5 for humans, 0.4 for trees, and 0.1 for chairs. Normal training only uses the cross entropy of the probability distribution and a one-hot label as the loss function. KD regularization also provides a virtual teacher model's probability distribution and the KL divergence of the model's probability distribution as an additional loss function. KD regularization can prevent the model from over-relying on pre-labeled labels when outputting categories and probability distributions in the result output layer, making the categories and probability distributions output by the human detection model 41 more accurate.

[0184] The mathematical formula for KD regularization provided in this application is as follows:

[0185] L reg =(1-α)H(q,p)+αD KL (p d τ ,p τ )

[0186] Among them, H is the cross entropy, p is the probability of the category output by the detection model, q is the ground truth of the category, and D KL is KL divergence, p τ is the probability distribution of the output category of the detection model after being softened by temperature t, pd τ It is a manually designed probability distribution, and its distribution formula is as follows:

[0187]

[0188] Finally, based on the above analysis, two human detection models 41 were trained using the HIE dataset, the crowdhuman dataset and the self-collected dataset, denoted as human detection model 1 and human detection model 2. Among them, the detection performance verified on the HIE validation set: the backbone network ResNet152 of the human detection model 1, the framework selects cascade RCNN combined with FPN, and the bounding box of the human body generated in the output layer of the model is processed by crowd-Det and KD regularization, and the detection performance is 83.21AP. The backbone network ResNeXt101 of the human detection model 2, the framework selects cascade RCNN combined with FPN, and the bounding box of the human body generated in the output layer of the model is processed by crowd-Det and KD regularization, and the detection performance is 83.78AP. The detection model after the human detection model 1 and the human detection model 2 are fused with a weight of 1:1 is used as the human detection model 41 of the embodiment of the present application.

[0189] In the action recognition solution of the present application, the human body posture estimation model 44 is used to perform posture recognition on the human body instance within the human body boundary box, generate human body joint points, and perform human body posture estimation based on the relative positions of the joint points. Specifically, the functions and training process of the model are as follows:

[0190] 1) Training purpose of human pose estimation model 44

[0191] In the embodiment of the present application, the human posture estimation model 44 is trained based on the training sample set of posture estimation, and the detection performance of the human posture model is determined by the evaluation index m-AP. Among them, mAP reflects the accuracy and recall rate of human posture, and mAP is the average precision. The larger the value of mAP, the more accurate the detection performance of the human posture estimation model 44.

[0192] In the embodiment of the present application, Table 6 shows the test results of the human posture estimation model 44 in different scenes. It can be seen from Table 6 that significant performance is achieved in both conventional videos and high-resolution videos. For example, the AP of the conventional video "hm_in_passage" and the high-resolution video "hm_in_crossroad" are 90.14% and 75.76%, respectively. The effect is poor in crowded and low-quality videos. For example, in the super crowded video "hm_in_dining_room2", the AP is 25.94%.

[0193]

[0194] 2) Selection of training sample dataset for human pose estimation model 44

[0195] In the embodiment of this application, the training sample set contains approximately 660,500 annotated poses. Considering the large-scale similar data due to frame-by-frame annotations, it is necessary to collect additional datasets to improve performance. The additional training datasets we use come from two aspects:

[0196] On the one hand, we integrated three mainstream pose estimation datasets into the training data, such as the COCO dataset, the MPII dataset, and the AI ​​Challenger dataset. Among them, the COCO dataset contains 250,000 human instances with 17 key points. The MPII dataset consists of 25K images, including more than 40K personal instances and 16 annotated body joints. The AI ​​Challenger dataset consists of approximately 700K personal instances and 14 annotated body joints. Since the annotated key points in these data sets do not completely overlap with the official labels, for each data set, in the embodiments of the present application, the respective overlapping key points are used for training.

[0197] On the other hand, a self-collected dataset with similar scenes is merged into our training set. The number of poses in the self-collected dataset does not exceed 30K, which is much less than the training data of the HIE dataset.

[0198] In an embodiment of the present application, a posture training sample set is used to train a human posture model. Specifically, the height or width of the bounding box of the human body (of the posture training sample set) is expanded to a fixed aspect ratio of 4:3, and then the box is cropped from the image and adjusted to a fixed size of 256×192 or 384×288. Data expansion includes random rotation ([-45°, 45°]), random scale (0.65, 1.35) and flipping. Half-body data enhancement is also used to train the model, wherein half-body data enhancement refers to pre-dividing the joints of the human body instances in the posture training sample set into upper body joints and lower body joints, and then randomly selecting the joints of the human body instances or the upper body joints of the human body instances or the lower body joints of the human body instances during model training to train the human posture estimation model 44.

[0199] 3) Test details of human pose estimation model 44

[0200] In the embodiment of the present application, a human pose estimation test is performed on a video of a crowded scene. On the one hand, a multi-scale evaluation is used during the test. Specifically, we rescale the bounding box of the human body to obtain the bounding box of a new human body with different scales, and then crop it to the original size and flip it to obtain the corresponding box after flipping. The generated box is fed into the network to generate a heat map. We average these heat maps and search for the highest response to obtain the location of the key point. The scale factors used are 0.7, 1.0, and 1.3. In addition, it is easy to suffer from redundant and erroneous bounding boxes of human bodies in complex and crowded scenes. We apply pose NMS to eliminate similar and low-confidence redundancy. On the other hand, multi-scale input is used during the test. "Multi-scale input" means training multiple sets of parameters by changing the length and width of the input image and fusing its results during the test. If "multi-scale input" is used, the result is obtained by fusing the input sizes of 256×192 and 384×288; if "multi-scale input" is not used, the input size is only 256×192.

[0201] Table 7 gives the experimental performance indicators of different components of posture estimation in the training and testing process of this application, among which the test results are tested and verified in videos of crowded scenes. It can be seen from Table 7 that the posture estimation model adopts the HRNet network, trains the posture estimation model through the HIE data set, and the performance index obtained by the test verification is 52.45%. The posture estimation model adopts the HRNet network, trains the posture estimation model through the HIE data set, adds multi-scale evaluation processing during the test process, and obtains a performance index of 52.9% for test verification. The posture estimation model adopts the HRNet network, trains the posture estimation model through the posture training sample set, and obtains a performance index of 53.82% for test verification. The posture estimation model adopts the HRNet network and the SimpleNet network fusion for human posture estimation, trains the posture estimation model through the posture training sample set, adds multi-scale evaluation processing during the test process, and obtains a performance index of 55.52% for test verification. The posture estimation model adopts the HRNet network and the SimpleNet network fusion for human posture estimation, trains the posture estimation model through the posture training sample set, adds multi-scale evaluation and multi-scale input processing during the test process, and obtains a performance index of 56.04% for test verification. The pose estimation model uses the fusion of HRNet network and SimpleNet network for human pose estimation. The pose estimation model is trained through the pose training sample set. Multi-scale evaluation and multi-scale input processing are added during the test process. The generated joint points are smoothed by optical flow. The test verification obtains a performance index of 56.34%. Among them, the pose training sample set includes HIE dataset, COCO dataset, MPII dataset, AI Challenger dataset and self-collected dataset.

[0202]

[0203] Fig.12 According to some embodiments of the present application, a structural block diagram of a human posture estimation device based on video is shown. Fig.12 As shown, the video-based human posture estimation device 1200 includes:

[0204] An image acquisition module (1202) is used to acquire multiple frames of multiple human body images in a video, wherein each frame of the multiple human body image includes multiple human body instances;

[0205] A human body detection module (1204), used to generate an initial human body bounding box of a human body instance in each frame of the multi-human body image;

[0206] A human body correction module (1206) is used to correct the initial human body bounding box of the multi-human body image to obtain a detected human body bounding box according to the position difference data between the multi-human body image and the previous frame image of the multi-human body image, wherein the position difference data includes the position difference between the human body instance in the multi-human body image in the previous frame image and the multi-human body image;

[0207] The posture estimation module (1208) is used to identify the postures of human instances in multiple human images based on the detected human body bounding boxes of the multiple human images.

[0208] Understandably, Fig.12 The video-based human posture estimation device 1200 shown corresponds to the video-based human posture estimation method provided in the present application, and the technical details in the specific description of the video-based human posture estimation method provided in the present application are still applicable to the present invention. Fig.12 The video-based human posture estimation device 1200 is shown in the figure. For a detailed description, please refer to the above text and will not be repeated here.

[0209] Fig.13 According to some embodiments of the present application, a structural block diagram of a human posture estimation device based on video is shown. Fig.13 As shown, the video-based human posture estimation device 1300 includes:

[0210] An image acquisition module (1302) is used to acquire multiple frames of multiple human body images in a video, wherein each frame of the multiple human body image includes multiple human body instances;

[0211] A human body detection module (1304), used to generate a detected human body bounding box for a human body instance in each frame of the multi-human body image;

[0212] A posture detection module (1306), configured to generate initial posture key points of human instances in each frame of the multi-human image based on the detected human body bounding box of the multi-human image;

[0213] A posture correction module (1308) corrects the initial posture key points of the human body instances in the multiple human body images to obtain detection posture key points based on the position difference data between the multiple human body images and the previous frame images of the multiple human body images, and the position difference data between the multiple human body images and the next frame images of the multiple human body images, wherein the position difference data between the multiple human body images and the previous frame images include the position difference of the human body instances in the multiple human body images and the previous frame images, and the position difference data between the multiple human body images and the next frame images include the position difference of the human body instances in the multiple human body images and the next frame images;

[0214] A posture estimation module (1310) is used to identify the postures of human instances in the multiple human images based on the detected posture key points in the multiple human images.

[0215] Understandably, Fig.13 The video-based human posture estimation device 1300 shown corresponds to the video-based human posture estimation method provided in the present application, and the technical details in the specific description of the video-based human posture estimation method provided in the present application are still applicable to the present invention. Fig.13 The video-based human posture estimation device 1300 is shown in the figure. For a detailed description, please refer to the above text and will not be repeated here.

[0216] Fig.14 The figure shows a block diagram of an electronic device according to an embodiment of the present application, and the electronic device may be the above-mentioned real video processing device 300. Fig.14 An example electronic device 1400 is schematically illustrated in accordance with various embodiments. In one embodiment, the electronic device 1400 may include one or more processors 1404, a system control logic 1408 coupled to at least one of the processors 1404, a system memory 1412 coupled to the system control logic 1408, a non-volatile memory (NVM) 1416 coupled to the system control logic 1408, and a network interface 1420 coupled to the system control logic 1408.

[0217] In some embodiments, the processor 1404 may include one or more single-core or multi-core processors. In some embodiments, the processor 1404 may include any combination of general-purpose processors and special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In embodiments where the electronic device 1400 uses an eNB (Evolved Node B) or RAN (Radio Access Network) controller, the processor 1404 may be configured to execute various embodiments, such as Figure 3 One or more of the multiple embodiments shown. For example, the processing 1404 can be used to perform the above-mentioned video-based human pose estimation method, such as generating a human body bounding box and joint points of a human body instance in a multi-frame multi-human body image, and obtaining a human body bounding box and joint points based on optical flow correction detection between adjacent multi-frame multi-human body images.

[0218] In some embodiments, system control logic 1408 may include any suitable interface controller to provide any suitable interface to at least one of processors 1404 and / or any suitable device or component in communication with system control logic 1408 .

[0219] In some embodiments, the system control logic 1408 may include one or more memory controllers to provide an interface to the system memory 1412. The system memory 1412 may be used to load and store data and / or instructions. In some embodiments, the memory 1412 of the system 1400 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).

[0220] NVM / memory 1416 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, NVM / memory 1416 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as at least one of a HDD (Hard Disk Drive), a CD (Compact Disc) drive, and a DVD (Digital Versatile Disc) drive.

[0221] NVM / storage 1416 may include a portion of storage resources on a device on which electronic device 1400 is installed, or it may be accessible by the device but not necessarily a portion of the device. For example, NVM / storage 1416 may be accessed over a network via network interface 1420.

[0222] In particular, system memory 1412 and NVM / storage 1416 may include, respectively, a temporary copy and a permanent copy of instructions 1424. Instructions 1424 may include instructions that, when executed by at least one of processors 1404, cause electronic device 1400 to implement the following: Figure 1 In some embodiments, instructions 1424, hardware, firmware, and / or software components thereof may additionally / alternatively be placed in system control logic 1408, network interface 1420, and / or processor 1404.

[0223] The network interface 1420 may include a transceiver for providing a radio interface for the electronic device 1400, thereby communicating with any other suitable device (such as a front-end module, an antenna, etc.) through one or more networks. In some embodiments, the network interface 1420 may be integrated with other components of the electronic device 1400. For example, the network interface 1420 may be integrated with at least one of the processor 1404, the system memory 1412, the NVM / storage 1416, and a firmware device (not shown) having instructions. When at least one of the processors 1404 executes the instructions, the electronic device 1400 implements the following. Figure 5 The method shown.

[0224] The network interface 1420 may further include any suitable hardware and / or firmware to provide a multiple-input multiple-output radio interface. For example, the network interface 1420 may be a network adapter, a wireless network adapter, a telephone modem and / or a wireless modem.

[0225] In one embodiment, at least one of the processors 1404 may be packaged together with logic for one or more controllers of the system control logic 1408 to form a system in package (SiP). In one embodiment, at least one of the processors 1404 may be integrated on the same die with logic for one or more controllers of the system control logic 1408 to form a system on a chip (SoC).

[0226] The electronic device 1400 may further include an input / output (I / O) device 1432. The I / O device 1432 may include a user interface to enable a user to interact with the electronic device 1400; the design of the peripheral component interface enables the peripheral components to interact with the electronic device 1400. In some embodiments, the electronic device 1400 further includes a sensor for determining at least one of an environmental condition and location information related to the electronic device 1400.

[0227] In some embodiments, the user interface may include, but is not limited to, a display (e.g., an LCD display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (e.g., a still image camera and / or a video camera), a flashlight (e.g., an LED flash), and a keyboard.

[0228] In some embodiments, the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.

[0229] In some embodiments, the sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units. The positioning unit may also be part of or interact with the network interface 1420 to communicate with components of a positioning network (e.g., global positioning system (GPS) satellites).

[0230] According to an embodiment of the present application, Fig.15 FIG. 1 shows a block diagram of a SoC (System on Chip) 1500. Fig.15 In the , similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SoCs. Fig.15In the embodiment, SoC 1500 includes: an interconnect unit 1550, which is coupled to an application processor 1510; a system agent unit 1570; a bus controller unit 1580; an integrated memory controller unit 1540; a group or one or more coprocessors 1520, which may include integrated graphics logic, image processors, audio processors, and video processors; a static random access memory (SRAM) unit 1530; and a direct memory access (DMA) unit 1560. In one embodiment, the coprocessor 1520 includes a special-purpose processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high-throughput MIC processor, or an embedded processor.

[0231] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0232] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0233] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0234] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0235] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0236] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0237] It should be noted that in the examples and description of this patent, 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 the process, method, article or 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 device. In the absence of further restrictions, the elements defined by the statement "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements. Although the present application has been illustrated and described with reference to certain preferred embodiments of the present application, it should be understood by those skilled in the art that various changes can be made to it in form and detail without departing from the spirit and scope of the present application.

Claims

1. A method for estimating human posture based on video, characterized in that: include: Acquire multiple frames of multiple human body images in a video, wherein each frame of the multiple human body images includes multiple human body instances; Generate an initial human body bounding box of a human body instance in each frame of the multiple human body images; Based on position difference data between the multiple human body images and a previous frame image of the multiple human body images, correcting an initial human body bounding box of the multiple human body images to obtain a detected human body bounding box, wherein the position difference data includes a position difference between a human body instance in the multiple human body images in the previous frame image and the multiple human body images; Recognize the postures of human instances in the multiple human images based on the detected human bounding boxes of the multiple human images; The method of correcting the initial human body bounding box of the multiple human body images to obtain the detected human body bounding box based on the position difference data between the multiple human body images and the previous frame image of the multiple human body images comprises: The i-th initial human body bounding box in the t-th frame image of the multi-frame multi-human body images is corrected by the following formula to obtain the i-th detected human body bounding box: in, represents the coordinate point set of the i-th initial human body bounding box in the t-1-th frame image in the multi-frame multi-human body image, F t-1→t represents the position difference data between the t-1th frame image and the tth frame image, Indicates that based on F t-1→t The obtained coordinate point set of the i-th predicted human body bounding box in the t-th frame image, represents the coordinate point set of the i-th initial human body bounding box in the t-th frame image, represents the coordinate point set of the i-th detected human body bounding box in the t-th frame image, and α is and The synthetic weight coefficients, i and t are both positive integers.

2. The method according to claim 1, characterized in that The detecting human body bounding boxes based on the multiple human body images and identifying the postures of human body instances in the multiple human body images comprises: Generating initial posture key points of human instances in each frame of the multiple human images based on the detected human body bounding boxes of the multiple human images; Based on the position difference data between the multiple human body images and a previous frame image of the multiple human body images, and the position difference data between the multiple human body images and a subsequent frame image of the multiple human body images, correcting the initial posture key points of the human body instances in the multiple human body images to obtain detection posture key points, wherein the position difference data between the multiple human body images and the subsequent frame image includes the position difference of the human body instances in the multiple human body images in the multiple human body images and the subsequent frame image; The postures of human instances in the multiple human images are recognized based on the detected posture key points in the multiple human images.

3. The method according to claim 2, characterized in that The method of correcting the initial posture key points of the human body instances in the multiple human body images to obtain the detection posture key points based on the position difference data between the multiple human body images and the previous frame images of the multiple human body images, and the position difference data between the multiple human body images and the subsequent frame images of the multiple human body images, comprises: The initial posture key points of the human body instance in the i-th detected human body boundary box in the t-th frame image in the multi-frame multi-human body images are corrected by the following formula to obtain the detection posture key points: in, represents the coordinate point set of the initial posture key points of the human body instance in the i-th detected human body bounding box in the t-1-th frame image in the multi-frame multi-human body image, F t-1→t represents the position difference data between the t-1th frame image and the tth frame image, Based on F t-1→t Obtaining a set of coordinate points of predicted posture key points of the human body instance in the i-th detected human body boundary frame in the t-th frame image; represents a coordinate point set of the initial posture key points of the i-th detected human body instance in the bounding box of the human body in the t+1-th frame image of the multi-frame multi-human body images; F t→t+1 Represents the position difference data between the t-th frame image and the t+1-th frame image; Based on F t→t+1 Obtaining a set of coordinate points of predicted posture key points of the human body instance in the i-th detected human body boundary frame in the t-th frame image; represents the coordinate point set of the detection posture key points of the human instance in the i-th detection human body bounding box in the t-th frame image, and β represents The weight coefficient synthesized between them, i and t are both positive integers.

4. The method according to claim 1, characterized in that: Before the detecting human body bounding boxes based on the multiple human body images recognize the postures of human body instances in the multiple human body images, the method further includes: Identification information corresponding to a detected human body bounding box of a human body instance in the multiple human body images of each frame is generated, wherein one identification information is used to identify a detected human body bounding box of a human body instance.

5. The method according to claim 4, characterized in that The detecting human body bounding boxes based on the multiple human body images and identifying the postures of human body instances in the multiple human body images comprises: Based on the detected human body bounding boxes of the multiple human body images and the identification information of the detected human body bounding boxes, the postures of the human body instances in the multiple human body images are recognized.

6. The method according to claim 4 or 5, characterized in that: The generating of identification information corresponding to the detected human body bounding box of the human body instance in each frame of the multiple human body images includes: Based on the appearance features of the human body instances in the multiple human body images in each frame and the positions in the images, identification information corresponding to the detected human body boundary boxes of the human body instances in the multiple human body images in each frame is generated.

7. The method according to claim 4, characterized in that The method further comprises: Based on identification information corresponding to the detected human body bounding boxes of the human body instances in the multiple human body images of each frame and the postures of the human body instances, human body instance tracking is performed in the multiple human body images.

8. The method according to claim 1, characterized in that: The initial human body bounding boxes of the human body instances in the multiple human body images in each frame are generated by a first neural network model, and the backbone network of the first neural network model includes at least one of the following: ResNet152 network, ResNeXt101 network, and SeNet154 network.

9. The method according to claim 1, characterized in that: The initial posture key points of the human body instances in the multiple human body images in each frame are generated by a second neural network model, and the backbone network of the second neural network model includes at least one of the following: HRNet and SimpleNet.

10. A human posture estimation device based on video, characterized in that: include: An image acquisition module, used to acquire multiple frames of multiple human body images in a video, wherein each frame of the multiple human body images includes multiple human body instances; A human body detection module, used to generate an initial human body bounding box of a human body instance in the multiple human body images in each frame; A human body correction module, configured to correct an initial human body bounding box of the multiple human body images to obtain a detected human body bounding box according to position difference data between the multiple human body images and a previous frame image of the multiple human body images, wherein the position difference data includes a position difference between a human body instance in the multiple human body images in the previous frame image and the multiple human body images; a posture estimation module, configured to identify postures of human instances in the multiple human images based on detected human bounding boxes of the multiple human images; The method of correcting the initial human body bounding box of the multiple human body images to obtain the detected human body bounding box based on the position difference data between the multiple human body images and the previous frame image of the multiple human body images comprises: The i-th initial human body bounding box in the t-th frame image of the multi-frame multi-human body images is corrected by the following formula to obtain the i-th detected human body bounding box: in, represents the coordinate point set of the i-th initial human body bounding box in the t-1-th frame image in the multi-frame multi-human body image, F t-1→t represents the position difference data between the t-1th frame image and the tth frame image, Indicates that based on F t-1→t The obtained coordinate point set of the i-th predicted human body bounding box in the t-th frame image, represents the coordinate point set of the i-th initial human body bounding box in the t-th frame image, represents the coordinate point set of the i-th detected human body bounding box in the t-th frame image, and α is and The synthetic weight coefficients, i and t are both positive integers.

11. A human posture estimation device based on video, characterized in that: include: An image acquisition module, used to acquire multiple frames of multiple human body images in a video, wherein each frame of the multiple human body images includes multiple human body instances; A human body detection module, used to generate a detected human body bounding box of a human body instance in each frame of the multiple human body images; A posture detection module, configured to generate initial posture key points of human instances in each frame of the multiple human images based on the detected human body bounding boxes of the multiple human images; A posture correction module, based on the position difference data between the multiple human images and a previous frame image of the multiple human images, and the position difference data between the multiple human images and a subsequent frame image of the multiple human images, corrects the initial posture key points of the human body instances in the multiple human images to obtain detection posture key points, wherein the position difference data between the multiple human images and the previous frame image includes the position difference of the human body instances in the multiple human images and the previous frame image, and the position difference data between the multiple human images and the subsequent frame image includes the position difference of the human body instances in the multiple human images and the subsequent frame image; A posture estimation module, configured to identify postures of human instances in the multiple human images based on detected posture key points in the multiple human images; The posture correction module corrects the initial human body bounding box of the multi-human body image to obtain a detected human body bounding box based on the position difference data between the multi-human body image and the previous frame image of the multi-human body image, including: The i-th initial human body bounding box in the t-th frame image of the multi-frame multi-human body images is corrected by the following formula to obtain the i-th detected human body bounding box: in, represents the coordinate point set of the i-th initial human body bounding box in the t-1-th frame image in the multi-frame multi-human body image, F t-1→t represents the position difference data between the t-1th frame image and the tth frame image, Indicates that based on F t-1→t The obtained coordinate point set of the i-th predicted human body bounding box in the t-th frame image, represents the coordinate point set of the i-th initial human body bounding box in the t-th frame image, represents the coordinate point set of the i-th detected human body bounding box in the t-th frame image, and α is and The synthetic weight coefficients, i and t are both positive integers.

12. A readable medium, characterized in that The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the video-based human posture estimation method according to any one of claims 1 to 9.

13. An electronic device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the electronic device, and A processor, configured to execute the video-based human posture estimation method according to any one of claims 1 to 9.