Automatic testing method, device, equipment and medium for parallel bar dips

Machine vision and artificial intelligence technology are used to automatically detect the elbow and shoulder angles and effective times of the parallel bar arm flexion and extension movements, which solves the problems of time-consuming, labor-intensive and subjective counting in the existing technology, and achieves fairness, justice and fairness in the parallel bar arm flexion and extension movements. Open, efficient and accurate automated testing.

CN116392798BActive Publication Date: 2024-09-24恒鸿达(福建)体育科技有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310221736.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-24
Estimated Expiration
2043-03-09

AI Technical Summary

Technical Problem

The existing counting method of parallel bar arm flexion and extension movements is time-consuming, labor-intensive and highly subjective, and cannot achieve fair, just, open, efficient and accurate counting.

Method used

It uses machine vision and artificial intelligence technology to detect the position of the hands holding the bar and the posture of the human body through the camera, and uses the human target detection model and posture estimation model to automatically calculate the elbow and shoulder angles and effective times, and realize the detection of the straight and bent arm states of the arms. Perform counting and violation detection without manual intervention.

Benefits of technology

The automatic test of parallel bar arm flexion and extension movements is realized to ensure that the counting is fair, just, open, efficient and accurate, and the video can be traced back to facilitate subsequent action analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116392798B
    Figure CN116392798B
Patent Text Reader

Abstract

The present invention discloses an automatic test method, device, equipment and medium for dips, and relates to the field of motion testing technology, including an initial detection process, a counting detection process, a violation detection process and an end detection process. The present invention provides an automatic test method, device, equipment and medium for dips, which realizes automatic testing of dips by setting a dip test action detection process, and combining machine vision and artificial intelligence technology to determine the motion state, without manual intervention, and can realize fair, just, open, efficient and accurate counting, and the video can be traced back.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of sports testing, and in particular to an automatic testing method, device, equipment and medium for parallel bar dips. Background Art

[0002] With the development of society and economy, physical exercise has received more and more attention. Dips are a relatively difficult fitness exercise that mainly trains the pectoral muscles, triceps and deltoid muscles (anterior bundle), and also trains the latissimus dorsi and trapezius muscles.

[0003] Currently, the parallel bar dip uses the traditional counting method. Due to the time-consuming, labor-intensive, and highly subjective nature of the method, it cannot be fair, just, open, efficient, and accurate. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an automatic testing method, device, equipment and medium for parallel bar dips, which can achieve accurate counting without human intervention by using machine vision and artificial intelligence technology.

[0005] In a first aspect, the present invention provides an automatic testing method for a dip, comprising:

[0006] Initial detection process: calibrate the hand-gripping position and test area through a camera set in front of the examinee; obtain a real-time image of the test area and input it into the human target detection model for prediction, and then perform IOU filtering in combination with the hand-gripping position to obtain the current examinee; obtain the coordinates of the designated human key points of the current examinee through the human posture estimation model and calculate the left wrist elbow shoulder angle lArmAngel and the right wrist elbow shoulder angle rArmAngel, wherein the designated human key points include the left wrist lWrist, the right wrist rWrist, the left elbow lElbow, the right elbow rElbow, the left shoulder lShoulder, and the right shoulder rShoulder; set the elbow and shoulder angle of the hand straight as the first threshold and the elbow and shoulder angle of the arm bent as the second threshold, and record the arms straight as state A and the arms bent as state B; obtain the assessment time, and when it is detected that the left wrist lWrist and the right wrist rWrist are both higher than the hand-gripping position, and the left wrist elbow and shoulder angle lArmAngel and the right wrist elbow and shoulder angle rArmAngel are greater than the first threshold, prompt the assessment to start;

[0007] Counting detection process: continue to obtain real-time images of the test area. When the assessment starts, the initial state is state A. Detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold. If so, enter state B;

[0008] In state B, check whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow, if yes, then add 1 to the valid times; then check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, if yes, then enter state A;

[0009] In state A, detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If so, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, enter state B and return to the previous step to repeat the detection;

[0010] End the detection process: continue to obtain real-time images of the test area. After the test begins, check in real time whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar and whether the test time is greater than the test duration. When the test result meets any one of the conditions, the test is terminated.

[0011] Furthermore, the violation detection process is also included:

[0012] In state B, it is detected whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow. If not, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, a violation prompt of shoulder not passing the elbow is given, and the state A is entered;

