WO2022110453A1 - Running posture recognition method and apparatus, and computer device - Google Patents

Running posture recognition method and apparatus, and computer device Download PDF

Info

Publication number
WO2022110453A1
WO2022110453A1 PCT/CN2020/139929 CN2020139929W WO2022110453A1 WO 2022110453 A1 WO2022110453 A1 WO 2022110453A1 CN 2020139929 W CN2020139929 W CN 2020139929W WO 2022110453 A1 WO2022110453 A1 WO 2022110453A1
Authority
WO
WIPO (PCT)
Prior art keywords
key point
point pair
current
pair
running
Prior art date
Application number
PCT/CN2020/139929
Other languages
French (fr)
Chinese (zh)
Inventor
栗晓燕
薇静初
Original Assignee
广州源动智慧体育科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州源动智慧体育科技有限公司 filed Critical 广州源动智慧体育科技有限公司
Publication of WO2022110453A1 publication Critical patent/WO2022110453A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/20Movements or behaviour, e.g. gesture recognition

Definitions

  • the present application relates to the technical field of gesture recognition, and in particular, to a method, device and computer equipment for recognition of running gestures.
  • Existing gesture recognition for users running on a treadmill usually extracts the key points of the human body with the help of computer vision, and further analyzes the human posture formed by the key points (such as outputting images through a low-cost common RGB camera, and analyzing the image Extract the key points of the human skeleton; or capture the depth information of the human body through three-dimensional sensors such as Kinect (somatosensory sensor), so as to further model the human body and obtain posture information).
  • Kinect somatosensory sensor
  • At least some embodiments of the present application provide a running posture recognition method, apparatus and computer equipment, to at least solve the existing technical problem of low posture recognition accuracy when a user is running on a treadmill.
  • a method for identifying a running posture includes: collecting a lower body image of a user when running, the lower body image including a foot image; calling an underlying skeleton extraction algorithm to parse the lower body image, and obtaining Multiple key point heatmaps, a single keypoint heatmap corresponds to a single keypoint; decode each keypoint heatmap to obtain the keypoint coordinates corresponding to each keypoint heatmap; generate the current keypoint pair according to the keypoint coordinates , and compare the current key point pair with the pre-built benchmark key point pair, and analyze the running posture of the user.
  • a running posture recognition device including: a collection module, configured to collect images of the lower body of the user when running, and the images of the lower body include images of feet; an analysis module, configured as Call the underlying skeleton extraction algorithm to parse the lower body image, and obtain multiple key point heat maps.
  • a single key point heat map corresponds to a single key point;
  • the decoding module is set to decode each key point heat map and obtain each key point heat map.
  • the analysis module is set to generate the current key point pair according to the coordinates of each key point, and compare the current key point pair with the pre-built benchmark key point pair, and analyze the running posture of the user.
  • the parsing module includes: an extraction unit, which is set to input the lower body image into an encoder for encoding, and extracts to obtain semantic features.
  • the encoder is composed of multiple depthwise separable convolutions and one hole convolution;
  • the prediction unit is set to Through the superposition of convolution layers, multiple rough key point heat maps are predicted from semantic features;
  • the refining unit is set to refine each rough key point heat map to obtain each key point heat map.
  • the refining unit includes: extracting subunits, which are set to pool the rough key point heatmap through the hollow space pyramid, and extract the secondary keypoint heatmap; refine the subunit, which is set to be based on global spatial attention The mechanism refines the secondary key point heat map to obtain the key point heat map.
  • the decoding module includes: a first calculation unit, set to use the wave peak point method to calculate the heatmap of each key point respectively, to obtain the Gauss point peak value corresponding to the heatmap of each key point; a judgment unit, set to judge Whether the corresponding Gauss point peak value of each key point heat map is one; mark unit, set to if the corresponding Gauss point peak value of each key point heat map is one, the coordinate of the Gauss point peak value is taken as the corresponding key point coordinate .
  • the decoding module further includes: a screening unit, configured to select a first Gaussian point peak and a second Gaussian point peak from the plurality of Gaussian point peaks if there are multiple Gaussian point peaks corresponding to each of the key point heatmaps.
  • Point peak the first Gauss point peak is the largest Gauss point peak, and the second Gauss point peak is only smaller than the first Gauss point peak;
  • the second calculation unit is set to calculate the coordinates of the first Gauss point peak and the second Gauss point peak. The distance between the coordinates; the adjustment unit is set to offset and adjust the coordinate values of the first Gaussian point peak in the X direction and the Y direction according to the distance, and obtain the key point coordinates corresponding to the key point heat map.
  • the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates
  • the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair
  • the current key point pair includes the current leg shape.
  • the running posture includes the running leg shape and the running foot shape
  • the analysis module includes: a construction unit, which is set to construct the current leg shape key point pair according to the coordinates of each leg shape key point, and according to each leg shape key point pair.
  • the coordinates of the key points of the foot shape construct the current foot shape key point pair; the comparison unit is set to compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction. ; Compare the key point pair of the current foot shape with the preset key point pair of the leg shape, and calculate the second included angle information in the vertical direction; the analysis unit is set to be based on the first included angle information and the first angle threshold.
  • the running leg shape is obtained by analysis, and the running foot shape is obtained by analyzing the second included angle information and the second angle threshold.
  • the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair; the current leg shape key point pair; Including the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair; the first included angle information includes the current left thigh key point pair and the preset left thigh key point pair The included angle a1, the included angle between the current right thigh key point pair and the preset right thigh key point pair a2, the included angle between the current left calf key point pair and the preset left calf key point pair a3, the current right The included angle a4 between the pair of key points of the lower leg and the pair of preset key points of the right lower leg; the first angle threshold is e; the analysis unit includes: a first analysis subunit, set to be when
  • the preset foot type key point pair includes a preset left sole key point pair and a preset right sole key point pair;
  • the current foot type key point pair includes the current left sole key point pair and the current right sole key point pair;
  • the second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
  • the second angle The threshold is ⁇ ;
  • the analysis unit further includes: a second analysis subunit, configured to determine that the running foot type is inner eight feet when b1> ⁇ ° and b2>- ⁇ °.
  • the identification device further includes: an output module configured to generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
  • an output module configured to generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
  • a computer device including a memory and a processor, a computer program is stored in the memory, and the processor implements the steps of any one of the above methods when executing the computer program.
  • a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
  • a treadmill is used to collect images of the user's lower body while running, and then an underlying skeleton extraction algorithm is invoked to parse the lower body images, thereby obtaining multiple key point heatmaps.
  • a single keypoint heatmap corresponds to a single keypoint.
  • the treadmill decodes the heat map of each key point, and obtains the coordinates of the key points corresponding to the heat map of each key point.
  • the treadmill generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built benchmark key point pair, and analyzes the running posture of the user.
  • the lower body image collected by the treadmill in this application includes the user's foot image, so that the underlying skeleton extraction algorithm is used to parse and obtain a heat map of key points including the user's feet, which increases the prediction of the key points of the user's feet when running, and further
  • the user's foot posture can be obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.
  • FIG. 1 is a schematic diagram of steps of a method for recognizing running posture in an embodiment of the present application
  • FIG. 2 is a block diagram of the overall structure of a running posture recognition device in an embodiment of the present application
  • 3a-3d are schematic structural diagrams of key point pairs in an embodiment of the present application.
  • FIG. 4 is a schematic structural block diagram of a computer device according to an embodiment of the present application.
  • an embodiment of the present application provides a method for identifying a running posture, including:
  • S1 collect the lower body image of the user when running, and the lower body image includes the foot image;
  • S2 call the underlying skeleton extraction algorithm to analyze the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
  • S4 Generate a current key point pair according to the coordinates of each key point, compare the current key point pair with a pre-built reference key point pair, and analyze the running posture of the user.
  • the running posture recognition method is specifically applied to a treadmill, and the control system of the treadmill (hereinafter referred to as the system) captures the lower body image of the user when running in real time through the camera, and the lower body image covers the hip, knee, ankle, Finally, the lower body of the human body to the toes.
  • the system calls the underlying skeleton extraction algorithm to parse the captured lower body image, thereby obtaining multiple key point heat maps, of which a single key point heat map corresponds to a single key point (for example, the key point is the left hip bone corresponding to the key point heat map A). , the key point is the heat map of the key point corresponding to the right hip bone B).
  • the system inputs the lower body image into a lightweight encoder for encoding, and extracts the corresponding semantic features. Then, through simple convolutional layer stacking, multiple rough keypoint heatmaps are predicted from the extracted semantic features (each rough keypoint heatmap also corresponds to a keypoint). The system refines each rough key point heat map by cascading empty spatial pyramid pooling and adding a global spatial attention mechanism, and obtains the corresponding accurate key point heat map. The system uses the wave peak point method to calculate the heatmaps of each key point respectively, and obtains the corresponding Gauss point peak of each key point heatmap. The system judges whether each key point heatmap has a Gaussian point peak.
  • the system takes the coordinates of the peaks of each Gaussian point as the coordinates of the corresponding key points (ie, the coordinates of the key points), and the coordinates of the key points corresponding to each key point constitute the key point coordinate information.
  • the system generates the current key point pair according to the coordinates of each key point, and combines the current key point pair and the pre-built benchmark key point pair (the benchmark key point pair is pre-built by the developer and stored in the internal database of the treadmill as benchmark information) Compare and analyze the running posture of the user.
  • the key point coordinate information includes a plurality of leg shape key point coordinates (left hip bone key point coordinates, right hip bone key point coordinates, left knee key point coordinates, right knee key point coordinates, left ankle key point coordinates and right ankle key point coordinates key point coordinates) and multiple foot shape key point coordinates (left ankle key point coordinates, right ankle key point coordinates, left toe key point coordinates and right toe key point coordinates);
  • Preset leg type key point pair preset foot type key point pair corresponding to normal foot type skeleton
  • current key point pair includes current foot type key point pair and current leg type key point pair
  • running posture includes running leg type and running Foot shape.
  • the system builds the user's current leg key point pair according to the coordinates of each leg key point, that is, according to the left hip key point coordinate, the left knee key point coordinate and the left ankle key point coordinate to construct the user's left leg key point pair, and
  • the shape of the user's current left leg skeleton corresponds;
  • the leg shape key point pair of the user's right leg is constructed according to the coordinates of the right hip bone key point, the right knee key point coordinate and the right ankle key point coordinate, which corresponds to the user's current right leg skeleton shape.
  • the system also constructs the user's current foot type key point pair according to the coordinates of each foot type key point, that is, the user's left foot key point pair is constructed according to the left ankle key point coordinate and the left toe key point coordinate, which is consistent with the user's current left foot type key point pair.
  • the shape of the foot skeleton corresponds; the key point pair of the user's right foot is constructed according to the coordinates of the right ankle key point and the right toe key point, which corresponds to the user's current right foot skeleton shape.
  • the system compares the current leg shape key point pair with the corresponding preset leg shape key point pair, and calculates the first angle information between the two in the vertical direction (including the left thigh key point pair corresponding to the user's current left thigh skeleton).
  • the right calf key point pair corresponding to the user's current right calf skeleton and the corresponding normal right calf skeleton The included angle between the preset right calf key points of the calf skeleton
  • the system analyzes and obtains the user's current running leg shape according to the size relationship between the first included angle information and the first angle threshold; and analyzes and obtains the user's current running leg shape according to the size relationship between the second included angle information and the second angle threshold.
  • Running feet For example, when a1>e°, a2>-e°, a3>-e°, and a4>e°, the system determines that the user's current running leg is an X-shaped leg (as shown in Figure 3b); when a1(- When e°, e°), a2(-e°, e°), a3>-e°, and a4>e°, the system determines that the user's current running leg is an XO leg.
  • the system integrates the running leg shape and the running foot shape to obtain the running posture of the user.
  • the system collects the lower body image of the user while running, and then invokes the underlying skeleton extraction algorithm to analyze the lower body image, thereby obtaining multiple key point heat maps.
  • a single keypoint heatmap corresponds to a single keypoint.
  • the system decodes the heat map of each key point, and obtains the coordinates of the key points corresponding to the heat map of each key point.
  • the system generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built benchmark key point pair, and analyzes the running posture of the user.
  • the lower body image collected by the system in the present application includes the user's foot image, so that the heat map of key points including the user's feet is obtained through the analysis of the underlying skeleton extraction algorithm, which increases the prediction of the key points of the user's feet when running, and further can The user's foot posture is obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.
  • the steps of invoking the underlying skeleton extraction algorithm to parse the lower body image to obtain multiple key point heatmaps including:
  • S201 input the lower body image into the encoder for encoding, and extract the semantic features, and the encoder is composed of a plurality of depthwise separable convolutions and a hollow convolution;
  • the system inputs the captured image of the lower body into a lightweight encoder for encoding.
  • the encoder is composed of multiple depthwise separable convolutions and an atrous convolution, which is encoded through the above convolutional layers, and then obtains the corresponding semantic features from the lower body image (semantic features can be learned from the network finally from the included Semantic information of the human body is captured in pictures with complex backgrounds).
  • the system predicts a rough keypoint heatmap from the semantic features extracted in the previous step by simply stacking convolutional layers.
  • the system In order to improve the accuracy of the key point heat map, the system first pools the rough key point heat map through the empty space pyramid, and extracts the secondary key point heat map. Then, the secondary keypoint heatmap is refined based on the global spatial attention mechanism to obtain an accurate keypoint heatmap.
  • the encoder of this embodiment is composed of multiple depthwise separable convolutions and one atrous convolution, and is a lightweight encoder, which can improve the processing speed of information. Moreover, by performing empty spatial pyramid pooling on the rough keypoint heatmap and a global-based spatial attention mechanism, the accuracy of the final keypoint heatmap can be improved.
  • the refining step of a single rough key point heat map includes:
  • S2032 Refine the secondary key point heat map based on the global spatial attention mechanism to obtain the key point heat map.
  • the system refines the rough key point heat map based on the rough key point heat map.
  • the system uses spatial pyramid pooling (ASPP ) are cascaded to obtain a larger receptive field, so as to extract more effective information, that is, the secondary key point heat map.
  • a more accurate keypoint heatmap namely the keypoint heatmap.
  • each empty spatial pyramid pooling module by cascading the empty space pyramid pooling, a larger receptive field can be obtained, thereby extracting more effective information.
  • a global-based spatial attention mechanism is added at the end of each empty spatial pyramid pooling module, which can refine the secondary key point heat map, thereby obtaining a more accurate key point heat map.
  • the steps of decoding each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively include:
  • a single key point heat map corresponds to a single key point (for example, the key point is the heat map A corresponding to the key point of the left hip bone, and the key point is the heat map B corresponding to the key point of the right hip), and the system adopts the wave peak point selection method. , calculate each key point heat map separately, so as to obtain the corresponding Gauss point peaks of each key point heat map. Since there may be more than one Gauss point peak in the key point heat map, the system needs to first determine whether the corresponding Gauss point peak of each key point heat map is only one.
  • the coordinates of the Gauss point peak are the coordinates of the key point corresponding to the key point heat map in the original image. Therefore, the system directly uses the coordinates of the peaks of each Gaussian point as the key point coordinates of the corresponding key points, so as to obtain the key point coordinate information by combination.
  • the selected Gauss point peak is located. The coordinates are the key point coordinates, which ensures the accuracy of the selected key point coordinates.
  • the method further includes:
  • S305 calculate the distance between the coordinates of the first Gauss point peak and the coordinates of the second Gauss point peak
  • the system traverses all the Gauss point peaks corresponding to the key point heat map, so as to filter out the first Gauss point peak with the maximum value, and save it There is a second Gaussian peak that overlaps the first Gaussian peak.
  • the system calculates according to the coordinates between the two to obtain the distance between the coordinates of the first Gaussian peak and the coordinates of the second Gaussian peak, so that the system can use the coordinates of the second Gaussian peak to compare the coordinates of the first Gaussian peak. Fine tune for more precise keypoint coordinates.
  • the system takes 1/4 of the offset in the X direction (that is, the distance between the peak coordinates of the first Gaussian point and the peak coordinates of the second Gaussian point).
  • the distance between the coordinates of the first Gaussian peak and the coordinates of the second Gaussian peak is calculated as the offset, and then the coordinates of the first Gaussian peak are adjusted based on the offset, so that the final obtained Keypoint coordinates are more accurate.
  • the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates
  • the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair
  • the current key The point pair includes the current leg type key point pair and the current foot type key point pair
  • the running posture includes the running leg type and the running foot type.
  • the current key point pair is generated according to the coordinates of each key point, and the current key point pair and the pre-built benchmark The key points are compared, and the steps to obtain the user's running posture are analyzed, including:
  • S402 Compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; pair the current foot shape key point pair with the preset leg shape key point pair Carry out the comparison, and calculate the second included angle information in the vertical direction;
  • S403 Analyzing and obtaining the running leg shape according to the first included angle information and the first angle threshold, and obtaining the running foot shape according to the second included angle information and the second angle threshold analysis.
  • the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
  • the current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
  • the first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair.
  • the first angle threshold is e
  • the steps of obtaining the running leg shape include:
  • the preset foot shape key point pair includes a preset left sole key point pair and a preset right sole key point pair;
  • the current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
  • the second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
  • the second angle threshold is ⁇
  • the steps of obtaining the running foot shape by analyzing the second included angle information and the second angle threshold include:
  • the key point coordinate information includes a plurality of leg shape key point coordinates (left hip key point coordinates, right hip key point coordinates, left knee key point coordinates, right knee key point coordinates, left ankle key point coordinates and right ankle keypoint coordinates) and multiple foot shape keypoint coordinates (left ankle keypoint coordinates, right ankle keypoint coordinates, left toe keypoint coordinates, and right toe keypoint coordinates); pre-built datum keypoint pairs include The preset leg shape key point pair corresponding to the leg skeleton (as shown in Figure 3a), the preset foot shape key point pair corresponding to the normal foot skeleton (as shown in Figure 3c); the current key point pair includes the current foot shape The key point pair and the key point pair of the current leg shape, the running posture includes the running leg shape and the running foot shape.
  • the system builds the user's current leg key point pair according to the coordinates of each leg key point, that is, according to the left hip key point coordinate, the left knee key point coordinate and the left ankle key point coordinate to construct the user's left leg key point pair, and
  • the shape of the user's current left leg skeleton corresponds;
  • the leg shape key point pair of the user's right leg is constructed according to the coordinates of the right hip bone key point, the right knee key point coordinate and the right ankle key point coordinate, which corresponds to the user's current right leg skeleton shape.
  • the system also constructs the user's current foot type key point pair according to the coordinates of each foot type key point, that is, the user's left foot key point pair is constructed according to the left ankle key point coordinate and the left toe key point coordinate, which is consistent with the user's current left foot type key point pair.
  • the shape of the foot skeleton corresponds; the key point pair of the user's right foot is constructed according to the coordinates of the right ankle key point and the right toe key point, which corresponds to the user's current right foot skeleton shape.
  • the system compares the current leg shape key point pair with the corresponding preset leg shape key point pair, and calculates the first angle information between the two in the vertical direction (including the left thigh key point pair corresponding to the user's current left thigh skeleton).
  • the right calf key point pair corresponding to the user's current right calf skeleton and the corresponding normal right calf skeleton The included angle between the preset right calf key points of the calf skeleton
  • the system analyzes and obtains the user's current running leg shape according to the size relationship between the first included angle information and the first angle threshold; and analyzes and obtains the user's current running leg shape according to the size relationship between the second included angle information and the second angle threshold.
  • Running feet Specifically, the first angle threshold is e.
  • the system determines that the user's current running leg is an X-shaped leg (as shown in Figure 3a shown); when a1>-e°, a2>e°, a3>e° and a4>-e°, the system determines that the user's current running leg is an X-shaped leg; when a1(-e°, e° ), a2(-e°, e°), a3>-e°, and a4>e°, the system determines that the user's current running leg is an XO leg; otherwise, it is determined to be a normal leg.
  • the second angle threshold is ⁇ .
  • the system determines that the user's current running foot type is the inner eight feet (as shown in Figure 3d); when b1>- ⁇ ° and b2> ⁇ °, the system determines that the user's current running foot type is the outer eight feet; in other cases, it is determined to be a normal foot type.
  • the first angle information between the current leg shape key point pair and the preset leg shape key point pair is calculated and obtained, and the first angle information between the two is calculated based on the current foot shape key point pair and the preset leg shape key point pair. information about the second angle between them. Then, the first included angle information is compared with the first angle threshold, and the second included angle information is compared with the second angle threshold, so as to accurately identify the running posture of the user.
  • generating a current key point pair according to the coordinates of each key point, comparing the current key point pair with a pre-built benchmark key point pair, and analyzing the steps of obtaining the running posture of the user including:
  • S5 Generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
  • the running posture analysis information includes an image of the skeleton posture of the user's lower body when running and the running posture obtained by the above analysis.
  • the system generates an image of the user's lower body skeleton posture when running (including leg image and foot image) according to the current leg shape key point pair and the current foot shape key point pair, and at the same time analyzes the running leg shape (such as normal leg shape or X-legs) and running feet (such as normal feet or outer eight feet) are used as text information, which are output to the display interface of the system (such as the display screen of the treadmill) in real time, so as to provide fitness users intuitively with running posture information. .
  • This embodiment enables the user to adjust his running posture in real time through the running posture analysis information, thereby improving the fitness effect.
  • an embodiment of the present application also provides a running posture recognition device, including:
  • the acquisition module 1 is configured to collect the lower body image of the user when running, and the lower body image includes the foot image;
  • the parsing module 2 is set to call the underlying skeleton extraction algorithm to parse the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
  • the decoding module 3 is set to decode each key point heat map, and obtain the key point coordinates corresponding to each key point heat map respectively;
  • the analysis module 4 is configured to generate the current key point pair according to the coordinates of each key point, compare the current key point pair with the pre-built reference key point pair, and analyze the running posture of the user.
  • parsing module 2 including:
  • the extraction unit is set to input the lower body image into the encoder for encoding, and extract the semantic features.
  • the encoder is composed of multiple depthwise separable convolutions and one hole convolution;
  • the prediction unit which is set to be superimposed by convolutional layers, predicts multiple rough keypoint heatmaps from semantic features
  • the refining unit is set to refine the heat map of each rough key point to obtain the heat map of each key point.
  • refining unit including:
  • Extract subunits set to pool the rough key point heat map through the empty space pyramid, and extract the secondary key point heat map;
  • the refinement subunit is set to refine the secondary keypoint heatmap based on the global spatial attention mechanism to obtain the keypoint heatmap.
  • decoding module 3 including:
  • the first calculation unit is set to use the wave peak point method to calculate the heat map of each key point respectively, and obtain the Gauss point peak value corresponding to the heat map of each key point;
  • the judgment unit is set to judge whether the corresponding Gauss point peak value of each key point heat map is one;
  • the marking unit is set so that if the corresponding Gauss point peak of each key point heat map is one, the coordinates of the Gauss point peak are taken as the corresponding key point coordinates.
  • the decoding module 3 further includes:
  • the Screening unit set so that if there are multiple Gauss point peaks corresponding to each key point heatmap, the first Gauss point peak and the second Gauss point peak are selected from the multiple Gauss point peaks, and the first Gauss point peak is the largest. Gauss point peak, the second Gauss point peak is only smaller than the first Gauss point peak;
  • the second calculation unit is set to calculate the distance between the coordinates of the first Gaussian peak and the coordinates of the second Gaussian peak;
  • the adjustment unit is set to offset and adjust the coordinate values of the first Gauss point peak in the X direction and the Y direction according to the distance, so as to obtain the key point coordinates corresponding to the key point heat map.
  • the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates
  • the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair
  • the current key includes the key point pair of the current leg shape and the key point pair of the current foot shape.
  • the running posture includes the running leg shape and the running foot shape.
  • the analysis module 4 includes:
  • the construction unit is set to construct the current leg key point pair according to the coordinates of each leg type key point, and construct the current foot type key point pair according to the coordinates of each foot type key point;
  • the comparison unit is set to compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; compare the current foot shape key point pair with the preset leg shape key point pair Compare the key points of the type, and calculate the second included angle information in the vertical direction;
  • the analyzing unit is configured to analyze and obtain the running leg shape according to the first included angle information and the first angle threshold, and obtain the running foot shape according to the second included angle information and the second angle threshold analysis.
  • the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
  • the current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
  • the first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair.
  • the first angle threshold is e
  • the analysis unit includes: a first analysis subunit, configured to determine that the running leg is an X-shaped leg when a1>e°, a2>-e°, a3>-e°, and a4>e°.
  • the preset foot type key point pair includes a preset left sole key point pair and a preset right sole key point pair;
  • the current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
  • the second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
  • the second angle threshold is ⁇
  • the analysis unit further includes: a second analysis subunit, configured to determine that the running foot type is inner eight feet when b1> ⁇ ° and b2>- ⁇ °.
  • the identification device further includes:
  • the output module 5 is configured to generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
  • each module, unit and sub-unit of the recognition device are configured to perform corresponding steps in the above-mentioned running posture recognition method, and the specific implementation process thereof will not be described in detail here.
  • This embodiment provides a running posture recognition device.
  • the recognition device collects the lower body image of the user when running, and then invokes the underlying skeleton extraction algorithm to analyze the lower body image, thereby obtaining multiple key point heat maps. Among them, a single keypoint heatmap corresponds to a single keypoint.
  • the identification device decodes the heat map of each key point, and obtains the coordinates of the key point corresponding to the heat map of each key point. Finally, the identification device generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built reference key point pair, and analyzes the running posture of the user.
  • the lower body image collected by the identification device in the present application includes the user's foot image, so the heatmap of key points including the user's feet is obtained through analysis by the underlying skeleton extraction algorithm, which increases the prediction of the key points of the user's feet when running, and further The user's foot posture can be obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.
  • an embodiment of the present application further provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 4 .
  • the computer device includes a processor, memory, a network interface, and a database connected by a system bus.
  • the computer is designed with a processor arranged to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the computer device's database is configured to store pre-built benchmark keypoint peer-to-peer data.
  • the network interface of the computer device is configured to communicate with an external terminal through a network connection.
  • the above-mentioned processor executes the steps of the above-mentioned running posture recognition method:
  • S1 collect the lower body image of the user when running, and the lower body image includes the foot image;
  • S2 call the underlying skeleton extraction algorithm to analyze the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
  • S4 Generate a current key point pair according to the coordinates of each key point, compare the current key point pair with a pre-built reference key point pair, and analyze the running posture of the user.
  • the steps of invoking the underlying skeleton extraction algorithm to parse the lower body image to obtain multiple key point heatmaps including:
  • S201 input the lower body image into the encoder for encoding, and extract the semantic features, and the encoder is composed of a plurality of depthwise separable convolutions and a hollow convolution;
  • the refining step of a single rough key point heat map includes:
  • S2032 Refine the secondary key point heat map based on the global spatial attention mechanism to obtain the key point heat map.
  • the steps of decoding each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively include:
  • the method further includes:
  • S305 calculate the distance between the coordinates of the first Gauss point peak and the coordinates of the second Gauss point peak
  • the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates
  • the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair
  • the current key The point pair includes the current leg type key point pair and the current foot type key point pair
  • the running posture includes the running leg type and the running foot type.
  • the current key point pair is generated according to the coordinates of each key point, and the current key point pair and the pre-built benchmark The key points are compared, and the steps to obtain the user's running posture are analyzed, including:
  • S402 Compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; pair the current foot shape key point pair with the preset leg shape key point pair Carry out the comparison, and calculate the second included angle information in the vertical direction;
  • S403 Analyzing and obtaining the running leg shape according to the first included angle information and the first angle threshold, and obtaining the running foot shape according to the second included angle information and the second angle threshold analysis.
  • the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
  • the current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
  • the first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair.
  • the first angle threshold is e
  • the steps of obtaining the running leg shape include:
  • the preset foot shape key point pair includes a preset left sole key point pair and a preset right sole key point pair;
  • the current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
  • the second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
  • the second angle threshold is ⁇
  • the steps of obtaining the running foot shape by analyzing the second included angle information and the second angle threshold include:
  • generating a current key point pair according to the coordinates of each key point, comparing the current key point pair with a pre-built benchmark key point pair, and analyzing the steps of obtaining the running posture of the user including:
  • S5 Generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
  • An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a method for identifying a running posture is implemented, and the method for identifying a running posture is specifically:
  • S1 collect the lower body image of the user when running
  • S2 call the underlying skeleton extraction algorithm to analyze the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
  • S4 Generate a current key point pair according to the coordinates of each key point, compare the current key point pair with a pre-built reference key point pair, and analyze the running posture of the user.
  • the steps of invoking the underlying skeleton extraction algorithm to parse the lower body image to obtain multiple key point heatmaps including:
  • the refining step of a single rough key point heat map includes:
  • S2032 Refine the secondary key point heat map based on the global spatial attention mechanism to obtain the key point heat map.
  • the steps of decoding each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively include:
  • each key point heat map has only one Gauss point peak, the coordinates where each Gauss point peak is located are used as the key point coordinates of the corresponding key point.
  • each key point heatmap has only one Gaussian point peak, including:
  • S305 calculate the distance between the peak coordinates of the first Gaussian point and the peak coordinates of the second Gaussian point;
  • S306 Adjust the peak coordinates of the first Gaussian point according to the distance to obtain the key point coordinates corresponding to the key point heat map.
  • the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates
  • the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair
  • the current key The point pair includes the current leg type key point pair and the current foot type key point pair
  • the running posture includes the running leg type and the running foot type.
  • the current key point pair is generated according to the coordinates of each key point, and the current key point pair and the pre-built benchmark The key points are compared, and the steps to obtain the user's running posture are analyzed, including:
  • S402 Compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; pair the current foot shape key point pair with the preset leg shape key point pair Carry out the comparison, and calculate the second included angle information in the vertical direction;
  • S403 Analyzing and obtaining the running leg shape according to the first included angle information and the first angle threshold, and obtaining the running foot shape according to the second included angle information and the second angle threshold analysis.
  • the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
  • the current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
  • the first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair.
  • the first angle threshold is e
  • the steps of obtaining the running leg shape include:
  • the preset foot shape key point pair includes a preset left sole key point pair and a preset right sole key point pair;
  • the current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
  • the second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
  • the second angle threshold is ⁇
  • the steps of obtaining the running foot shape by analyzing the second included angle information and the second angle threshold include:
  • generating a current key point pair according to the coordinates of each key point, comparing the current key point pair with a pre-built benchmark key point pair, and analyzing the steps of obtaining the running posture of the user including:
  • S5 Generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • SDRAM double data rate SDRAM
  • SSRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM
  • the method, device and computer equipment for running posture recognition provided by at least some of the embodiments of the present application have the following beneficial effects: collecting the lower body image of the user when running through the treadmill, and then calling the underlying skeleton extraction algorithm to analyze the lower body image, Thereby, multiple key point heatmaps are obtained. Among them, a single keypoint heatmap corresponds to a single keypoint.
  • the treadmill decodes the heat map of each key point, and obtains the coordinates of the key points corresponding to the heat map of each key point. Finally, the treadmill generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built benchmark key point pair, and analyzes the running posture of the user.
  • the lower body image collected by the treadmill in this application includes the user's foot image, so the underlying skeleton extraction algorithm is used to parse and obtain the key point heat map including the user's feet, which increases the prediction of the key points of the user's feet when running, and further
  • the user's foot posture can be obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Biophysics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Human Computer Interaction (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Psychiatry (AREA)
  • Social Psychology (AREA)
  • Image Analysis (AREA)

Abstract

A running posture recognition method and apparatus, and a computer device. The method comprises: collecting a lower body part image when a user is running (S1); calling an underlying skeleton extraction algorithm to parse the lower body part image, so as to obtain a plurality of key point thermodynamic diagrams, a single key point thermodynamic diagram corresponding to a single key point (S2); decoding the key point thermodynamic diagrams, so as to obtain key point coordinates corresponding to the key point thermodynamic diagrams (S3); and generating a current key point pair according to the key point coordinates, comparing the current key point pair with a pre-constructed reference key point pair, and performing analysis to obtain a running posture of the user (S4). By means of the method, a collected lower body part image comprises a foot image of a user, so that key point thermodynamic diagrams that comprise the feet of the user are obtained by performing parsing by means of an underlying skeleton extraction algorithm, the prediction of key points of the feet when the user is running is added, and analysis can be then performed to obtain a foot posture of the user, such that a finally recognized running posture is more comprehensive and accurate.

Description

跑步姿态的识别方法、装置和计算机设备Running posture recognition method, device and computer equipment
本申请要求于2020年11月26日提交中国专利局、申请号为202011349062.5、申请名称“跑步姿态的识别方法、装置和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011349062.5 and the application title "Method, Apparatus and Computer Equipment for Recognition of Running Posture" filed with the China Patent Office on November 26, 2020, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请涉及姿态识别技术领域,具体而言,涉及一种跑步姿态的识别方法、装置和计算机设备。The present application relates to the technical field of gesture recognition, and in particular, to a method, device and computer equipment for recognition of running gestures.
背景技术Background technique
随着跑步机进入大众的视野、成为越来越多人运动的便利选择时,正确的跑步姿态对用户的运动效果和形体塑造均具有重要的作用。现有针对用户在跑步机上跑步时的姿态识别,通常是借助计算机视觉对人体关键点进行提取,并进一步对关键点形成的人体姿态进行分析(比如通过低成本的普通RGB相机输出图像,对图像进行人体骨架关键点提取;或者通过Kinect(体感器)等三维传感器捕捉人体深度信息,从而进一步地对人体建模,获得姿态信息)。但是,这类姿态识别方法通常无法通过仅有的下半身图像信息准确地提取下半身的骨架,对用户跑步姿态的识别准确度较低。As the treadmill enters the public's field of vision and becomes a convenient choice for more and more people to exercise, the correct running posture plays an important role in the user's exercise effect and body shaping. Existing gesture recognition for users running on a treadmill usually extracts the key points of the human body with the help of computer vision, and further analyzes the human posture formed by the key points (such as outputting images through a low-cost common RGB camera, and analyzing the image Extract the key points of the human skeleton; or capture the depth information of the human body through three-dimensional sensors such as Kinect (somatosensory sensor), so as to further model the human body and obtain posture information). However, such gesture recognition methods usually cannot accurately extract the skeleton of the lower body through the only image information of the lower body, and the recognition accuracy of the user's running posture is low.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本申请至少部分实施例提供了一种跑步姿态的识别方法、装置和计算机设备,以至少解决现有针对用户在跑步机上跑步时的姿态识别准确度较低的技术问题。At least some embodiments of the present application provide a running posture recognition method, apparatus and computer equipment, to at least solve the existing technical problem of low posture recognition accuracy when a user is running on a treadmill.
根据本申请其中一实施例的一个方面,提供了一种跑步姿态的识别方法,包括:采集用户跑步时的下半身图像,下半身图像包括脚部图像;调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力图,单张关键点热力图对应单个关键点;对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标;根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。According to an aspect of one of the embodiments of the present application, a method for identifying a running posture is provided, which includes: collecting a lower body image of a user when running, the lower body image including a foot image; calling an underlying skeleton extraction algorithm to parse the lower body image, and obtaining Multiple key point heatmaps, a single keypoint heatmap corresponds to a single keypoint; decode each keypoint heatmap to obtain the keypoint coordinates corresponding to each keypoint heatmap; generate the current keypoint pair according to the keypoint coordinates , and compare the current key point pair with the pre-built benchmark key point pair, and analyze the running posture of the user.
根据本申请其中一实施例的另一个方面,还提供了一种跑步姿态的识别装置,包括:采集模块,设置为采集用户跑步时的下半身图像,下半身图像包括脚部图像;解析模块,设置为调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力 图,单张关键点热力图对应单个关键点;解码模块,设置为对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标;分析模块,设置为根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。According to another aspect of one of the embodiments of the present application, there is also provided a running posture recognition device, including: a collection module, configured to collect images of the lower body of the user when running, and the images of the lower body include images of feet; an analysis module, configured as Call the underlying skeleton extraction algorithm to parse the lower body image, and obtain multiple key point heat maps. A single key point heat map corresponds to a single key point; the decoding module is set to decode each key point heat map and obtain each key point heat map. The corresponding key point coordinates respectively; the analysis module is set to generate the current key point pair according to the coordinates of each key point, and compare the current key point pair with the pre-built benchmark key point pair, and analyze the running posture of the user.
可选地,解析模块,包括:提取单元,设置为将下半身图像输入编码器进行编码,提取得到语义特征,编码器由多个深度可分离卷积及一个空洞卷积组成;预测单元,设置为通过卷积层叠加,从语义特征中预测得到多张粗糙关键点热力图;精炼单元,设置为对各粗糙关键点热力图进行精炼,得到各关键点热力图。Optionally, the parsing module includes: an extraction unit, which is set to input the lower body image into an encoder for encoding, and extracts to obtain semantic features. The encoder is composed of multiple depthwise separable convolutions and one hole convolution; the prediction unit is set to Through the superposition of convolution layers, multiple rough key point heat maps are predicted from semantic features; the refining unit is set to refine each rough key point heat map to obtain each key point heat map.
可选地,精炼单元,包括:提取子单元,设置为将粗糙关键点热力图通过空洞空间金字塔池化,提取得到二次关键点热力图;细化子单元,设置为基于全局的空间注意力机制对二次关键点热力图进行细化,得到关键点热力图。Optionally, the refining unit includes: extracting subunits, which are set to pool the rough key point heatmap through the hollow space pyramid, and extract the secondary keypoint heatmap; refine the subunit, which is set to be based on global spatial attention The mechanism refines the secondary key point heat map to obtain the key point heat map.
可选地,解码模块,包括:第一计算单元,设置为使用波峰取点法分别对各关键点热力图进行计算,得到各关键点热力图各自对应的高斯点峰值;判断单元,设置为判断各关键点热力图各自对应的高斯点峰值是否为一个;标记单元,设置为若各关键点热力图各自对应的高斯点峰值为一个,则将高斯点峰值所在的坐标,作为对应的关键点坐标。Optionally, the decoding module includes: a first calculation unit, set to use the wave peak point method to calculate the heatmap of each key point respectively, to obtain the Gauss point peak value corresponding to the heatmap of each key point; a judgment unit, set to judge Whether the corresponding Gauss point peak value of each key point heat map is one; mark unit, set to if the corresponding Gauss point peak value of each key point heat map is one, the coordinate of the Gauss point peak value is taken as the corresponding key point coordinate .
可选地,解码模块,还包括:筛选单元,设置为若各关键点热力图各自对应的高斯点峰值为多个,则从多个高斯点峰值中筛选出第一高斯点峰值和第二高斯点峰值,第一高斯点峰值为最大高斯点峰值,第二高斯点峰值仅小于第一高斯点峰值;第二计算单元,设置为计算计算第一高斯点峰值的坐标与第二高斯点峰值的坐标之间的距离;调整单元,设置为根据距离对第一高斯点峰值在X方向上和Y方向上的坐标值进行偏移调整,得到关键点热力图对应的关键点坐标。Optionally, the decoding module further includes: a screening unit, configured to select a first Gaussian point peak and a second Gaussian point peak from the plurality of Gaussian point peaks if there are multiple Gaussian point peaks corresponding to each of the key point heatmaps. Point peak, the first Gauss point peak is the largest Gauss point peak, and the second Gauss point peak is only smaller than the first Gauss point peak; the second calculation unit is set to calculate the coordinates of the first Gauss point peak and the second Gauss point peak. The distance between the coordinates; the adjustment unit is set to offset and adjust the coordinate values of the first Gaussian point peak in the X direction and the Y direction according to the distance, and obtain the key point coordinates corresponding to the key point heat map.
可选地,各关键点坐标包括腿型关键点坐标和脚型关键点坐标,基准关键点对包括预设腿型关键点对和预设脚型关键点对,当前关键点对包括当前腿型关键点对和当前脚型关键点对,跑步姿态包括跑步腿型和跑步脚型,分析模块,包括:构建单元,设置为根据各腿型关键点坐标构建当前腿型关键点对,并根据各脚型关键点坐标构建当前脚型关键点对;比对单元,设置为将当前腿型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第一夹角信息;并将当前脚型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第二夹角信息;分析单元,设置为根据第一夹角信息与第一角度阈值分析得到跑步腿型,并根据第二夹角信息与第二角度阈值分析得到跑步脚型脚。Optionally, the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates, the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair, and the current key point pair includes the current leg shape. The key point pair and the key point pair of the current foot shape, the running posture includes the running leg shape and the running foot shape, and the analysis module includes: a construction unit, which is set to construct the current leg shape key point pair according to the coordinates of each leg shape key point, and according to each leg shape key point pair. The coordinates of the key points of the foot shape construct the current foot shape key point pair; the comparison unit is set to compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction. ; Compare the key point pair of the current foot shape with the preset key point pair of the leg shape, and calculate the second included angle information in the vertical direction; the analysis unit is set to be based on the first included angle information and the first angle threshold. The running leg shape is obtained by analysis, and the running foot shape is obtained by analyzing the second included angle information and the second angle threshold.
可选地,预设腿型关键点对包括预设左大腿关键点对、预设右大腿关键点对、预 设左小腿关键点对和预设右小腿关键点对;当前腿型关键点对包括当前左大腿关键点对、当前右大腿关键点对、当前左小腿关键点对和当前右小腿关键点对;第一夹角信息包括当前左大腿关键点对与预设左大腿关键点对之间的夹角a1、当前右大腿关键点对与预设右大腿关键点对之间的夹角a2、当前左小腿关键点对与预设左小腿关键点对之间的夹角a3、当前右小腿关键点对与预设右小腿关键点对之间的夹角a4;第一角度阈值为e;分析单元包括:第一分析子单元,设置为当a1>e°、a2>-e°、a3>-e°且a4>e°时,判定跑步腿型为X型腿。Optionally, the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair; the current leg shape key point pair; Including the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair; the first included angle information includes the current left thigh key point pair and the preset left thigh key point pair The included angle a1, the included angle between the current right thigh key point pair and the preset right thigh key point pair a2, the included angle between the current left calf key point pair and the preset left calf key point pair a3, the current right The included angle a4 between the pair of key points of the lower leg and the pair of preset key points of the right lower leg; the first angle threshold is e; the analysis unit includes: a first analysis subunit, set to be when a1>e°, a2>-e°, When a3>-e° and a4>e°, it is determined that the running leg is an X-shaped leg.
可选地,预设脚型关键点对包括预设左脚掌关键点对和预设右脚掌关键点对;当前脚型关键点对包括当前左脚掌关键点对和当前右脚掌关键点对;第二夹角信息包括当前左脚掌关键点对与预设左脚掌关键点对之间的夹角b1、当前右脚掌关键点对与预设右脚掌关键点对之间的夹角b2;第二角度阈值为β;分析单元还包括:第二分析子单元,设置为当b1>β°且b2>-β°时,判定跑步脚型为内八脚。Optionally, the preset foot type key point pair includes a preset left sole key point pair and a preset right sole key point pair; the current foot type key point pair includes the current left sole key point pair and the current right sole key point pair; The second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair; the second angle The threshold is β; the analysis unit further includes: a second analysis subunit, configured to determine that the running foot type is inner eight feet when b1>β° and b2>-β°.
可选地,识别装置,还包括:输出模块,设置为根据当前腿型关键点对、当前脚型关键点对、跑步腿型和跑步脚型生成跑步姿态分析信息,实时输出到显示界面。Optionally, the identification device further includes: an output module configured to generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
根据本申请其中一实施例的另一方面,还提供一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,处理器执行计算机程序时实现上述任一项方法的步骤。According to another aspect of one of the embodiments of the present application, a computer device is further provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the steps of any one of the above methods when executing the computer program.
根据本申请其中一实施例的另一方面,还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一项的方法的步骤。According to another aspect of one of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
在本申请至少部分实施例中,通过跑步机采集用户跑步时的下半身图像,然后调用底层骨架提取算法对下半身图像进行解析,从而得到多张关键点热力图。其中,单张关键点热力图对应单个关键点。跑步机对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标。最后,跑步机根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。本申请中跑步机所采集的下半身图像包括用户的脚部图像,从而通过底层骨架提取算法解析得到包括了用户脚部的关键点热力图,增加了对用户跑步时脚部关键点的预测,进而可以分析得到用户的脚部姿态,使得最终识别到的跑步姿态更加全面和准确。In at least some embodiments of the present application, a treadmill is used to collect images of the user's lower body while running, and then an underlying skeleton extraction algorithm is invoked to parse the lower body images, thereby obtaining multiple key point heatmaps. Among them, a single keypoint heatmap corresponds to a single keypoint. The treadmill decodes the heat map of each key point, and obtains the coordinates of the key points corresponding to the heat map of each key point. Finally, the treadmill generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built benchmark key point pair, and analyzes the running posture of the user. The lower body image collected by the treadmill in this application includes the user's foot image, so that the underlying skeleton extraction algorithm is used to parse and obtain a heat map of key points including the user's feet, which increases the prediction of the key points of the user's feet when running, and further The user's foot posture can be obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:
图1是本申请一实施例中跑步姿态的识别方法步骤示意图;1 is a schematic diagram of steps of a method for recognizing running posture in an embodiment of the present application;
图2是本申请一实施例中跑步姿态的识别装置整体结构框图;2 is a block diagram of the overall structure of a running posture recognition device in an embodiment of the present application;
图3a—3d是本申请一实施例中关键点对的结构示意图;3a-3d are schematic structural diagrams of key point pairs in an embodiment of the present application;
图4是本申请一实施例的计算机设备的结构示意框图。FIG. 4 is a schematic structural block diagram of a computer device according to an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
参照图1、图3a、3b,本申请一实施例中提供了一种跑步姿态的识别方法,包括:1, 3a and 3b, an embodiment of the present application provides a method for identifying a running posture, including:
S1:采集用户跑步时的下半身图像,下半身图像包括脚部图像;S1: collect the lower body image of the user when running, and the lower body image includes the foot image;
S2:调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力图,单张关键点热力图对应单个关键点;S2: call the underlying skeleton extraction algorithm to analyze the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
S3:对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标;S3: Decode each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively;
S4:根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。S4: Generate a current key point pair according to the coordinates of each key point, compare the current key point pair with a pre-built reference key point pair, and analyze the running posture of the user.
本实施例中,跑步姿态的识别方法具体应用于跑步机,跑步机的控制系统(以下简称系统)通过摄像头实时捕捉用户跑步时的下半身图像,该下半身图像涵盖了从髋骨、膝盖、脚踝、最后到脚尖的人体下半身。系统调用底层骨架提取算法对捕捉到的下半身图像进行解析,从而得到多张关键点热力图,其中,单张关键点热力图对应单个关键点(比如关键点为左髋骨对应关键点热力图A,关键点为右髋骨对应关键点热力图B)。具体地,为了保证实时性,系统将下半身图像输入轻量型的编码器进行编码,提取得到对应的语义特征。再通过简单的卷积层叠加,从提取到的语义特征中预测得到多张粗糙的关键点热力图(每张粗糙的关键点热力图同样对应一个关键点)。系统通过级联空洞空间金字塔池化和加入全局的空间注意力机制对各张粗糙的关键点热力图进行精炼,得到各自对应的准确的关键点热力图。系统使用波峰取点法分别对各张关键点热力图进行计算,得到各关键点热力图各自对应的高斯点峰值,系统判断各张关键点热力图是否均为存在一个高斯点峰值,如果各张关键点热力图均为存在一个高斯点峰值,则高斯点峰值所在的坐标,即为对应的关键点热力图所对应的关键点在原图 (即下半身图像)中的坐标。因此,系统将各高斯点峰值所在的坐标作为对应的关键点的坐标(即关键点坐标),各个关键点分别对应的关键点坐标组成关键点坐标信息。系统根据各个关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对(基准关键点对有开发人员预先构建后存储在跑步机的内部数据库中,作为基准信息)进行比对,分析得到用户的跑步姿态。具体地,关键点坐标信息包括多个腿型关键点坐标(左髋骨关键点坐标、右髋骨关键点坐标、左膝盖关键点坐标、右膝盖关键点坐标、左脚踝关键点坐标和右脚踝关键点坐标)和多个脚型关键点坐标(左脚踝关键点坐标、右脚踝关键点坐标、左脚尖关键点坐标和右脚尖关键点坐标);基准关键点对包括与正常腿型骨架对应的预设腿型关键点对、与正常脚型骨架对应的预设脚型关键点对;当前关键点对包括当前脚型关键点对和当前腿型关键点对,跑步姿态包括跑步腿型和跑步脚型。系统根据各个腿型关键点坐标构建用户的当前腿型关键点对,即根据左髋骨关键点坐标、左膝盖关键点坐标和左脚踝关键点坐标构建用户左腿的腿型关键点对,与用户当前的左腿骨架形状对应;根据右髋骨关键点坐标、右膝盖关键点坐标和右脚踝关键点坐标构建用户右腿的腿型关键点对,与用户当前的右腿骨架形状对应。同时,系统还根据各个脚型关键点坐标构建用户的当前脚型关键点对,即根据左脚踝关键点坐标和左脚尖关键点坐标构建用户左脚掌的脚型关键点对,与用户当前的左脚掌骨架形状对应;根据右脚踝关键点坐标和右脚尖关键点坐标构建用户右脚掌的脚型关键点对,与用户当前的右脚掌骨架形状对应。系统将当前腿型关键点对与对应的预设腿型关键点对进行比对,计算得到两者在垂直方向上的第一夹角信息(包括对应用户当前左大腿骨架的左大腿关键点对与对应正常左大腿骨架的预设左大腿关键点之间的夹角a1、对应户当前右大腿骨架的右大腿关键点对与对应正常右大腿骨架的预设右大腿关键点之间的夹角a2、对应用户当前左小腿骨架的左小腿关键点对与对应正常左小腿骨架的预设左小腿关键点之间的夹角a3、对应户当前右小腿骨架的右小腿关键点对与对应正常右小腿骨架的预设右小腿关键点之间的夹角a4);并将当前脚型关键点对与预设腿型关键点对进行比对,计算得到两者在垂直方向上的第二夹角信息(包括对应用户当前左脚掌骨架的左脚掌关键点对与对应正常左脚掌骨架的预设左脚掌关键点之间的夹角b1、对应用户当前右脚掌骨架的右脚掌关键点对与对应正常右脚掌骨架的预设右脚掌关键点之间的夹角b2)。系统根据第一夹角信息与第一角度阈值之间的大小关系,分析得到用户当前的跑步腿型;并根据第二夹角信息与第二角度阈值之间的大小关系,分析得到用户当前的跑步脚型。比如,当a1>e°、a2>-e°、a3>-e°且a4>e°时,系统判定用户当前的跑步腿型为X型腿(如图3b所示);当a1(-e°,e°)、a2(-e°,e°)、a3>-e°且a4>e°时,系统判定用户当前的跑步腿型为XO型腿。系统综合跑步腿型和跑步脚型,得到用户的跑步姿态。In this embodiment, the running posture recognition method is specifically applied to a treadmill, and the control system of the treadmill (hereinafter referred to as the system) captures the lower body image of the user when running in real time through the camera, and the lower body image covers the hip, knee, ankle, Finally, the lower body of the human body to the toes. The system calls the underlying skeleton extraction algorithm to parse the captured lower body image, thereby obtaining multiple key point heat maps, of which a single key point heat map corresponds to a single key point (for example, the key point is the left hip bone corresponding to the key point heat map A). , the key point is the heat map of the key point corresponding to the right hip bone B). Specifically, in order to ensure real-time performance, the system inputs the lower body image into a lightweight encoder for encoding, and extracts the corresponding semantic features. Then, through simple convolutional layer stacking, multiple rough keypoint heatmaps are predicted from the extracted semantic features (each rough keypoint heatmap also corresponds to a keypoint). The system refines each rough key point heat map by cascading empty spatial pyramid pooling and adding a global spatial attention mechanism, and obtains the corresponding accurate key point heat map. The system uses the wave peak point method to calculate the heatmaps of each key point respectively, and obtains the corresponding Gauss point peak of each key point heatmap. The system judges whether each key point heatmap has a Gaussian point peak. There is a Gauss point peak in the key point heat map, and the coordinates of the Gauss point peak are the coordinates of the key point corresponding to the corresponding key point heat map in the original image (ie, the lower body image). Therefore, the system takes the coordinates of the peaks of each Gaussian point as the coordinates of the corresponding key points (ie, the coordinates of the key points), and the coordinates of the key points corresponding to each key point constitute the key point coordinate information. The system generates the current key point pair according to the coordinates of each key point, and combines the current key point pair and the pre-built benchmark key point pair (the benchmark key point pair is pre-built by the developer and stored in the internal database of the treadmill as benchmark information) Compare and analyze the running posture of the user. Specifically, the key point coordinate information includes a plurality of leg shape key point coordinates (left hip bone key point coordinates, right hip bone key point coordinates, left knee key point coordinates, right knee key point coordinates, left ankle key point coordinates and right ankle key point coordinates key point coordinates) and multiple foot shape key point coordinates (left ankle key point coordinates, right ankle key point coordinates, left toe key point coordinates and right toe key point coordinates); Preset leg type key point pair, preset foot type key point pair corresponding to normal foot type skeleton; current key point pair includes current foot type key point pair and current leg type key point pair, running posture includes running leg type and running Foot shape. The system builds the user's current leg key point pair according to the coordinates of each leg key point, that is, according to the left hip key point coordinate, the left knee key point coordinate and the left ankle key point coordinate to construct the user's left leg key point pair, and The shape of the user's current left leg skeleton corresponds; the leg shape key point pair of the user's right leg is constructed according to the coordinates of the right hip bone key point, the right knee key point coordinate and the right ankle key point coordinate, which corresponds to the user's current right leg skeleton shape. At the same time, the system also constructs the user's current foot type key point pair according to the coordinates of each foot type key point, that is, the user's left foot key point pair is constructed according to the left ankle key point coordinate and the left toe key point coordinate, which is consistent with the user's current left foot type key point pair. The shape of the foot skeleton corresponds; the key point pair of the user's right foot is constructed according to the coordinates of the right ankle key point and the right toe key point, which corresponds to the user's current right foot skeleton shape. The system compares the current leg shape key point pair with the corresponding preset leg shape key point pair, and calculates the first angle information between the two in the vertical direction (including the left thigh key point pair corresponding to the user's current left thigh skeleton). The included angle a1 between the preset left thigh key point corresponding to the normal left thigh skeleton, the included angle between the right thigh key point corresponding to the user's current right thigh skeleton and the preset right thigh key point corresponding to the normal right thigh skeleton a2, the angle between the left calf key point pair corresponding to the user's current left calf skeleton and the preset left calf key point corresponding to the normal left calf skeleton a3, the right calf key point pair corresponding to the user's current right calf skeleton and the corresponding normal right calf skeleton The included angle between the preset right calf key points of the calf skeleton a4); and compare the current foot shape key point pair with the preset leg shape key point pair, and calculate the second included angle between the two in the vertical direction Information (including the angle b1 between the left foot key point pair corresponding to the user's current left foot skeleton and the preset left foot key point corresponding to the normal left foot skeleton, the right foot key point pair corresponding to the user's current right foot skeleton and the corresponding normal The included angle between the preset right sole key points of the right sole skeleton b2). The system analyzes and obtains the user's current running leg shape according to the size relationship between the first included angle information and the first angle threshold; and analyzes and obtains the user's current running leg shape according to the size relationship between the second included angle information and the second angle threshold. Running feet. For example, when a1>e°, a2>-e°, a3>-e°, and a4>e°, the system determines that the user's current running leg is an X-shaped leg (as shown in Figure 3b); when a1(- When e°, e°), a2(-e°, e°), a3>-e°, and a4>e°, the system determines that the user's current running leg is an XO leg. The system integrates the running leg shape and the running foot shape to obtain the running posture of the user.
本实施例提供的一种跑步姿态的识别方法,系统采集用户跑步时的下半身图像,然后调用底层骨架提取算法对下半身图像进行解析,从而得到多张关键点热力图。其 中,单张关键点热力图对应单个关键点。系统对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标。最后,系统根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。本申请中系统所采集的下半身图像包括用户的脚部图像,从而通过底层骨架提取算法解析得到包括了用户脚部的关键点热力图,增加了对用户跑步时脚部关键点的预测,进而可以分析得到用户的脚部姿态,使得最终识别到的跑步姿态更加全面和准确。In the method for identifying a running posture provided in this embodiment, the system collects the lower body image of the user while running, and then invokes the underlying skeleton extraction algorithm to analyze the lower body image, thereby obtaining multiple key point heat maps. Among them, a single keypoint heatmap corresponds to a single keypoint. The system decodes the heat map of each key point, and obtains the coordinates of the key points corresponding to the heat map of each key point. Finally, the system generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built benchmark key point pair, and analyzes the running posture of the user. The lower body image collected by the system in the present application includes the user's foot image, so that the heat map of key points including the user's feet is obtained through the analysis of the underlying skeleton extraction algorithm, which increases the prediction of the key points of the user's feet when running, and further can The user's foot posture is obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.
可选的,调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力图的步骤,包括:Optionally, the steps of invoking the underlying skeleton extraction algorithm to parse the lower body image to obtain multiple key point heatmaps, including:
S201:将下半身图像输入编码器进行编码,提取得到语义特征,编码器由多个深度可分离卷积及一个空洞卷积组成;S201: input the lower body image into the encoder for encoding, and extract the semantic features, and the encoder is composed of a plurality of depthwise separable convolutions and a hollow convolution;
S202:通过卷积层叠加,从语义特征中预测得到多张粗糙关键点热力图;S202: By stacking convolutional layers, multiple rough key point heatmaps are predicted from the semantic features;
S203:对各粗糙关键点热力图进行精炼,得到各关键点热力图。S203: Refine the heat map of each rough key point to obtain a heat map of each key point.
本实施例中,为了保证对用户跑步姿态识别的实时性,系统将捕捉的下半身图像输入轻量型的编码器中进行编码。其中,该编码器由多个深度可分离卷积及一个空洞卷积组成,通过以上卷积层进行编码,进而从下半身图像中获得对应的语义特征(语义特征通过网络的学习最终可以从包含了复杂背景的图片中捕捉到人体的语义信息)。在每张关键点热力图生成的初始阶段,通过简单的卷积层叠加,系统从上一步骤提取的语义特征中预测得到粗糙关键点热力图。为了提高关键点热力图的准确度,系统首先将粗糙关键点热力图通过空洞空间金字塔池化,提取得到二次关键点热力图。然后,基于全局的空间注意力机制对二次关键点热力图进行细化,得到准确的关键点热力图。本实施例的编码器由多个深度可分离卷积及一个空洞卷积组成,属于轻量型的编码器,从而能够提高对信息的处理速度。并且,通过对粗糙关键点热力图进行空洞空间金字塔池化、基于全局的空间注意力机制,能够提高对最后提取得到的关键点热力图的准确度。In this embodiment, in order to ensure the real-time recognition of the user's running posture, the system inputs the captured image of the lower body into a lightweight encoder for encoding. Among them, the encoder is composed of multiple depthwise separable convolutions and an atrous convolution, which is encoded through the above convolutional layers, and then obtains the corresponding semantic features from the lower body image (semantic features can be learned from the network finally from the included Semantic information of the human body is captured in pictures with complex backgrounds). At the initial stage of each keypoint heatmap generation, the system predicts a rough keypoint heatmap from the semantic features extracted in the previous step by simply stacking convolutional layers. In order to improve the accuracy of the key point heat map, the system first pools the rough key point heat map through the empty space pyramid, and extracts the secondary key point heat map. Then, the secondary keypoint heatmap is refined based on the global spatial attention mechanism to obtain an accurate keypoint heatmap. The encoder of this embodiment is composed of multiple depthwise separable convolutions and one atrous convolution, and is a lightweight encoder, which can improve the processing speed of information. Moreover, by performing empty spatial pyramid pooling on the rough keypoint heatmap and a global-based spatial attention mechanism, the accuracy of the final keypoint heatmap can be improved.
可选的,对各粗糙关键点热力图进行精炼,得到各关键点热力图的步骤中,单张粗糙关键点热力图的精炼步骤包括:Optionally, in the step of refining each rough key point heat map to obtain each key point heat map, the refining step of a single rough key point heat map includes:
S2031:将粗糙关键点热力图通过空洞空间金字塔池化,提取得到二次关键点热力图;S2031: Pooling the rough key point heat map through the empty space pyramid, and extracting the secondary key point heat map;
S2032:基于全局的空间注意力机制对二次关键点热力图进行细化,得到关键点热力图。S2032: Refine the secondary key point heat map based on the global spatial attention mechanism to obtain the key point heat map.
本实施例中,系统在粗糙关键点热力图的基础上对其进行精炼,首先为了充分利 用粗糙关键点热力图中的信息,并且保证实时性的情况下,通过对空洞空间金字塔池化(ASPP)进行级联来获得更大的感受野,从而提取得到更加有效的信息,即二次关键点热力图。并且,为了忽略复杂背景等干扰因素的影响,在每个ASPP模块的末端加入全局的空间注意力机制,不断对提取得到的更加有效的信息(二次关键点热力图)进行细化,从而获得更加准确的关键点热力图,即关键点热力图。本实施例通过对空洞空间金字塔池化进行联级,能够获得更大的感受野,从而提取更加有效的信息。在此基础上,在每个空洞空间金字塔池化模块的末端加入基于全局的空间注意力机制,能够对二次关键点热力图进行细化,从而得到更加准确的关键点热力图。In this embodiment, the system refines the rough key point heat map based on the rough key point heat map. First, in order to make full use of the information in the rough key point heat map and ensure real-time performance, the system uses spatial pyramid pooling (ASPP ) are cascaded to obtain a larger receptive field, so as to extract more effective information, that is, the secondary key point heat map. In addition, in order to ignore the influence of interfering factors such as complex background, a global spatial attention mechanism is added at the end of each ASPP module, and the more effective information (secondary key point heat map) extracted is continuously refined to obtain A more accurate keypoint heatmap, namely the keypoint heatmap. In this embodiment, by cascading the empty space pyramid pooling, a larger receptive field can be obtained, thereby extracting more effective information. On this basis, a global-based spatial attention mechanism is added at the end of each empty spatial pyramid pooling module, which can refine the secondary key point heat map, thereby obtaining a more accurate key point heat map.
可选的,对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标的步骤,包括:Optionally, the steps of decoding each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively include:
S301:使用波峰取点法分别对各关键点热力图进行计算,得到各关键点热力图各自对应的高斯点峰值;S301: Calculate the heatmap of each key point by using the wave peak point method to obtain the Gauss point peak value corresponding to the heatmap of each key point;
S302:判断各关键点热力图各自对应的高斯点峰值是否为一个;S302: Determine whether the corresponding Gaussian point peak value of each key point heat map is one;
S303:若各关键点热力图各自对应的高斯点峰值为一个,则将各高斯点峰值所在的坐标,作为对应的关键点坐标。S303: If each of the key point heat maps has one Gauss point peak corresponding to each, the coordinates where each Gauss point peak is located are taken as the corresponding key point coordinates.
本实施例中,单张关键点热力图对应单个关键点(比如关键点为左髋骨对应关键点热力图A,关键点为右髋骨对应关键点热力图B),系统采用波峰取点法,分别对每张关键点热力图进行计算,从而获取得到各张关键点热力图各自对应的高斯点峰值。由于关键点热力图中可能存在不止一个高斯点峰值,因此系统需要先判断各张关键点热力图各自对应的高斯点峰值是否仅为一个。如果每张关键点热力图均为仅存在一个高斯点峰值,则高斯点峰值所在的坐标,即为该关键点热力图对应关键点在原图中的坐标。因此,系统将各个高斯点峰值所在的坐标直接作为对应的关键点的关键点坐标,从而组合得到关键点坐标信息。本实施例通过对每张关键点热力图各自对应的高斯点峰值的个数识别,在单张关键点热力图对应的高斯点峰值的个数仅为一个的情况下,选定高斯点峰值所在的坐标为关键点坐标,确保了选定后的关键点坐标的准确度。In this embodiment, a single key point heat map corresponds to a single key point (for example, the key point is the heat map A corresponding to the key point of the left hip bone, and the key point is the heat map B corresponding to the key point of the right hip), and the system adopts the wave peak point selection method. , calculate each key point heat map separately, so as to obtain the corresponding Gauss point peaks of each key point heat map. Since there may be more than one Gauss point peak in the key point heat map, the system needs to first determine whether the corresponding Gauss point peak of each key point heat map is only one. If there is only one Gauss point peak in each key point heat map, the coordinates of the Gauss point peak are the coordinates of the key point corresponding to the key point heat map in the original image. Therefore, the system directly uses the coordinates of the peaks of each Gaussian point as the key point coordinates of the corresponding key points, so as to obtain the key point coordinate information by combination. In this embodiment, by identifying the number of Gauss point peaks corresponding to each key point heat map, in the case that the number of Gauss point peaks corresponding to a single key point heat map is only one, the selected Gauss point peak is located. The coordinates are the key point coordinates, which ensures the accuracy of the selected key point coordinates.
可选的,判断各关键点热力图各自对应的高斯点峰值是否为一个的步骤之后,还包括:Optionally, after the step of judging whether the corresponding Gaussian point peak value of each key point heat map is one, the method further includes:
S304:若各关键点热力图各自对应的高斯点峰值为多个,则从多个高斯点峰值中筛选出第一高斯点峰值和第二高斯点峰值,第一高斯点峰值为最大高斯点峰值,第二高斯点峰值仅小于第一高斯点峰值;S304: If there are multiple Gauss point peaks corresponding to each of the key point heatmaps, screen the first Gauss point peak and the second Gauss point peak from the multiple Gauss point peaks, and the first Gauss point peak is the largest Gauss point peak , the peak value of the second Gaussian point is only smaller than the peak value of the first Gaussian point;
S305:计算第一高斯点峰值的坐标与第二高斯点峰值的坐标之间的距离;S305: calculate the distance between the coordinates of the first Gauss point peak and the coordinates of the second Gauss point peak;
S306:根据距离对第一高斯点峰值在X方向上和Y方向上的坐标值进行偏移调整,得到关键点热力图对应的关键点坐标。S306: Offset and adjust the coordinate values of the first Gauss point peak in the X direction and the Y direction according to the distance, to obtain the key point coordinates corresponding to the key point heat map.
本实施例中,如果某张关键点热力图中存在多个高斯点峰值,则系统遍历该关键点热力图所对应的所有高斯点峰值,从而筛选出最大值的第一高斯点峰值,并保存与第一高斯点峰值存在交叠第二高斯点峰值。系统根据两者之间的坐标进行计算,得到第一高斯点峰值的坐标和第二高斯点峰值的坐标的距离,从而使得系统可以借助第二高斯点峰值的坐标对第一高斯点峰值的坐标进行微调,以获得更加精确的关键点坐标。具体地,系统根据上述计算得到的距离,在X方向上,取X方向上的偏移量(即上述第一高斯点的峰值坐标和第二高斯点的峰值坐标的距离)的1/4调整第一高斯点的峰值坐标中X的值;Y方向上,取Y方向上的偏移量的1/4调整第一高斯点的峰值坐标中Y的值。本实施例通计算出第一高斯点峰值的坐标和第二高斯点峰值的坐标之间的距离作为偏移量,再基于偏移量对第一高斯点峰值的坐标进行调整,从而使得最终获得关键点坐标的准确度更高。In this embodiment, if there are multiple Gauss point peaks in a certain key point heat map, the system traverses all the Gauss point peaks corresponding to the key point heat map, so as to filter out the first Gauss point peak with the maximum value, and save it There is a second Gaussian peak that overlaps the first Gaussian peak. The system calculates according to the coordinates between the two to obtain the distance between the coordinates of the first Gaussian peak and the coordinates of the second Gaussian peak, so that the system can use the coordinates of the second Gaussian peak to compare the coordinates of the first Gaussian peak. Fine tune for more precise keypoint coordinates. Specifically, according to the distance obtained by the above calculation, in the X direction, the system takes 1/4 of the offset in the X direction (that is, the distance between the peak coordinates of the first Gaussian point and the peak coordinates of the second Gaussian point). The value of X in the peak coordinate of the first Gaussian point; in the Y direction, take 1/4 of the offset in the Y direction to adjust the value of Y in the peak coordinate of the first Gaussian point. In this embodiment, the distance between the coordinates of the first Gaussian peak and the coordinates of the second Gaussian peak is calculated as the offset, and then the coordinates of the first Gaussian peak are adjusted based on the offset, so that the final obtained Keypoint coordinates are more accurate.
参照图3a—3d,可选的,各关键点坐标包括腿型关键点坐标和脚型关键点坐标,基准关键点对包括预设腿型关键点对和预设脚型关键点对,当前关键点对包括当前腿型关键点对和当前脚型关键点对,跑步姿态包括跑步腿型和跑步脚型,根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态的步骤,包括:3a-3d, optionally, the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates, and the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair, and the current key The point pair includes the current leg type key point pair and the current foot type key point pair, and the running posture includes the running leg type and the running foot type. The current key point pair is generated according to the coordinates of each key point, and the current key point pair and the pre-built benchmark The key points are compared, and the steps to obtain the user's running posture are analyzed, including:
S401:根据各腿型关键点坐标构建当前腿型关键点对,并根据各脚型关键点坐标构建当前脚型关键点对;S401: constructing a current leg type key point pair according to the coordinates of each leg type key point, and constructing a current foot type key point pair according to the coordinates of each foot type key point;
S402:将当前腿型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第一夹角信息;并将当前脚型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第二夹角信息;S402: Compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; pair the current foot shape key point pair with the preset leg shape key point pair Carry out the comparison, and calculate the second included angle information in the vertical direction;
S403:根据第一夹角信息与第一角度阈值分析得到跑步腿型,并根据第二夹角信息与第二角度阈值分析得到跑步脚型。S403: Analyzing and obtaining the running leg shape according to the first included angle information and the first angle threshold, and obtaining the running foot shape according to the second included angle information and the second angle threshold analysis.
优选的,预设腿型关键点对包括预设左大腿关键点对、预设右大腿关键点对、预设左小腿关键点对和预设右小腿关键点对;Preferably, the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
当前腿型关键点对包括当前左大腿关键点对、当前右大腿关键点对、当前左小腿关键点对和当前右小腿关键点对;The current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
第一夹角信息包括当前左大腿关键点对与预设左大腿关键点对之间的夹角a1、当前右大腿关键点对与预设右大腿关键点对之间的夹角a2、当前左小腿关键点对与预设左小腿关键点对之间的夹角a3、当前右小腿关键点对与预设右小腿关键点对之间的夹 角a4;The first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair. The angle a3 between the key point pair of the calf and the preset left calf key point pair, and the angle a4 between the current right calf key point pair and the preset right calf key point pair;
第一角度阈值为e;The first angle threshold is e;
根据第一夹角信息与第一角度阈值分析得到跑步腿型的步骤,包括:According to the first included angle information and the first angle threshold analysis, the steps of obtaining the running leg shape include:
S4031:当a1>e°、a2>-e°、a3>-e°且a4>e°时,判定跑步腿型为X型腿。S4031: When a1>e°, a2>-e°, a3>-e°, and a4>e°, determine that the running leg type is an X-shaped leg.
优选的,预设脚型关键点对包括预设左脚掌关键点对和预设右脚掌关键点对;Preferably, the preset foot shape key point pair includes a preset left sole key point pair and a preset right sole key point pair;
当前脚型关键点对包括当前左脚掌关键点对和当前右脚掌关键点对;The current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
第二夹角信息包括当前左脚掌关键点对与预设左脚掌关键点对之间的夹角b1、当前右脚掌关键点对与预设右脚掌关键点对之间的夹角b2;The second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
第二角度阈值为β;The second angle threshold is β;
根据第二夹角信息与第二角度阈值分析得到跑步脚型的步骤,包括:The steps of obtaining the running foot shape by analyzing the second included angle information and the second angle threshold include:
S4032:当b1>β°且b2>-β°时,判定跑步脚型为内八脚。S4032: When b1>β° and b2>-β°, determine that the running foot type is inner eight feet.
本实施例中,关键点坐标信息包括多个腿型关键点坐标(左髋骨关键点坐标、右髋骨关键点坐标、左膝盖关键点坐标、右膝盖关键点坐标、左脚踝关键点坐标和右脚踝关键点坐标)和多个脚型关键点坐标(左脚踝关键点坐标、右脚踝关键点坐标、左脚尖关键点坐标和右脚尖关键点坐标);预先构建的基准关键点对包括与正常腿型骨架对应的预设腿型关键点对(如图3a所示)、与正常脚型骨架对应的预设脚型关键点对(如图3c所示);当前关键点对包括当前脚型关键点对和当前腿型关键点对,跑步姿态包括跑步腿型和跑步脚型。系统根据各个腿型关键点坐标构建用户的当前腿型关键点对,即根据左髋骨关键点坐标、左膝盖关键点坐标和左脚踝关键点坐标构建用户左腿的腿型关键点对,与用户当前的左腿骨架形状对应;根据右髋骨关键点坐标、右膝盖关键点坐标和右脚踝关键点坐标构建用户右腿的腿型关键点对,与用户当前的右腿骨架形状对应。同时,系统还根据各个脚型关键点坐标构建用户的当前脚型关键点对,即根据左脚踝关键点坐标和左脚尖关键点坐标构建用户左脚掌的脚型关键点对,与用户当前的左脚掌骨架形状对应;根据右脚踝关键点坐标和右脚尖关键点坐标构建用户右脚掌的脚型关键点对,与用户当前的右脚掌骨架形状对应。系统将当前腿型关键点对与对应的预设腿型关键点对进行比对,计算得到两者在垂直方向上的第一夹角信息(包括对应用户当前左大腿骨架的左大腿关键点对与对应正常左大腿骨架的预设左大腿关键点之间的夹角a1、对应户当前右大腿骨架的右大腿关键点对与对应正常右大腿骨架的预设右大腿关键点之间的夹角a2、对应用户当前左小腿骨架的左小腿关键点对与对应正常左小腿骨架的预设左小腿关键点之间的夹角a3、对应户当前右小腿骨架的右小腿关键点对与对应正常右小腿骨架的预设右小腿关键点之间的夹角a4);并将当 前脚型关键点对与预设腿型关键点对进行比对,计算得到两者在垂直方向上的第二夹角信息(包括对应用户当前左脚掌骨架的左脚掌关键点对与对应正常左脚掌骨架的预设左脚掌关键点之间的夹角b1、对应用户当前右脚掌骨架的右脚掌关键点对与对应正常右脚掌骨架的预设右脚掌关键点之间的夹角b2)。系统根据第一夹角信息与第一角度阈值之间的大小关系,分析得到用户当前的跑步腿型;并根据第二夹角信息与第二角度阈值之间的大小关系,分析得到用户当前的跑步脚型。具体地,第一角度阈值为e,当a1>e°、a2>-e°、a3>-e°且a4>e°时,系统判定用户当前的跑步腿型为X型腿(如图3a所示);当a1>-e°、a2>e°、a3>e°且a4>-e°时,系统判定用户当前的跑步腿型为X型腿;当a1(-e°,e°)、a2(-e°,e°)、a3>-e°且a4>e°时,系统判定用户当前的跑步腿型为XO型腿;其余情况则判定为正常腿型。第二角度阈值为β,当b1>β°且b2>-β°时,系统判定用户当前的跑步脚型为内八脚(如图3d所示);当b1>-β°且b2>β°时,系统判定用户当前的跑步脚型为外八脚;其余情况则判定为正常脚型。本实施例基于当前腿型关键点对与预设腿型关键点计算得到两者之间的第一夹角信息,以及基于当前脚型关键点对与预设腿型关键点对计算得到两者之间的第二夹角信息。再将第一夹角信息与第一角度阈值、第二夹角信息与第二角度阈值进行大小比对,从而准确识别到用户的跑步姿态。In this embodiment, the key point coordinate information includes a plurality of leg shape key point coordinates (left hip key point coordinates, right hip key point coordinates, left knee key point coordinates, right knee key point coordinates, left ankle key point coordinates and right ankle keypoint coordinates) and multiple foot shape keypoint coordinates (left ankle keypoint coordinates, right ankle keypoint coordinates, left toe keypoint coordinates, and right toe keypoint coordinates); pre-built datum keypoint pairs include The preset leg shape key point pair corresponding to the leg skeleton (as shown in Figure 3a), the preset foot shape key point pair corresponding to the normal foot skeleton (as shown in Figure 3c); the current key point pair includes the current foot shape The key point pair and the key point pair of the current leg shape, the running posture includes the running leg shape and the running foot shape. The system builds the user's current leg key point pair according to the coordinates of each leg key point, that is, according to the left hip key point coordinate, the left knee key point coordinate and the left ankle key point coordinate to construct the user's left leg key point pair, and The shape of the user's current left leg skeleton corresponds; the leg shape key point pair of the user's right leg is constructed according to the coordinates of the right hip bone key point, the right knee key point coordinate and the right ankle key point coordinate, which corresponds to the user's current right leg skeleton shape. At the same time, the system also constructs the user's current foot type key point pair according to the coordinates of each foot type key point, that is, the user's left foot key point pair is constructed according to the left ankle key point coordinate and the left toe key point coordinate, which is consistent with the user's current left foot type key point pair. The shape of the foot skeleton corresponds; the key point pair of the user's right foot is constructed according to the coordinates of the right ankle key point and the right toe key point, which corresponds to the user's current right foot skeleton shape. The system compares the current leg shape key point pair with the corresponding preset leg shape key point pair, and calculates the first angle information between the two in the vertical direction (including the left thigh key point pair corresponding to the user's current left thigh skeleton). The included angle a1 between the preset left thigh key point corresponding to the normal left thigh skeleton, the included angle between the right thigh key point corresponding to the user's current right thigh skeleton and the preset right thigh key point corresponding to the normal right thigh skeleton a2, the angle between the left calf key point pair corresponding to the user's current left calf skeleton and the preset left calf key point corresponding to the normal left calf skeleton a3, the right calf key point pair corresponding to the user's current right calf skeleton and the corresponding normal right calf skeleton The included angle between the preset right calf key points of the calf skeleton a4); and compare the current foot shape key point pair with the preset leg shape key point pair, and calculate the second included angle between the two in the vertical direction Information (including the angle b1 between the left foot key point pair corresponding to the user's current left foot skeleton and the preset left foot key point corresponding to the normal left foot skeleton, the right foot key point pair corresponding to the user's current right foot skeleton and the corresponding normal The included angle between the preset right sole key points of the right sole skeleton b2). The system analyzes and obtains the user's current running leg shape according to the size relationship between the first included angle information and the first angle threshold; and analyzes and obtains the user's current running leg shape according to the size relationship between the second included angle information and the second angle threshold. Running feet. Specifically, the first angle threshold is e. When a1>e°, a2>-e°, a3>-e°, and a4>e°, the system determines that the user's current running leg is an X-shaped leg (as shown in Figure 3a shown); when a1>-e°, a2>e°, a3>e° and a4>-e°, the system determines that the user's current running leg is an X-shaped leg; when a1(-e°, e° ), a2(-e°, e°), a3>-e°, and a4>e°, the system determines that the user's current running leg is an XO leg; otherwise, it is determined to be a normal leg. The second angle threshold is β. When b1>β° and b2>-β°, the system determines that the user's current running foot type is the inner eight feet (as shown in Figure 3d); when b1>-β° and b2>β °, the system determines that the user's current running foot type is the outer eight feet; in other cases, it is determined to be a normal foot type. In this embodiment, the first angle information between the current leg shape key point pair and the preset leg shape key point pair is calculated and obtained, and the first angle information between the two is calculated based on the current foot shape key point pair and the preset leg shape key point pair. information about the second angle between them. Then, the first included angle information is compared with the first angle threshold, and the second included angle information is compared with the second angle threshold, so as to accurately identify the running posture of the user.
可选的,根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态的步骤之后,包括:Optionally, generating a current key point pair according to the coordinates of each key point, comparing the current key point pair with a pre-built benchmark key point pair, and analyzing the steps of obtaining the running posture of the user, including:
S5:根据当前腿型关键点对、当前脚型关键点对、跑步腿型和跑步脚型生成跑步姿态分析信息,实时输出到显示界面。S5: Generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
本实施例中,跑步姿态分析信息包括用户跑步时的下半身的骨架姿态的图像以及上述分析得到的跑步姿态。系统根据当前腿型关键点对和当前脚型关键点对生成用户跑步时下半身骨架姿态的图像(包括腿部图像和脚部图像),同时将分析得到的跑步腿型(比如为正常腿型或X型腿)和跑步脚型(比如正常脚型或外八脚)作为文字信息,实时输出到系统的显示界面(比如跑步机的显示屏),从而为健身用户直观地提供跑步时的姿态信息。本实施例使得用户可以通过跑步姿态分析信息实时对自身的跑步姿态进行调整,提高健身效果。In this embodiment, the running posture analysis information includes an image of the skeleton posture of the user's lower body when running and the running posture obtained by the above analysis. The system generates an image of the user's lower body skeleton posture when running (including leg image and foot image) according to the current leg shape key point pair and the current foot shape key point pair, and at the same time analyzes the running leg shape (such as normal leg shape or X-legs) and running feet (such as normal feet or outer eight feet) are used as text information, which are output to the display interface of the system (such as the display screen of the treadmill) in real time, so as to provide fitness users intuitively with running posture information. . This embodiment enables the user to adjust his running posture in real time through the running posture analysis information, thereby improving the fitness effect.
参照图2、图3a、3b,本申请一实施例中还提供了一种跑步姿态的识别装置,包括:2, 3a, 3b, an embodiment of the present application also provides a running posture recognition device, including:
采集模块1,设置为采集用户跑步时的下半身图像,下半身图像包括脚部图像;The acquisition module 1 is configured to collect the lower body image of the user when running, and the lower body image includes the foot image;
解析模块2,设置为调用底层骨架提取算法对下半身图像进行解析,得到多张关 键点热力图,单张关键点热力图对应单个关键点;The parsing module 2 is set to call the underlying skeleton extraction algorithm to parse the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
解码模块3,设置为对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标;The decoding module 3 is set to decode each key point heat map, and obtain the key point coordinates corresponding to each key point heat map respectively;
分析模块4,设置为根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。The analysis module 4 is configured to generate the current key point pair according to the coordinates of each key point, compare the current key point pair with the pre-built reference key point pair, and analyze the running posture of the user.
可选的,解析模块2,包括:Optionally, parsing module 2, including:
提取单元,设置为将下半身图像输入编码器进行编码,提取得到语义特征,编码器由多个深度可分离卷积及一个空洞卷积组成;The extraction unit is set to input the lower body image into the encoder for encoding, and extract the semantic features. The encoder is composed of multiple depthwise separable convolutions and one hole convolution;
预测单元,设置为通过卷积层叠加,从语义特征中预测得到多张粗糙关键点热力图;The prediction unit, which is set to be superimposed by convolutional layers, predicts multiple rough keypoint heatmaps from semantic features;
精炼单元,设置为对各粗糙关键点热力图进行精炼,得到各关键点热力图。The refining unit is set to refine the heat map of each rough key point to obtain the heat map of each key point.
可选的,精炼单元,包括:Optional, refining unit, including:
提取子单元,设置为将粗糙关键点热力图通过空洞空间金字塔池化,提取得到二次关键点热力图;Extract subunits, set to pool the rough key point heat map through the empty space pyramid, and extract the secondary key point heat map;
细化子单元,设置为基于全局的空间注意力机制对二次关键点热力图进行细化,得到关键点热力图。The refinement subunit is set to refine the secondary keypoint heatmap based on the global spatial attention mechanism to obtain the keypoint heatmap.
可选的,解码模块3,包括:Optionally, decoding module 3, including:
第一计算单元,设置为使用波峰取点法分别对各关键点热力图进行计算,得到各关键点热力图各自对应的高斯点峰值;The first calculation unit is set to use the wave peak point method to calculate the heat map of each key point respectively, and obtain the Gauss point peak value corresponding to the heat map of each key point;
判断单元,设置为判断各关键点热力图各自对应的高斯点峰值是否为一个;The judgment unit is set to judge whether the corresponding Gauss point peak value of each key point heat map is one;
标记单元,设置为若各关键点热力图各自对应的高斯点峰值为一个,则将高斯点峰值所在的坐标,作为对应的关键点坐标。The marking unit is set so that if the corresponding Gauss point peak of each key point heat map is one, the coordinates of the Gauss point peak are taken as the corresponding key point coordinates.
可选的,解码模块3,还包括:Optionally, the decoding module 3 further includes:
筛选单元,设置为若各关键点热力图各自对应的高斯点峰值为多个,则从多个高斯点峰值中筛选出第一高斯点峰值和第二高斯点峰值,第一高斯点峰值为最大高斯点峰值,第二高斯点峰值仅小于第一高斯点峰值;Screening unit, set so that if there are multiple Gauss point peaks corresponding to each key point heatmap, the first Gauss point peak and the second Gauss point peak are selected from the multiple Gauss point peaks, and the first Gauss point peak is the largest. Gauss point peak, the second Gauss point peak is only smaller than the first Gauss point peak;
第二计算单元,设置为计算第一高斯点峰值的坐标与第二高斯点峰值的坐标之间的距离;The second calculation unit is set to calculate the distance between the coordinates of the first Gaussian peak and the coordinates of the second Gaussian peak;
调整单元,设置为根据距离对第一高斯点峰值在X方向上和Y方向上的坐标值进行偏移调整,得到关键点热力图对应的关键点坐标标。The adjustment unit is set to offset and adjust the coordinate values of the first Gauss point peak in the X direction and the Y direction according to the distance, so as to obtain the key point coordinates corresponding to the key point heat map.
参照图3a—3d,可选的,各关键点坐标包括腿型关键点坐标和脚型关键点坐标,基准关键点对包括预设腿型关键点对和预设脚型关键点对,当前关键点对包括当前腿型关键点对和当前脚型关键点对,跑步姿态包括跑步腿型和跑步脚型,分析模块4,包括:3a-3d, optionally, the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates, and the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair, and the current key The point pair includes the key point pair of the current leg shape and the key point pair of the current foot shape. The running posture includes the running leg shape and the running foot shape. The analysis module 4 includes:
构建单元,设置为根据各腿型关键点坐标构建当前腿型关键点对,并根据各脚型关键点坐标构建当前脚型关键点对;The construction unit is set to construct the current leg key point pair according to the coordinates of each leg type key point, and construct the current foot type key point pair according to the coordinates of each foot type key point;
比对单元,设置为将当前腿型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第一夹角信息;并将当前脚型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第二夹角信息;The comparison unit is set to compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; compare the current foot shape key point pair with the preset leg shape key point pair Compare the key points of the type, and calculate the second included angle information in the vertical direction;
分析单元,设置为根据第一夹角信息与第一角度阈值分析得到跑步腿型,并根据第二夹角信息与第二角度阈值分析得到跑步脚型。The analyzing unit is configured to analyze and obtain the running leg shape according to the first included angle information and the first angle threshold, and obtain the running foot shape according to the second included angle information and the second angle threshold analysis.
可选的,预设腿型关键点对包括预设左大腿关键点对、预设右大腿关键点对、预设左小腿关键点对和预设右小腿关键点对;Optionally, the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
当前腿型关键点对包括当前左大腿关键点对、当前右大腿关键点对、当前左小腿关键点对和当前右小腿关键点对;The current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
第一夹角信息包括当前左大腿关键点对与预设左大腿关键点对之间的夹角a1、当前右大腿关键点对与预设右大腿关键点对之间的夹角a2、当前左小腿关键点对与预设左小腿关键点对之间的夹角a3、当前右小腿关键点对与预设右小腿关键点对之间的夹角a4;The first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair. The included angle a3 between the key point pair of the calf and the preset left calf key point pair, and the included angle a4 between the current right calf key point pair and the preset right calf key point pair;
第一角度阈值为e;The first angle threshold is e;
分析单元包括:第一分析子单元,设置为当a1>e°、a2>-e°、a3>-e°且a4>e°时,判定跑步腿型为X型腿。The analysis unit includes: a first analysis subunit, configured to determine that the running leg is an X-shaped leg when a1>e°, a2>-e°, a3>-e°, and a4>e°.
可选的,预设脚型关键点对包括预设左脚掌关键点对和预设右脚掌关键点对;Optionally, the preset foot type key point pair includes a preset left sole key point pair and a preset right sole key point pair;
当前脚型关键点对包括当前左脚掌关键点对和当前右脚掌关键点对;The current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
第二夹角信息包括当前左脚掌关键点对与预设左脚掌关键点对之间的夹角b1、当前右脚掌关键点对与预设右脚掌关键点对之间的夹角b2;The second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
第二角度阈值为β;The second angle threshold is β;
分析单元还包括:第二分析子单元,设置为当b1>β°且b2>-β°时,判定跑步脚型为内八脚。The analysis unit further includes: a second analysis subunit, configured to determine that the running foot type is inner eight feet when b1>β° and b2>-β°.
可选的,如图2所示,识别装置,还包括:Optionally, as shown in Figure 2, the identification device further includes:
输出模块5,设置为根据当前腿型关键点对、当前脚型关键点对、跑步腿型和跑步脚型生成跑步姿态分析信息,实时输出到显示界面。The output module 5 is configured to generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
本实施例中,识别装置各模块、单元以及子单元设置为对应执行与上述跑步姿态的识别方法中的各个步骤,其具体实施过程在此不做详述In this embodiment, each module, unit and sub-unit of the recognition device are configured to perform corresponding steps in the above-mentioned running posture recognition method, and the specific implementation process thereof will not be described in detail here.
本实施例提供的一种跑步姿态的识别装置,识别装置采集用户跑步时的下半身图像,然后调用底层骨架提取算法对下半身图像进行解析,从而得到多张关键点热力图。其中,单张关键点热力图对应单个关键点。识别装置对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标。最后,识别装置根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。本申请中识别装置所采集的下半身图像包括用户的脚部图像,从而通过底层骨架提取算法解析得到包括了用户脚部的关键点热力图,增加了对用户跑步时脚部关键点的预测,进而可以分析得到用户的脚部姿态,使得最终识别到的跑步姿态更加全面和准确。This embodiment provides a running posture recognition device. The recognition device collects the lower body image of the user when running, and then invokes the underlying skeleton extraction algorithm to analyze the lower body image, thereby obtaining multiple key point heat maps. Among them, a single keypoint heatmap corresponds to a single keypoint. The identification device decodes the heat map of each key point, and obtains the coordinates of the key point corresponding to the heat map of each key point. Finally, the identification device generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built reference key point pair, and analyzes the running posture of the user. The lower body image collected by the identification device in the present application includes the user's foot image, so the heatmap of key points including the user's feet is obtained through analysis by the underlying skeleton extraction algorithm, which increases the prediction of the key points of the user's feet when running, and further The user's foot posture can be obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.
参照图4,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图4所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器设置为提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库设置为存储预先构建的基准关键点对等数据。该计算机设备的网络接口设置为与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种跑步姿态的识别方法。Referring to FIG. 4 , an embodiment of the present application further provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. 4 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among other things, the computer is designed with a processor arranged to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The computer device's database is configured to store pre-built benchmark keypoint peer-to-peer data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for recognizing a running posture is realized.
上述处理器执行上述跑步姿态的识别方法的步骤:The above-mentioned processor executes the steps of the above-mentioned running posture recognition method:
S1:采集用户跑步时的下半身图像,下半身图像包括脚部图像;S1: collect the lower body image of the user when running, and the lower body image includes the foot image;
S2:调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力图,单张关键点热力图对应单个关键点;S2: call the underlying skeleton extraction algorithm to analyze the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
S3:对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标;S3: Decode each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively;
S4:根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。S4: Generate a current key point pair according to the coordinates of each key point, compare the current key point pair with a pre-built reference key point pair, and analyze the running posture of the user.
可选的,调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力图的步骤,包括:Optionally, the steps of invoking the underlying skeleton extraction algorithm to parse the lower body image to obtain multiple key point heatmaps, including:
S201:将下半身图像输入编码器进行编码,提取得到语义特征,编码器由多个深度可分离卷积及一个空洞卷积组成;S201: input the lower body image into the encoder for encoding, and extract the semantic features, and the encoder is composed of a plurality of depthwise separable convolutions and a hollow convolution;
S202:通过卷积层叠加,从语义特征中预测得到多张粗糙关键点热力图;S202: By stacking convolutional layers, multiple rough key point heatmaps are predicted from the semantic features;
S203:对各粗糙关键点热力图进行精炼,得到各关键点热力图。S203: Refine the heat map of each rough key point to obtain a heat map of each key point.
可选的,对各粗糙关键点热力图进行精炼,得到各关键点热力图的步骤中,单张粗糙关键点热力图的精炼步骤包括:Optionally, in the step of refining each rough key point heat map to obtain each key point heat map, the refining step of a single rough key point heat map includes:
S2031:将粗糙关键点热力图通过空洞空间金字塔池化,提取得到二次关键点热力图;S2031: Pooling the rough key point heat map through the empty space pyramid, and extracting the secondary key point heat map;
S2032:基于全局的空间注意力机制对二次关键点热力图进行细化,得到关键点热力图。S2032: Refine the secondary key point heat map based on the global spatial attention mechanism to obtain the key point heat map.
可选的,对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标的步骤,包括:Optionally, the steps of decoding each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively include:
S301:使用波峰取点法分别对各关键点热力图进行计算,得到各关键点热力图各自对应的高斯点峰值;S301: Calculate the heatmap of each key point by using the wave peak point method to obtain the Gauss point peak value corresponding to the heatmap of each key point;
S302:判断各关键点热力图各自对应的高斯点峰值是否为一个;S302: Determine whether the corresponding Gaussian point peak value of each key point heat map is one;
S303:若各关键点热力图各自对应的高斯点峰值为一个,则将各高斯点峰值所在的坐标,作为对应的关键点坐标。S303: If each of the key point heat maps has one Gauss point peak corresponding to each, the coordinates where each Gauss point peak is located are taken as the corresponding key point coordinates.
可选的,判断各关键点热力图各自对应的高斯点峰值是否为一个的步骤之后,还包括:Optionally, after the step of judging whether the corresponding Gaussian point peak value of each key point heat map is one, the method further includes:
S304:若各关键点热力图各自对应的高斯点峰值为多个,则从多个高斯点峰值中筛选出第一高斯点峰值和第二高斯点峰值,第一高斯点峰值为最大高斯点峰值,第二高斯点峰值仅小于第一高斯点峰值;S304: If there are multiple Gauss point peaks corresponding to each of the key point heatmaps, screen the first Gauss point peak and the second Gauss point peak from the multiple Gauss point peaks, and the first Gauss point peak is the largest Gauss point peak , the peak value of the second Gaussian point is only smaller than the peak value of the first Gaussian point;
S305:计算第一高斯点峰值的坐标与第二高斯点峰值的坐标之间的距离;S305: calculate the distance between the coordinates of the first Gauss point peak and the coordinates of the second Gauss point peak;
S306:根据距离对第一高斯点峰值在X方向上和Y方向上的坐标值进行偏移调整,得到关键点热力图对应的关键点坐标。S306: Offset and adjust the coordinate values of the first Gauss point peak in the X direction and the Y direction according to the distance, to obtain the key point coordinates corresponding to the key point heat map.
参照图3a—3d,可选的,各关键点坐标包括腿型关键点坐标和脚型关键点坐标,基准关键点对包括预设腿型关键点对和预设脚型关键点对,当前关键点对包括当前腿型关键点对和当前脚型关键点对,跑步姿态包括跑步腿型和跑步脚型,根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态的步骤,包括:3a-3d, optionally, the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates, and the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair, and the current key The point pair includes the current leg type key point pair and the current foot type key point pair, and the running posture includes the running leg type and the running foot type. The current key point pair is generated according to the coordinates of each key point, and the current key point pair and the pre-built benchmark The key points are compared, and the steps to obtain the user's running posture are analyzed, including:
S401:根据各腿型关键点坐标构建当前腿型关键点对,并根据各脚型关键点坐标构建当前脚型关键点对;S401: constructing a current leg type key point pair according to the coordinates of each leg type key point, and constructing a current foot type key point pair according to the coordinates of each foot type key point;
S402:将当前腿型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第一夹角信息;并将当前脚型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第二夹角信息;S402: Compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; pair the current foot shape key point pair with the preset leg shape key point pair Carry out the comparison, and calculate the second included angle information in the vertical direction;
S403:根据第一夹角信息与第一角度阈值分析得到跑步腿型,并根据第二夹角信息与第二角度阈值分析得到跑步脚型。S403: Analyzing and obtaining the running leg shape according to the first included angle information and the first angle threshold, and obtaining the running foot shape according to the second included angle information and the second angle threshold analysis.
优选的,预设腿型关键点对包括预设左大腿关键点对、预设右大腿关键点对、预设左小腿关键点对和预设右小腿关键点对;Preferably, the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
当前腿型关键点对包括当前左大腿关键点对、当前右大腿关键点对、当前左小腿关键点对和当前右小腿关键点对;The current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
第一夹角信息包括当前左大腿关键点对与预设左大腿关键点对之间的夹角a1、当前右大腿关键点对与预设右大腿关键点对之间的夹角a2、当前左小腿关键点对与预设左小腿关键点对之间的夹角a3、当前右小腿关键点对与预设右小腿关键点对之间的夹角a4;The first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair. The angle a3 between the key point pair of the calf and the preset left calf key point pair, and the angle a4 between the current right calf key point pair and the preset right calf key point pair;
第一角度阈值为e;The first angle threshold is e;
根据第一夹角信息与第一角度阈值分析得到跑步腿型的步骤,包括:According to the first included angle information and the first angle threshold analysis, the steps of obtaining the running leg shape include:
S4031:当a1>e°、a2>-e°、a3>-e°且a4>e°时,判定跑步腿型为X型腿。S4031: When a1>e°, a2>-e°, a3>-e°, and a4>e°, determine that the running leg type is an X-shaped leg.
优选的,预设脚型关键点对包括预设左脚掌关键点对和预设右脚掌关键点对;Preferably, the preset foot shape key point pair includes a preset left sole key point pair and a preset right sole key point pair;
当前脚型关键点对包括当前左脚掌关键点对和当前右脚掌关键点对;The current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
第二夹角信息包括当前左脚掌关键点对与预设左脚掌关键点对之间的夹角b1、当前右脚掌关键点对与预设右脚掌关键点对之间的夹角b2;The second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
第二角度阈值为β;The second angle threshold is β;
根据第二夹角信息与第二角度阈值分析得到跑步脚型的步骤,包括:The steps of obtaining the running foot shape by analyzing the second included angle information and the second angle threshold include:
S4032:当b1>β°且b2>-β°时,判定跑步脚型为内八脚。S4032: When b1>β° and b2>-β°, determine that the running foot type is inner eight feet.
可选的,根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态的步骤之后,包括:Optionally, generating a current key point pair according to the coordinates of each key point, comparing the current key point pair with a pre-built benchmark key point pair, and analyzing the steps of obtaining the running posture of the user, including:
S5:根据当前腿型关键点对、当前脚型关键点对、跑步腿型和跑步脚型生成跑步姿态分析信息,实时输出到显示界面。S5: Generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
本申请一实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现一种跑步姿态的识别方法,跑步姿态的识别方法具体为:An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a method for identifying a running posture is implemented, and the method for identifying a running posture is specifically:
S1:采集用户跑步时的下半身图像;S1: collect the lower body image of the user when running;
S2:调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力图,单张关键点热力图对应单个关键点;S2: call the underlying skeleton extraction algorithm to analyze the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
S3:对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标;S3: Decode each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively;
S4:根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。S4: Generate a current key point pair according to the coordinates of each key point, compare the current key point pair with a pre-built reference key point pair, and analyze the running posture of the user.
可选的,调用底层骨架提取算法对下半身图像进行解析,得到多张关键点热力图的步骤,包括:Optionally, the steps of invoking the underlying skeleton extraction algorithm to parse the lower body image to obtain multiple key point heatmaps, including:
S201:将下半身图像输入编码器进行编码,提取得到语义特征;S201: input the lower body image into the encoder for encoding, and extract to obtain semantic features;
S202:通过卷积层叠加,从语义特征中预测得到多张粗糙关键点热力图;S202: By stacking convolutional layers, multiple rough key point heatmaps are predicted from the semantic features;
S203:对各粗糙关键点热力图进行精炼,得到各关键点热力图。S203: Refine the heat map of each rough key point to obtain a heat map of each key point.
可选的,对各粗糙关键点热力图进行精炼,得到各关键点热力图的步骤中,单张粗糙关键点热力图的精炼步骤包括:Optionally, in the step of refining each rough key point heat map to obtain each key point heat map, the refining step of a single rough key point heat map includes:
S2031:将粗糙关键点热力图通过空洞空间金字塔池化,提取得到二次关键点热力图;S2031: Pooling the rough key point heat map through the empty space pyramid, and extracting the secondary key point heat map;
S2032:基于全局的空间注意力机制对二次关键点热力图进行细化,得到关键点热力图。S2032: Refine the secondary key point heat map based on the global spatial attention mechanism to obtain the key point heat map.
可选的,对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标的步骤,包括:Optionally, the steps of decoding each key point heat map to obtain the key point coordinates corresponding to each key point heat map respectively include:
S301:使用波峰取点法分别对各关键点热力图进行计算,得到各关键点热力图各自对应的高斯点峰值;S301: Calculate the heatmap of each key point by using the wave peak point method to obtain the Gauss point peak value corresponding to the heatmap of each key point;
S302:判断各关键点热力图是否均为仅存在一个高斯点峰值;S302: Determine whether each key point heat map has only one Gauss point peak;
S303:若各关键点热力图均为仅存在一个高斯点峰值,则将各高斯点峰值所在的坐标,作为对应的关键点的关键点坐标。S303: If each key point heat map has only one Gauss point peak, the coordinates where each Gauss point peak is located are used as the key point coordinates of the corresponding key point.
可选的,判断各关键点热力图是否均为仅存在一个高斯点峰值的步骤之后,包括:Optionally, after the step of judging whether each key point heatmap has only one Gaussian point peak, including:
S304:若关键点热力图存在多个高斯点峰值,则从各高斯点峰值中筛选出最大值的第一高斯点,以及与第一高斯点交叠的第二高斯点,第二高斯点对应的高斯点峰值仅小于第一高斯点对应的高斯点峰值;S304: If there are multiple Gauss point peaks in the key point heat map, screen out the first Gauss point with the maximum value from each Gauss point peak, and the second Gauss point overlapping with the first Gauss point, and the second Gauss point corresponds to The peak value of the Gaussian point is only smaller than the peak value of the Gaussian point corresponding to the first Gaussian point;
S305:计算第一高斯点的峰值坐标与第二高斯点的峰值坐标之间的距离;S305: calculate the distance between the peak coordinates of the first Gaussian point and the peak coordinates of the second Gaussian point;
S306:根据距离对第一高斯点的峰值坐标进行调整,得到关键点热力图对应的关键点坐标。S306: Adjust the peak coordinates of the first Gaussian point according to the distance to obtain the key point coordinates corresponding to the key point heat map.
参照图3a—3d,可选的,各关键点坐标包括腿型关键点坐标和脚型关键点坐标,基准关键点对包括预设腿型关键点对和预设脚型关键点对,当前关键点对包括当前腿型关键点对和当前脚型关键点对,跑步姿态包括跑步腿型和跑步脚型,根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态的步骤,包括:3a-3d, optionally, the coordinates of each key point include leg shape key point coordinates and foot shape key point coordinates, and the reference key point pair includes a preset leg shape key point pair and a preset foot shape key point pair, and the current key The point pair includes the current leg type key point pair and the current foot type key point pair, and the running posture includes the running leg type and the running foot type. The current key point pair is generated according to the coordinates of each key point, and the current key point pair and the pre-built benchmark The key points are compared, and the steps to obtain the user's running posture are analyzed, including:
S401:根据各腿型关键点坐标构建当前腿型关键点对,并根据各脚型关键点坐标构建当前脚型关键点对;S401: constructing a current leg type key point pair according to the coordinates of each leg type key point, and constructing a current foot type key point pair according to the coordinates of each foot type key point;
S402:将当前腿型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第一夹角信息;并将当前脚型关键点对与预设腿型关键点对进行比对,计算得到在垂直方向上的第二夹角信息;S402: Compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; pair the current foot shape key point pair with the preset leg shape key point pair Carry out the comparison, and calculate the second included angle information in the vertical direction;
S403:根据第一夹角信息与第一角度阈值分析得到跑步腿型,并根据第二夹角信息与第二角度阈值分析得到跑步脚型。S403: Analyzing and obtaining the running leg shape according to the first included angle information and the first angle threshold, and obtaining the running foot shape according to the second included angle information and the second angle threshold analysis.
优选的,预设腿型关键点对包括预设左大腿关键点对、预设右大腿关键点对、预设左小腿关键点对和预设右小腿关键点对;Preferably, the preset leg shape key point pair includes a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset right calf key point pair;
当前腿型关键点对包括当前左大腿关键点对、当前右大腿关键点对、当前左小腿 关键点对和当前右小腿关键点对;The current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair;
第一夹角信息包括当前左大腿关键点对与预设左大腿关键点对之间的夹角a1、当前右大腿关键点对与预设右大腿关键点对之间的夹角a2、当前左小腿关键点对与预设左小腿关键点对之间的夹角a3、当前右小腿关键点对与预设右小腿关键点对之间的夹角a4;The first included angle information includes the included angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the included angle a2 between the current right thigh key point pair and the preset right thigh key point pair, and the current left thigh key point pair. The angle a3 between the key point pair of the calf and the preset left calf key point pair, and the angle a4 between the current right calf key point pair and the preset right calf key point pair;
第一角度阈值为e;The first angle threshold is e;
根据第一夹角信息与第一角度阈值分析得到跑步腿型的步骤,包括:According to the first included angle information and the first angle threshold analysis, the steps of obtaining the running leg shape include:
S4031:当a1>e°、a2>-e°、a3>-e°且a4>e°时,判定跑步腿型为X型腿。S4031: When a1>e°, a2>-e°, a3>-e°, and a4>e°, determine that the running leg type is an X-shaped leg.
优选的,预设脚型关键点对包括预设左脚掌关键点对和预设右脚掌关键点对;Preferably, the preset foot shape key point pair includes a preset left sole key point pair and a preset right sole key point pair;
当前脚型关键点对包括当前左脚掌关键点对和当前右脚掌关键点对;The current foot type key point pair includes the current left foot key point pair and the current right foot key point pair;
第二夹角信息包括当前左脚掌关键点对与预设左脚掌关键点对之间的夹角b1、当前右脚掌关键点对与预设右脚掌关键点对之间的夹角b2;The second included angle information includes the included angle b1 between the current left sole key point pair and the preset left sole key point pair, and the included angle b2 between the current right sole key point pair and the preset right sole key point pair;
第二角度阈值为β;The second angle threshold is β;
根据第二夹角信息与第二角度阈值分析得到跑步脚型的步骤,包括:The steps of obtaining the running foot shape by analyzing the second included angle information and the second angle threshold include:
S4032:当b1>β°且b2>-β°时,判定跑步脚型为内八脚。S4032: When b1>β° and b2>-β°, determine that the running foot type is inner eight feet.
可选的,根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态的步骤之后,包括:Optionally, generating a current key point pair according to the coordinates of each key point, comparing the current key point pair with a pre-built benchmark key point pair, and analyzing the steps of obtaining the running posture of the user, including:
S5:根据当前腿型关键点对、当前脚型关键点对、跑步腿型和跑步脚型生成跑步姿态分析信息,实时输出到显示界面。S5: Generate running posture analysis information according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output it to the display interface in real time.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储与一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM (SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium provided in this application and used in the embodiments may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, device, article or method comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, apparatus, article or method. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related The technical field is similarly included in the scope of patent protection of this application.
工业实用性Industrial Applicability
如上所示,本申请至少部分实施例提供的跑步姿态的识别方法、装置和计算机设备具有以下有益效果:通过跑步机采集用户跑步时的下半身图像,然后调用底层骨架提取算法对下半身图像进行解析,从而得到多张关键点热力图。其中,单张关键点热力图对应单个关键点。跑步机对各关键点热力图进行解码,得到各关键点热力图分别对应的关键点坐标。最后,跑步机根据各关键点坐标生成当前关键点对,并将当前关键点对和预先构建的基准关键点对进行比对,分析得到用户的跑步姿态。本申请中跑步机所采集的下半身图像包括用户的脚部图像,从而通过底层骨架提取算法解析得到包括了用户脚部的关键点热力图,增加了对用户跑步时脚部关键点的预测,进而可以分析得到用户的脚部姿态,使得最终识别到的跑步姿态更加全面和准确。As shown above, the method, device and computer equipment for running posture recognition provided by at least some of the embodiments of the present application have the following beneficial effects: collecting the lower body image of the user when running through the treadmill, and then calling the underlying skeleton extraction algorithm to analyze the lower body image, Thereby, multiple key point heatmaps are obtained. Among them, a single keypoint heatmap corresponds to a single keypoint. The treadmill decodes the heat map of each key point, and obtains the coordinates of the key points corresponding to the heat map of each key point. Finally, the treadmill generates the current key point pair according to the coordinates of each key point, compares the current key point pair with the pre-built benchmark key point pair, and analyzes the running posture of the user. The lower body image collected by the treadmill in this application includes the user's foot image, so the underlying skeleton extraction algorithm is used to parse and obtain the key point heat map including the user's feet, which increases the prediction of the key points of the user's feet when running, and further The user's foot posture can be obtained by analysis, so that the final recognized running posture is more comprehensive and accurate.

Claims (12)

  1. 一种跑步姿态的识别方法,包括:A method for identifying a running posture, comprising:
    采集用户跑步时的下半身图像,所述下半身图像包括脚部图像;collecting a lower body image of the user when running, the lower body image including a foot image;
    调用底层骨架提取算法对所述下半身图像进行解析,得到多张关键点热力图,单张关键点热力图对应单个关键点;Call the underlying skeleton extraction algorithm to analyze the lower body image, and obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
    对各所述关键点热力图进行解码,得到各所述关键点热力图分别对应的关键点坐标;Decoding each of the key point heat maps to obtain the key point coordinates corresponding to each of the key point heat maps;
    根据各所述关键点坐标生成当前关键点对,并将所述当前关键点对和预先构建的基准关键点对进行比对,分析得到所述用户的跑步姿态。A current key point pair is generated according to the coordinates of each key point, and the current key point pair is compared with a pre-built reference key point pair, and the running posture of the user is obtained by analysis.
  2. 根据权利要求1所述的跑步姿态的识别方法,其中,所述调用底层骨架提取算法对所述下半身图像进行解析,得到多张关键点热力图的步骤,包括:The method for recognizing running posture according to claim 1, wherein the step of invoking an underlying skeleton extraction algorithm to analyze the lower body image to obtain a plurality of key point heatmaps includes:
    将所述下半身图像输入编码器进行编码,提取得到语义特征,所述编码器由多个深度可分离卷积及一个空洞卷积组成;Inputting the lower body image into an encoder for encoding, and extracting semantic features, the encoder is composed of a plurality of depthwise separable convolutions and a hole convolution;
    通过卷积层叠加,从所述语义特征中预测得到多张粗糙关键点热力图;By stacking convolutional layers, multiple rough keypoint heatmaps are predicted from the semantic features;
    对各所述粗糙关键点热力图进行精炼,得到各所述关键点热力图。Each of the rough key point heat maps is refined to obtain each of the key point heat maps.
  3. 根据权利要求2所述的跑步姿态的识别方法,其中,所述对各所述粗糙关键点热力图进行精炼,得到各所述关键点热力图的步骤中,单张粗糙关键点热力图的精炼步骤包括:The method for recognizing running posture according to claim 2, wherein, in the step of refining each of the rough key point heat maps to obtain each of the key point heat maps, the refining of a single rough key point heat map Steps include:
    将所述粗糙关键点热力图通过空洞空间金字塔池化,提取得到二次关键点热力图;Pooling the rough key point heat map through the empty space pyramid, and extracting the secondary key point heat map;
    基于全局的空间注意力机制对所述二次关键点热力图进行细化,得到所述关键点热力图。The secondary key point heat map is refined based on a global spatial attention mechanism to obtain the key point heat map.
  4. 根据权利要求1所述的跑步姿态的识别方法,其中,对各所述关键点热力图进行解码,得到各所述关键点热力图分别对应的关键点坐标的步骤,包括:The method for identifying a running posture according to claim 1, wherein the step of decoding each of the key point heat maps to obtain the key point coordinates corresponding to each of the key point heat maps comprises:
    使用波峰取点法分别对各所述关键点热力图进行计算,得到各所述关键点热力图各自对应的高斯点峰值;Using the wave peak point method to calculate the heat map of each of the key points respectively, and obtain the corresponding Gauss point peak of each of the heat maps of the key points;
    判断各所述关键点热力图各自对应的高斯点峰值是否为一个;Determine whether the corresponding Gauss point peak of each of the key point heatmaps is one;
    若各所述关键点热力图各自对应的高斯点峰值为一个,则将所述高斯点峰值所在的坐标,作为对应的所述关键点坐标。If there is one Gauss point peak corresponding to each of the key point heatmaps, the coordinates where the Gauss point peak is located are taken as the corresponding key point coordinates.
  5. 根据权利要求4所述的跑步姿态的识别方法,其中,所述判断各所述关键点热力图各自对应的高斯点峰值是否为一个的步骤之后,还包括:The method for recognizing running posture according to claim 4, wherein after the step of judging whether the corresponding Gauss point peak value of each of the key point heat maps is one, the method further comprises:
    若各所述关键点热力图各自对应的高斯点峰值为多个,则从多个所述高斯点峰值中筛选出第一高斯点峰值和第二高斯点峰值,所述第一高斯点峰值为最大高斯点峰值,所述第二高斯点峰值仅小于所述第一高斯点峰值;If there are multiple Gaussian point peaks corresponding to each of the key point heatmaps, the first Gaussian point peak and the second Gaussian point peak are selected from the multiple Gaussian point peaks, and the first Gaussian point peak is the maximum Gaussian point peak value, the second Gaussian point peak value is only smaller than the first Gaussian point peak value;
    计算所述第一高斯点峰值的坐标与所述第二高斯点峰值的坐标之间的距离;calculating the distance between the coordinates of the first Gaussian peak and the coordinates of the second Gaussian peak;
    根据所述距离对所述第一高斯点峰值在X方向上和Y方向上的坐标值进行偏移调整,得到所述关键点热力图对应的所述关键点坐标。Offset adjustment is performed on the coordinate values of the first Gauss point peak in the X direction and the Y direction according to the distance, so as to obtain the key point coordinates corresponding to the key point heat map.
  6. 根据权利要求1所述的跑步姿态的识别方法,其中,各所述关键点坐标包括腿型关键点坐标和脚型关键点坐标,所述基准关键点对包括预设腿型关键点对和预设脚型关键点对,所述当前关键点对包括当前腿型关键点对和当前脚型关键点对,所述跑步姿态包括跑步腿型和跑步脚型;所述根据各所述关键点坐标生成当前关键点对,并将所述当前关键点对和预先构建的基准关键点对进行比对,分析得到所述用户的跑步姿态的步骤,包括:The method for identifying a running posture according to claim 1, wherein each of the key point coordinates includes leg shape key point coordinates and foot shape key point coordinates, and the reference key point pair includes a preset leg shape key point pair and a preset leg shape key point pair. Set foot type key point pair, the current key point pair includes the current leg type key point pair and the current foot type key point pair, and the running posture includes running leg type and running foot type; The steps of generating the current key point pair, comparing the current key point pair with the pre-built benchmark key point pair, and analyzing and obtaining the running posture of the user include:
    根据各所述腿型关键点坐标构建所述当前腿型关键点对,并根据各所述脚型关键点坐标构建所述当前脚型关键点对;The current leg shape key point pair is constructed according to the coordinates of each of the leg shape key points, and the current foot shape key point pair is constructed according to the coordinates of each of the foot shape key points;
    将所述当前腿型关键点对与所述预设腿型关键点对进行比对,计算得到在垂直方向上的第一夹角信息;并将所述当前脚型关键点对与所述预设腿型关键点对进行比对,计算得到在垂直方向上的第二夹角信息;Compare the current leg shape key point pair with the preset leg shape key point pair, and calculate the first included angle information in the vertical direction; and compare the current foot shape key point pair with the preset key point pair. Set the leg shape key point pairs to compare, and calculate the second included angle information in the vertical direction;
    根据所述第一夹角信息与第一角度阈值分析得到所述跑步腿型,并根据所述第二夹角信息与第二角度阈值分析得到所述跑步脚型。The running leg shape is obtained by analyzing the first included angle information and the first angle threshold, and the running foot shape is obtained by analyzing the second included angle information and the second angle threshold.
  7. 根据权利要求6所述的跑步姿态的识别方法,其中,所述预设腿型关键点对包括预设左大腿关键点对、预设右大腿关键点对、预设左小腿关键点对和预设右小腿关键点对;所述当前腿型关键点对包括当前左大腿关键点对、当前右大腿关键点对、当前左小腿关键点对和当前右小腿关键点对;所述第一夹角信息包括所述当前左大腿关键点对与所述预设左大腿关键点对之间的夹角a1、所述当前右大腿关键点对与所述预设右大腿关键点对之间的夹角a2、所述当前左小腿关键点对与所述预设左小腿关键点对之间的夹角a3、所述当前右小腿关键点对与所述预设右小腿关键点对之间的夹角a4;所述第一角度阈值为e;所述根据所述第一夹角信息与第一角度阈值分析得到所述跑步腿型的步骤,包括:The method for recognizing a running posture according to claim 6, wherein the preset leg shape key point pair comprises a preset left thigh key point pair, a preset right thigh key point pair, a preset left calf key point pair, and a preset left calf key point pair Set the right calf key point pair; the current leg shape key point pair includes the current left thigh key point pair, the current right thigh key point pair, the current left calf key point pair and the current right calf key point pair; the first included angle The information includes the angle a1 between the current left thigh key point pair and the preset left thigh key point pair, the angle between the current right thigh key point pair and the preset right thigh key point pair a2, the angle between the current left calf key point pair and the preset left calf key point pair a3, the included angle between the current right calf key point pair and the preset right calf key point pair a4; the first angle threshold is e; the step of analyzing and obtaining the running leg shape according to the first included angle information and the first angle threshold includes:
    当a1>e°、a2>-e°、a3>-e°且a4>e°时,判定所述跑步腿型为X型腿。When a1>e°, a2>-e°, a3>-e°, and a4>e°, it is determined that the running leg type is an X-shaped leg.
  8. 根据权利要求6所述的跑步姿态的识别方法,其中,所述预设脚型关键点对包括预设左脚掌关键点对和预设右脚掌关键点对;所述当前脚型关键点对包括当前左脚掌关键点对和当前右脚掌关键点对;所述第二夹角信息包括所述当前左脚掌关键点对与所述预设左脚掌关键点对之间的夹角b1、所述当前右脚掌关键点对与所述预设右脚掌关键点对之间的夹角b2;所述第二角度阈值为β;所述根据所述第二夹角信息与第二角度阈值分析得到所述跑步脚型的步骤,包括:The method for recognizing running posture according to claim 6, wherein the preset key point pair of foot shape includes a preset left foot key point pair and a preset right foot key point pair; the current foot shape key point pair includes The current left sole key point pair and the current right sole key point pair; the second included angle information includes the angle b1 between the current left sole key point pair and the preset left sole key point pair, the current The included angle b2 between the right sole key point pair and the preset right sole key point pair; the second angle threshold is β; the second angle information and the second angle threshold are analyzed to obtain the Steps for running foot shape, including:
    当b1>β°且b2>-β°时,判定所述跑步脚型为内八脚。When b1>β° and b2>-β°, it is determined that the running foot type is inner eight feet.
  9. 根据权利要求6所述的跑步姿态的识别方法,其中,所述根据各所述关键点坐标生成当前关键点对,并将所述当前关键点对和预先构建的基准关键点对进行比对,分析得到所述用户的跑步姿态的步骤之后,还包括:The method for recognizing running posture according to claim 6, wherein the current key point pair is generated according to the coordinates of each key point, and the current key point pair is compared with a pre-built reference key point pair, After the step of analyzing and obtaining the running posture of the user, it also includes:
    根据所述当前腿型关键点对、所述当前脚型关键点对、所述跑步腿型和所述跑步脚型生成跑步姿态分析信息,实时输出到显示界面。The running posture analysis information is generated according to the current leg shape key point pair, the current foot shape key point pair, the running leg shape and the running foot shape, and output to the display interface in real time.
  10. 一种跑步姿态的识别装置,包括:A running posture recognition device, comprising:
    采集模块,设置为采集用户跑步时的下半身图像,所述下半身图像包括脚部图像;a collection module, configured to collect images of the lower body of the user when running, wherein the images of the lower body include images of feet;
    解析模块,设置为调用底层骨架提取算法对所述下半身图像进行解析,得到多张关键点热力图,单张关键点热力图对应单个关键点;The parsing module is set to call the underlying skeleton extraction algorithm to parse the lower body image to obtain multiple key point heat maps, and a single key point heat map corresponds to a single key point;
    解码模块,设置为对各所述关键点热力图进行解码,得到各所述关键点热力图分别对应的关键点坐标;a decoding module, configured to decode each of the key point heatmaps to obtain key point coordinates corresponding to each of the key point heatmaps;
    分析模块,设置为根据各所述关键点坐标生成当前关键点对,并将所述当前关键点对和预先构建的基准关键点对进行比对,分析得到所述用户的跑步姿态。The analysis module is configured to generate a current key point pair according to the coordinates of each key point, compare the current key point pair with a pre-built reference key point pair, and analyze the running posture of the user.
  11. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,其中,所述处理器执行所述计算机程序时实现权利要求1至9中任一项所述方法的步骤。A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein the processor implements the steps of the method of any one of claims 1 to 9 when the processor executes the computer program.
  12. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 9.
PCT/CN2020/139929 2020-11-26 2020-12-28 Running posture recognition method and apparatus, and computer device WO2022110453A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011349062.5 2020-11-26
CN202011349062.5A CN114627546A (en) 2020-11-26 2020-11-26 Running posture recognition method and device and computer equipment

Publications (1)

Publication Number Publication Date
WO2022110453A1 true WO2022110453A1 (en) 2022-06-02

Family

ID=81755278

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/139929 WO2022110453A1 (en) 2020-11-26 2020-12-28 Running posture recognition method and apparatus, and computer device

Country Status (2)

Country Link
CN (1) CN114627546A (en)
WO (1) WO2022110453A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116645699A (en) * 2023-07-27 2023-08-25 杭州华橙软件技术有限公司 Key point detection method, device, terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948590A (en) * 2019-04-01 2019-06-28 启霖世纪(北京)教育科技有限公司 Pose problem detection method and device
CN110135375A (en) * 2019-05-20 2019-08-16 中国科学院宁波材料技术与工程研究所 More people's Attitude estimation methods based on global information integration
CN110495889A (en) * 2019-07-04 2019-11-26 平安科技(深圳)有限公司 Postural assessment method, electronic device, computer equipment and storage medium
CN111265817A (en) * 2020-03-19 2020-06-12 广东省智能制造研究所 Intelligent treadmill system
CN111358471A (en) * 2020-04-15 2020-07-03 青岛一小步科技有限公司 Body posture detection device and detection method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629306B (en) * 2018-04-28 2020-05-15 京东数字科技控股有限公司 Human body posture recognition method and device, electronic equipment and storage medium
CN110443148B (en) * 2019-07-10 2021-10-22 广州市讯码通讯科技有限公司 Action recognition method, system and storage medium
CN110728209B (en) * 2019-09-24 2023-08-08 腾讯科技(深圳)有限公司 Gesture recognition method and device, electronic equipment and storage medium
CN110765946B (en) * 2019-10-23 2022-07-29 北京卡路里信息技术有限公司 Running posture assessment method, device, equipment and storage medium
CN111488824B (en) * 2020-04-09 2023-08-08 北京百度网讯科技有限公司 Motion prompting method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948590A (en) * 2019-04-01 2019-06-28 启霖世纪(北京)教育科技有限公司 Pose problem detection method and device
CN110135375A (en) * 2019-05-20 2019-08-16 中国科学院宁波材料技术与工程研究所 More people's Attitude estimation methods based on global information integration
CN110495889A (en) * 2019-07-04 2019-11-26 平安科技(深圳)有限公司 Postural assessment method, electronic device, computer equipment and storage medium
CN111265817A (en) * 2020-03-19 2020-06-12 广东省智能制造研究所 Intelligent treadmill system
CN111358471A (en) * 2020-04-15 2020-07-03 青岛一小步科技有限公司 Body posture detection device and detection method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FENG ZHANG; XIATIAN ZHU; HANBIN DAI; MAO YE; CE ZHU: "Distribution-Aware Coordinate Representation for Human Pose Estimation", ARXIV.ORG, 14 October 2019 (2019-10-14), 201 Olin Library Cornell University Ithaca, NY 14853 , XP081515001 *
SHEN, XIAO-FENG ET AL.: "Research on 2D Human Pose Estimation Based on High Resolution Convolutional Neural Network Based on ASPP", MODERN COMPUTER, no. 13, 5 May 2020 (2020-05-05), pages 61 - 65, XP055933415 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116645699A (en) * 2023-07-27 2023-08-25 杭州华橙软件技术有限公司 Key point detection method, device, terminal and computer readable storage medium
CN116645699B (en) * 2023-07-27 2023-09-29 杭州华橙软件技术有限公司 Key point detection method, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN114627546A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN108764031B (en) Method, device, computer equipment and storage medium for recognizing human face
Qiu et al. Pose-guided matching based on deep learning for assessing quality of action on rehabilitation training
CN107784282B (en) Object attribute identification method, device and system
CN111275032B (en) Deep squatting detection method, device, equipment and medium based on human body key points
CN111753747B (en) Violent motion detection method based on monocular camera and three-dimensional attitude estimation
CN109657533A (en) Pedestrian recognition methods and Related product again
US9984304B2 (en) Method and system for recognizing user activity type
CN109325456A (en) Target identification method, device, target identification equipment and storage medium
CN108153421B (en) Somatosensory interaction method and device and computer-readable storage medium
KR20220004009A (en) Key point detection method, apparatus, electronic device and storage medium
CN109274883A (en) Posture antidote, device, terminal and storage medium
WO2021127841A1 (en) Property identification method and apparatus, storage medium, and electronic device
CN110796100A (en) Gait recognition method and device, terminal and storage device
CN112163479A (en) Motion detection method, motion detection device, computer equipment and computer-readable storage medium
WO2022110453A1 (en) Running posture recognition method and apparatus, and computer device
He et al. A New Kinect‐Based Posture Recognition Method in Physical Sports Training Based on Urban Data
CN109784295B (en) Video stream feature identification method, device, equipment and storage medium
CN114513694A (en) Scoring determination method and device, electronic equipment and storage medium
CN111444928A (en) Key point detection method and device, electronic equipment and storage medium
Waheed et al. An automated human action recognition and classification framework using deep learning
CN116884045B (en) Identity recognition method, identity recognition device, computer equipment and storage medium
CN113378691A (en) Intelligent home management system and method based on real-time user behavior analysis
CN115188062A (en) User running posture analysis method and device, running machine and storage medium
Ekambaram et al. Real-time AI-assisted visual exercise pose correctness during rehabilitation training for musculoskeletal disorder
CN115359265A (en) Key point extraction method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20963341

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20963341

Country of ref document: EP

Kind code of ref document: A1