A pull-up detection method, electronic device and storage medium

By using the detection device to calculate the action score in pull-up detection, the problems of insufficient accuracy and user experience limitation in the prior art are solved, and accurate detection of pull-up actions and data interoperability are achieved, which meets a wider range of needs. application requirements.

CN118767417BActive Publication Date: 2024-11-15GUANGDONG PROPHET BIG DATA CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411259342.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-11-15
Estimated Expiration
2044-09-10

AI Technical Summary

Technical Problem

The existing pull-up detection technology is insufficiently accurate, lacks comprehensive analysis, user experience limitations, and poor data interoperability, so it is impossible to effectively evaluate and monitor the training effect of pull-up movements.

Method used

A pull-up detection method is designed. By setting up a detection device before detecting the horizontal bar, using the camera to obtain the coordinates of the horizontal bar and personnel, calculate the ground score, the grip score and the straight arm score, and determine the starting action score and the number of actions. , determine whether the action is over and realize accurate detection of pull-up actions.

Benefits of technology

Accurate detection of pull-up actions is achieved, user experience and data interoperability are improved, and a wider application needs are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118767417B_ABST
    Figure CN118767417B_ABST
Patent Text Reader

Abstract

The invention relates to a pull-up detection method, an electronic device and a storage medium, and belongs to the technical field of pull-up detection. The method comprises: obtaining key point coordinates of a detection person; determining a ground-lift score and a bar-gripping score according to the key point coordinates of the detection person and the two end points and two landing point coordinates of a horizontal bar; determining a straight arm score of the detection person in an i-th frame according to the key point coordinates of the detection person; determining a starting action score of the detection person in an i-th frame, and determining a starting standard score of the detection person in an i-th frame; determining whether the detection person keeps the straight arms hanging from a still state according to the starting standard score of the i-th frame, and if the determination result is that the detection person keeps the straight arms hanging from a still state, determining an action number score of the detection person in an i-th frame; judging whether the pull-up is finished according to the ground-lift score and the bar-gripping score of the detection person, and if the judgment result is that the pull-up is finished, determining the number of pull-ups according to the action number score of the detection person in the i-th frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of pull-up detection, and in particular relates to a pull-up detection method, electronic equipment and storage medium. Background Art

[0002] Pull-ups primarily work the upper limbs, back, and abdominal muscles by lifting and suspending the user's body. While the effectiveness of pull-ups is widely recognized, the evaluation and monitoring of their effectiveness often relies on subjective observations by coaches or the athletes' personal feelings, a method with limitations and errors. Currently, several devices and methods exist on the market for detecting pull-up movements, but these still face several challenges: insufficient accuracy, a lack of comprehensive analysis, limited user experience, and poor data interoperability. Therefore, a new pull-up detection method and device is needed that can accurately detect the pull-up movement while also providing a good user experience and data interoperability to meet a wider range of application needs. Summary of the Invention

[0003] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a pull-up detection method, electronic device and storage medium to eliminate the problems of insufficient accuracy, lack of comprehensive analysis, user experience limitations and poor data interoperability.

[0004] A first aspect of the present invention provides a pull-up detection method, comprising:

[0005] Before testing the horizontal bar, a detection device is set up. The camera image of the detection device includes the entire horizontal bar area, the two end points and the two landing points of the horizontal bar are marked, and the coordinates of the two end points and the two landing points of the horizontal bar in the camera image are obtained;

[0006] After the detection device issues a start command, it obtains the coordinates of the key points of the detected person in the camera image;

[0007] Determine the tester's off-the-ground score and the bar grip score for the i-th frame according to the tester's key point coordinates and the coordinates of the two endpoints and two landing points of the horizontal bar;

[0008] Determine the straight arm score of the i-th frame of the detected person according to the key point coordinates of the detected person;

[0009] Determine the starting action score of the tester in the i-th frame based on the off-the-ground score, the bar grip score, and the straight arm score, and determine the starting standard score of the tester in the i-th frame based on the starting action score;

[0010] Determine whether the person being tested maintains a straight-arm hang from a static state based on the starting standard score of the i-th frame. If the result is that the person being tested maintains a straight-arm hang from a static state, determine the number of actions performed by the person being tested in the i-th frame.