[0013] In state A, check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If not and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, a warning is given that the arms are not straightened, and the system enters state B.

[0014] Furthermore, the calibration of the two-handed bar gripping position and the test area specifically includes: recording the lower coordinates of the two-handed bar gripping position of the examinee as a and b respectively, and then calibrating the test area between a and b.

[0015] Furthermore, in the image coordinate system, the X axis increases to the right, and the Y axis increases downward;

[0016] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the first threshold is: lArmAngel>Acc1&&rArmAngel>Acc1;

[0017] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold is: (lArmAngel+rArmAngel) / 2 <Acc2;

[0018] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold is: (lArmAngel+rArmAngel) / 2>Acc2;

[0019] The calculation formula for checking whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow is: (lShoulder.y+rShoulder.y) / 2>(lElbow.y+rElbow.y) / 2;

[0020] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both higher than the position of the two hands holding the bar is: lWrist.y<(a.y+by) / 2&&rWrist.y<(a.y+by) / 2;

[0021] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar is: lWrist.y>(a.y+by) / 2&&rWrist.y>(a.y+by) / 2;

[0022] Among them, .y represents the Y-axis coordinate value corresponding to the coordinate point.

[0023] In a second aspect, the present invention provides an automatic testing device for dips, comprising:

[0024] Initial detection module: calibrate the hand gripping position and test area through a camera set in front of the examinee; obtain a real-time image of the test area and input it into the human target detection model for prediction and perform IOU filtering in combination with the hand gripping position to obtain the current examinee; obtain the coordinates of the designated human key points of the current examinee through the human posture estimation model and calculate the left wrist elbow shoulder angle lArmAngel and the right wrist elbow shoulder angle rArmAngel, wherein the designated human key points include the left wrist lWrist, the right wrist rWrist, the left elbow lElbow, the right elbow rElbow, the left shoulder lShoulder, and the right shoulder rShoulder; set the elbow and shoulder angle of the hand straight as the first threshold and the elbow and shoulder angle of the arm bent as the second threshold, and record the arms straight as state A and the arms bent as state B; obtain the assessment duration, and when it is detected that the left wrist lWrist and the right wrist rWrist are both higher than the hand gripping position, and the left wrist elbow and shoulder angle lArmAngel and the right wrist elbow and shoulder angle rArmAngel are greater than the first threshold, prompt the assessment to start;

[0025] Counting detection module: continue to obtain real-time images of the test area. When the assessment starts, the initial state is state A. Detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold. If so, enter state B.

[0026] In state B, check whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow, if yes, then add 1 to the valid times; then check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, if yes, then enter state A;

[0027] In state A, detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If so, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, enter state B and return to the previous step to repeat the detection;

[0028] End detection module: continue to obtain real-time images of the test area. After the test begins, detect in real time whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar and whether the test time is greater than the test duration. When the test result meets any one of the conditions, the test is terminated.

[0029] Furthermore, it also includes a violation detection module, which is used to perform the following steps:

[0030] In state B, it is detected whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow. If not, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, a violation prompt of shoulder not passing the elbow is given, and the state A is entered;

[0031] In state A, check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If not and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, a warning is given that the arms are not straightened, and the system enters state B.

[0032] Furthermore, in the initial detection module, the position of the two hands holding the bar and the test area are calibrated, specifically including: recording the lower coordinates of the position of the examinee's two hands holding the bar as a and b respectively, and then calibrating the test area between a and b.

[0033] Furthermore, in the image coordinate system, the X axis increases to the right, and the Y axis increases downward;

[0034] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the first threshold is: lArmAngel>Acc1&&rArmAngel>Acc1;

[0035] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold is: (lArmAngel+rArmAngel) / 2 <Acc2;

[0036] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold is: (lArmAngel+rArmAngel) / 2>Acc2;

[0037] The calculation formula for checking whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow is: (lShoulder.y+rShoulder.y) / 2>(lElbow.y+rElbow.y) / 2;

[0038] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both higher than the position of the two hands holding the bar is: lWrist.y<(a.y+by) / 2&&rWrist.y<(a.y+by) / 2;

[0039] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar is: lWrist.y>(a.y+by) / 2&&rWrist.y>(a.y+by) / 2;

[0040] Among them, .y represents the Y-axis coordinate value corresponding to the coordinate point.

[0041] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the program.

