A method and device for measuring the vertical climbing distance of a parallel ladder
By obtaining the coordinates of the parallel ladder identification image and calculating the coordinates of the personnel parameters, combined with sensor technology, the problem of inaccurate measurement of the parallel ladder's suspended climbing distance was solved, and accurate automatic measurement was achieved.
Patent Information
- Application Number
- CN202411864835.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-12-18
AI Technical Summary
The existing technology for measuring the suspended climbing distance of parallel ladders is inaccurate, mainly relying on manual observation or simple pedometers, resulting in inaccurate results.
By obtaining the coordinate set of the identification image of the parallel ladder, the coordinates of the two ends and the support point of the standard pole are determined, and the parameter coordinates of the target person in each frame of the image are combined to calculate the landing score, starting action score, terminal score and displacement score, and automatic measurement is achieved using sensor technology and data processing algorithms.
The accuracy of parallel ladder suspension climbing distance measurement is improved, measurement errors caused by manual observation or simple equipment are avoided, and real-time and accurate distance measurement is achieved.
Smart Images

Figure CN119810196B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and in particular relates to a method and device for measuring the vertical climbing distance of a parallel ladder. Background Art
[0002] As people pay more and more attention to physical health and physical training, sports such as rock climbing and obstacle races have become popular activities. Among them, parallel ladder suspension climbing (Monkey Bars) is a common physical training facility and obstacle race obstacle. It requires participants to hang and move on the horizontal ladder bars to test their upper limb strength and coordination. In this context, accurately measuring the distance participants can hang on the parallel ladder has become an important need. It can not only be used to monitor and evaluate personal training progress, but also as a basis for scoring in competitions. The existing technology usually uses a method that relies on manual observation or a simple pedometer or other equipment to measure the parallel ladder suspension climbing distance. However, whether it is a manual observation method or a simple pedometer method, the measurement result of the parallel ladder suspension climbing distance is inaccurate. Therefore, how to better achieve the measurement of the vertical climbing distance of the parallel ladder has become an urgent problem to be solved. Summary of the Invention
[0003] In view of the above deficiencies in the prior art, an object of the present invention is to provide a method for measuring the vertical climbing distance of a parallel ladder, which improves the accuracy of measuring the suspended climbing distance of a parallel ladder.
[0004] According to a first aspect of the present invention, a method for measuring the distance of vertical climbing of a parallel ladder is proposed, comprising: S1, obtaining an identification picture coordinate set of a parallel ladder; S2, determining the coordinates of both ends of a standard rod in the parallel ladder, and calculating a distance conversion score based on the coordinates of both ends, and determining the support point coordinates of the parallel ladder, wherein the support point coordinates include two; S3, based on the detection of the identification picture coordinate set, calculating the landing score of the target person and the starting action score of the target person according to the support point coordinates and the parameter coordinates of the target person in each frame image; S4, calculating the terminal score of the target person according to the starting action score, the number of return criterion score, and the first number of return scores, and based on the terminal score and the target threshold, calculating the displacement score of the target person when it is determined that the target person has arrived at the terminal; S5, when the landing score is zero, calculating the climbing distance of the target person according to the displacement score and the number of return scores.
[0005] Furthermore, obtaining the identification picture coordinate set of the parallel ladder includes: obtaining the identification picture coordinates of the parallel ladder, wherein the parallel ladder includes multiple identification pictures; sorting the identification picture coordinates according to the size of the horizontal coordinate, and using the sorted identification picture coordinates as the identification picture coordinate set.
[0006] Furthermore, the parameter coordinates of the target person include the left wrist coordinates (x1 j , y1 j ), right wrist coordinates (x2 j , y2 j ), left elbow coordinates (x3 j , y3 j ), right elbow coordinates (x4 j , y4 j ), left ankle coordinates (x5 j ,y5 j ), right ankle coordinates (x6 j ,y6 j ), left shoulder coordinates (x7 j ,y7 j ), right shoulder coordinates (x8 j ,y8 j ), where j is the serial number of each frame image.
[0007] Further, determining the coordinates of both ends of the standard rod in the parallel ladder and calculating the distance conversion score based on the coordinates of both ends includes: determining the coordinates of both ends of the standard rod in the parallel ladder (x01, y01), (x02, y02); wherein the coordinates of both ends do not overlap; according to The distance transformation score is determined.
[0008] Further, according to the support point coordinates and the parameter coordinates of the target person in each frame image, the landing score of the target person in each frame image and the starting action score of the target person are calculated, including: determining the support point coordinates (x03, y03), (x04, y04), where x03 is less than x04; according to Determine the landing score of the target person in each frame of the image, where ts1 is the first judgment threshold, g21 j is the landing criterion score, where according to Determine the starting action score of the target person, where g4 j Score arm movements where Among them, g5 j Score for the personnel holding the pole, g6 j Score for the left-arm action, g7 j Score for the right arm action,
[0009] Furthermore, according to the starting action score, the return criterion score, and the first return score, the terminal score of the target person is calculated, including: according to the starting action score of the target person and the second judgment threshold, determining that the state of the target person is detected from a stationary action; when the detection state of the detected person is detected from a stationary action, setting the return criterion score g8 to 1 and the first return score g9 to 0; according to Determine the terminal score of the target person.
[0010] Furthermore, based on the terminal score and the target threshold, when it is determined that the target person has arrived at the terminal, the displacement score of the target person is calculated, including: Determine the score of the target person arriving at the destination, where ts3 is the target threshold; if the score of the target person arriving at the destination is less than the target threshold, determine that the target person has arrived at the destination, and set the second return score v9=g9+1, and the return criterion score g8 to 0; according to Determine the score of the target person returning to the starting point; if it is determined that the score of the target person returning to the starting point is less than the target threshold, determine that the target person returns to the starting point, and set the third return times score w9=v9+1, and the return criterion times score g8 to 1; according to Determine the displacement score of the target person, where g14 j Score for right shift, g15 j To score a left move, i represents the serial number that identifies the image.
[0011] Furthermore, according to the displacement score and the return score, the climbing distance of the target person is calculated, including: according to Determine the climbing distance of the target person.
[0012] According to a second aspect of the present invention, a distance measurement device for vertical climbing of a parallel ladder is proposed, comprising an acquisition module for acquiring an identification picture coordinate set of a parallel ladder; a first calculation module for determining the coordinates of both ends of a standard rod in the parallel ladder, and calculating a distance conversion score based on the coordinates of both ends, as well as determining the support point coordinates of the parallel ladder, wherein the support point coordinates include two; a second calculation module for calculating the landing score of the target person and the starting action score of the target person based on the detection of the identification picture coordinate set, according to the support point coordinates and the parameter coordinates of the target person in each frame image; a third calculation module for calculating the terminal score of the target person based on the starting action score, the number of return criterion score, and the first number of return scores, and based on the terminal score and the target threshold, calculating the displacement score of the target person when it is determined that the target person has arrived at the terminal; a fourth calculation module for calculating the climbing distance of the target person based on the displacement score and the number of return scores when the landing score is zero.
[0013] In a third aspect of the present invention, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the methods described in the first aspect of the present invention.
[0014] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to the first aspect of the present invention.
[0015] The beneficial effects of the present invention are as follows:
[0016] The method and device for measuring the distance of vertical climbing of a parallel ladder described in the present invention obtain the coordinate set of the identification picture of the parallel ladder; determine the coordinates of the two ends of the standard rod in the parallel ladder, and calculate the distance conversion score based on the coordinates of the two ends, and determine the support point coordinates of the parallel ladder, wherein the support point coordinates include two; based on the detection of the identification picture coordinate set, the landing score of the target person and the starting action score of the target person are calculated according to the support point coordinates and the parameter coordinates of the target person in each frame image; the terminal score of the target person is calculated according to the starting action score, the number of return criteria score, and the first number of return scores, and based on the terminal score and the target threshold, the displacement score of the target person is calculated when it is determined that the target person has arrived at the terminal; when the landing score is zero, the climbing distance of the target person is calculated according to the displacement score and the number of return scores. This method improves the accuracy of the parallel ladder suspension climbing distance measurement and avoids the problems of inaccurate measurement results caused by relying on manual observation or simple pedometers and other equipment to measure the suspension climbing distance of the parallel ladder. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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 of the embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings.
[0018] Figure 1 is a flow chart of a method for measuring the vertical climbing distance of a parallel ladder according to one embodiment of the present invention;
[0019] Figure 2 is a flow chart of a method for measuring the vertical climbing distance of a parallel ladder according to a specific embodiment of the present invention;
[0020] Figure 3 is a structural block diagram of a device for measuring the vertical climbing distance of a parallel ladder according to an embodiment of the present invention;
[0021] Figure 4 This is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] 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.
[0023] 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.
[0024] In the description of the present invention, it should be noted that, unless otherwise expressly specified and limited, the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second" and "third" are used for descriptive purposes only and cannot 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 an indirect connection through an intermediate medium, or it can be a communication between the internal parts of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0025] 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.
[0026] In the related art, parallel ladder hanging climbing (Monkey Bars) is a common physical training facility and obstacle race obstacle, which requires participants to hang and move on the horizontal ladder bars to test their upper limb strength and coordination. In this context, accurately measuring the hanging climbing distance of participants on the parallel ladder has become an important demand. It can not only be used to monitor and evaluate personal training progress, but also as a basis for scoring in competitions. The existing technology usually uses a method that relies on manual observation or simple pedometers and other equipment to measure the hanging climbing distance of parallel ladders. However, whether it is a manual observation method or a simple pedometer method, the measurement results of the hanging climbing distance of parallel ladders are inaccurate. Therefore, how to better achieve the distance measurement of vertical climbing of parallel ladders has become an urgent problem to be solved.
[0027] To this end, the present invention provides a method, apparatus, and related equipment for measuring the vertical climbing distance of a parallel ladder. The present invention improves the accuracy of measuring the vertical climbing distance of a parallel ladder. Specifically, the method, apparatus, and related equipment for measuring the vertical climbing distance of a parallel ladder according to an embodiment of the present invention are described below with reference to the accompanying drawings.
[0028] Figure 1 This is a flow chart of a method for measuring the distance of a vertically climbed parallel ladder according to one embodiment of the present invention. It should be noted that the method for measuring the distance of a vertically climbed parallel ladder according to this embodiment of the present invention can be applied to the device for measuring the distance of a vertically climbed parallel ladder according to this embodiment of the present invention. The device for measuring the distance of a vertically climbed parallel ladder can be configured on an electronic device or on a server. This is not limited in this embodiment of the present application.
[0029] like Figure 1 As shown, the method for measuring the vertical climbing distance of the parallel ladder may include:
[0030] S110, obtaining a coordinate set of a logo image of a parallel ladder.
[0031] Among them, the rule of the parallel ladder is that it is 4 meters long and has 11 bars with a distance of 0.4 meters between the bars.
[0032] In an embodiment of the present invention, the marker image coordinates of the parallel ladder are obtained, wherein the parallel ladder includes multiple marker images, the marker image coordinates are sorted according to the size of the horizontal coordinates, and the sorted marker image coordinates are used as a marker image coordinate set.
[0033] For example, based on the horizontal coordinates of the identified image coordinates, the identified image coordinates can be sorted from small to large to obtain an identified image coordinate set. For example, the identified image coordinate set is {(x i ,y i )}, where i is the serial number of the identified image, where i = 1, 2, 3, ... 11. Where x1<, .... <x 11 .
[0034] S120 , determining the coordinates of both ends of the standard pole in the parallel ladder, calculating the distance conversion score based on the coordinates of both ends, and determining the coordinates of the support points of the parallel ladder, wherein the support point coordinates include two.
[0035] In an embodiment of the present invention, a one-meter-long standard rod can be placed at the parallel ladder, and the coordinates of the two ends of the standard rod can be determined, where the coordinates of the two ends do not overlap. For example, the coordinates of the two ends are (x01, y01) and (x02, y02), and then according to Determine the distance transformation score.
[0036] In an embodiment of the present invention, the coordinates of two supporting points at the bottom of the parallel ladder may be marked, for example, the coordinates of the two supporting points are (x03, y03) and (x04, y04), where x03 is smaller than x04.
[0037] S130 , based on the detection of the identification image coordinate set, calculate the landing score and the starting action score of the target person according to the support point coordinates and the parameter coordinates of the target person in each frame image.
[0038] In the embodiment of the present invention, the parameter coordinates of the target person include the left wrist coordinates (x1 j , y1 j ), right wrist coordinates (x2 j , y2 j ), left elbow coordinates (x3 j , y3 j ), right elbow coordinates (x4 j , y4 j ), left ankle coordinates (x5 j ,y5 j ), right ankle coordinates (x6 j ,y6 j ), left shoulder coordinates (x7 j ,y7 j ), right shoulder coordinates (x8 j ,y8 j ), where j is the serial number of each frame image.
[0039] That is, the support point coordinates can be determined first, and then the landing score of the target person in each frame of the image can be determined, and then the starting action score of the target person can be calculated based on the landing score of the target person. The specific implementation method can be referred to in the subsequent embodiments.
[0040] S140, calculate the terminal score of the target person according to the starting action score, the return criterion score, and the first return score, and calculate the displacement score of the target person based on the terminal score and the target threshold, when it is determined that the target person has arrived at the terminal.
[0041] That is, after calculating the target person's starting action score, the target person's terminal score can be calculated based on the starting action score, the return criterion score, and the first return score. Based on the terminal score and the target threshold, if it is determined that the target person has arrived at the terminal, the target person's displacement score is calculated. For the specific implementation process, please refer to the subsequent embodiments.
[0042] S150: When the landing score is zero, the climbing distance of the target person is calculated based on the displacement score and the return number score.
[0043] That is, if the target person's landing score is zero, it can be determined that the target person has landed, and the target person's climbing distance can be calculated based on the displacement score and the number of return scores. Specific implementation methods can be referred to the subsequent embodiments.
[0044] According to the method for measuring the distance of vertical climbing of a parallel ladder according to an embodiment of the present invention, a set of coordinates of an identification image of a parallel ladder is obtained; the coordinates of the two ends of the standard rod in the parallel ladder are determined, and a distance conversion score is calculated based on the coordinates of the two ends, and the coordinates of the support points of the parallel ladder are determined, wherein the support point coordinates include two; based on the detection of the identification image coordinate set, the landing score of the target person and the starting action score of the target person are calculated according to the coordinates of the support points and the parameter coordinates of the target person in each frame image; the terminal score of the target person is calculated according to the starting action score, the number of return criteria score, and the first number of return scores, and based on the terminal score and the target threshold, the displacement score of the target person is calculated when it is determined that the target person has arrived at the terminal; when the landing score is zero, the climbing distance of the target person is calculated according to the displacement score and the number of return scores. This method improves the accuracy of measuring the suspended climbing distance of a parallel ladder and avoids the problems of inaccurate measurement results caused by relying on manual observation or simple pedometers and other equipment to measure the suspended climbing distance of a parallel ladder.
[0045] In order to make it easier for those skilled in the art to understand the present invention, Figure 2 FIG. 1 is a flow chart of a method for measuring the vertical climbing distance of a parallel ladder according to a specific embodiment of the present invention. Figure 2 As shown, the method for measuring the vertical climbing distance of the parallel ladder includes:
[0046] S210, obtaining a coordinate set of a logo image of a parallel ladder.
[0047] Among them, the rule of the parallel ladder is that it is 4 meters long and has 11 bars with a distance of 0.4 meters between the bars.
[0048] In an embodiment of the present invention, the marker image coordinates of the parallel ladder are obtained, wherein the parallel ladder includes multiple marker images, the marker image coordinates are sorted according to the size of the horizontal coordinates, and the sorted marker image coordinates are used as a marker image coordinate set.
[0049] For example, the identification picture coordinates may be sorted in ascending order based on the horizontal coordinates of the identification picture coordinates to obtain an identification picture coordinate set.
[0050] The coordinates of all the marker images in the image can be obtained based on the marker image recognition model. If the number of recognized marker images is less than 11, the system will automatically push a marker anomaly to the management staff to check for abnormalities such as missing marker images. The coordinates of the marker images can be manually added until all 11 coordinates in the image are obtained. The 11 obtained coordinates are sorted from the smallest to the largest horizontal coordinate to obtain the marker image coordinate set.
[0051] Among them, an identification logo image is added to the edge of each bar of the parallel ladder, and logo image images of the bar ends in various scenarios are collected and labeled. The labeled logo image images are trained using the YOLO model to obtain a logo image recognition model.
[0052] Among them, since the method of measuring the vertical climbing distance of parallel ladders can be applied to fields such as physical examinations, fitness training, military training, firefighter training, outdoor sports and rehabilitation treatment, the various scenarios mentioned above include but are not limited to parallel ladders under different campuses and lighting conditions, parallel ladders under different hospitals and lighting conditions, etc.
[0053] S220 , determining the coordinates of both ends of the standard pole in the parallel ladder, calculating the distance conversion score based on the coordinates of both ends, and determining the coordinates of the support points of the parallel ladder, wherein the support point coordinates include two.
[0054] In an embodiment of the present invention, the coordinates of the two ends of the standard rod in the parallel ladder are determined (x01, y01), (x02, y02); wherein the coordinates of the two ends do not coincide; according to Determine the distance transformation score.
[0055] A one-meter-long standard rod may be placed at the parallel ladder to determine the coordinates (x01, y01) and (x02, y02) of both ends of the standard rod.
[0056] The coordinates of the two supporting points at the bottom of the parallel ladder can be used as the supporting point coordinates of the parallel ladder, namely (x03, y03) and (x04, y04), where x03 is smaller than x04.
[0057] S230 , based on the detection of the identification image coordinate set, calculate the landing score and the starting action score of the target person according to the support point coordinates and the parameter coordinates of the target person in each frame image.
[0058] The target person's parameter coordinates include the left wrist coordinates (x1 j , y1 j ), right wrist coordinates (x2 j , y2 j ), left elbow coordinates (x3 j , y3 j ), right elbow coordinates (x4 j, y4 j ), left ankle coordinates (x5 j ,y5 j ), right ankle coordinates (x6 j ,y6 j ), left shoulder coordinates (x7 j ,y7 j ), right shoulder coordinates (x8 j ,y8 j ), where j is the serial number of each frame image.
[0059] In an embodiment of the present invention, according to Determine the landing score of the target person in each frame of the image, where ts1 is the first judgment threshold, g21 j is the landing criterion score, where
[0060]
[0061] according to Determine the starting action score of the target person, where g4 j Score arm movements where Among them, g5 j Score for the personnel holding the pole, g6 j Score for the left-arm action, g7 j Score for the right arm action,
[0062] S240, calculating the terminal score of the target person according to the starting action score, the return criterion number score, and the first return number score.
[0063] In the embodiment of the present invention, according to the starting action score of the target person and the second judgment threshold, the state of the target person is determined to be detected from a stationary action; in the case where the detection state of the detection person is detected from a stationary action, the return criterion score g8 is set to 1 and the first return score g9 is set to 0; according to Determine the target person's terminal score.
[0064] Among them, when the starting action score g3 of the target person is greater than the second judgment threshold, the state of the target person is determined to be starting detection from a static action. Otherwise, if it is determined that the target person does not start detection from a static action, the system will automatically issue a violation reminder to enable the target person to restart the detection.
[0065] S250 , based on the terminal score and the target threshold, when it is determined that the target person has arrived at the terminal, calculating the displacement score of the target person.
[0066] In an embodiment of the present invention, according to Determine the score of the target person arriving at the destination, where ts3 is the target threshold; if the score of the target person arriving at the destination is less than the target threshold, determine that the target person has arrived at the destination, and set the second return score v9 = g9 + 1, and the return criterion score g8 to 0; according to Determine the score of the target person returning to the starting point; if the score of the target person returning to the starting point is less than the target threshold, determine that the target person returns to the starting point, and set the third return score w9=v9+1, and the return criterion score g8 to 1; according to Determine the displacement score of the target person, where g14 j Score for right shift, g15 j To score a left move, i represents the serial number that identifies the image.
[0067] S260: When the landing score is zero, the climbing distance of the target person is calculated based on the displacement score and the return number score.
[0068] In the embodiment of the present invention, after the target person is determined to be in a stationary state and the landing score of the target person is zero, the target person is determined to have landed. Determine the target person's climbing distance.
[0069] According to an embodiment of the present invention, a distance measurement method for vertical climbing of a parallel ladder obtains a coordinate set of an identification image of the parallel ladder, determines the coordinates of the two ends of the standard rod in the parallel ladder, and calculates a distance conversion score based on the coordinates of the two ends. The coordinates of the support points of the parallel ladder are determined, wherein the support point coordinates include two. Based on the detection of the identification image coordinate set, the landing score of the target person and the starting action score of the target person are calculated according to the support point coordinates and the parameter coordinates of the target person in each frame image. Then, the terminal score of the target person is calculated based on the starting action score, the number of return criteria score, and the first number of return scores. Then, based on the terminal score and the target threshold, if it is determined that the target person has reached the terminal, the displacement score of the target person is calculated. If the landing score is zero, the climbing distance of the target person is calculated based on the displacement score and the number of return scores. This method utilizes sensor technology and data processing algorithms to realize automatic measurement of the distance of the target person during the suspended climbing process of the parallel ladder, improves the accuracy of distance measurement, and can perform real-time distance measurement of vertical climbing of the parallel ladder.
[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0071] According to one aspect of an embodiment of the present invention, a device for measuring the vertical climbing distance of a parallel ladder is also provided. Figure 3 FIG. 1 is a structural block diagram of a device for measuring the vertical climbing distance of a parallel ladder according to an embodiment of the present invention; FIG. Figure 3 Shown, including:
[0072] An acquisition module 310 is used to acquire a coordinate set of a marker image of a parallel ladder;
[0073] A first calculation module 320 is configured to determine the coordinates of both ends of the standard rod in the parallel ladder, calculate a distance conversion score based on the coordinates of both ends, and determine the coordinates of the support points of the parallel ladder, wherein the support point coordinates include two;
[0074] A second calculation module 330 is configured to calculate a landing score and a starting action score of the target person based on the detection of the identification image coordinate set and the support point coordinates and the parameter coordinates of the target person in each frame of the image;
[0075] A third calculation module 340 is configured to calculate a terminal score of the target person based on the starting action score, the reentry criterion score, and the first reentry score, and to calculate a displacement score of the target person if it is determined that the target person has arrived at the terminal based on the terminal score and a target threshold.
[0076] The fourth calculation module 350 is configured to calculate the climbing distance of the target person according to the displacement score and the re-entry score when the landing score is zero.
[0077] According to an embodiment of the present invention, a device for measuring the vertical climbing distance of a parallel ladder obtains a coordinate set of an identification image of the parallel ladder; determines the coordinates of both ends of the standard rod in the parallel ladder, and calculates a distance conversion score based on the coordinates of both ends, and determines the coordinates of the support points of the parallel ladder, wherein the support point coordinates include two; based on the detection of the identification image coordinate set, the landing score of the target person and the starting action score of the target person are calculated according to the coordinates of the support points and the parameter coordinates of the target person in each frame image; the terminal score of the target person is calculated according to the starting action score, the number of return criteria score, and the first number of return scores, and based on the terminal score and the target threshold, when it is determined that the target person has arrived at the terminal, the displacement score of the target person is calculated; when the landing score is zero, the climbing distance of the target person is calculated according to the displacement score and the number of return scores. This improves the accuracy of the parallel ladder suspension climbing distance measurement and avoids the problems of inaccurate measurement results caused by relying on manual observation or simple pedometers and other equipment to measure the parallel ladder suspension climbing distance.
[0078] Specifically, the acquisition module 310 is specifically used to obtain the identification picture coordinates of the parallel ladder, wherein the parallel ladder includes multiple identification pictures; sort the identification picture coordinates according to the size of the horizontal coordinate, and use the sorted identification picture coordinates as the identification picture coordinate set.
[0079] Specifically, the parameter coordinates of the target person include the left wrist coordinates (x1 j , y1 j ), right wrist coordinates (x2 j , y2 j ), left elbow coordinates (x3 j , y3 j ), right elbow coordinates (x4 j , y4 j ), left ankle coordinates (x5 j ,y5 j ), right ankle coordinates (x6 j ,y6 j ), left shoulder coordinates (x7 j ,y7 j ), right shoulder coordinates (x8 j ,y8 j ), where j is the serial number of each frame image.
[0080] Specifically, the first calculation module 320 is specifically used to determine the coordinates (x01, y01) and (x02, y02) of the two ends of the standard rod in the parallel ladder; wherein the coordinates of the two ends do not overlap; according to The distance transformation score is determined.
[0081] Specifically, the second calculation module 330 is specifically used to determine the support point coordinates (x03, y03), (x04, y04), wherein x03 is smaller than x04; according to Determine the landing score of the target person in each frame of the image, where ts1 is the first judgment threshold, g21 j is the landing criterion score, where according to Determine the starting action score of the target person, where g4 j Score arm movements where Among them, g5 j Score for the personnel holding the pole, g6 j Score for the left-arm action, g7 j Score for the right arm action,
[0082] Specifically, the third calculation module 340 is specifically used to determine the state of the target person as starting detection from a stationary action according to the starting action score of the target person and the second judgment threshold; when the detection state of the detection person is starting detection from a stationary action, the return criterion number score g8 is set to 1 and the first return number score g9 is set to 0; according to Determine the terminal score of the target person.
[0083] Specifically, the third calculation module 340 is specifically configured to calculate the Determine the score of the target person arriving at the destination, where ts3 is the target threshold; if the score of the target person arriving at the destination is less than the target threshold, determine that the target person has arrived at the destination, and set the second return score v9=g9+1, and the return criterion score g8 to 0; according to Determine the score of the target person returning to the starting point; if it is determined that the score of the target person returning to the starting point is less than the target threshold, determine that the target person returns to the starting point, and set the third return times score w9=v9+1, and the return criterion times score g8 to 1; according to Determine the displacement score of the target person, where g14 j Score for right shift, g15 j To score a left move, i represents the serial number that identifies the image.
[0084] Specifically, the fourth calculation module 350 is specifically configured to calculate the Determine the climbing distance of the target person.
[0085] According to one aspect of an embodiment of the present invention, an electronic device is provided.
[0086] Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the electronic device may further include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above terminal device. Figure 4 More or fewer components than shown, or with Figure 4 Equivalent functions or comparisons shown Figure 4 Shown are different configurations with more functionality.
[0087] Memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the level determination method in the embodiments of the present invention. Processor 102 executes the computer programs stored in memory 104 to execute various functional applications and data processing, thereby implementing the aforementioned method. Memory 104 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some embodiments, memory 104 may further include memory remotely located relative to processor 102, and such remote memory may be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0088] The transmission device 106 is used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by a communications provider of a switching device. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0089] The present invention provides a computer-readable storage medium having a computer program stored thereon. The computer program can be loaded and executed by a processor to implement the method for measuring the vertical climbing distance of a parallel ladder as described in the first aspect.
[0090] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation plans of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, and is not a limitation on the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
[0091] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
[0092] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and are not to be construed as limiting the present invention. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
[0093] Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the embodiments of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and such modifications or replacements do not deviate from the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be covered by the scope of protection of the present invention.
Claims
1. A method for measuring the vertical climbing distance of a parallel ladder, characterized in that: include: S1, obtain the coordinate set of the identification image of the parallel ladder; S2, determining the coordinates of both ends of the standard rod in the parallel ladder, calculating a distance conversion score based on the coordinates of both ends, and determining the coordinates of the support points of the parallel ladder, wherein the support point coordinates include two; S3, based on the detection of the identification image coordinate set, calculating the landing score of the target person and the starting action score of the target person according to the support point coordinates and the parameter coordinates of the target person in each frame of the image; S4, calculating the terminal score of the target person based on the starting action score, the return criterion score, and the first return score, and calculating the displacement score of the target person based on the terminal score and the target threshold, if it is determined that the target person has arrived at the terminal; S5, when the landing score is zero, calculating the climbing distance of the target person according to the displacement score and the return number score; The target person's parameter coordinates include the left wrist coordinates (x1 j , y1 j ), right wrist coordinates (x2 j , y2 j ), left elbow coordinates (x3 j , y3 j ), right elbow coordinates (x4 j , y4 j ), left ankle coordinates (x5 j ,y5 j ), right ankle coordinates (x6 j ,y6 j ), left shoulder coordinates (x7 j ,y7 j ), right shoulder coordinates (x8 j ,y8 j ), where j is the serial number of each frame of image; Calculating the landing score and the starting action score of the target person in each frame of image according to the support point coordinates and the parameter coordinates of the target person in each frame of image includes: Determine the support point coordinates (x03, y03), (x04, y04), where x03 is smaller than x04; according to Determine the landing score of the target person in each frame of the image, where ts1 is the first judgment threshold, g21 j is the landing criterion score, where according to Determine the starting action score of the target person, where g4 j Score arm movements where Among them, g5 j Score for the personnel holding the pole, g6 j Score for the left-arm action, g7 j Score for the right arm action, Calculating the terminal score of the target person according to the starting action score, the return criterion score, and the first return score includes: Determining, based on the target person's start action score and the second judgment threshold, that the target person's state is detection starting from a stationary action; When the detection state of the detection person is to start the detection from a stationary action, the return criterion score g8 is set to 1, and the first return score g9 is set to 0; according to Determining a terminal score of the target person; Wherein, based on the terminal score and the target threshold, when it is determined that the target person has arrived at the terminal, calculating the displacement score of the target person includes: according to Determine the score of the target person arriving at the destination, where ts3 is the target threshold; When it is determined that the target person's arrival score is less than the target threshold, the target person is determined to have arrived at the destination, and the second return score v9 is set to g9+1, and the return criterion score g8 is set to 0; according to Determine the score of the target person returning to the starting point; If it is determined that the score of the target person returning to the starting point is less than the target threshold, the target person is determined to have returned to the starting point, and the third return times score w9=v9+1 is set, and the return criterion times score g8 is 1; according to Determine the displacement score of the target person, where g 14 j Score for right shift, g15 j To score a left move, i represents the serial number that identifies the image.
2. The method for measuring the vertical climbing distance of a parallel ladder according to claim 1, characterized in that: Get the coordinate set of the parallel ladder's identification image, including: Obtaining coordinates of a logo image of the parallel ladder, wherein the parallel ladder includes a plurality of logo images; The identification picture coordinates are sorted according to the size of the horizontal coordinates, and the sorted identification picture coordinates are used as the identification picture coordinate set.
3. The method for measuring the vertical climbing distance of a parallel ladder according to claim 1, characterized in that: Determining the coordinates of both ends of the standard rod in the parallel ladder and calculating the distance conversion score based on the coordinates of both ends includes: Determine the coordinates of the two ends of the standard rod in the parallel ladder (x01, y01), (x02, y02); wherein the coordinates of the two ends do not overlap; according to The distance transformation score is determined.
4. The method for measuring the vertical climbing distance of a parallel ladder according to claim 1, characterized in that: Calculating the target person's climbing distance according to the displacement score and the re-entry score includes: According to d = 4g9 + 0.4g13 j , determine the climbing distance of the target person.
5. A device for measuring the vertical climbing distance of a parallel ladder, characterized in that: include: An acquisition module is used to obtain a coordinate set of a logo image of a parallel ladder; a first calculation module, configured to determine the coordinates of both ends of a standard rod in the parallel ladder, calculate a distance conversion score based on the coordinates of both ends, and determine the coordinates of a support point of the parallel ladder, wherein the support point coordinates include two; a second calculation module, configured to calculate a landing score of the target person and a starting action score of the target person based on the detection of the identification image coordinate set and the support point coordinates and the parameter coordinates of the target person in each frame of the image; a third calculation module, configured to calculate a terminal score of the target person based on the starting action score, the return criterion score, and the first return score, and to calculate a displacement score of the target person based on the terminal score and a target threshold value when it is determined that the target person has arrived at the terminal; a fourth calculation module, configured to calculate the climbing distance of the target person according to the displacement score and the return number score when the landing score is zero; The target person's parameter coordinates include the left wrist coordinates (x1 j , y1 j ), right wrist coordinates (x2 j , y2 j ), left elbow coordinates (x3 j , y3 j ), right elbow coordinates (x4 j , y4 j ), left ankle coordinates (x5 j ,y5 j ), right ankle coordinates (x6 j ,y6 j ), left shoulder coordinates (x7 j ,y7 j ), right shoulder coordinates (x8 j ,y8 j ), where j is the serial number of each frame of image; The second calculation module is specifically used to determine the support point coordinates (x03, y03), (x04, y04), where x03 is smaller than x04; according to Determine the landing score of the target person in each frame of the image, where ts1 is the first judgment threshold, g21 j is the landing criterion score, where according to Determine the starting action score of the target person, where g4 j Score arm movements where Among them, g5 j Score for the personnel holding the pole, g6 j Score for the left-arm action, g7 j Score for the right arm action, The third calculation module is specifically configured to determine, based on the start action score of the target person and the second judgment threshold, whether the state of the target person is to start detection from a stationary action; When the detection state of the detection person is to start the detection from a stationary action, the return criterion score g8 is set to 1, and the first return score g9 is set to 0; according to Determining a terminal score of the target person; The third calculation module is specifically used to calculate Determine the score of the target person arriving at the destination, where ts3 is the target threshold; When it is determined that the target person's arrival score is less than the target threshold, the target person is determined to have arrived at the destination, and the second return score v9 is set to g9+1, and the return criterion score g8 is set to 0; according to Determine the score of the target person returning to the starting point; If it is determined that the score of the target person returning to the starting point is less than the target threshold, the target person is determined to have returned to the starting point, and the third return times score w9=v9+1 is set, and the return criterion times score g8 is 1; according to Determine the displacement score of the target person, where g14 j Score for right shift, g15 j To score a left move, i represents the serial number that identifies the image.
6. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Long jump distance determination method and device, electronic equipment and storage medium
CN116563950A
Pull-up detection method, electronic equipment and storage medium
CN118767417A