[0011] The tester's score of leaving the ground and gripping the bar are used to determine whether the pull-up is complete. If the judgment result is that the pull-up is complete, the number of pull-ups is determined based on the tester's score of the number of actions in the i-th frame.

[0012] Furthermore, in the above-mentioned pull-up detection method, the ground lift score of the detected person in the i-th frame is determined by the following formula:

[0013]

[0014]

[0015]

[0016]

[0017] in, Indicates the coordinates of the left landing point of the horizontal bar, Indicates the coordinates of the right landing point of the horizontal bar, ) represents the left ankle coordinates, ) represents the coordinates of the right ankle, represents the metric conversion score, Indicates the coordinates of the left endpoint of the horizontal bar, Indicates the first judgment threshold set, It represents the score of the left foot off the ground of the i-th frame of the detection person, It represents the score of the right foot off the ground of the i-th frame of the detection person, Indicates the ground-lift score of the detected person in the i-th frame.

[0018] Furthermore, in the above pull-up detection method, the bar grip score of the detection person in the i-th frame is determined by the following formula:

[0019]

[0020]

[0021]

[0022]

[0023] in, Indicates the coordinates of the left landing point of the horizontal bar, Indicates the coordinates of the right landing point of the horizontal bar, Indicates the score of the left hand holding the bar in the i-th frame of the detection person, It represents the score of the right hand gripping bar of the i-th frame of the detection person, Indicates the bar grip score of the i-th frame of the detection person, Indicates the set second judgment threshold, Indicates the coordinates of the left endpoint of the horizontal bar, represents the coordinates of the right endpoint of the horizontal bar, Indicates the left wrist coordinates of the detected person in the i-th frame, ) represents the coordinates of the right wrist of the detected person in the i-th frame, Represents the metric transformation score.

[0024] Furthermore, in the above pull-up detection method, the straight arm score of the detected person in the i-th frame is determined by the following formula:

[0025]

[0026]

[0027]

[0028] in, Indicates the left straight arm score of the detected person in the i-th frame, Indicates the right straight arm score of the person detected in the i-th frame, represents the straight arm score of the i-th frame of the detection person, ) represents the left shoulder coordinate of the person detected in the i-th frame, ) represents the right shoulder coordinate of the person detected in the i-th frame, Indicates the set third judgment threshold, ) represents the left elbow coordinates of the person detected in the i-th frame, ) represents the coordinates of the right elbow of the person detected in the i-th frame, Indicates the left wrist coordinates of the detected person in the i-th frame, ) represents the coordinates of the right wrist of the detected person in the i-th frame.

[0029] Furthermore, in the above-mentioned pull-up detection method, the starting action score of the detection person in the i-th frame is determined based on the ground lift score, the bar grip score, and the straight arm score. The starting standard score of the detection person in the i-th frame is determined based on the starting action score, which is determined by the following formula:

[0030]

[0031]

[0032] Indicates the ground score of the detected person in the i-th frame, Indicates the bar grip score of the i-th frame of the detection person, represents the straight arm score of the i-th frame of the detection person, represents the starting action score of the i-th frame of the detection person, represents the starting norm score of the detected person in frame i.

[0033] Furthermore, in the above pull-up detection method, determining whether the person being tested maintains a straight-arm hang from a stationary position based on the starting norm score of the i-th frame includes:

[0034] Determine whether the starting norm score of the i-th frame is equal to 1;

[0035] If the judgment result is that the starting standard score of the i-th frame is equal to 1, it is determined that the tester keeps the arms straight and starts from a standstill; if the judgment result is that the starting standard score of the i-th frame is not equal to 1, it is determined that the tester has violated the rules, and the test is restarted until the tester keeps the arms straight and starts from a standstill.

[0036] Furthermore, in the above pull-up detection method, the score of the number of actions of the detection person in the i-th frame is determined by the following formula:

[0037]

[0038]

[0039]

[0040]

[0041]

[0042] in, Indicates the score of the tester's passing status. Indicates the coordinates of the left landing point of the horizontal bar, Indicates the coordinates of the right landing point of the horizontal bar, Indicates the fourth judgment threshold value set, Indicates the coordinates of the left endpoint of the horizontal bar, represents the coordinates of the right endpoint of the horizontal bar, Indicates that the tester has passed the bar and scored. Indicates that the tester has restored the vertical score. Indicates the score of the number of actions of the detected person in the i-th frame, represents the straight arm score of the i-th frame of the detection person, Represents the metric transformation score.

