Object attitude key point processing method, system and device and storage medium

By compensating and calibrating the key point data of attitude recognition on the integrated storage and computing chip, the problem of difficulty in balancing accuracy and speed with attitude recognition methods in end-side scenarios is solved, and efficient attitude recognition results are achieved.

CN118823866APending Publication Date: 2024-10-22CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311516640.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing gesture recognition methods are difficult to achieve both high accuracy and fast computing speed in end-to-side scenarios, and are prone to missing key point detection, and lack effective solutions.

Method used

On the storage and calculation integrated chip, by acquiring K-frame key point data of the video stream data, the first key point with stable change degree and missing position coordinates is determined, and compensation and calibration are performed based on its position coordinates, and the image data is updated and integrated to Improve the accuracy and computing speed of gesture recognition.

Benefits of technology

In the terminal-side scenario, the accuracy of gesture recognition is improved and the computing speed is accelerated, and the lack of key point detection is reduced. It is suitable for devices with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823866A_ABST
    Figure CN118823866A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an object attitude key point processing method, system and device, and a storage medium. The method comprises the following steps: acquiring K frames of key point data of image data in video stream data; each frame of key point data comprises N key points of the object attitude, K is a natural number greater than 1, and N is a natural number greater than 1; determining a first key point in the Kth frame of key point data of the K frames of key point data; the first key points represent key points with stable change degrees and missing position coordinates; compensating the position coordinates of the first key point based on the position coordinates of the key points in the K frames of key point data to obtain a compensation result of the first key point; the compensation result is the compensated coordinate of the first key point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to artificial intelligence technology, and in particular to a method, system, device and storage medium for processing key points of an object's posture. Background Art

[0002] In the related technologies, posture recognition methods usually have very large models designed to achieve high accuracy, which makes them difficult to apply to end-side scenarios with limited processing power and storage resources. The posture recognition methods that can be applied to end-side scenarios have low accuracy and are prone to missing key point detections, which indicates that the position coordinates of the key points are missing. There is currently no effective solution to this problem. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a method, system, device and storage medium for processing key points of an object's posture, aiming to effectively meet the accuracy of posture recognition and improve the computing speed of posture recognition.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a method for processing key points of an object's posture, which is applied to a storage-computing integrated chip, and the method includes:

[0006] Acquire K frames of key point data of image data in the video stream data; each frame of the key point data includes N key points of the object posture, wherein K is a natural number greater than 1, and N is a natural number greater than 1;

[0007] Determining a first key point in the Kth frame of key point data of the K frames of key point data; the first key point represents a key point with a stable degree of change and missing position coordinates;

[0008] The position coordinates of the first key point are compensated based on the position coordinates of the key point in the K frame key point data to obtain a compensation result of the first key point; the compensation result is the compensated coordinates of the first key point.

[0009] In the above solution, the method further includes:

[0010] The compensation result updates the position coordinates of the first key point in the key point data of the Kth frame;

[0011] Updating the K frame key point data based on the K frame key point data;

[0012] The position coordinates of the key points in the Kth frame key point data are calibrated based on the position coordinates of the key points in the K frame key point data to obtain a calibration result of the image data; wherein the calibration result is the calibrated coordinates of the N key points.

[0013] In the above solution, the method further includes:

[0014] If it is determined that the first key point does not exist in the K-th frame key point data, the position coordinates of the key points in the K-th frame key point data are calibrated according to the position coordinates of the key points in the K-th frame key point data to obtain the calibration result of the image data.

[0015] In the above solution, determining the first key point in the Kth frame of key point data of the K frames of key point data includes:

[0016] If it is determined that the number type of the position coordinate of the second key point in the key point data of the Kth frame is a non-number NaN (Nota Number, NaN), then the second key point is determined to be a key point with missing position coordinates; the second key point is any key point in the key point data of the Kth frame; the non-number represents an undefined or unrepresentable value;

[0017] If it is determined that the third key point in the K-1th frame key point data in the K frame key point data is in a stable state, then the second key point is determined to be a key point with a stable degree of change; the second key point and the third key point are key points at the same position in adjacent frames;

[0018] The second key point is determined as the first key point.

[0019] In the above solution, the method further includes:

[0020] Determine the average change parameter of the third key point based on the position coordinates of the key point in the first K-1 frames of the key point data in the K frames of key point data;

[0021] If it is determined that the average change parameter is less than the change threshold, it is determined that the third key point is in a stable state.

