Multi-person real-time 3D motion recognition and evaluation method, device, equipment and medium
The YOLOV5 and Openpose models are used to identify joint points, and combined with the three-dimensional human pose estimation and the k-nearest neighbor algorithm, the inaccuracy problem of two-dimensional pose point recognition in multi-person action recognition is solved, and more efficient and accurate multi-person action recognition is achieved.
Patent Information
- Application Number
- CN202210356817.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-06
AI Technical Summary
The efficiency and accuracy of multi-person action recognition in the existing technology are poor. Especially under the condition of a single-angle camera, two-dimensional gesture point recognition is affected by occlusion, lighting and background, making it difficult to accurately identify multi-person action behaviors.
YOLOV5 detection and Openpose models are used to identify joint points, combined with breadth search and three-dimensional human posture estimation baseline, to convert two-dimensional coordinates into three-dimensional coordinates, and use k-nearest neighbor algorithm to extract feature vectors for action type comparison to improve recognition accuracy.
By converting into three-dimensional coordinates, human body posture points are accurately obtained, which improves the efficiency and accuracy of multi-person action recognition and reduces recognition noise and errors.
Smart Images

Figure CN114694257B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of image processing technology, and in particular to a method, device, equipment and medium for multi-person real-time three-dimensional motion recognition and evaluation. Background Art
[0002] At present, human action recognition refers to the recognition of human actions in image sequences or videos through computer vision technology and machine learning methods. In recent years, human action recognition has been widely used in intelligent monitoring, video retrieval, human-computer interaction, behavior analysis, virtual reality, etc. The research methods, model algorithms and description methods of human action recognition have achieved effective development. Among them, human skeleton key point detection has received more and more attention. Human skeleton key point detection is one of the basic algorithms of computer vision. To perform multi-person posture detection, it is currently facing a series of unprecedented challenges.
[0003] Most of the existing computer vision-based action recognition methods depict human posture points in two dimensions, such as video clips, images or paintings. This representation method lacks depth information, and due to the influence of occlusion, background, overlapping of key points of the human body, lighting, complex actions, etc., it is difficult for humans to understand the action information. In addition, it is more difficult for multiple people to perform action recognition under the condition of a single-angle camera, and its accuracy is difficult to guarantee.
[0004] It can be seen that there is an urgent need for a multi-person real-time 3D motion recognition and evaluation method that can simultaneously and efficiently and accurately identify the actions of multiple people. Summary of the invention
[0005] In view of this, the embodiments of the present disclosure provide a method, device, equipment and medium for real-time three-dimensional motion recognition evaluation of multiple people, which at least partially solve the problem of poor efficiency and accuracy of multi-person motion recognition in the prior art.
[0006] In a first aspect, the present disclosure provides a method for real-time three-dimensional motion recognition and evaluation of multiple persons, comprising:
[0007] Use YOLOV5 to detect the target frame in each picture of the input data source and use the openpose model to identify the joint points of all people in each picture and the two-dimensional coordinates corresponding to the joint points;
[0008] Select any picture and determine whether it is a normal picture;
[0009] If yes, then according to the correspondence between the target box detected by YOLOV5 and the distribution of joint points obtained by openpose, combined with the changes in joint points in adjacent pictures, the breadth search method is used to determine the joint points in the current picture and its adjacent pictures with the closest distance as the same person, thereby dividing the different people in each picture;
[0010] If not, then end the parsing of the current image and continue to recognize the next image;
[0011] The 2D coordinates in all normal images are converted into 3D coordinates using the 3D human pose estimation baseline;
[0012] Extracting feature vectors according to the three-dimensional coordinates in each of the normal images;
[0013] The k-nearest neighbor algorithm is used to search and compare the feature vector of each normal picture with the sample vector corresponding to the sample action type to obtain the action type corresponding to each normal picture.
[0014] According to a specific implementation manner of an embodiment of the present disclosure, all pictures in the data source are pictures arranged in time sequence.
[0015] According to a specific implementation of the embodiment of the present disclosure, after the step of using the Openpose model to identify the joint points of all people in each picture in the input data source and the two-dimensional coordinates corresponding to each of the joint points, and after the step of using the three-dimensional human body posture estimation baseline to convert the two-dimensional coordinates in all normal pictures into three-dimensional coordinates, the method further includes:
[0016] The two-dimensional coordinates and the three-dimensional coordinates are normalized by subtracting the mean and dividing by the standard deviation.
[0017] According to a specific implementation of the embodiment of the present disclosure, the step of selecting any one picture and determining whether it is a normal picture includes:
[0018] Select any picture and get the two-dimensional coordinates corresponding to its joint points;
[0019] If the two-dimensional coordinates can be obtained, the image is determined to be a normal image;
[0020] If the two-dimensional coordinates cannot be obtained, the image is determined to be an abnormal image.
[0021] According to a specific implementation of the embodiment of the present disclosure, after the step of obtaining the corresponding relationship between the target frame detected by yolov5 and the distribution of joint points obtained by openpose, combining the changes of joint points in adjacent pictures, using a breadth search method to determine that the joint points in the current picture and its adjacent pictures with the closest distance are the same person, thereby dividing different people in each picture, the method further includes:
[0022] The missing values of the current picture are filled according to the two-dimensional coordinates corresponding to the joint points in the adjacent pictures.
[0023] According to a specific implementation of the embodiment of the present disclosure, the expression of the 3D human body posture estimation baseline is: Among them, x i is the input two-dimensional coordinate, f(x i ) is the transformed three-dimensional coordinate, y i is the real human joint point coordinate, and L is the loss function.
[0024] In a second aspect, the present disclosure provides a multi-person real-time three-dimensional motion recognition and evaluation device, comprising:
[0025] The recognition module is used to detect the target frame in each picture of the input data source using YOLOV5 and use the openpose model to identify the joint points of all people in each picture and the two-dimensional coordinates corresponding to the joint points;
[0026] A judgment module is used to select any picture and judge whether it is a normal picture;
[0027] If yes, then according to the correspondence between the target box detected by YOLOV5 and the distribution of joint points obtained by openpose, combined with the changes in joint points in adjacent pictures, the breadth search method is used to determine the joint points in the current picture and its adjacent pictures with the closest distance as the same person, thereby dividing the different people in each picture;
[0028] If not, then end the parsing of the current image and continue to recognize the next image;
[0029] A conversion module, used to convert the two-dimensional coordinates in all normal images into three-dimensional coordinates using the three-dimensional human posture estimation baseline;
[0030] An extraction module, used for extracting a feature vector according to the three-dimensional coordinates in each of the normal images;
[0031] The comparison module is used to use the k-nearest neighbor algorithm to search and compare the feature vector of each normal picture with the sample vector corresponding to the sample action type to obtain the action type corresponding to each normal picture.
[0032] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0033] at least one processor; and,
[0034] a memory communicatively connected to the at least one processor; wherein,
[0035] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the multi-person real-time three-dimensional motion recognition and evaluation method in the aforementioned first aspect or any implementation of the first aspect.
[0036] In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the multi-person real-time three-dimensional motion recognition and evaluation method in the aforementioned first aspect or any implementation of the first aspect.
[0037] In the fifth aspect, the embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the multi-person real-time three-dimensional motion recognition and evaluation method in the aforementioned first aspect or any implementation of the first aspect.
[0038] The multi-person real-time three-dimensional action recognition evaluation scheme in the disclosed embodiment includes: using YOLOV5 to detect each picture in the input data source to obtain a target frame and using the openpose model to identify the joints of all people in each picture and the two-dimensional coordinates corresponding to the joints; selecting any picture and judging whether it is a normal picture; if so, according to the corresponding relationship between the target frame detected by YOLOV5 and the distribution of joints obtained by openpose, combined with the changes in the joints in adjacent pictures, using the breadth search method to determine that the joints in the current picture and its adjacent pictures with the closest distance are the same person, thereby dividing different people in each picture; if not, ending the analysis of the current picture and continuing to identify the next picture; using the three-dimensional human body posture estimation baseline to convert the two-dimensional coordinates in all normal pictures into three-dimensional coordinates; extracting feature vectors according to the three-dimensional coordinates in each normal picture; using the k-nearest neighbor algorithm to search and compare the feature vector of each normal picture with the sample vector corresponding to the sample action type, to obtain the action type corresponding to each normal picture.
[0039] The beneficial effects of the embodiments of the present disclosure are as follows: through the scheme of the present disclosure, the 2D human skeleton coordinate data acquired by OpenPose is converted into 3D human coordinate data, which can more accurately acquire human posture points and improve the efficiency and accuracy of multi-person motion recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A flowchart of a multi-person real-time three-dimensional motion recognition and evaluation method provided in an embodiment of the present disclosure;
[0042] Figure 2 A schematic diagram of the structure of a multi-person real-time three-dimensional motion recognition and evaluation device provided in an embodiment of the present disclosure;
[0043] Figure 3 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0044] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0045] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0046] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0047] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0048] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0049] There are three main types of existing posture estimation related technologies. One type is optical capture instruments such as opti-track, which attach multiple Mark points on the human body, detect the position of the Mark points, and finally determine the position of the human joint points. This method requires more hardware assistance, has great limitations in use, and is not popularized. The second type is similar to Kinect, which obtains the three-dimensional joint coordinates of the human body through multiple cameras and binocular positioning. This method is also limited in use, has many hardware assistance, high cost, and is not popularized. The third type is to use a monocular camera to detect the coordinates of the two-dimensional joint points of the human body using a deep learning algorithm, but does not achieve the conversion to three-dimensional coordinates, and cannot obtain further information about the human joints. In addition, when the existing recognition of multi-person human body motion behaviors is performed under a single camera and a single angle, because two-dimensional human body posture points are generated, and there are inevitably other factors such as motion occlusion or light, background, etc., the posture points will be inaccurate and the motion analysis and recognition cannot be completed correctly. There are also some algorithms for converting 2D coordinate data to 3D coordinate data that rely on limited training data. After conversion, they only have a relatively good effect on some image processing and cannot be widely used.
[0050] The disclosed embodiment provides a multi-person real-time three-dimensional motion recognition and evaluation method, which can be applied to the multi-person motion recognition process in physical examinations or daily training scenarios.
[0051] See also Figure 1 , is a flow chart of a method for real-time 3D motion recognition and evaluation of multiple persons provided by an embodiment of the present disclosure. Figure 1 As shown, the method mainly comprises the following steps:
[0052] S101, using YOLOV5 to detect each image in the input data source to obtain a target frame and using the openpose model to identify the joint points of all people in each image and the two-dimensional coordinates corresponding to the joint points;
[0053] Furthermore, all pictures in the data source are pictures arranged in time sequence.
[0054] In the specific implementation, considering that the existing method is to obtain the three-dimensional joint coordinates of the human body through multiple cameras and binocular positioning, this method also has great limitations, much hardware assistance, high cost, and is not popularized. The data source can use image acquisition equipment such as multi-angle cameras to collect real-time videos containing multiple human bodies during sports tests, and all the pictures obtained are pictures arranged in time sequence.
[0055] The data source may then be input into the Openpose model, and the Openpose model may identify the joint points of all persons in each picture in the data source and the two-dimensional coordinates corresponding to each of the joint points.
[0056] For example, the overall process of the OpenPose method can be summarized as follows:
[0057] (a) Input a color person image, video (or rtsp video stream);
[0058] (b) The feedforward network predicts the key point positions of the detected target and obtains its two-dimensional confidence map S and a set of 2D vector fields L;
[0059] (c) Use S and L to encode the correlation vector field between the various parts of the detection target;
[0060] (d) The affinity vector field of the detected target is analyzed through confidence analysis, and the 2D key points of all detected targets are finally marked.
[0061] (e) The joint points corresponding to the identified point sequence are shown in Table 1
[0062]
[0063]
[0064] Table 1
[0065] S102, selecting any picture and determining whether it is a normal picture;
[0066] Optionally, the step of selecting any image and determining whether it is a normal image includes: selecting any image and obtaining the two-dimensional coordinates corresponding to its joint points;
[0067] If the two-dimensional coordinates can be obtained, the image is determined to be a normal image;
[0068] If the two-dimensional coordinates cannot be obtained, the image is determined to be an abnormal image.
[0069] In the specific implementation, taking into account the requirements of timeliness, we need to use a simple and fast method to separate the characters in the video in order to achieve accurate identification of individuals in the motion analysis and recognition of multiple people. Before that, you can first select any picture and then determine whether it is a normal picture. For example, when there is no person in the input data, the two-dimensional coordinates of any human skeleton cannot be obtained, and the picture is judged to be an abnormal picture. If the two-dimensional coordinates of the picture can be obtained, the picture is judged to be a normal picture.
[0070] If yes, then execute step S103, according to the correspondence between the target frame detected by YOLOV5 and the distribution of joint points obtained by openpose, combined with the changes in joint points in adjacent pictures, use the breadth search method to determine the joint points in the current picture and its adjacent pictures with the closest distance as the same person, thereby dividing different people in each picture;
[0071] If the current picture is a normal picture, the correspondence between the target box and the joint point distribution obtained by openpose can be obtained based on YOLOV5 detection. Combined with the changes in the joint points in adjacent pictures, the breadth search method is used to determine that the joint points in the current picture and its adjacent pictures with the closest distance are the same person, thereby dividing the different people in each picture.
[0072] Optionally, in step S103, according to the correspondence between the target frame detected by YOLOV5 and the distribution of joint points obtained by openpose, combined with the changes in the joint points in the adjacent pictures, a breadth search method is used to determine that the joint points in the current picture and its adjacent pictures with the closest distance are the same person, thereby dividing different persons in each picture, the method further includes:
[0073] The missing values of the current picture are filled according to the two-dimensional coordinates corresponding to the joint points in the adjacent pictures.
[0074] Of course, considering that there may be occlusion when the human body is in motion, after completing the personnel division in the current picture, the missing values of the current picture can be filled according to the two-dimensional coordinates corresponding to the joint points in the adjacent pictures, so as to make the subsequent recognition results more accurate.
[0075] If not, then execute step S104 to end the analysis of the current image and continue to identify the next image;
[0076] S105, converting the two-dimensional coordinates in all normal images into three-dimensional coordinates using the three-dimensional human body posture estimation baseline;
[0077] Furthermore, the expression of the 3D human body posture estimation baseline is: Among them, x i is the input two-dimensional coordinate, f(x i ) is the transformed three-dimensional coordinate, y i is the real human joint point coordinate, and L is the loss function.
[0078] Optionally, after the Openpose model is used to identify the joint points of all persons in each picture in the input data source and the two-dimensional coordinates corresponding to each of the joint points in step S101, and after the three-dimensional human body posture estimation baseline is used to convert the two-dimensional coordinates in all normal pictures into three-dimensional coordinates in step S105, the method further includes:
[0079] The two-dimensional coordinates and the three-dimensional coordinates are normalized by subtracting the mean and dividing by the standard deviation.
[0080] In the specific implementation, considering that the specific corresponding action type cannot be identified for the two-dimensional coordinate image, after completing the personnel division of all normal pictures, the two-dimensional coordinates of all the normal pictures need to be converted into three-dimensional coordinates. Specifically, the two-dimensional coordinates in all normal pictures can be converted into three-dimensional coordinates using the three-dimensional human posture estimation baseline, and then the three-dimensional coordinates are normalized by subtracting the mean and dividing by the standard deviation, so that the subsequent recognition process is more accurate.
[0081] For example, the goal is to estimate the position of human joints in 3D space given a 2D input. Formally, our input is a sequence of 2D points x∈R2n and our output is a 3D space f(x i )∈R3n. We aim to learn a loss function
[0082] Therefore, we train our model based on a simple, deep, multi-layer neural network from the existing open source 3D human pose dataset to establish the mapping relationship from 2D pose to 3D pose. The model has batch normalization, dropout, relu activation and residual connection. Our model learns the projection relationship of 2D pose of 3D human pose dataset under the Openpose model. Through model training, 4 to 5 million training parameters are obtained, which can satisfy the mapping of 2D pose points to 3D space. At the same time, we consider the geometric factors of human pose (body size, fixed angles and distances of adjacent joints) to build a human pose enhancer to judge the rationality of local joint angles and overall character size, and the spatial distance ratio between joints, which enables us to complete the rationality check of the generated 3D human pose and make corrections to local joints. Through the existing COCO and Human3.6M datasets, we have extensively tested various changes in our architecture and training hyperparameters. The experiments show that this module can smoothly and quickly complete the conversion of 2D coordinate data to 3D coordinate data, and effectively improve the accuracy of existing 3D human pose estimation.
[0083] S106, extracting a feature vector according to the three-dimensional coordinates in each of the normal images;
[0084] In specific implementation, for a movement posture, intuitively, the distance between the joints and the direction of body twisting represent the characteristic vector of the posture. After obtaining the three-dimensional coordinates corresponding to the joint points of different people in each normal picture, the characteristic vector can be extracted according to the three-dimensional coordinates in each normal picture.
[0085] S107, using a k-nearest neighbor algorithm to search and compare the feature vector of each normal picture with the sample vector corresponding to the sample action type, to obtain the action type corresponding to each normal picture.
[0086] After obtaining the feature vector of each normal image, the k-threshold algorithm can be used to search and compare the feature vector of each normal image with the sample vector corresponding to the sample action type. Mainly, the category of the current posture is determined based on the distance from the template posture. Before calculation, some abnormal values need to be processed according to the characteristics of human joints. For some postures, although the overall joint distance is close to the template distance, there will be some joint bending directions that are inconsistent. Such postures cannot be identified as the same category as the template posture. Those with closer distances and basically consistent joint bending directions can be identified as belonging to the same category.
[0087] The multi-person real-time three-dimensional action recognition evaluation method provided in this embodiment can more accurately obtain human body posture points by collecting the data source under a monocular camera, and then realize the segmentation of target persons and convert the two-dimensional human skeleton coordinate data obtained by openpose into three-dimensional human coordinate data, thereby improving the efficiency and accuracy of multi-person action recognition.
[0088] Corresponding to the above method embodiment, see Figure 2 The embodiment of the present disclosure also provides a multi-person real-time three-dimensional motion recognition and evaluation device 20, comprising:
[0089] The recognition module 201 is used to detect each picture in the input data source using YOLOV5 to obtain a target frame and use the openpose model to identify the joint points of all people in each picture and the two-dimensional coordinates corresponding to the joint points;
[0090] The judging module 202 is used to select any picture and judge whether it is a normal picture;
[0091] If yes, then according to the correspondence between the target box detected by YOLOV5 and the distribution of joint points obtained by openpose, combined with the changes in joint points in adjacent pictures, the breadth search method is used to determine the joint points in the current picture and its adjacent pictures with the closest distance as the same person, thereby dividing the different people in each picture;
[0092] If not, then end the parsing of the current image and continue to recognize the next image;
[0093] A conversion module 203, for converting the two-dimensional coordinates in all normal images into three-dimensional coordinates using a three-dimensional human posture estimation baseline;
[0094] An extraction module 204, configured to extract a feature vector according to the three-dimensional coordinates in each of the normal images;
[0095] The comparison module 205 is used to use the k-nearest neighbor algorithm to search and compare the feature vector of each normal picture with the sample vector corresponding to the sample action type to obtain the action type corresponding to each normal picture.
[0096] Figure 2 The device shown can correspondingly execute the contents of the above method embodiment. For the parts not described in detail in this embodiment, refer to the contents recorded in the above method embodiment and will not be repeated here.
[0097] See also Figure 3The embodiment of the present disclosure further provides an electronic device 30, which includes: at least one processor and a memory in communication with the at least one processor. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-person real-time three-dimensional motion recognition and evaluation method in the aforementioned method embodiment.
[0098] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the multi-person real-time three-dimensional motion recognition and evaluation method in the aforementioned method embodiment.
[0099] The embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, enable the computer to execute the multi-person real-time three-dimensional motion recognition and evaluation method in the aforementioned method embodiment.
[0100] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 30 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0101] like Figure 3 As shown, the electronic device 30 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 30 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0102] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication device 309 may allow the electronic device 30 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 30 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0103] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0104] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0105] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0106] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can execute the relevant steps of the method embodiment.
[0107] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can perform the relevant steps of the method embodiment.
[0108] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0109] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0110] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware.
[0111] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
[0112] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A multi-person real-time 3D action recognition evaluation method, It is characterized in that include: Use YOLOV5 to detect the target frame in each picture of the input data source and use the openpose model to identify the joint points of all people in each picture and the two-dimensional coordinates corresponding to the joint points; Select any picture and determine whether it is a normal picture; If yes, then according to the correspondence between the target box detected by YOLOV5 and the distribution of joint points obtained by openpose, combined with the changes in joint points in adjacent pictures, the breadth search method is used to determine the joint points in the current picture and its adjacent pictures with the closest distance as the same person, thereby dividing the different people in each picture; If not, then end the parsing of the current image and continue to recognize the next image; The 2D coordinates in all normal images are converted into 3D coordinates using the 3D human posture estimation baseline, where the expression of the 3D human posture estimation baseline is: Among them, x i is the input two-dimensional coordinate, f(x i ) is the transformed three-dimensional coordinate, y i is the coordinate of the real human joint point, L is the loss function; Extracting feature vectors according to the three-dimensional coordinates in each of the normal images; The k-nearest neighbor algorithm is used to search and compare the feature vector of each normal picture with the sample vector corresponding to the sample action type to obtain the action type corresponding to each normal picture.
2. The method according to claim 1, Features ,All the pictures in the data source are arranged in time sequence.
3. The method according to claim 1, Features After the step of using the Openpose model to identify the joint points of all people in each picture in the input data source and the two-dimensional coordinates corresponding to each of the joint points, and after the step of using the three-dimensional human body posture estimation baseline to convert the two-dimensional coordinates in all normal pictures into three-dimensional coordinates, the method further includes: The two-dimensional coordinates and the three-dimensional coordinates are normalized by subtracting the mean and dividing by the standard deviation.
4. The method according to claim 1, Features The step of selecting any picture and judging whether it is a normal picture includes: Select any picture and get the two-dimensional coordinates corresponding to its joint points; If the two-dimensional coordinates can be obtained, the image is determined to be a normal image; If the two-dimensional coordinates cannot be obtained, the image is determined to be an abnormal image.
5. The method according to claim 1, Features , after the step of obtaining the corresponding relationship between the target frame detected by yolov5 and the distribution of joint points obtained by openpose, combining the changes of joint points in adjacent pictures, using the breadth search method to determine the joint points in the current picture and its adjacent pictures with the closest distance as the same person, thereby dividing different people in each picture, the method also includes: The missing values of the current picture are filled according to the two-dimensional coordinates corresponding to the joint points in the adjacent pictures.
6. A multi-person real-time three-dimensional action recognition and evaluation device, It is characterized in that include: The recognition module is used to detect the target frame in each picture of the input data source using YOLOV5 and use the openpose model to identify the joint points of all people in each picture and the two-dimensional coordinates corresponding to the joint points; A judgment module is used to select any picture and judge whether it is a normal picture; If yes, then according to the correspondence between the target box detected by YOLOV5 and the distribution of joint points obtained by Openpose, combined with the changes in joint points in adjacent pictures, the breadth search method is used to determine the joint points in the current picture and its adjacent pictures with the closest distance as the same person, thereby dividing the different people in each picture; If not, then end the parsing of the current image and continue to recognize the next image; A conversion module is used to convert the two-dimensional coordinates in all normal images into three-dimensional coordinates using a three-dimensional human posture estimation baseline, wherein the expression of the three-dimensional human posture estimation baseline is: Among them, x i is the input two-dimensional coordinate, f(x i ) is the transformed three-dimensional coordinate, y i is the coordinate of the real human joint point, L is the loss function; An extraction module, used for extracting a feature vector according to the three-dimensional coordinates in each of the normal images; The comparison module is used to use the k-nearest neighbor algorithm to search and compare the feature vector of each normal picture with the sample vector corresponding to the sample action type to obtain the action type corresponding to each normal picture.
7. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-person real-time three-dimensional action recognition and evaluation method described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the multi-person real-time three-dimensional motion recognition and evaluation method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Power failure range automatic identification system based on construction project circuit diagram
CN113570345A
Method and apparatus for prompting motion, electronic device and storage medium
US20210319213A1
Skeleton-based behavior detection method, terminal device, and computer storage medium
WO2020107833A1