[0043] Furthermore, in the above-mentioned pull-up detection method, whether the pull-up is completed is determined based on the tester's ground lift score and bar grip score. If the judgment result is that the pull-up is completed, the number of pull-ups is determined based on the tester's movement number score in the i-th frame, including:

[0044] Determine whether the pull-up is finished based on whether the product of the tester's ground-off score and the bar-grip score is 0. If the result is that the product of the tester's ground-off score and the bar-grip score is 0, it is determined that the pull-up is finished;

[0045] The number of action scores for the number of frames corresponding to the product of the tester's off-the-ground score and the bar grip score being 0 is determined as the number of pull-ups completed by the tester.

[0046] A second aspect of the present invention further provides an electronic device, comprising: a processor and a memory;

[0047] The processor is used to execute any one of the above pull-up detection methods by calling the program or instructions stored in the memory.

[0048] In a third aspect of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any one of the pull-up detection methods as described above.

[0049] The beneficial effects of the present invention are as follows: the present invention sets a detection device before detecting a horizontal bar, wherein the camera screen of the detection device includes the entire horizontal bar area, marks the two endpoints and two landing points of the horizontal bar, and obtains the coordinates of the two endpoints and two landing points of the horizontal bar in the camera screen; after the detection device issues a start instruction, the key point coordinates of the detection person in the camera screen are obtained; the ground lift score and the bar grip score of the detection person in the i-th frame are respectively determined according to the key point coordinates of the detection person and the coordinates of the two endpoints and two landing points of the horizontal bar; the straight arm score of the detection person in the i-th frame is determined according to the key point coordinates of the detection person; the starting action score of the detection person in the i-th frame is determined according to the ground lift score, the bar grip score and the straight arm score, and the starting standard score of the detection person in the i-th frame is determined according to the starting action score; whether the detection person keeps the straight arms hanging from a standstill is determined according to the starting standard score, and if the result is that the detection person keeps the straight arms hanging from a standstill, the action number score of the detection person in the i-th frame is determined; whether the pull-up is completed is determined according to the ground lift score and the bar grip score of the detection person, and if the judgment result is that the pull-up is completed, the number of pull-ups is determined according to the action number score of the detection person in the i-th frame. The present invention can accurately detect pull-up movements while providing good user experience and data interoperability to meet a wider range of application needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings are only for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. Throughout the drawings, the same reference numerals represent the same components. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings.

[0051] Figure 1 A diagram of a pull-up detection method provided by an embodiment of the present invention;

[0052] Figure 2 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the scope of protection of the present invention.

[0054] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0055] In the description of this invention, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The terms "mounted," "connected," and "connected" should be interpreted broadly, meaning, for example, fixed, removable, or integral; mechanical or electrical; direct or indirect through an intermediary; and internal communication between two components. Those skilled in the art will understand the specific meanings of these terms in this invention on a case-by-case basis.

[0056] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present invention. Rather, they are merely examples of methods and systems consistent with certain aspects of the present invention, as detailed in the appended claims.

[0057] The present invention proposes a pull-up detection method, electronic device and storage medium, which can solve the problems of insufficient accuracy, lack of comprehensive analysis, limited user experience and poor data interoperability.

[0058] Figure 1 A diagram of a pull-up detection method provided in an embodiment of the present invention.

[0059] The first aspect of the present invention provides a pull-up detection method, combined with Figure 1 , including seven steps from S1 to S7:

[0060] S1: Before inspecting the horizontal bar, a detection device is set up. The camera image of the detection device includes the entire horizontal bar area, and the two end points and two landing points of the horizontal bar are marked. The coordinates of the two end points and two landing points of the horizontal bar in the camera image are obtained.

[0061] Specifically, in the embodiment of the present invention, a detection device is set before detecting the horizontal bar, ensuring that the entire horizontal bar area is included in the camera image of the detection device, marking the two endpoints and two landing points of the horizontal bar, and obtaining the coordinates of the two endpoints and two landing points of the horizontal bar in the camera image, and the left endpoint coordinates , right endpoint coordinates , left landing point coordinates , right landing point coordinates .