[0022] In the above scheme, for any key point in the K frame key point data, the storage and computing integrated chip stores at least a first weight value and a second weight value of the key point; the first weight value represents the importance of the key point in compensating the first key point; the second weight value represents the importance of the key point in calibrating the Kth frame key point data.

[0023] In the above scheme, determining the average change parameter of the third key point based on the first K-1 frames of key point data in the K frames of key point data includes:

[0024] Based on the key point data of the previous K-1 frames, determining a first change parameter and a second change parameter of the third key point; wherein the first change parameter represents a change parameter of the third key point on a first coordinate axis, and the second change parameter represents a change parameter of the third key point on a second coordinate axis;

[0025] The determining that the average change parameter is less than a change threshold comprises:

[0026] It is determined that both the first change parameter and the second change parameter are smaller than the change threshold.

[0027] In the above solution, the method further includes:

[0028] The storage-computing integrated array of the storage-computing integrated chip is divided into a first array, a second array and a third array with N columns respectively; N is a natural number greater than 1; the second array is used to determine whether the digital type of the second key point is a non-numeric type; the first array is used to determine whether the third key point is in a stable state; the third array is used to compensate the first key point based on the K frame key point data.

[0029] The embodiment of the present application provides a system for processing key points of an object's posture, the system comprising: a processing module, a storage and computing integrated chip, and a display module; wherein:

[0030] The processing module is used to send the video stream data to the storage and computing integrated chip; receive the compensation result of the image data in the video stream data sent by the storage and computing integrated chip; integrate the image data and the compensation result to obtain a recognition image of the object posture; and send the recognition image to the display module;

[0031] The storage and computing integrated chip is used to obtain K frames of key point data of image data in video stream data; each frame of the key point data includes N key points for object posture processing, wherein K is a natural number greater than 1, and N is a natural number greater than 1; a first key point is determined in the Kth frame of the key point data of the K frames of key point data; the first key point represents a key point with a stable degree of change and missing position coordinates; the position coordinates of the first key point are compensated based on the position coordinates of the key point in the K frames of key point data to obtain a compensation result of the first key point; the compensation result is the compensated coordinates of the first key point;

[0032] The display module is used to receive the recognition image and display the recognition image.

[0033] The embodiment of the present application provides a device for processing an object posture, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein:

[0034] The processor is used to execute the steps of the object posture processing method when running a computer program.

[0035] An embodiment of the present application provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the object posture processing method are implemented.

[0036] The embodiment of the present application provides a method, system, device and storage medium for processing the posture of an object, the method comprising: applying to a storage-computing integrated chip, the method comprising: obtaining K frames of key point data of image data in video stream data; each frame of the key point data comprises N key points of the posture of the object, wherein K is a natural number greater than 1, and N is a natural number greater than 1; determining a first key point in the Kth frame of the key point data of the K frames of key point data; the first key point represents a key point with a stable degree of change and missing position coordinates; based on the position coordinates of the key point in the K frames of key point data, the position coordinates of the first key point are compensated to obtain a compensation result of the first key point; the compensation result is the compensated coordinate of the first key point. The technical solution of the embodiment of the present application is adopted to perform key point compensation operations with a large amount of calculation on the storage-computing integrated chip, which not only meets the accuracy of posture recognition, but also improves the operation speed of posture recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of a process flow of an object posture processing method according to an embodiment of the present application;

[0038] Figure 2 A schematic diagram of the structure of a system for processing object posture according to an embodiment of the present application;

[0039] Figure 3 A schematic diagram of a process flow for implementing a method for processing an object posture in an application example;

[0040] Figure 4 A schematic diagram of a storage-computation integrated array for a method of processing an object posture in an application example;

[0041] Figure 5 A schematic diagram of key point compensation of a method for processing an object posture in an application example;

[0042] Figure 6 A schematic diagram of key point calibration of a method for processing an object posture in an application example;

[0043] Figure 7 A schematic diagram of the structure of a system for processing object posture in an application example;

[0044] Figure 8 A schematic diagram of a hardware entity structure of an object posture processing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0046] In the related technology, posture estimation is a common artificial intelligence technology that can identify the key points of the user's body in an image or video, and connect the key points to form a posture image. For the posture estimation result, if calibration or compensation is required, the existing method usually requires the central processing unit (CPU) to complete this part of the calculation, which further increases the computing time overhead.