[0042] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0043] The technical solution provided in the embodiments of the present invention has at least the following technical effects:

[0044] By setting up the parallel-bar dip test action detection process and combining machine vision and artificial intelligence technology to determine the movement status, automatic testing of the parallel-bar dip can be achieved without human intervention. Fair, just, open, efficient and accurate counting can be achieved, and the video can be traced back.

[0045] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0047] Figure 1 This is a schematic diagram of an assessment scenario in an embodiment of the present invention;

[0048] Figure 2 Schematic diagram of the process of the method in Embodiment 1 of the present invention;

[0049] Figure 3 Schematic diagram of the process of initial detection in the first embodiment of the present invention;

[0050] Figure 4 Schematic diagram of the process of counting detection and violation detection in the first embodiment of the present invention;

[0051] Figure 5 This is a schematic diagram of a process for ending a detection process in Embodiment 1 of the present invention;

[0052] Figure 6 It is a structural schematic diagram of the device in the second embodiment of the present invention;

[0053] Figure 7 This is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention;

[0054] Figure 8 Schematic diagram of the structure of the medium in the fourth embodiment of the present invention. DETAILED DESCRIPTION

[0055] The embodiments of the present application provide an automatic testing method, device, equipment and medium for dips and extensions, which use machine vision and artificial intelligence technology to achieve accurate counting without human intervention.

[0056] The technical solution in the embodiment of the present application has the following general idea:

[0057] Based on computer vision technology, automatic testing of parallel bar dips is realized, including initial detection, counting detection, violation detection and end detection. Combined with target detection algorithm and human joint detection algorithm, automatic testing of parallel bar dips is realized, and since the whole video is saved at the same time, subsequent backtracking and motion analysis are convenient.

[0058] 1. Initial Detection Module

[0059] 1. The camera is placed in front of the tester to ensure that the entire movement process of the tester can be captured.

[0060] 2. Calibrate the test area, calibrate the line segment ab, and the two points ab are located on the left and right bars, respectively, and below the tester's hands holding the bar, record the coordinates as a and b. This calibration can be used to track the tester and detect the start / stop status of the assessment.

[0061] 3. Obtain the video stream in real time, and input the image into the yoloE human target detection model for prediction, then combine the line segment ab for IOU filtering, obtain the current assessor, and obtain the coordinates of the key points of the human body through the Hrnet human posture estimation model.

[0062] 4. The coordinates of the relevant human body key points can be recorded as: left wrist lWrist, right wrist rWrist, left elbow lElbow, right elbow rElbow, left shoulder lShoulder, right shoulder rShoulder. The left wrist, elbow and shoulder angle is recorded as lArmAngel, and the right wrist, elbow and shoulder angle is recorded as rArmAngel. The threshold value of arms straight is recorded as Acc1=150, and the threshold value of arms bent is recorded as Acc2=120. The arms straight are recorded as state A, and the arms bent are recorded as state B. The assessment time is recorded as T=60S. Among them, the threshold value Acc1, the threshold value Acc2 and the assessment time can be set according to the test needs.

[0063] 5. When the following conditions are met simultaneously, a prompt for the assessment to start will be given.

[0064] 1) lWrist.y < (a.y + b.y) / 2 && rWrist.y < (a.y + b.y) / 2;

[0065] 2) lArmAngel > Acc1 && rArmAngel > Acc1;

[0066] That is, both wrists are above points a and b (the Y - coordinate coefficient value increases from top to bottom), and both arms are straight.

[0067] II. Counting Detection Module

[0068] 1. When entering the initial state, both arms are straight and the current state is A;

[0069] 2. Detect whether ((lArmAngel + rArmAngel) / 2 < Acc2) (that is, judge whether the arms are bent in place). If it is satisfied, enter state B;

[0070] 3. When in state B, detect whether

[0071] (lShoulder.y + rShoulder.y) / 2 > (lElbow.y + rElbow.y) / 2 (that is, judge whether the shoulders are lower than the elbows);

[0072] 4. When the condition in step 3 is satisfied and ((lArmAngel + rArmAngel) / 2 > Acc2) (that is, judge whether the arms are straightened again), a prompt for incrementing the effective count by 1 will be given, and enter state A;

[0073] 5. When in state A, detect whether ((lArmAngel + rArmAngel) / 2 > Acc1) (that is, judge whether both arms are straight);