[0062] S2: After the detection device issues a start command, it obtains the coordinates of the key points of the detected person in the camera image.

[0063] Specifically, in the embodiment of the present invention, after the detection device issues a start instruction, the key point coordinates of the detected person in the camera image are obtained, which are the left shoulder coordinates ), right shoulder coordinates ), left elbow coordinates ), right elbow coordinates ), ), right wrist coordinates ), personnel mouth ), ), right ankle coordinates ), i is the serial number of the video frame.

[0064] S3: Determine the off-the-ground score and the bar-gripping score of the tester in the i-th frame according to the key point coordinates of the tester and the coordinates of the two end points and the two landing points of the horizontal bar.

[0065] Specifically, in an embodiment of the present invention, a method for determining the off-the-ground score and the bar-gripping score of the detection person in the i-th frame according to the key point coordinates of the detection person and the two endpoints and two landing point coordinates of the horizontal bar is described in detail below.

[0066] S4: Determine the straight arm score of the i-th frame of the detected person according to the key point coordinates of the detected person.

[0067] Specifically, in an embodiment of the present invention, a method for determining the straight arm score of the detected person in the i-th frame according to the key point coordinates of the detected person is described in detail below.

[0068] S5: Determine the starting action score of the detection person in the i-th frame according to the off-the-ground score, the bar grip score, and the straight-arm score, and determine the starting standard score of the detection person in the i-th frame according to the starting action score.

[0069] Specifically, in an embodiment of the present invention, the starting action score of the detection person in the i-th frame is determined based on the off-the-ground score, the bar grip score, and the straight arm score. The method for determining the starting standard score of the detection person in the i-th frame based on the starting action score is described in detail below.

[0070] S6: Determine whether the person being tested keeps the arms straight and starts from a standstill based on the starting standard score of the i-th frame. If the result of the determination is that the person being tested keeps the arms straight and starts from a standstill, determine the score of the number of actions of the person being tested in the i-th frame.

[0071] Specifically, in an embodiment of the present invention, determining whether the detected person keeps his arms hanging straight and starts from a standstill based on the starting standard score is to judge the relationship between the starting standard score and 1. If the judgment result is that the starting standard score is equal to 1, the determination result is that the detected person keeps his arms hanging straight and starts from a standstill, and the score of the number of actions of the detected person in the i-th frame is determined. The method for determining the score of the number of actions of the detected person in the i-th frame is described in detail below.

[0072] S7: Determine whether the pull-up is completed based on the tester's score of leaving the ground and gripping the bar. If the judgment result is that the pull-up is completed, determine the number of pull-ups based on the tester's score of the number of actions in the i-th frame.

[0073] Specifically, in an embodiment of the present invention, whether the pull-up is completed is determined based on the test person's ground-lift score and bar-grip score. If the judgment result is that the pull-up is completed, the method of determining the number of pull-ups based on the test person's action number score in the i-th frame is described in detail below.

[0074] Furthermore, in the above-mentioned pull-up detection method, the ground lift score of the detected person in the i-th frame is determined by the following formula:

[0075]

[0076]

[0077]

[0078]

[0079] in, Indicates the coordinates of the left landing point of the horizontal bar, Indicates the coordinates of the right landing point of the horizontal bar, ) represents the left ankle coordinates, ) represents the coordinates of the right ankle, represents the metric conversion score, Indicates the coordinates of the left endpoint of the horizontal bar, Indicates the first judgment threshold set, It represents the score of the left foot off the ground of the i-th frame of the detection person, It represents the score of the right foot off the ground of the i-th frame of the detection person, Indicates the ground-lift score of the detected person in the i-th frame.

[0080] Specifically, in the embodiment of the present invention, the first judgment threshold is set The size can be flexibly set according to actual conditions.

[0081] Furthermore, in the above pull-up detection method, the bar grip score of the detection person in the i-th frame is determined by the following formula:

[0082]

[0083]

[0084]

[0085]

[0086] in, Indicates the coordinates of the left landing point of the horizontal bar, Indicates the coordinates of the right landing point of the horizontal bar, Indicates the score of the left hand holding the bar in the i-th frame of the detection person, It represents the score of the right hand gripping bar of the i-th frame of the detection person, Indicates the bar grip score of the i-th frame of the detection person, Indicates the set second judgment threshold, Indicates the coordinates of the left endpoint of the horizontal bar, represents the coordinates of the right endpoint of the horizontal bar, Indicates the left wrist coordinates of the detected person in the i-th frame, ) represents the coordinates of the right wrist of the detected person in the i-th frame, Represents the metric transformation score.