[0047] The accuracy of the posture recognition algorithm has a great impact on the key point-based behavior recognition method. In the end-side scenario, the camera can upload the original video to the cloud for calculation, but this method brings a high data transmission burden. Extracting key points from the video on the end-side and then uploading the key point data to the cloud can greatly reduce the data transmission burden. However, at this time, the overall system has high requirements for the key point extraction algorithm on the end-side, for example, it requires it to have a faster reasoning speed and higher accuracy. In addition, for some end-side products, they also have very high requirements for accuracy and reasoning speed. At this time, a reasonable solution design is very important for user experience.

[0048] The embodiments of the present application provide a method, system, device and storage medium for processing an object posture, which can effectively meet the accuracy of posture recognition and improve the computing speed of posture recognition.

[0049] The present application embodiment provides a method for processing an object posture, which is applied to a storage-computing integrated chip, such as Figure 1 As shown, the method includes:

[0050] Step 101: Acquire K frames of key point data of image data in video stream data; each frame of key point data includes N key points of the object posture, wherein K is a natural number greater than 1, and N is a natural number greater than 1.

[0051] Exemplarily, the storage-computing integrated chip can be set in the terminal side device, and the storage-computing integrated chip can be connected to the processing module in the terminal side device, and can receive the adjusted image data obtained by the processing module adjusting the image data corresponding to the video stream data; perform key point detection on at least one frame of the adjusted image data to obtain K frame key point data; and save the K frame key point data.

[0052] Among them, any open source key point detection model in the relevant technology can be used for key point detection, and there is no limitation here. It can be understood that for a frame of image, there should be a person in the image to detect the key point; if there is no person in the image, but the key point is detected, it is considered to be a false detection.

[0053] In other embodiments, the preset number of frames for the number of key points can be determined based on actual conditions. When the number of frames for acquiring key point data of image data in the video stream data is less than the preset number of frames, the key point data of the image data in the video stream data continues to be acquired; when the number of frames for acquiring key point data of image data in the video stream data is greater than or equal to the preset number of frames, the key point data of the image data in the video stream data is stopped, and the most recent, continuous K frames of key point data are retained, and the key point data before the K frames of key point data are deleted.

[0054] It is understandable that the reasons for saving the key points of the most recent, continuous K frames are: first, in the time dimension, there should be a certain correlation between similar key point frames; if the gap in the time dimension is too large, the correlation will be very small; second, if the K frame key points are not restricted and all key point data is saved, it is extremely challenging for the terminal device, because saving all key point data will cause the memory usage to continue to increase until the algorithm cannot run.

[0055] Step 102: determining a first key point in the Kth frame of key point data of K frames; the first key point represents a key point with a stable degree of change and missing position coordinates.

[0056] Exemplarily, whether the position coordinates are missing may be determined based on the digital type of the position coordinates; and whether the degree of change of the first key point is stable may be determined based on the average change parameter of the position coordinates.

[0057] In an application example, the method further includes:

[0058] If it is determined that the numeric type of the position coordinates of the second key point in the key point data of the Kth frame is a non-number NaN, then the second key point is determined to be a key point with missing position coordinates; the second key point is any key point in the key point data of the Kth frame; a non-number represents an undefined or unrepresentable value;

[0059] If it is determined that the third key point in the key point data of the K-1th frame in the key point data of the K frames is in a stable state, then the second key point is determined to be a key point with a stable degree of change; the second key point and the third key point are key points at the same position in adjacent frames;

[0060] The second key point is determined as the first key point.

[0061] Exemplarily, non-number, specifically, a type of value of a numerical value, a data type in computer science, represents an undefined or unrepresentable value.

[0062] It can be understood that whether the third key point is in a stable state can be determined based on whether the average change degree of the third key point is less than a change threshold.

[0063] It should be noted that due to the missing position coordinates of the second key point in the key point data of the Kth frame, the average change degree of the second key point in the key point data of the Kth frame cannot be accurately calculated. Therefore, the average change degree of the third key point at the same position as the second key point in the key point data of the K-1th frame is calculated. If the third key point is in a stable state, it can be assumed that the second key point is also in a stable state, thereby realizing the judgment of whether the second key point is stable.

[0064] In an application example, the method further includes:

[0065] Determine an average change parameter of a third key point based on the position coordinates of the key points in the key point data of the first K-1 frames in the key point data of the K frames;

[0066] If it is determined that the average change parameter is less than the change threshold, it is determined that the third key point is in a stable state.