[0074] 6. When the condition in step 5 is satisfied and ((lArmAngel + rArmAngel) / 2 < Acc2), directly enter state B, and repeat steps 4 - 6 in sequence.

[0075] III. Violation Detection Module

[0076] 1. When entering the initial state, both arms are straight and the current state is A;

[0077] 2. Detect whether ((lArmAngel + rArmAngel) / 2 < Acc2). If it is satisfied, enter state B;

[0078] 3. When in state B, detect whether

[0079] (lShoulder.y + rShoulder.y) / 2 > (lElbow.y + rElbow.y) / 2;

[0080] 4. When the condition in step 3 is not satisfied and (lArmAngel + rArmAngel) / 2 > Acc2, a violation prompt for the shoulders not passing the elbows is given, and the state A is entered;

[0081] 5. When in state A, detect whether (lArmAngel + rArmAngel) / 2 > Acc1 is satisfied;

[0082] 6. When the condition in step 5 is not satisfied and (lArmAngel + rArmAngel) / 2 < Acc2, a violation prompt for the arms not being fully extended is given, and the state B is entered, and steps 4 - 6 are repeated in sequence.

[0083] IV. End Detection Module

[0084] When any of the following conditions is satisfied, the assessment is prompted to end.

[0085] 1) lWrist.y > (a.y + b.y) / 2 && rWrist.y > (a.y + b.y) / 2;

[0086] 2) Current time - Start time of the assessment > T

[0087] Before introducing the specific embodiments, first introduce the system framework corresponding to the method of the embodiments of the present application, as Figure 1 shown, the system is roughly divided into two parts:

[0088] A camera, installed directly in front of the assessor, used to take pictures of the assessor, and the taken images are used to determine whether to count, whether there are violations, etc.;

[0089] A high - computing - power edge intelligent device, integrated with object detection algorithms and human joint point detection algorithms in AI deep learning, used to obtain the images of the camera and execute the automatic test method of parallel bar dips of the present invention based on computer vision technology.

[0090] Embodiment 1

[0091] This embodiment provides an automatic test method for parallel bar dips, as Figure 2 shown, including:

[0092] Initial detection process: calibrate the hand grip position and test area through the camera set in front of the examinee; obtain the real-time image of the test area and input it into the human target detection model (such as the yoloE model) for prediction, and then perform IOU filtering in combination with the hand grip position to obtain the current examinee; obtain the coordinates of the designated human key points of the current examinee through the human posture estimation model (such as the Hrnet module) and calculate the left wrist elbow shoulder angle lArmAngel and the right wrist elbow shoulder angle rArmAngel. The designated human key points include the left wrist lWrist, right wrist rWrist, left elbow lElbow, right elbow rElbow, left shoulder lShoulder, right shoulder rShoulder; set the elbow-shoulder angle of the hand straight as the first threshold and the elbow-shoulder angle of the arm bent as the second threshold, and record the arms straight as state A and the arms bent as state B; obtain the assessment duration, and when it is detected that the left wrist lWrist and the right wrist rWrist are both higher than the position of the hands holding the bar, and the left wrist elbow-shoulder angle lArmAngel and the right wrist elbow-shoulder angle rArmAngel are greater than the first threshold, prompt the assessment to start;

[0093] Counting detection process: continue to obtain real-time images of the test area. When the assessment starts, the initial state is state A. Detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold. If so, enter state B;

[0094] In state B, check whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow, if yes, then add 1 to the valid times; then check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, if yes, then enter state A;

[0095] In state A, detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If so, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, enter state B and return to the previous step to repeat the detection;

[0096] End the detection process: continue to obtain real-time images of the test area. After the test begins, check in real time whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar and whether the test time is greater than the test duration. When the test result meets any one of the conditions, the test is terminated.

[0097] Through the above process, machine vision and artificial intelligence technology are used to realize the automatic test of parallel bar arm extension without human intervention. When the examiner is ready, the timing will start automatically. During the examination, fair, just, open, efficient and accurate counting will be achieved according to the examination standards, and the examination will be automatically prompted to end according to the examination end conditions.

[0098] In a more preferred implementation, the method further includes a violation detection process, which can detect and prompt the violation action while counting the detection process:

[0099] In state B, it is detected whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow. If not, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, a violation prompt of shoulder not passing the elbow is given, and the state A is entered;

[0100] In state A, check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If not and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, a warning is given that the arms are not straightened, and the system enters state B.