[0087] Specifically, in the embodiment of the present invention, the second judgment threshold is set The size can be flexibly set according to actual conditions.

[0088] Furthermore, in the above pull-up detection method, the straight arm score of the detected person in the i-th frame is determined by the following formula:

[0089]

[0090]

[0091]

[0092] in, Indicates the left straight arm score of the detected person in the i-th frame, Indicates the right straight arm score of the person detected in the i-th frame, represents the straight arm score of the i-th frame of the detection person, ) represents the left shoulder coordinate of the person detected in the i-th frame, ) represents the right shoulder coordinate of the person detected in the i-th frame, Indicates the set third judgment threshold, ) represents the left elbow coordinates of the person detected in the i-th frame, ) represents the coordinates of the right elbow of the person detected in the i-th frame, Indicates the left wrist coordinates of the detected person in the i-th frame, ) represents the coordinates of the right wrist of the detected person in the i-th frame.

[0093] Specifically, in the embodiment of the present invention, the third judgment threshold is set The size can be flexibly set according to actual conditions.

[0094] Furthermore, in the above-mentioned pull-up detection method, the starting action score of the detection person in the i-th frame is determined based on the ground lift score, the bar grip score, and the straight arm score. The starting standard score of the detection person in the i-th frame is determined based on the starting action score, which is determined by the following formula:

[0095]

[0096]

[0097] Indicates the ground score of the detected person in the i-th frame, Indicates the bar grip score of the i-th frame of the detection person, represents the straight arm score of the i-th frame of the detection person, represents the starting action score of the i-th frame of the detection person, represents the starting norm score of the detected person in frame i.

[0098] Furthermore, in the above pull-up detection method, determining whether the person being tested maintains a straight-arm hang from a stationary position based on the starting norm score of the i-th frame includes:

[0099] Determine whether the starting norm score of the i-th frame is equal to 1;

[0100] If the judgment result is that the starting standard score of the i-th frame is equal to 1, it is determined that the tester keeps the arms straight and starts from a standstill; if the judgment result is that the starting standard score of the i-th frame is not equal to 1, it is determined that the tester has violated the rules, and the test is restarted until the tester keeps the arms straight and starts from a standstill.

[0101] Furthermore, in the above pull-up detection method, the score of the number of actions of the detection person in the i-th frame is determined by the following formula:

[0102]

[0103]

[0104]

[0105]

[0106]

[0107] in, Indicates the score of the tester's passing status. Indicates the coordinates of the left landing point of the horizontal bar, Indicates the coordinates of the right landing point of the horizontal bar, Indicates the fourth judgment threshold value set, Indicates the coordinates of the left endpoint of the horizontal bar, represents the coordinates of the right endpoint of the horizontal bar, Indicates that the tester has passed the bar and scored. Indicates that the tester has restored the vertical score. Indicates the score of the number of actions of the detected person in the i-th frame, represents the straight arm score of the i-th frame of the detection person, Represents the metric transformation score.

[0108] Specifically, in the embodiment of the present invention, the fourth judgment threshold is set The size can be flexibly set according to actual conditions.

[0109] Furthermore, in the above-mentioned pull-up detection method, whether the pull-up is completed is determined based on the tester's ground lift score and bar grip score. If the judgment result is that the pull-up is completed, the number of pull-ups is determined based on the tester's movement number score in the i-th frame, including:

[0110] Determine whether the pull-up is finished based on whether the product of the tester's ground-off score and the bar-grip score is 0. If the result is that the product of the tester's ground-off score and the bar-grip score is 0, it is determined that the pull-up is finished;

[0111] The number of action scores for the number of frames corresponding to the product of the tester's off-the-ground score and the bar grip score being 0 is determined as the number of pull-ups completed by the tester.

[0112] Specifically, in the embodiment of the present invention, the tester starts from a standstill with his arms hanging straight down. Determine the end of the pull-up detection and obtain the action count score of frame i That is the number of pull-ups completed by the tester.