[0067] Exemplarily, based on the position coordinates of the key points in the key point data of the first K-1 frames in the key point data of the K frames, the average change parameter of the third key point is determined, which can be determined according to the relative coordinates of the key points at the same position in two adjacent frames in the key point data of the first K-1 frames. It can be understood that the average change parameter of the third key point is determined based on the key point data of the first K-1 frames, which can accurately characterize the degree of change of the third key point.

[0068] Exemplarily, if the average change degree of the third key point is greater than the change threshold, the third key point is in an unstable state. In other embodiments, if the third key point is in an unstable state, the key point missing in the Kth frame key point data cannot be compensated by the K frame key point data.

[0069] In an application example, based on the position coordinates of the key points in the first K-1 frames of key point data in the K frames of key point data, determining the average change parameter of the third key point includes:

[0070] Based on the key point data of the previous K-1 frames, determine a first change parameter and a second change parameter of the third key point; wherein the first change parameter represents a change parameter of the third key point on the first coordinate axis, and the second change parameter represents a change parameter of the third key point on the second coordinate axis;

[0071] Correspondingly, determining that the average change parameter is less than the change threshold includes:

[0072] It is determined that both the first change parameter and the second change parameter are less than a change threshold.

[0073] Exemplarily, the first coordinate axis may be the X-axis in the coordinate system where the third key point is located; the second coordinate axis may be the Y-axis in the coordinate system where the third key point is located. Based on the key point data of the previous K-1 frames, the first change parameter of the third key point may be determined according to the relative coordinates of the key point at the same position in two adjacent frames in the key point data of the previous K-1 frames on the X-axis to determine the first change parameter of the third key point; based on the key point data of the previous K-1 frames, the second change parameter of the third key point may be determined according to the relative coordinates of the key point at the same position in two adjacent frames in the key point data of the previous K-1 frames on the Y-axis to determine the second change parameter of the third key point.

[0074] Exemplarily, to determine that both the first change parameter and the second change parameter are less than the change threshold, the first change parameter and the second change parameter can be compared to obtain a comparison result; when the comparison result indicates that the first change parameter is greater than the second change parameter, if it is determined that the first change parameter is less than the change threshold, then it can be considered that both the first change parameter and the second change parameter are less than the change threshold; when the comparison result indicates that the first change parameter is less than the second change parameter, if it is determined that the second change parameter is less than the change threshold, then it can be considered that both the first change parameter and the second change parameter are less than the change threshold.

[0075] It can be understood that the embodiment of the present application can effectively save computing time and improve computing speed by calculating the first change parameter of the first coordinate axis and the second change parameter of the second coordinate axis, and comparing the larger change parameter of the first change parameter and the second change parameter with the change threshold.

[0076] Step 103: Compensate the position coordinates of the first key point based on the position coordinates of the key point in the K frame key point data to obtain a compensation result of the first key point; the compensation result is the compensated coordinates of the first key point.

[0077] Exemplarily, the weighted sum of the N key points of each frame in the K-frame key point data can be performed to obtain the compensated coordinates of the first key point. It should be noted that since the position coordinates of the first key point in the K-frame key point data are missing, its weight needs to be set to 0.

[0078] In an application example, the method further includes:

[0079] The position coordinates of the first key point in the key point data of the Kth frame are updated according to the compensation result;

[0080] Update the key point data of the K frame based on the key point data of the K frame;

[0081] Based on the position coordinates of the key points in the K-th frame key point data, the position coordinates of the key points in the K-th frame key point data are calibrated to obtain a calibration result of the image data; wherein the calibration result is the calibrated coordinates of the N key points.

[0082] Exemplarily, the position coordinates of the first key point in the key point data of the Kth frame are updated according to the compensation result, and the compensated key point data of the Kth frame can be obtained by updating the compensated first key point and the key point data of the Kth frame; the K frame key point data is updated based on the key point data of the Kth frame, and the updated key point data of the K frame can be obtained by combining the compensated key point data of the Kth frame and the key point data of the previous K-1 frames.

[0083] For example, the Kth frame key point data is calibrated based on the K frame key point data, and a weighted sum is performed based on the N key points of each frame in the K frame key point data. The position information of the key point itself and the position information of other key points can be used to stabilize the position of each key point.

[0084] In an application example, the method further includes:

[0085] If it is determined that the first key point does not exist in the key point data of the Kth frame, the position coordinates of the key points in the key point data of the Kth frame are calibrated according to the position coordinates of the key points in the key point data of the Kth frame to obtain a calibration result of the image data.