[0101] The violation detection process can be combined with the counting detection process. When the action meets the standard requirements, counting is performed. When the action does not meet the standard requirements, corresponding violation prompts are given through the detection of the current state and action.

[0102] In a specific implementation, the calibration of the two-handed bar grip position and the test area specifically includes: recording the lower coordinates of the examinee's two-handed bar grip position as a and b respectively, and then calibrating the test area between a and b.

[0103] In one possible implementation, the X axis in the image coordinate system increases to the right, and the Y axis increases downward;

[0104] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the first threshold is: lArmAngel>Acc1&&rArmAngel>Acc1;

[0105] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold is: (lArmAngel+rArmAngel) / 2 <Acc2;

[0106] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold is: (lArmAngel+rArmAngel) / 2>Acc2;

[0107] The calculation formula for checking whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow is: (lShoulder.y+rShoulder.y) / 2>(lElbow.y+rElbow.y) / 2;

[0108] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both higher than the position of the two hands holding the bar is: lWrist.y<(a.y+by) / 2&&rWrist.y<(a.y+by) / 2;

[0109] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar is: lWrist.y>(a.y+by) / 2&&rWrist.y>(a.y+by) / 2;

[0110] Among them, .y represents the Y-axis coordinate value corresponding to the coordinate point.

[0111] In this embodiment, the flowchart of the initial detection process is as follows: Figure 3 As shown in the figure, the process of counting detection and violation detection is as follows Figure 4 The process of ending the detection process is as shown in Figure 5 shown.

[0112] Based on the same inventive concept, the present application also provides a device corresponding to the method in Example 1, see Example 2 for details.

[0113] Embodiment 2

[0114] In this embodiment, an automatic test device for parallel bar arm curling and extension is provided. Figure 6 As shown, including:

[0115] Initial detection module: calibrate the hand-gripping position and test area through a camera set in front of the examinee; obtain a real-time image of the test area and input it into the human target detection model for prediction, and then perform IOU filtering in combination with the hand-gripping position to obtain the current examinee; obtain the coordinates of the designated human key points of the current examinee through the human posture estimation model and calculate the left wrist elbow shoulder angle lArmAngel and the right wrist elbow shoulder angle rArmAngel, wherein the designated human key points include the left wrist lWrist, the right wrist rWrist, the left elbow lElbow, the right elbow rElbow, the left shoulder lShoulder, and the right shoulder rShoulder; set the elbow and shoulder angle of the hand straight as the first threshold and the elbow and shoulder angle of the arm bent as the second threshold, and record the arms straight as state A and the arms bent as state B; obtain the assessment time, and when it is detected that the left wrist lWrist and the right wrist rWrist are both higher than the hand-gripping position, and the left wrist elbow and shoulder angle lArmAngel and the right wrist elbow and shoulder angle rArmAngel are greater than the first threshold, prompt the start of the assessment;

[0116] Counting detection module: continue to obtain real-time images of the test area. When the assessment starts, the initial state is state A. Detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold. If so, enter state B.

[0117] In state B, check whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow, if yes, then add 1 to the valid times; then check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, if yes, then enter state A;

[0118] In state A, detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If so, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, enter state B and return to the previous step to repeat the detection;

[0119] End detection module: continue to obtain real-time images of the test area. After the test begins, detect in real time whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar and whether the test time is greater than the test duration. When the test result meets any one of the conditions, the test is terminated.

[0120] In a more preferred implementation, a violation detection module is further included, which is used to perform the following steps:

[0121] In state B, it is detected whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow. If not, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, a violation prompt of shoulder not passing the elbow is given, and the state A is entered;

[0122] In state A, check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If not and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, a warning is given that the arms are not straightened, and the system enters state B.

[0123] In a specific embodiment, in the initial detection module, the position of the two hands holding the bar and the test area are calibrated, specifically including: recording the lower coordinates of the position of the examinee's two hands holding the bar as a and b respectively, and then calibrating the test area between a and b.

[0124] In the image coordinate system, the X axis increases to the right, and the Y axis increases downward;

[0125] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the first threshold is: lArmAngel>Acc1&&rArmAngel>Acc1;

[0126] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold is: (lArmAngel+rArmAngel) / 2 <Acc2;

[0127] The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold is: (lArmAngel+rArmAngel) / 2>Acc2;