[0113] A second aspect of the present invention further provides an electronic device, comprising: a processor and a memory;

[0114] The processor is used to execute any one of the above pull-up detection methods by calling the program or instructions stored in the memory.

[0115] In a third aspect of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any one of the pull-up detection methods as described above.

[0116] Figure 2 This is a schematic block diagram of an electronic device provided by an embodiment of the present invention.

[0117] like Figure 2 As shown, the electronic device includes: at least one processor 201, at least one memory 202 and at least one communication interface 203. The various components in the electronic device are coupled together through a bus system 204. The communication interface 203 is used to transmit information between external devices. It can be understood that the bus system 204 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 204 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 2 Various buses are labeled as bus system 204 .

[0118] It can be understood that the memory 202 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.

[0119] In some embodiments, the memory 202 stores the following elements, executable units or data structures, or a subset or an extended set thereof: an operating system and application programs.

[0120] The operating system includes various system programs, such as the framework layer, core library layer, and driver layer, which are used to implement various basic services and handle hardware-based tasks. Application programs, such as media players and browsers, are used to implement various application services. Programs implementing any of the pull-up detection methods provided in the embodiments of the present invention can be included in the application programs.

[0121] In an embodiment of the present invention, the processor 201 calls the program or instructions stored in the memory 202, specifically, the program or instructions stored in the application, and the processor 201 is used to execute the steps of each embodiment of a pull-up detection method provided in an embodiment of the present invention.

[0122] Before testing the horizontal bar, a detection device is set up. The camera image of the detection device includes the entire horizontal bar area, the two end points and the two landing points of the horizontal bar are marked, and the coordinates of the two end points and the two landing points of the horizontal bar in the camera image are obtained;

[0123] After the detection device issues a start command, it obtains the coordinates of the key points of the detected person in the camera image;

[0124] Determine the tester's off-the-ground score and the bar grip score for the i-th frame according to the tester's key point coordinates and the coordinates of the two endpoints and two landing points of the horizontal bar;

[0125] Determine the straight arm score of the i-th frame of the detected person according to the key point coordinates of the detected person;

[0126] Determine the starting action score of the tester in the i-th frame based on the off-the-ground score, the bar grip score, and the straight arm score, and determine the starting standard score of the tester in the i-th frame based on the starting action score;

[0127] Determine whether the person being tested maintains a straight-arm hang from a static state based on the starting standard score of the i-th frame. If the result is that the person being tested maintains a straight-arm hang from a static state, determine the number of actions performed by the person being tested in the i-th frame.

[0128] The tester's score of leaving the ground and gripping the bar are used to determine whether the pull-up is complete. If the judgment result is that the pull-up is complete, the number of pull-ups is determined based on the tester's score of the number of actions in the i-th frame.

[0129] Any of the pull-up detection methods provided in the embodiments of the present invention can be applied to or implemented by processor 201. Processor 201 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 201 or by software instructions. The above-mentioned processor 201 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The general-purpose processor can be a microprocessor or any conventional processor.

[0130] Any of the steps in the pull-up detection method provided in the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software units within the decoding processor. The software units can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in memory 202, and processor 201 reads information from memory 202 and, in conjunction with the hardware, completes the steps of the method.

[0131] Those skilled in the art will appreciate that although some embodiments described herein include some features and not others included in other embodiments, the combination of features from different embodiments is intended to be within the scope of the invention and to form different embodiments.

[0132] Those skilled in the art will understand that the description of each embodiment has its own focus, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0133] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations shall fall within the scope defined by the appended claims. The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and such modifications or substitutions shall be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