[0086] It is understandable that if it is determined that key point compensation is not necessary, key point calibration is performed directly. The embodiment of the present application has high real-time performance and can quickly complete key point compensation and key point calibration for each frame of image, and can have good effects in practical applications.

[0087] In an application example, for any key point in K frame key point data, the storage and computing integrated chip stores at least a first weight value and a second weight value of the key point; the first weight value represents the importance of the key point in compensating the first key point; the second weight value represents the importance of the key point in calibrating the Kth frame key point data.

[0088] In other embodiments, the weight data of the pre-trained posture estimation model or key point detection model can also be written into the storage-computation integrated array to perform posture estimation and obtain key point data. It can be understood that the weight data is stored on the storage-computation integrated array, and the storage-computation integrated computing architecture integrates the data storage unit and the computing unit into one, which can significantly reduce data handling, greatly improve computing parallelism and energy efficiency, and greatly improve computing speed.

[0089] In an application example, the method further includes:

[0090] The storage-computing integrated array of the storage-computing integrated chip is divided into a first array, a second array and a third array with N columns respectively; N is a natural number greater than 1; the second array is used to determine whether the digital type of the second key point is a non-numeric type; the first array is used to determine whether the third key point is in a stable state; the third array is used to compensate the first key point based on the K frame key point data.

[0091] It is understandable that key point compensation, key point missing judgment, and key point stability detection can be completed simultaneously on the three arrays on the integrated array without serial implementation, thereby reducing the running time.

[0092] The present application embodiment provides a system for processing key points of an object posture, such as Figure 2 As shown, the object posture key point processing system includes: a processing module 201, a storage and computing integrated chip 202 and a display module 203; wherein,

[0093] The processing module 201 is used to send the video stream data to the storage and computing integrated chip 202; receive the compensation result of the image data in the video stream data sent by the storage and computing integrated chip 202; integrate the image data and the compensation result to obtain a recognition image of the object posture; and send the recognition image to the display module 203;

[0094] The storage and computing integrated chip 202 is used to obtain K frames of key point data of image data in the video stream data; each frame of key point data includes N key points for object posture processing, wherein K is a natural number greater than 1, and N is a natural number greater than 1; a first key point is determined in the Kth frame of key point data of the K frames of key point data; the first key point represents a key point with a stable degree of change and missing position coordinates; the position coordinates of the first key point are compensated based on the position coordinates of the key point in the K frames of key point data to obtain a compensation result of the first key point; the compensation result is the compensated coordinates of the first key point;

[0095] The display module 203 is used to receive the recognition image and display the recognition image.

[0096] In other embodiments, the object posture processing system further includes an image extraction module, which is used to input video stream data, perform image extraction on the video stream data, and obtain at least one frame of image data; and send the at least one frame of image data to the processing module 201 .

[0097] Exemplarily, the processing module 201 may be a computing module that may receive at least one frame of image data corresponding to the video stream data sent by the image extraction module. In some embodiments, the processing module 201 may also resize each frame of image data according to a preset value to obtain at least one frame of image data after resizing; and send the at least one frame of image data after resizing to the storage-computing integrated chip 202.

[0098] Exemplarily, the processing module 201 can also receive the compensation result sent by the storage and computing integrated chip 202, integrate the compensation result with the image data, display the key point result on the original image, and obtain a recognized image; and send the recognized image to the display module for display.

[0099] In some embodiments, the processing module 201 can integrate the compensation result with the image data to obtain a compensated image. The processing module 201 can also receive the calibration result sent by the storage and computing integrated chip 202, integrate the calibration result with the image data, display the key point result on the compensated image, and obtain a recognized image; the recognized image is sent to the display module for display.

[0100] Exemplarily, the display module 203 receives the recognition image provided by the processing module 201 and displays it on an external display device such as a screen.

[0101] The object posture processing method and system of the embodiment of the present application are illustrated below with reference to an application example.

[0102] An embodiment of the present application proposes a posture estimation method and system based on a storage and computing integrated array, in which weight data of a pre-trained posture estimation model is written into the storage and computing integrated array to perform posture estimation; further, an embodiment of the present application proposes a posture compensation method implemented by the storage and computing integrated array to achieve rapid prediction of posture calibration.

[0103] like Figure 3 As shown, the implementation steps of the posture estimation method based on the storage and computing integrated array in the embodiment of the present application mainly include image frame extraction, key point detection, key point compensation judgment, key point compensation, key point calibration, etc.

[0104] Step 301: extract the current frame of the video stream.