[0128] The calculation formula for checking whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow is: (lShoulder.y+rShoulder.y) / 2>(lElbow.y+rElbow.y) / 2;

[0129] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both higher than the position of the two hands holding the bar is: lWrist.y<(a.y+by) / 2&&rWrist.y<(a.y+by) / 2;

[0130] The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar is: lWrist.y>(a.y+by) / 2&&rWrist.y>(a.y+by) / 2;

[0131] Among them, .y represents the Y-axis coordinate value corresponding to the coordinate point.

[0132] Since the device introduced in the second embodiment of the present invention is a device used to implement the method of the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device based on the method introduced in the first embodiment of the present invention, so it is not described here in detail. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.

[0133] Based on the same inventive concept, the present application provides an electronic device embodiment corresponding to the first embodiment, see the third embodiment for details.

[0134] Embodiment 3

[0135] This embodiment provides an electronic device, such as Figure 7 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any implementation method in the first embodiment can be implemented.

[0136] Since the electronic device introduced in this embodiment is a device used to implement the method in the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements the device used by the method in the embodiment of the present application, it belongs to the scope of protection of the present application.

[0137] Based on the same inventive concept, the present application provides a storage medium corresponding to the first embodiment, see the fourth embodiment for details.

[0138] Embodiment 4

[0139] This embodiment provides a computer-readable storage medium, such as Figure 8 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, any implementation method in Example 1 can be implemented.

[0140] Since the computer-readable storage medium introduced in this embodiment is a computer-readable storage medium used to implement the method in the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, a person skilled in the art can understand the specific implementation of the computer-readable storage medium of the present embodiment and its various variations, so how the computer-readable storage medium implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements the computer-readable storage medium used in the method in the embodiment of the present application, it belongs to the scope of protection of the present application.

[0141] The embodiment of the present invention realizes automatic testing of the parallel-bar dips and extensions by setting up a dip test action detection process and combining machine vision and artificial intelligence technology to determine the motion state. This method does not require human intervention and can achieve fair, just, open, efficient and accurate counting, and the video can be traced back.

[0142] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0146] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. An automatic testing method for parallel bar dips, characterized in that: include: Initial testing process: The camera set in front of the examinee is used to calibrate the position of the two hands holding the bar and the test area; The real-time image of the test area is obtained and input into the human target detection model for prediction. Then, the IOU filtering is performed based on the grip positions of both hands to obtain the current examinee. The coordinates of the designated human key points of the current examinee are obtained through the human posture estimation model, and the left wrist, elbow and shoulder angles lArmAngel and rArmAngel are calculated, wherein the designated human key points include the left wrist lWrist, the right wrist rWrist, the left elbow lElbow, the right elbow rElbow, the left shoulder lShoulder, and the right shoulder rShoulder; the elbow and shoulder angles of the hands being straight are set as the first threshold value, and the elbow and shoulder angles of the arms being bent are set as the second threshold value, and the arms being straight are recorded as state A, and the arms being bent are recorded as state B; the assessment duration is obtained, and when it is detected that the left wrist lWrist and the right wrist rWrist are both higher than the bar gripping position of both hands, and the left wrist, elbow and shoulder angles lArmAngel and the right wrist, elbow and shoulder angles rArmAngel are greater than the first threshold value, the assessment is prompted to start; Counting detection process: continue to obtain real-time images of the test area. When the assessment starts, the initial state is state A. Detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold. If so, enter state B; In state B, check whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow, if yes, then add 1 to the valid times; then check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, if yes, then enter state A; In state A, detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If so, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, enter state B and return to the previous step to repeat the detection; End the detection process: continue to obtain real-time images of the test area. After the test begins, check in real time whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar and whether the test time is greater than the test duration. When the test result meets any one of the conditions, the test is terminated.

2. The method according to claim 1, characterized in that Also includes the violation detection process: In state B, it is detected whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow. If not, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, a violation prompt of shoulder not passing the elbow is given, and the state A is entered; In state A, check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If not and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, a warning is given that the arms are not straightened, and the system enters state B.

3. The method according to claim 1, characterized in that The calibration of the two-handed bar holding position and the test area specifically includes: recording the lower coordinates of the two-handed bar holding position of the examinee as a and b respectively, and then calibrating the test area between a and b.