[0134] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A pull-up detection method, characterized in that: include: Before testing the horizontal bar, a testing device is set up, the camera screen of the testing device includes the entire horizontal bar area, the two end points and two landing points of the horizontal bar are marked, and the coordinates of the two end points and two landing points of the horizontal bar in the camera screen are obtained; After the detection device issues a start command, it obtains the key point coordinates of the detected person in the camera image; Determine the ground-leaving score and the bar-holding score of the tester in the i-th frame according to the key point coordinates of the tester and the two end points and two landing point coordinates of the horizontal bar; Determine the straight arm score of the i-th frame of the detected person according to the key point coordinates of the detected person; Determine the starting action score of the i-th frame of the detection person according to the off-the-ground score, the bar grip score and the straight-arm score, and determine the starting standard score of the i-th frame of the detection person according to the starting action score; Determine whether the inspected person starts from a standstill with the arms straight and hanging down according to the starting standard score, and if the result of the determination is that the inspected person starts from a standstill with the arms straight and hanging down, determine the score of the number of actions of the inspected person in the i-th frame; Determine whether the pull-up is finished according to the ground-lift score and the bar-gripping score, and if the result of the determination is that the pull-up is finished, determine the number of pull-ups according to the score of the number of actions of the tester in the i-th frame; The ground clearance score of the i-th frame of the detected person is determined by the following formula: ; ; ; ; in, Indicates the coordinates of the left landing point of the horizontal bar, represents the coordinates of the right landing point of the horizontal bar, ) represents the left ankle coordinates, ) represents the coordinates of the right ankle, represents the metric conversion score, represents the left endpoint coordinate of the horizontal bar, Indicates the first judgment threshold set, It indicates the score of the left foot off the ground of the tester in the i-th frame, It indicates the score of the right foot off the ground of the i-th frame of the detection person, represents the ground-lift score of the detected person in the i-th frame; The bar grip score of the tester in the i-th frame is determined by the following formula: ; ; ; in, It indicates the score of the left hand holding the bar in the i-th frame of the inspector. It indicates the score of the right hand gripping bar of the tester in the i-th frame. represents the bar grip score of the inspector in the i-th frame, Indicates the set second judgment threshold, Indicates the left wrist coordinates of the detected person in the i-th frame, ) represents the coordinates of the right wrist of the detected person in the i-th frame; The straight arm score of the detected person in the i-th frame is determined by the following formula: ; ; ; in, represents the left straight arm score of the detected person in the i-th frame, represents the right straight arm score of the person detected in the i-th frame, represents the straight arm score of the detected person in the i-th frame, ) represents the left shoulder coordinate of the person detected in the i-th frame, ) represents the right shoulder coordinate of the person detected in the i-th frame, Indicates the set third judgment threshold, ) represents the left elbow coordinates of the person detected in the i-th frame, ) represents the coordinates of the right elbow of the person detected in the i-th frame; The starting action score of the i-th frame of the detection person is determined according to the off-the-ground score, the bar grip score and the straight-arm score, and the starting standard score of the i-th frame of the detection person is determined according to the starting action score, which is determined by the following formula: ; ; represents the starting action score of the i-th frame of the detected person, represents the starting norm score of the i-th frame of the detected person; The step of determining whether the detected person starts from a standstill while maintaining straight-arm hanging according to the starting standard score of the i-th frame includes: Determine whether the starting norm score of the i-th frame is equal to 1; If the judgment result is that the starting standard score of the i-th frame is equal to 1, it is determined that the tester keeps the straight arms hanging from a static state; if the judgment result is that the starting standard score of the i-th frame is not equal to 1, it is determined that the tester violates the rules, and the test is restarted until the tester keeps the straight arms hanging from a static state; The action number score of the i-th frame is determined by the following formula: ; ; ; ; in, Indicates the score of the tester's passing status. represents the fourth judgment threshold value set, Indicates the score of the tester. Indicates that the tester has restored the vertical score. represents the score of the number of actions of the detected person in the i-th frame, represents the straight arm score of the detected person in the i-th frame; The step of judging whether the pull-up is finished according to the ground-lift score and the bar-gripping score, and if the judgment result is that the pull-up is finished, determining the number of pull-ups according to the action number score of the detection person in the i-th frame, includes: Determine whether the pull-up is finished according to whether the product of the tester's score off the ground and the score of gripping the bar is 0. If the result of the determination is that the product of the tester's score off the ground and the score of gripping the bar is 0, it is determined that the pull-up is finished; The number of action scores of the frames corresponding to the product of the tester's ground-off score and the bar grip score being 0 is determined as the number of pull-ups completed by the tester.

2. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute a pull-up detection method as described in claim 1 by calling the program or instruction stored in the memory.

3. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores programs or instructions, and the programs or instructions enable a computer to execute a pull-up detection method as described in claim 1.

Citation Information

Cited By

  • Pull-up leveraging climbing detection method based on visual detection

    CN122116476A