[0105] Exemplarily, image frames are extracted from the video stream to obtain at least one frame of image.

[0106] Step 302: key point detection.

[0107] Exemplarily, key point detection is performed on each frame of the video stream to obtain a detection result, which characterizes at least one frame of key points. The key points can be determined using any open source key point detection model in the relevant technology, such as an affinity field (openpose) model of key points, etc., and the technology used is deep learning.

[0108] In the embodiment of the present application, the key point detection part adopts a key point detection model based on deep learning, and its model weights are written into the storage and computing integrated array after arrangement, and can also be placed in other devices for calculation. During reasoning, fast reasoning can be achieved through the pre-set control flow, which greatly reduces the reasoning delay.

[0109] Step 303: Save key points.

[0110] Exemplarily, the detection results representing key points of at least one frame are saved.

[0111] Step 304: Determine whether the key point frame number is greater than or equal to K. If so, execute step 305; if not, execute step 301.

[0112] Exemplarily, the number of key point frames K that need to be saved is preset, and if the number of key point frames that have been saved is less than K, the key points continue to be extracted and saved.

[0113] Step 305: retain the most recent K frame key points.

[0114] It should be noted that in the subsequent processing, the embodiment of the present application only saves the most recent and continuous K frames of key points, and uses the most recent and continuous K frames of key points to perform subsequent key point compensation judgment, key point missing detection, key point compensation operation and key point calibration operation.

[0115] Step 306: Determine whether the key point needs to be compensated, if so, execute step 307; if not, execute step 308.

[0116] For example, assuming that the number of key points is N, a total of K frames of key points need to be saved, and there is an idle storage-computation integrated array with KN rows and 3N columns. Figure 4 As shown, the first N columns of the storage-computation integrated array are used to determine the stability of the key points, the middle N columns are used to determine which key points need to be compensated, and the last N columns are used to compensate the key points. There are KN key points in total, and each N key points constitute a frame as the input of the storage-computation integrated array, so KN rows are required.

[0117] Key point compensation judgment:

[0118] Part 1: Key point missing detection: The middle N columns of the storage-computation integrated array are used to determine the key point missing situation of the Kth frame. If a NaN key point appears among the N key points, the key point is considered missing.

[0119] Part II: Key point stability detection: The stability of the key point of the Kth frame is defined as the average change of the key points of the previous K frames. Similarly, the stability of the key point of the K-1th frame is defined as the average change of the key points of the previous K-1 frames. The average change of the i-th key point in the K-1th frame is shown in the following formulas (1)-(3).

[0120]

[0121]

[0122] max(S xi , S yi )≤T (3)

[0123] In the above formula, S xi Indicates the degree of change of the i-th key point in the x-axis direction, S yi Indicates the degree of change of the i-th key point in the y-axis direction. ij Represents the x-axis coordinate data of the i-th key point in the j-th frame, and similarly y ij Indicates the y-axis coordinate data. If the maximum value of the average change degree in the x-axis and y-axis is less than or equal to the change threshold T, it is considered to be in a stable state, otherwise it is in an unstable state.

[0124] If the average change degree is greater than the change threshold T, it is considered that the i-th key point in the K-1th frame is in an unstable state, that is, the i-th key point in the K-1th frame is in a state of rapid change. At this time, if the key point is missing in the Kth frame, it cannot be compensated. If the average change degree is less than the change threshold T, it is considered that the i-th key point in the K-1th frame is in a stable state, that is, the change of the i-th key point in the K-1th frame is very small. At this time, if the key point of the Kth frame is missing, the key points of the previous K frames can be used for compensation.

[0125] If the key point is missing and is also in a stable state, it is further determined that the key point needs to be compensated. Specifically, the key point missing detection result and the key point stable detection result can be integrated through an AND operation to determine whether compensation is needed.

[0126] Step 307: Key point compensation.

[0127] Exemplarily, if it is determined that the key point p in the Kth frame needs to be compensated, the following formula (4) is used for compensation.

[0128]

[0129] Among them, P p,k represents the compensated coordinates of key point p in the Kth frame, P i,j Represents the coordinate data of the i-th key point in the j-th frame (x ij ,y ij ), w i,j Indicates the corresponding weight values, which will be placed in the storage-computation integrated array for further calculation. It should be noted that since the pth key point of the Kth frame is missing, its value will be NaN, so its weight w needs to be p,K Set to 0. Figure 5 It is a schematic diagram of the key point compensation results. The left side is before compensation, the right side is after compensation, and the filled line circle is the compensation result.

