Training action detection method and device
Through methods based on image processing and human body key point detection, the characteristic parameters of training actions are automatically extracted, which solves the problems of low efficiency and insufficient accuracy of manual detection in the existing technology, and achieves more efficient and accurate training action detection.
Patent Information
- Application Number
- CN202111567131.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-20
AI Technical Summary
In the existing technology, visual training movement detection by professional training coaches relies on manual experience, which is inefficient and inaccurate, resulting in high cost and low efficiency.
Using a method based on continuous frame images and action detection mode, human body feature parameters are extracted through the human body key point detection model, and combined with the preset action thresholds and modes, the action detection results are automatically determined, including target information and number of times or duration.
It reduces the dependence on manual experience, improves the accuracy and efficiency of action detection, and reduces labor costs.
Smart Images

Figure CN114343618B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a training action detection method and device. Background Art
[0002] With the development of society and technology, people pay more and more attention to sports training. Through scientific and regular training, physical functions can be improved, and physical activities that are conducive to recovery or improvement of functions can be carried out after injuries. Except for serious injuries that require rest and treatment, general injuries do not require complete cessation of physical exercises. Appropriate and scientific physical exercises have a positive effect on the rapid healing of injuries and the promotion of functional recovery, and sports training requires standardized movements, which are more conducive to physical health.
[0003] At present, the method of detecting training movements during exercise is mainly through visual inspection by professional training coaches, which is highly dependent on experience, consumes manpower costs, is not accurate enough, and has low efficiency. Summary of the invention
[0004] The present invention provides a training action detection method and device, which are used to solve the defects of the prior art that visual inspection by professional training coaches is highly dependent on experience, consumes labor costs, is not accurate in detection, and has low efficiency. The method reduces the dependence on manual experience, can reduce labor costs, improve the accuracy of action detection, and improve detection efficiency.
[0005] The present invention provides a training action detection method, which includes: acquiring continuous frame images and a motion detection mode; based on the continuous frame images, determining human body feature parameters corresponding to the motion detection mode, the corresponding relationship between the motion detection mode and the human body feature parameters is preset, the motion detection mode is used to represent the detection function of a specific motion training action, and the human body feature parameters are used to characterize the motion state of a human body; based on the human body feature parameters, determining the action detection result.
[0006] According to a training action detection method provided by the present invention, the action detection result is determined based on the human body characteristic parameters, including: determining action target information based on the human body characteristic parameters and the action threshold corresponding to the action detection mode; and determining the action detection result based on the action target information.
[0007] According to a training action detection method provided by the present invention, the action detection mode is a first type of detection mode, and the action detection result is determined based on the action standard information, including: based on the action standard information, counting the number of standard actions; and determining the action detection result based on the number of standard actions.
[0008] According to a training action detection method provided by the present invention, the action detection mode is a second type of detection mode, and the action detection result is determined based on the action target information, including: based on the action target information, counting the duration of the target action; and determining the action detection result based on the duration of the target action.
[0009] According to a training action detection method provided by the present invention, the human body feature parameters corresponding to the action detection mode are determined based on the continuous frame images, including: inputting the continuous frame images into a human body key point detection model to obtain the human body feature parameters output by the human body key point detection model; wherein the human body key point detection model is trained using continuous frame sample images as samples and human body feature parameter sample data corresponding to the continuous frame sample images as sample labels.
[0010] According to a training action detection method provided by the present invention, before obtaining continuous frame images and action detection modes, it also includes: obtaining a face image; and when the face image is identified and verified, enabling usage permissions for a user corresponding to the face image.
[0011] According to a training action detection method provided by the present invention, the action detection modes include at least: pull-up mode, sit-up mode, push-up mode, single-bar bent-arm hang mode, parallel-bar arm flexion and extension mode, parallel-bar support forward movement mode and serpentine running mode.
[0012] The present invention also provides a training action detection device, which includes: an acquisition module, used to acquire continuous frame images and a motion detection mode; a first determination module, used to determine the human body feature parameters corresponding to the motion detection mode based on the continuous frame images, the correspondence between the motion detection mode and the human body feature parameters is pre-set, the motion detection mode is used to represent the detection function of physical training actions, and the human body feature parameters are used to characterize the movement state of the human body; a second determination module, used to determine the action detection result based on the human body feature parameters.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the training action detection methods described above are implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the training action detection methods described above are implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned training action detection methods are implemented.
[0016] The training motion detection method and device provided by the present invention determine the human body feature parameters corresponding to a certain motion detection mode from continuous frame images, and determine the motion detection results according to the human body feature parameters. This can reduce the dependence on manual experience, reduce labor costs, improve the accuracy of motion detection, and improve detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of the training action detection method provided by the present invention;
[0019] Figure 2 It is a schematic diagram of an application scenario of the training action detection method provided by the present invention;
[0020] Figure 3 It is a structural schematic diagram of a human key point detection model in the training action detection method provided by the present invention;
[0021] Figure 4 It is a structural schematic diagram of the training action detection device provided by the present invention;
[0022] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] Combine the following Figure 1-Figure 5 The training action detection method and device of the present invention are described.
[0025] The present invention provides a training action detection method, which includes: the following steps 110 to 130.
[0026] Wherein, step 110 is to obtain continuous frame images and motion detection mode.
[0027] It can be understood that the training action detection method can be executed by the controller 30 in the physical training equipment. The physical training equipment may include a camera 10, a display 20 and a controller 30. The camera 10 and the display 20 may both be electrically connected to the controller 30, and the display 20 may include a touch screen.
[0028] A first input from a user may be received, and the motion detection mode may be determined in response to the first input. The user may perform a touch operation on the touch display screen to give a first input to the physical training device, and the physical training device may respond to the first input to determine the motion detection mode.
[0029] The action detection mode may include multiple modes, and the action detection mode represents the detection function of the physical training action. The action detection mode may be related to the physical training action. For example, the action detection mode at least includes: pull-up mode, sit-up mode, push-up mode, horizontal bar bent arm hanging mode, parallel bar arm flexion and extension mode, parallel bar support forward movement mode and serpentine running mode. In other words, the training action detection method of the present invention can be applied to the detection of multiple physical training actions, and the user can select any action detection mode. The action detection mode obtained here can be a certain action detection mode selected by the user.
[0030] It is understandable that the camera 10 of the physical training equipment is directed toward a moving human body and can capture a human body movement video. The human body movement video may be a continuous frame image, which is composed of multiple single frame images arranged in chronological order.
[0031] Step 120: Determine human body feature parameters corresponding to the action detection mode based on the continuous frame images.
[0032] It is understandable that after determining a certain motion detection function, it is possible to determine the human body characteristic parameters that need to be obtained.
[0033] Different motion detection modes may have different motion characteristics, and different human body characteristic parameters may be given for different motion detection modes. The correspondence between the motion detection mode and the human body characteristic parameters may be pre-set in the controller 30. Each motion detection mode may have corresponding human body characteristic parameters. The human body characteristic parameters are used to characterize the motion state of the human body. The human body characteristic parameters may include human body key points, such as neck, mandible, left eye, right eye, left ear, right ear, nose, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hip center, right hip center, left knee, right knee, left ankle and right ankle, a total of 19 key points. They may also include human body joint angles, such as elbow joint angles, knee joint angles or hip joint angles. The human body characteristic parameters may also include a human body topological structure formed by human body key points. The specific expression form of the human body characteristic parameters is not limited here.
[0034] After the action detection mode is determined, corresponding human feature parameters may be extracted from the continuous frame images according to the action detection mode. For example, human key points may be extracted from the continuous frame images.
[0035] Step 130: Determine the action detection result based on the human body characteristic parameters.
[0036] It can be understood that after the human body feature parameters corresponding to the action detection mode are extracted from the continuous frame images, the action detection result can be determined according to the human body feature parameters.
[0037] For example, after obtaining the key points of the human body, the human body topology formed by the key points can be used to describe the human body motion information, and the motion detection results can be determined based on the human body motion information. The human body motion information can include parameters such as whether the action meets the standard, the accuracy of the action, and the speed of the action. The human body motion information can be used to evaluate the motion state of the human body. The obtained motion detection results can be presented in the form of numerical values, in the form of function curves, or in the form of graphs. The form of the motion detection results is not specifically limited here. The motion detection results can be used to evaluate the degree of standardization of human body movements and can be used as a reference for users to continuously improve training methods and improve training effects.
[0038] The training action detection method provided by the present invention determines the human body feature parameters corresponding to a certain action detection mode from continuous frame images, and determines the action detection result according to the human body feature parameters. This can reduce the dependence on manual experience, reduce labor costs, improve the accuracy of action detection, and improve detection efficiency.
[0039] In some embodiments, the above step 130, determining the motion detection result based on the human body characteristic parameters, includes: determining the motion compliance information based on the human body characteristic parameters and the motion threshold corresponding to the motion detection mode; and determining the motion detection result based on the motion compliance information.
[0040] It is understandable that the motion detection mode can have a corresponding motion threshold. For example, in the push-up project, it is mainly judged based on the degree of bending of the upper limbs. During the push-up process, the torso and legs are straightened, forming a straight line from the shoulders to the ankles. During the fall, the arms are bent so that the body drops straight down until the shoulders and elbows are on the same horizontal plane, which is a qualified action. Then the human body characteristic parameter here is the connection line between the shoulders and elbows when the body drops straight down, and the action threshold is the connection line between the shoulders and elbows parallel to the horizontal plane. When the human body characteristic parameter reaches the corresponding action threshold, the human body's action is considered to meet the standard. In this way, the human body's action standard information can be determined. The action standard information may include the degree of action standard and the number and duration of the standard action. The specific form of the action standard information is not limited here.
[0041] After the action reaching standard information is determined, the action detection result can be determined according to the action reaching standard information, that is, the reaching standard actions can be counted and the action detection result can be determined according to the frequency of the reaching standard actions.
[0042] In some embodiments, the action detection mode is a first type of detection mode, and the action detection result is determined based on the action compliance information, including: counting the number of compliance actions based on the action compliance information; and determining the action detection result based on the number of compliance actions.
[0043] It can be understood that when the action detection mode is the first type of detection mode, the action detection result can be obtained by counting the number of standard actions, and the action standard compliance information can be used to determine the user's action compliance in a training action video shot at a certain time. The number of standard actions can be counted based on the action standard compliance information, and then the action detection result can be determined based on the number of standard actions.
[0044] For example, in the sit-up project, there are main targets (people lying flat) and non-main targets (people squatting). In actual judgment, only the behavior of the main target is identified. Based on this, it can be judged by the angle between the hips and ankles and the ground plane. People in an approximately parallel position are main targets, while people in an approximately vertical position are non-main targets. In actual implementation, whether the standing up is standard is mainly judged based on whether the elbow joint and the knee joint overlap. During the falling process of the upper body, the torso must eventually be in a horizontal state. If the above conditions are not met, it is a non-standard action and is not counted in the number of standard actions. When the above conditions are met, it is counted in the number of standard actions. The action detection result is determined based on the number of standard actions.
[0045] In the pull-up project, whether the action is complete is determined by whether the key points of the neck pass the horizontal bar. When falling, if the arm is not in a vertical state, it is judged as not meeting the standard, and this action is not counted as the final count. The vertical state is judged based on the angle between the wrist, elbow and shoulder. The angle threshold is a configurable parameter, that is, the angle is qualified if it is greater than the set threshold. When the human body ends the action and releases the horizontal bar, it is necessary to judge the end of the action, which is determined by the offset of the center of gravity of the human body and the initial position. When the angle condition is met, it is counted as the number of standard actions. The action detection result is determined based on the number of standard actions.
[0046] In the parallel bar arm flexion and extension event, when flexing the arms, the elbows are backward, the body hangs naturally, and the shoulders are lower than the elbows; when extending the arms, the elbows are properly supported inward to form straight arms. If the above conditions are not met, it will not be counted in this count. The height difference between the shoulder and the elbow is used to measure the degree of completion of the movement. If the shoulder drop is not lower than the elbow, it will not be counted in this count. If the height difference requirement is met, it will be counted as the number of qualified movements. The movement detection result is determined based on the number of qualified movements.
[0047] In the parallel bars forward support event, the final score is calculated based on the number of forward and backward support movements completed. In practice, the movement of the tester's wrist on the horizontal bar is used as the test standard, and the number of back and forth movements is calculated.
[0048] In some embodiments, the action detection mode is a second type of detection mode, and the action detection result is determined based on the action target information, including: based on the action target information, counting the duration of the target action; and determining the action detection result based on the duration of the target action.
[0049] In the horizontal bar bent-arm hang event, the tester holds the horizontal bar with both hands, bends his arms and does pull-ups, with his chin above the horizontal bar and his body in a hanging state. The time the tester maintains the corresponding action is recorded.
[0050] In the serpentine running event, the tester completes the action according to the prescribed action essentials. If the tester starts early or hits the marker pole, the tester will have to re-organize the start; if the tester fails to go around the marker pole, the result will not be recorded. In the specific implementation, the relative position between the connecting line between the key points of the top of the head and the key points of the pelvis and the marker pole is used as the judgment standard. Once the connecting line is inside the marker pole and the running around occurs, the serpentine running fails and needs to be repeated. If the serpentine running event does not violate the rules, the time it takes to meet the standard for the serpentine running is counted, and the action detection result is determined based on the time it takes to meet the standard.
[0051] After obtaining the counts, measurement results, and posture results of the respective items, the controller 30 transmits the results to the display 20 to display the motion detection results.
[0052] In some embodiments, based on continuous frame images, determining human feature parameters corresponding to the action detection mode includes: inputting continuous frame images into a human key point detection model to obtain the human feature parameters output by the human key point detection model.
[0053] Among them, the human key point detection model is trained by taking continuous frame sample images as samples and taking human feature parameter sample data corresponding to the continuous frame sample images as sample labels.
[0054] It is understandable that the human key point detection model can be a neural network model. For example, continuous frame images can be input into the human key point detection model to output human feature parameters. The human key point detection model can be a neural network model, such as a convolutional neural network or a residual neural network. The human key point detection model can be trained using continuous frame sample images as samples and human feature parameter sample data corresponding to the continuous frame sample images as sample labels. For example, the human key point detection model can be trained by supervised learning or unsupervised learning.
[0055] The deep learning neural network used in the human key point detection model can pick out features in the input continuous frame images, use each feature to obtain an output result, and compare each output result with the sample label. Features that meet the requirements after comparison can be retained, while features that do not meet the requirements after comparison are ignored through the Loss parameter. After continuous iterative training on a large number of continuous frame sample images, the core features that need to be remembered can be finally learned, and different core features can be classified. Finally, the newly input continuous frame images can be judged based on these core features.
[0056] Before training the human key point detection model, the filters of the convolutional layer of the deep learning neural network are completely random and will not activate any features, that is, they cannot detect any features. During the training process, the weights of the blank filters are modified to enable them to detect specific scenes. This is a supervised learning method. Based on this supervised learning method, the deep learning neural network can learn the core features it needs to identify the newly input continuous frame images based on these core features.
[0057] In a specific application scenario, a camera 10 can be set up at a distance of 2m to 3m from the human body to collect human motion video. The camera must be set up horizontally. During the test, the identity information of the tester can be entered through face recognition, and the corresponding test items can be selected in a variety of motion detection modes. The controller 30 collects continuous frame images, obtains the motion structure information of the human body and the corresponding counting and measurement results through human body detection, human posture estimation technology and counting algorithms, and the controller 30 can transmit the obtained motion and structure information to the display 20 for displaying statistical information.
[0058] The controller 30 may include a face recognition unit, which is mainly used to complete information entry through face recognition, and automatically realize the identification of the tester's identity and information storage.
[0059] The controller 30 may have a data capture unit, which mainly performs the capture of video data. In the pull-ups, horizontal bar bent-arm hangs, parallel bar dips and parallel bar support forward movements, the camera 10 is set up at a height of 1.8m and is ensured to be set up horizontally. The tester needs to hang on the horizontal bar before the test and start the action demonstration according to the prompt signal. In the push-ups and sit-ups, the camera 10 is set up at a height of 0.5m and is ensured to be set up horizontally. The subject only needs to perform the specified actions. In the serpentine running event, the camera 10 is set up at a height of 1.5m and is ensured to be set up horizontally.
[0060] The controller 30 is responsible for the data processing function of the physical training equipment. The controller 30 can perform functions such as image reading, algorithm processing, and result output. Image reading mainly reads and processes the input image data; the algorithm processing end includes two parts: a human body detection algorithm and a human body posture estimation algorithm. The posture estimation result of the target human body is obtained by connecting the two algorithms in series, and the final result will be displayed on the display 20.
[0061] During the test, the tester's identity information is first entered through face recognition, and the corresponding test item is selected from the seven functions. The controller 30 obtains the face image for face recognition and returns the face ID, and stores the obtained information at the same time, and stores the subsequent test results one-to-one.
[0062] The controller 30 is responsible for the data processing function of the device. It mainly includes functions such as image reading, algorithm processing and result output. Image reading mainly reads and processes the input image data. The algorithm processing end includes two parts: human body detection algorithm and human body posture estimation algorithm. The posture estimation result of the target human body is obtained by connecting the two algorithms in series. Among them, the human body detection algorithm uses the rotation-robust Yolov5s detector to detect the human body frame and the human body posture estimation network based on the integrated regressor, that is, to build a human body key point detection model. The human body key point detection model backbone is composed of 0.5resnet18, and the backbone network extracts feature resolution of 8×6. After the backbone network, 5 groups of 3-layer deconvolution are connected to obtain the final prediction. Each group of deconvolution is composed of 3 layers of deconvolution, and the convolution kernel size is 4×4. The output channels are 16, 16, and 16 in sequence. Multiple groups of predictions can be obtained by supervising each group, and finally the final result is obtained by integrated fusion.
[0063] In order to increase the prediction differences between different groups, group differentiation loss is added to increase the diversity of predictions.
[0064] In some embodiments, before acquiring continuous frame images and motion detection modes, it also includes: acquiring a facial image; and when the facial image is recognized and verified, enabling usage permissions for a user corresponding to the facial image.
[0065] It is understandable that during the test, the tester's identity information can be first entered through face recognition, and the corresponding test item can be selected in the seven motion detection modes. The controller 30 obtains the face image for face recognition and returns the face ID, verifies the user's identity according to the face ID, and when the user's identity is verified, the user corresponding to the face image can be enabled to use the permission, and the obtained information can be stored, and the subsequent test results can be stored one-to-one.
[0066] The training action detection device provided by the present invention is described below. The training action detection device described below and the training action detection method described above can be referenced to each other.
[0067] like Figure 4 As shown, the present invention further provides a training action detection device, which includes: an acquisition module 410, a first determination module 420 and a second determination module 430.
[0068] The acquisition module 410 is used to acquire continuous frame images and motion detection patterns.
[0069] The first determination module 420 is used to determine the human body feature parameters corresponding to the action detection mode based on continuous frame images. The correspondence between the action detection mode and the human body feature parameters is pre-set. The action detection mode is used to represent the detection function of physical training actions, and the human body feature parameters are used to characterize the movement state of the human body.
[0070] The second determination module 430 is used to determine the action detection result based on the human body characteristic parameters.
[0071] The training motion detection device provided by the present invention determines the human body feature parameters corresponding to a certain motion detection mode from continuous frame images, and determines the motion detection result according to the human body feature parameters. This can reduce the dependence on manual experience, reduce labor costs, improve the accuracy of motion detection, and improve detection efficiency.
[0072] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the training action detection method, which includes: acquiring continuous frame images and action detection modes; based on the continuous frame images, determining the human body feature parameters corresponding to the action detection mode, the corresponding relationship between the action detection mode and the human body feature parameters is preset, the action detection mode is used to represent the detection function of the physical training action, and the human body feature parameters are used to characterize the motion state of the human body; based on the human body feature parameters, determining the action detection result.
[0073] The training action detection method provided by the present invention determines the human body feature parameters corresponding to a certain action detection mode from continuous frame images, and determines the action detection result according to the human body feature parameters. This can reduce the dependence on manual experience, reduce labor costs, improve the accuracy of action detection, and improve detection efficiency.
[0074] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0075] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the training action detection method provided by the above-mentioned methods, and the method includes: acquiring continuous frame images and action detection patterns; based on the continuous frame images, determining human body feature parameters corresponding to the action detection pattern, the correspondence between the action detection pattern and the human body feature parameters is pre-set, the action detection mode is used to represent the detection function of physical training actions, and the human body feature parameters are used to characterize the movement state of the human body; based on the human body feature parameters, determining the action detection result.
[0076] The training action detection method provided by the present invention determines the human body feature parameters corresponding to a certain action detection mode from continuous frame images, and determines the action detection result according to the human body feature parameters. This can reduce the dependence on manual experience, reduce labor costs, improve the accuracy of action detection, and improve detection efficiency.
[0077] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the training action detection method provided by the above-mentioned methods, the method comprising: acquiring continuous frame images and a motion detection mode; based on the continuous frame images, determining the human body feature parameters corresponding to the motion detection mode, the correspondence between the motion detection mode and the human body feature parameters is pre-set, the motion detection mode is used to represent the detection function of physical training actions, and the human body feature parameters are used to characterize the movement state of the human body; based on the human body feature parameters, determining the action detection result.
[0078] The training action detection method provided by the present invention determines the human body feature parameters corresponding to a certain action detection mode from continuous frame images, and determines the action detection result according to the human body feature parameters. This can reduce the dependence on manual experience, reduce labor costs, improve the accuracy of action detection, and improve detection efficiency.
[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A training action detection method, characterized in that: include: Acquire continuous frame images and motion detection modes, wherein the motion detection modes at least include a pull-up mode, a sit-up mode, a push-up mode, a single-bar bent-arm hang mode, a parallel-bar arm flexion and extension mode, a parallel-bar support forward movement mode, and a serpentine running mode; Based on the continuous frame images, determining the human body characteristic parameters corresponding to the action detection mode, wherein the corresponding relationship between the action detection mode and the human body characteristic parameters is preset, the action detection mode is used to represent the detection function of the physical training action, and the human body characteristic parameters are used to characterize the motion state of the human body, and the human body characteristic parameters include at least one of the key points of the human body, the angles of the joints of the human body, and the topological structure of the human body formed by the key points of the human body; Determining a motion detection result based on the human body characteristic parameters; The determining, based on the continuous frame images, the human body feature parameters corresponding to the action detection mode comprises: Inputting the continuous frame images into a human key point detection model, extracting features from the continuous frame images based on the human key point detection model, and performing deconvolution processing on the extracted features to obtain multiple groups of processing results, integrating and fusing the multiple groups of processing results to obtain the human feature parameters output by the human key point detection model; Among them, the human key point detection model is trained by taking continuous frame sample images as samples and taking human feature parameter sample data corresponding to the continuous frame sample images as sample labels; the human key point detection model includes a Yolov5s detector for human frame detection and a human posture estimation network based on an integrated regressor, and the human key point detection model includes a backbone network composed of 0.5resnet18 and multiple groups of deconvolution combinations, any deconvolution combination includes 3 layers of deconvolution and is used to obtain prediction results.
2. The training action detection method according to claim 1, characterized in that: The step of determining the action detection result based on the human body characteristic parameters includes: Determining action compliance information based on the human body feature parameters and the action threshold corresponding to the action detection mode; Based on the action compliance information, the action detection result is determined.
3. The training action detection method according to claim 2, characterized in that: The action detection mode is a first type of detection mode, and determining the action detection result based on the action reaching standard information includes: Based on the action achievement information, counting the number of actions that achieve the goal; The action detection result is determined based on the number of times the target action is achieved.
4. The training action detection method according to claim 2, characterized in that: The action detection mode is a second type of detection mode, and the action detection result is determined based on the action reaching standard information, including: Based on the action achievement information, the duration of the achievement action is counted; The action detection result is determined based on the duration of the target-reaching action.
5. The training action detection method according to any one of claims 1 to 4, characterized in that: Before acquiring the continuous frame images and the action detection mode, the method further includes: Get face image; When the facial image is recognized and verified, the use permission is enabled for the user corresponding to the facial image.
6. A training action detection device, characterized in that: include: An acquisition module, used for acquiring continuous frame images and motion detection modes, wherein the motion detection modes at least include a pull-up mode, a sit-up mode, a push-up mode, a single-bar bent-arm hang mode, a parallel-bar arm flexion and extension mode, a parallel-bar support forward movement mode, and a serpentine running mode; A first determination module is used to determine the human body characteristic parameters corresponding to the action detection mode based on the continuous frame images, the corresponding relationship between the action detection mode and the human body characteristic parameters is preset, the action detection mode is used to represent the detection function of the physical training action, the human body characteristic parameters are used to characterize the motion state of the human body, and the human body characteristic parameters include at least one of the key points of the human body, the angles of the joints of the human body, and the topological structure of the human body formed by the key points of the human body; A second determination module, used to determine the action detection result based on the human body feature parameters; The determining, based on the continuous frame images, the human body feature parameters corresponding to the action detection mode comprises: Inputting the continuous frame images into a human key point detection model, extracting features from the continuous frame images based on the human key point detection model, and performing deconvolution processing on the extracted features to obtain multiple groups of processing results, integrating and fusing the multiple groups of processing results to obtain the human feature parameters output by the human key point detection model; Among them, the human key point detection model is trained by taking continuous frame sample images as samples and taking human feature parameter sample data corresponding to the continuous frame sample images as sample labels; the human key point detection model includes a Yolov5s detector for human frame detection and a human posture estimation network based on an integrated regressor, and the human key point detection model includes a backbone network composed of 0.5resnet18 and multiple groups of deconvolution combinations, any deconvolution combination includes 3 layers of deconvolution and is used to obtain prediction results.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the training action detection method according to any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the training action detection method according to any one of claims 1 to 5 are implemented.
