Pull-up detection method, electronic equipment and storage medium
By using the detection device to calculate the action score in the pull-up detection, the problems of insufficient accuracy and user experience limitations in the existing technology are solved, accurate detection and data interoperability of the pull-up movement are achieved, and a wider range of requirements are met. application requirements.
Patent Information
- Application Number
- CN202411259342.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-09-10
AI Technical Summary
Existing pull-up detection technology lacks accuracy, lacks comprehensive analysis, user experience limitations, and poor data interoperability, and cannot effectively evaluate and monitor the training effect of pull-up exercises.
A pull-up detection method is designed. By setting up a detection device in front of the horizontal bar, using a camera to obtain the coordinates of the horizontal bar and the person, calculating the off-the-ground score, bar grip score and straight arm score, and determining the starting action score and number of actions. , determine whether the movement is over, and achieve accurate detection of the pull-up movement.
It achieves accurate detection of pull-up movements, improves user experience and data interoperability, and meets a wider range of application needs.
Smart Images

Figure CN118767417A_ABST
Abstract
Description
Technical Field
[0001] The 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 mainly exercise the upper limbs, back and abdominal muscles by lifting and hanging the user's body. Although the effect of pull-ups is widely recognized, the evaluation and monitoring of its training effect often relies on the subjective observation of coaches or the personal feelings of athletes, which has certain limitations and errors. There are some devices and methods on the market for detecting pull-up movements, but there are still the following problems: insufficient accuracy, lack of comprehensive analysis, limited user experience, and poor data interoperability. Therefore, a new pull-up detection method and device is needed, which can accurately detect pull-up movements and have 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 object 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 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;
[0006] After the detection device issues a start command, it obtains the key point coordinates of the detected person in the camera image;
[0007] Determine the tester's score of leaving the ground and the score of holding the bar in the i-th frame according to the key point coordinates of the tester and the coordinates of the two end points 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 according to the score of leaving the ground, the score of holding the bar and the score of straight arms, and determine the starting standard score of the tester in the i-th frame according to the starting action score;
[0010] Determine whether the inspector starts from a standstill while keeping his / her arms straight according to the starting standard score of the i-th frame. If the result of the determination is that the inspector starts from a standstill while keeping his / her arms straight, determine the score of the number of actions of the inspector in the i-th frame.
[0011] Whether the pull-up is completed is determined based on the tester's score of leaving the ground and the score of gripping the bar. If the judgment result is that the pull-up is completed, 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 pull-up detection method, the ground clearance score of the detection 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, 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 i-th frame of the detection person, It indicates the score of the right foot off the ground of the i-th frame of the detection person, It represents 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, represents the coordinates of the right landing point of the horizontal bar, 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, represents the left endpoint coordinate 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 i-th frame of the detection person is determined by the following formula:
[0025]
[0026]
[0027]
[0028] 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 i-th frame of the detected 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 according to the ground-off 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, which is determined by the following formula:
[0030]
[0031]
[0032] represents the ground-lift score of the detected person in the i-th frame, represents the bar grip score of the inspector in the i-th frame, represents the straight arm score of the i-th frame of the detected person, 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.
[0033] Furthermore, in the above pull-up detection method, determining whether the detection person starts from a standstill while keeping the straight arms hanging according to the starting standard 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 stillness; 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 stillness.
[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, represents the coordinates of the right landing point of the horizontal bar, represents the fourth judgment threshold value set, represents the left endpoint coordinate of the horizontal bar, represents the coordinates of the right endpoint of the horizontal bar, 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 i-th frame of the detected person, Represents the metric transformation score.
[0043] Furthermore, in the above-mentioned pull-up detection method, judging whether the pull-up is finished according to the ground-lift score and the bar-gripping score of the detection person, 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:
[0044] 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;
[0045] 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.
[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 pull-up detection methods described above by calling the program or instruction stored in the memory.
[0048] According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute any one of the pull-up detection methods described above.
[0049] The beneficial effects of the present invention are as follows: the present invention arranges 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 end points and two landing points of the horizontal bar, and obtains the coordinates of the two end points and two landing points of the horizontal bar in the camera screen; after the detection device issues a start instruction, obtains the key point coordinates of the detection person in the camera screen; determines the ground-off 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 end points and two landing point coordinates of the horizontal bar; determines the straight arm score of the detection person in the i-th frame according to the key point coordinates of the detection person; determines the starting action score of the detection person in the i-th frame according to the ground-off score, the bar-gripping score and the straight arm score, and determines the starting standard score of the detection person in the i-th frame according to the starting action score; determines whether the detection person keeps the straight arms hanging from stillness according to the starting standard score, and if the determination result is that the detection person keeps the straight arms hanging from stillness, determines the action number score of the detection person in the i-th frame; determines whether the pull-up is finished according to the ground-off score and the bar-gripping score of the detection person, and if the judgment result is that the pull-up is finished, determines the number of pull-ups 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 having 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 used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained 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 in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only 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 ordinary technicians in the field without making 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 the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be internal communication between two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.
[0057] The present invention proposes a pull-up detection method, an electronic device and a 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] In the first aspect of the present invention, a pull-up detection method is proposed, combining Figure 1 , including seven steps from S1 to S7:
[0060] S1: before detecting 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 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 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 screen 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 screen, 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, the key point coordinates of the detected person in the camera image are obtained.
[0063] Specifically, in the embodiment of the present invention, after the detection device issues a start command, 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 ), mouth of personnel ), ), right ankle coordinates ), i is the serial number of the video frame.
[0064] S3: 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.
[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 end points 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 i-th frame of the detected person 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 according to the lift-off score, the bar grip score and the straight arm score, and the method for determining the starting standard score of the detection person in the i-th frame according to the starting action score is described in detail below.
[0070] S6: Determine whether the inspected person starts from a standstill with straight arms hanging down according to the starting standard score of the i-th frame. If the result of the determination is that the inspected person starts from a standstill with straight arms hanging down, determine the score of the number of actions of the inspected person in the i-th frame.
[0071] Specifically, in an embodiment of the present invention, determining whether the detected person keeps the arms suspended straight and starts from rest 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 the arms suspended straight and starts from rest, 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 the score of 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-gripping score. If the judgment result is that the pull-up is completed, a method for 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 pull-up detection method, the ground clearance score of the detection 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, 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, It represents 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, represents the coordinates of the right landing point of the horizontal bar, 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, represents the left endpoint coordinate 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 i-th frame of the detection person is determined by the following formula:
[0089]
[0090]
[0091]
[0092] 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, 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 according to the ground-off 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, which is determined by the following formula:
[0095]
[0096]
[0097] represents the ground-lift score of the detected person in the i-th frame, represents the bar grip score of the inspector in the i-th frame, represents the straight arm score of the detected person in the i-th frame, 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.
[0098] Furthermore, in the above pull-up detection method, determining whether the detection person starts from a standstill while keeping the straight arms hanging according to the starting standard 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 stillness; 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 stillness.
[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 the pole. 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 fourth judgment threshold value set, represents the left endpoint coordinate of the horizontal bar, represents the coordinates of the right endpoint of the horizontal bar, 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, 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, judging whether the pull-up is finished according to the ground-lift score and the bar-gripping score of the detection person, 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:
[0110] 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;
[0111] 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.
[0112] Specifically, in the embodiment of the present invention, the detection personnel starts from a standstill with their arms hanging straight. Determine the end of the pull-up detection and obtain the number of actions in 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 pull-up detection methods described above by calling the program or instruction stored in the memory.
[0115] According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute any one of the pull-up detection methods described above.
[0116] Figure 2 It 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 the 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 implementations, the memory 202 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system and application programs.
[0120] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. A program that implements any method in a pull-up detection method provided in an embodiment of the present invention can be included in the application.
[0121] In an embodiment of the present invention, the processor 201 calls a program or instruction stored in the memory 202, specifically, a program or instruction stored in an 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 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;
[0123] After the detection device issues a start command, it obtains the key point coordinates of the detected person in the camera image;
[0124] Determine the tester's score of leaving the ground and the score of holding the bar in the i-th frame according to the key point coordinates of the tester and the coordinates of the two end points 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 according to the score of leaving the ground, the score of holding the bar and the score of straight arms, and determine the starting standard score of the tester in the i-th frame according to the starting action score;
[0127] Determine whether the inspector starts from a standstill while keeping his / her arms straight according to the starting standard score of the i-th frame. If the result of the determination is that the inspector starts from a standstill while keeping his / her arms straight, determine the score of the number of actions of the inspector in the i-th frame.
[0128] Whether the pull-up is completed is determined based on the tester's score of leaving the ground and the score of gripping the bar. If the judgment result is that the pull-up is completed, 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 method in the pull-up detection method provided in the embodiment of the present invention can be applied to the processor 201, or implemented by the processor 201. The processor 201 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 201 or the instructions in the form of software. The above-mentioned processor 201 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0130] The steps of any method in the pull-up detection method provided in the embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software units in the decoding processor. The software unit can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 202, and the processor 201 reads the information in the memory 202 and completes the steps of the method in combination with its hardware.
[0131] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.
[0132] Those skilled in the art will appreciate that the description of each embodiment has its own emphasis, and for parts 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 all fall within the scope defined by the appended claims. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
[0134] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A pull-up detection method, characterized in that: include: 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; After the detection device issues a start command, it obtains the coordinates of the key points of the detected person in the camera image; 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; 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 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; Determine whether the person being tested maintains a straight arm hang from a stationary position based on the starting standard score of the i-th frame, and if the result of the determination is that the person being tested maintains a straight arm hang from a stationary position, determine the number of actions of the person being tested in the i-th frame; Determine whether the pull-up is completed based on the off-the-ground score and the bar grip score. If the judgment result is that the pull-up is completed, determine the number of pull-ups based on the action number score of the detection person in the i-th frame.
2. A pull-up detection method according to claim 1, characterized in that: The ground clearance score of the detected person in the i-th frame is determined by the following formula: ; ; ; ; 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.
3. A pull-up detection method according to claim 1, characterized in that: The bar grip score of the inspector in the i-th frame is determined by the following formula: ; ; ; ; 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.
4. A pull-up detection method according to claim 1, characterized in that: The straight arm score of the detected person in the i-th frame is determined by the following formula: ; ; ; 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, Indicates 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, 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.
5. A pull-up detection method according to claim 1, characterized in that: 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, and 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: ; ; 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, Indicates the straight arm score of the detected person in the i-th frame, 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.
6. A pull-up detection method according to claim 1, characterized in that: The step of determining whether the detected person maintains a straight-arm hanging posture from a static state 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 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.
7. A pull-up detection method according to claim 1, characterized in that: The score of the number of actions of the detected person in the i-th frame is determined by the following formula: ; ; ; ; ; 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, Indicates the straight arm score of the detected person in the i-th frame, Represents the metric transformation score.
8. A pull-up detection method according to claim 1, characterized in that: The step of determining whether the pull-up is completed based on the lift-off score and the bar grip score, and if the pull-up is completed, determining the number of pull-ups based on the movement number score of the detection person in the i-th frame, includes: 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; 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.
9. An electronic device, characterized in that: include: processor and memory; The processor is used to execute a pull-up detection method as described in any one of claims 1 to 8 by calling the program or instructions stored in the memory.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute a pull-up detection method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Pull-up detection device and method
CN114038054A
System and method for sports scoring
US20230285834A1
Standard pull-up counting method, and system and storage medium therefor
WO2024051597A1
Cited By
Method and device for measuring vertical climbing distance of parallel ladder
CN119810196A
A method and device for measuring the vertical climbing distance of a parallel ladder
CN119810196B