[0130] Advantages: On the end side, in scenarios where computing power is insufficient, key points are often missing, and even a certain frame may not detect any key points at all. At this time, the designed method can compensate for all missing key points in a timely manner on the storage-computing integrated array, with high speed and low power consumption. The embodiment of the present application uses the storage-computing integrated array to simultaneously complete key point compensation, key point missing detection, and key point stability detection, without the need for serial execution, thereby reducing running time.

[0131] Step 308: Key point calibration.

[0132] If it is determined that key point compensation is not necessary, key point calibration is performed directly. Otherwise, key point calibration is performed after key point compensation. The main purpose of key point calibration is to stabilize the key point position by using its own key point position information, other key point position information and timing information. This scheme uses the following formula (5) for key point calibration. It should be noted that this scheme does not calibrate undetected key points.

[0133]

[0134] Among them, P o,k represents the calibrated coordinates of key point o in the Kth frame, P i,j Represents the coordinate data of the i-th key point in the j-th frame (x ij ,y ij ), w′ i,j Represents the corresponding weight values, which will be placed in the storage and computing array for further calculation.

[0135] like Figure 6The following figure shows the key point calibration results. The left figure shows an abnormal key point. The right elbow key point position is abnormal. After calibration, the elbow key point position returns to normal. The above formula represents the calibration for the oth point. The difference from the key point compensation part is that the key point compensation only estimates the missing key points, while the key point calibration requires calibration of all key points. In addition, the position information of the calibrated position can also be used to calculate the estimated position.

[0136] Step 309: Output the result.

[0137] Exemplarily, the key point calibration result is output, and the key point calibration result is integrated with the image data to obtain a recognition image of the human body posture.

[0138] like Figure 7 As shown, the posture estimation system based on the storage and computing integrated array in the embodiment of the present application includes an image extraction module, a computing module, a display module and a storage and computing integrated chip.

[0139] The first part, the image extraction module inputs the original video stream, extracts the image from the original video stream, and sends the extracted image to the calculation module;

[0140] The second part, the computing module, is used to receive the image from the image recognition module, and adjust the image size to a preset value, and send it to the chip for computing. After obtaining the chip computing result, the image and the computing result are integrated, and the key point result is displayed in the original image, and further sent to the display module for display;

[0141] The third part, the integrated storage and computing chip, is used to store the weights of the key point detection model, the weights of key point compensation, calibration and other methods, so as to achieve fast key point detection, compensation and calibration. Its input comes from the computing module, and the result is returned to the computing module.

[0142] The fourth part, the display module receives the image information provided by the computing module and displays it on an external display device such as a screen.

[0143] The embodiment of the present application designs a method based on an integrated storage and computing array for key point compensation judgment, key point compensation, and key point calibration, that is, the core computing part of the judgment is placed on the integrated storage and computing array to reduce the calculation delay as much as possible.

[0144] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a device for processing the posture of an object. Figure 8 Only an exemplary structure of the object posture processing device is shown, not all structures, and can be implemented as needed. Figure 8 Partial or complete structure shown.

[0145] like Figure 8 As shown, the object posture processing device 800 provided in the embodiment of the present application includes: at least one processor 801, a memory 802 and a user interface 803. The various components in the object posture processing device 800 are coupled together through a bus system 804. It can be understood that the bus system 804 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 804 .

[0146] The user interface 803 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0147] The memory 802 in the embodiment of the present application is used to store various types of data to support the operation of the control device. Examples of such data include: any computer program used to operate on the control device.

[0148] The object posture processing method disclosed in the embodiment of the present application can be applied to the processor 801, or implemented by the processor 801. The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the object posture processing method can be completed by the hardware integrated logic circuit or software instructions in the processor 801. The above-mentioned processor 801 can be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 801 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 802. The processor 801 reads the information in the memory 802 and completes the steps of the object posture processing method provided in the embodiment of the present application in combination with its hardware.

[0149] In an exemplary embodiment, the object posture processing device can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0150] It can be understood that the memory 802 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0151] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, which can be a computer-readable storage medium, for example, a memory 802 storing a computer program, and the computer program can be executed by a processor 801 of the object posture processing device to complete the steps described in the method of the present application embodiment. The computer-readable storage medium can be a memory such as a ROM, a PROM, an EPROM, an EEPROM, a Flash Memory, a magnetic surface memory, an optical disk, or a CD-ROM.