4. The method according to claim 1, characterized in that: In the image coordinate system, the X axis increases to the right, and the Y axis increases downward; The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the first threshold is: lArmAngel>Acc1&&rArmAngel>Acc1; The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold is: (lArmAngel+rArmAngel) / 2 <Acc2; The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold is: (lArmAngel+rArmAngel) / 2>Acc2; The calculation formula for checking whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow is: (lShoulder.y+rShoulder.y) / 2>(lElbow.y+rElbow.y) / 2; The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both higher than the position of the two hands holding the bar is: lWrist.y<(a.y+by) / 2&&rWrist.y<(a.y+by) / 2; The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar is: lWrist.y>(a.y+by) / 2&&rWrist.y>(a.y+by) / 2; Among them, .y represents the Y-axis coordinate value corresponding to the coordinate point.

5. An automatic test device for parallel bar dips, characterized in that: include: Initial detection module: The camera set in front of the examinee is used to calibrate the position of the two hands holding the bar and the test area; The real-time image of the test area is obtained and input into the human target detection model for prediction. Then, the IOU filtering is performed based on the grip positions of both hands to obtain the current examinee. The coordinates of the designated human key points of the current examinee are obtained through the human posture estimation model, and the left wrist, elbow and shoulder angles lArmAngel and rArmAngel are calculated, wherein the designated human key points include the left wrist lWrist, the right wrist rWrist, the left elbow lElbow, the right elbow rElbow, the left shoulder lShoulder, and the right shoulder rShoulder; the elbow and shoulder angles of the hands being straight are set as the first threshold value, and the elbow and shoulder angles of the arms being bent are set as the second threshold value, and the arms being straight are recorded as state A, and the arms being bent are recorded as state B; the assessment duration is obtained, and when it is detected that the left wrist lWrist and the right wrist rWrist are both higher than the bar gripping position of both hands, and the left wrist, elbow and shoulder angles lArmAngel and the right wrist, elbow and shoulder angles rArmAngel are greater than the first threshold value, the assessment is prompted to start; Counting detection module: continue to obtain real-time images of the test area. When the assessment starts, the initial state is state A. Detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold. If so, enter state B. In state B, check whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow, if yes, then add 1 to the valid times; then check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, if yes, then enter state A; In state A, detect whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If so, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, enter state B and return to the previous step to repeat the detection; End detection module: continue to obtain real-time images of the test area. After the test begins, detect in real time whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar and whether the test time is greater than the test duration. When the test result meets any one of the conditions, the test is terminated.

6. The device according to claim 5, characterized in that It also includes a violation detection module for performing the following steps: In state B, it is detected whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow. If not, and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold, a violation prompt of shoulder not passing the elbow is given, and the state A is entered; In state A, check whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than a first threshold. If not and the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than a second threshold, a warning is given that the arms are not straightened, and the system enters state B.

7. The device according to claim 5, characterized in that: In the initial detection module, the position of the two hands holding the bar and the test area are calibrated, specifically including: recording the lower coordinates of the position of the examinee's two hands holding the bar as a and b respectively, and then calibrating the test area between a and b.

8. The device according to claim 5, characterized in that: In the image coordinate system, the X axis increases to the right, and the Y axis increases downward; The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the first threshold is: lArmAngel>Acc1&&rArmAngel>Acc1; The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are less than the second threshold is: (lArmAngel+rArmAngel) / 2 <Acc2; The calculation formula for detecting whether the left wrist-elbow-shoulder angle lArmAngel and the right wrist-elbow-shoulder angle rArmAngel are greater than the second threshold is: (lArmAngel+rArmAngel) / 2>Acc2; The calculation formula for checking whether the left shoulder lShoulder and the right shoulder rShoulder are lower than the left elbow lElbow and the right elbow rElbow is: (lShoulder.y+rShoulder.y) / 2>(lElbow.y+rElbow.y) / 2; The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both higher than the position of the two hands holding the bar is: lWrist.y<(a.y+by) / 2&&rWrist.y<(a.y+by) / 2; The calculation formula for detecting whether the left wrist lWrist and the right wrist rWrist are both lower than the position of the two hands holding the bar is: lWrist.y>(a.y+by) / 2&&rWrist.y>(a.y+by) / 2; Among them, .y represents the Y-axis coordinate value corresponding to the coordinate point.

9. 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 method according to any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Cited By

  • AI parallel bar motion teaching system and method

    CN121768081A

  • AI parallel bars exercise teaching system and method

    CN121768081B