[0152] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0153] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0154] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for processing key points of an object posture, characterized in that: Applied to a storage-computing integrated chip, the method includes: Acquire K frames of key point data of image data in the video stream data; each frame of the key point data includes N key points of the object posture, wherein K is a natural number greater than 1, and N is a natural number greater than 1; Determining a first key point in the Kth frame of key point data of the K frames of key point data; the first key point represents a key point with a stable degree of change and missing position coordinates; The position coordinates of the first key point are compensated based on the position coordinates of the key point in the K frame key point data to obtain a compensation result of the first key point; the compensation result is the compensated coordinates of the first key point.

2. The method according to claim 1, characterized in that The method further comprises: Update the position coordinates of the first key point in the key point data of the Kth frame according to the compensation result; Updating the K frame key point data based on the K frame key point data; The position coordinates of the key points in the Kth frame key point data are calibrated based on the position coordinates of the key points in the K frame key point data to obtain a calibration result of the image data; wherein the calibration result is the calibrated coordinates of the N key points.

3. The method according to claim 1, characterized in that The method further comprises: If it is determined that the first key point does not exist in the K-th frame key point data, the position coordinates of the key points in the K-th frame key point data are calibrated according to the position coordinates of the key points in the K-th frame key point data to obtain the calibration result of the image data.

4. The method according to claim 1, characterized in that: The determining of the first key point in the Kth frame of key point data of the K frames of key point data comprises: If it is determined that the digital type of the position coordinate of the second key point in the key point data of the Kth frame is a non-number NaN, then the second key point is determined to be a key point with missing position coordinates; the second key point is any key point in the key point data of the Kth frame; the non-number represents an undefined or unrepresentable value; If it is determined that the third key point in the K-1th frame key point data in the K frame key point data is in a stable state, then the second key point is determined to be a key point with a stable degree of change; the second key point and the third key point are key points at the same position in adjacent frames; The second key point is determined as the first key point.

5. The method according to claim 4, characterized in that The method further comprises: Determine the average change parameter of the third key point based on the position coordinates of the key point in the first K-1 frames of the key point data in the K frames of key point data; If it is determined that the average change parameter is less than the change threshold, it is determined that the third key point is in a stable state.

6. The method according to claim 3, characterized in that For any key point in the K frame key point data, the storage and computing integrated chip stores at least a first weight value and a second weight value of the key point; the first weight value represents the importance of the key point in compensating the first key point; The second weight value represents the importance of the key point to calibrating the key point data of the Kth frame.

7. The method according to claim 5, characterized in that The determining the average change parameter of the third key point based on the position coordinates of the key point in the first K-1 frames of the key point data in the K frames of key point data comprises: Based on the key point data of the previous K-1 frames, determining a first change parameter and a second change parameter of the third key point; wherein the first change parameter represents a change parameter of the third key point on a first coordinate axis, and the second change parameter represents a change parameter of the third key point on a second coordinate axis; The determining that the average change parameter is less than a change threshold comprises: It is determined that both the first change parameter and the second change parameter are smaller than the change threshold.

8. The method according to claim 4, characterized in that The method further comprises: The storage-computing integrated array of the storage-computing integrated chip is divided into a first array, a second array and a third array with N columns respectively; N is a natural number greater than 1; the second array is used to determine whether the digital type of the second key point is a non-numeric type; the first array is used to determine whether the third key point is in a stable state; the third array is used to compensate the first key point based on the K frame key point data.

9. A system for processing key points of an object's posture, the system comprising: Processing module, storage and computing integrated chip and display module; among them, The processing module is used to send the video stream data to the storage and computing integrated chip; receive the compensation result of the image data in the video stream data sent by the storage and computing integrated chip; integrate the image data and the compensation result to obtain a recognition image of the object posture; and send the recognition image to the display module; The storage and computing integrated chip is used to obtain K frames of key point data of image data in video stream data; each frame of the key point data includes N key points for object posture processing, wherein K is a natural number greater than 1, and N is a natural number greater than 1; a first key point is determined in the Kth frame of the key point data of the K frames of key point data; the first key point represents a key point with a stable degree of change and missing position coordinates; the position coordinates of the first key point are compensated based on the position coordinates of the key point in the K frames of key point data to obtain a compensation result of the first key point; the compensation result is the compensated coordinates of the first key point; The display module is used to receive the recognition image and display the recognition image.

10. A device for processing an object posture, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 8 when running a computer program.

11. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Cardio-pulmonary resuscitation pressing posture normalization evaluation method and system

    CN120766365A