Method and device for measuring vertical climbing distance of parallel ladder
By obtaining the coordinate set of identification pictures of the parallel ladder and the parameter coordinates of the target personnel, and calculating the climbing distance, the problem of inaccurate measurement results in the prior art is solved, and higher measurement accuracy is achieved.
Patent Information
- Application Number
- CN202411864835.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-18
AI Technical Summary
The measurement results of the hanging and climbing distance of parallel ladders in the prior art are inaccurate, mainly due to the reliance on manual observation or simple pedometer equipment.
By obtaining the coordinate set of identification images of the parallel ladder, the coordinates of the two ends of the par pole and the coordinates of the support point are determined, combined with the parameter coordinates of the target person in each frame of the image, the landing score, the start action score, the terminal score and the displacement score are calculated, and the climbing distance is finally calculated.
The accuracy of measurement of parallel ladder overhanging and climbing distances is improved, and the inaccurate measurement results caused by manual observation or simple equipment is avoided.
Smart Images

Figure CN119810196A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image processing, and in particular relates to a method and a 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 horizontal ladder bars to test their upper limb strength and coordination. In this context, accurately measuring the suspension climbing distance of participants on parallel ladders has become an important demand. It can not only be used to monitor and evaluate personal training progress, but also can be used as a basis for scoring in competitions. The prior art usually uses a method that relies on manual observation or a simple pedometer or other equipment to measure the suspension climbing distance of parallel ladders. However, whether it is a manual observation method or a simple pedometer method, the measurement result of the suspension climbing distance of parallel ladders is inaccurate. Therefore, how to better achieve the distance measurement of vertical climbing of parallel ladders 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 distance of vertical climbing of a parallel ladder, which improves the accuracy of measuring the distance of suspended climbing of a parallel ladder.
[0004] According to a first aspect of the present invention, a distance measurement method for 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 of the 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 a set of identification picture coordinates of a parallel ladder includes: obtaining the identification picture coordinates of the parallel ladder, wherein the parallel ladder includes a plurality of identification pictures; sorting the identification picture coordinates according to the size of the horizontal coordinate, and using the sorted identification picture coordinates as a set of identification picture coordinates.
[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, including: 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 of the image, the landing score of the target person in each frame of the 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 left-arm action, g7 j Score for the right arm move,
[0009] Further, 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 to start detection from a stationary action; when the detection state of the detected person is to start detection 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] Further, 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 end point, where ts3 is the target threshold; if the score of the target person arriving at the end point is less than the target threshold, determine that the target person has arrived at the end point, and set the second return number score v9=g9+1, and the return criterion number score g8 is 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 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 of the identification picture.
[0011] Further, according to the displacement score and the return number 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, and determining the support point coordinates of the parallel ladder, wherein the support point coordinates include two; a second calculation module for calculating, based on the detection of the identification picture coordinate set, a landing score of the target person and a 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; a third calculation module for calculating a 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; a fourth calculation module for calculating the climbing distance of the target person according to the displacement score and the number of return scores when the landing score is zero.
[0013] According to 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 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 distance measurement method and device for vertical climbing of parallel ladders described in the present invention obtains the coordinate set of the identification picture of the parallel ladder; determines the coordinates of the two ends of the standard rod in the parallel ladder, and calculates the distance conversion score based on the coordinates of the two ends, and determines 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, 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 and the starting action score of the target person are calculated; according to the starting action score, the score of the number of return criteria, and the score of the first number of return, the terminal score of the target person is calculated, 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 score. 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 parallel ladders. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 is a flow chart of a method for measuring the vertical climbing distance of a parallel ladder according to an 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 It 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 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.
[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 clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does 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 a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes 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 it can be indirectly connected through an intermediate medium, or it can be a connection between the 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 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.
[0026] In the related art, monkey bars are a common physical training facility and obstacle course for obstacle races, requiring participants to hang and move on horizontal bars to test their upper limb strength and coordination. In this context, accurately measuring the distance of participants' hanging climbs on parallel ladders has become an important requirement, which can not only be used to monitor and evaluate personal training progress, but also can be used as a basis for scoring in competitions. The prior art usually uses methods that rely on manual observation or simple pedometers and other equipment to measure the distance of parallel ladder hanging climbs. However, whether it is manual observation or simple pedometers, the measurement results of the distance of parallel ladder hanging climbs 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 proposes a method, device and related equipment for measuring the distance of vertical climbing of a parallel ladder, and the present invention improves the accuracy of measuring the suspended climbing distance of a parallel ladder. Specifically, the method, device and related equipment for measuring the distance of vertical climbing of a parallel ladder according to an embodiment of the present invention are described below with reference to the accompanying drawings.
[0028] Figure 1 1 is a flow chart of a method for measuring the distance of vertical climbing of a parallel ladder according to an embodiment of the present invention. It should be noted that the method for measuring the distance of vertical climbing of a parallel ladder according to an embodiment of the present invention can be applied to a device for measuring the distance of vertical climbing of a parallel ladder according to an embodiment of the present invention. The device for measuring the distance of vertical climbing of a parallel ladder can be configured on an electronic device or in a server. This embodiment of the present application does not limit this.
[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] The parallel ladder is 4 meters long and has 11 bars with a distance of 0.4 meters between bars.
[0032] In an embodiment of the present invention, the identification picture coordinates of the parallel ladder are obtained, wherein the parallel ladder includes multiple identification pictures, 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.
[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. i ,y i )}, where i is the serial number of the identification picture, 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, and calculating the distance conversion score based on the coordinates of both ends, and determining the coordinates of the supporting point of the parallel ladder, wherein the supporting 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 are determined, wherein the coordinates of the two ends do not overlap. For example, the coordinates of the two ends are (x01, y01), (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 (x03, y03) and (x04, y04), wherein x03 is smaller than x04.
[0037] S130, based on the detection of the identification image coordinate set, according to the support point coordinates and the parameter coordinates of the target person in each frame image, calculate the landing score of the target person and the starting action score of the target person.
[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 may be determined first, and then the landing score of the target person in each frame of the image may be determined, and then the starting action score of the target person may be calculated according to the landing score of the target person. Specific implementation methods may refer to the subsequent embodiments.
[0040] S140, calculate the terminal score of the target person according to the starting action score, the return criterion number score, and the first return number 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 to say, when the starting action score of the target person is calculated, the terminal score of the target person can be calculated based on the starting action score, the return criterion score, and the first return score, 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. The specific implementation process can be referred to the subsequent embodiments.
[0042] S150, when the landing score is zero, the climbing distance of the target person is calculated according to the displacement score and the return number score.
[0043] That is, when the landing score of the target person is zero, it can be determined that the target person has landed, and the climbing distance of the target person can be calculated according to the displacement score and the return score. The specific implementation method can refer to the subsequent embodiments.
[0044] According to the distance measurement method of vertical climbing of parallel ladders of the embodiment of the present invention, the identification picture coordinate set of the parallel ladder is obtained; the coordinates of the two ends of the standard rod in the parallel ladder are determined, and the distance conversion score is calculated based on the coordinates of the two ends, and the support point coordinates of the parallel ladder are determined, 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 score of the number of return criteria, and the score of the first number of return, 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 score. 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 parallel ladder suspension climbing distance.
[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] The parallel ladder is 4 meters long and has 11 bars with a distance of 0.4 meters between bars.
[0048] In an embodiment of the present invention, the identification picture coordinates of the parallel ladder are obtained, wherein the parallel ladder includes multiple identification pictures, 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.
[0049] For example, based on the horizontal coordinates of the identification picture coordinates, the identification picture coordinates may be sorted from small to large to obtain an identification picture coordinate set.
[0050] Among them, the coordinates of all the marker images in the image can be obtained based on the marker image recognition model. When the number of identified marker images is less than 11, the system will automatically push the marker abnormality to the management staff to check whether there are abnormal situations such as marker image falling, and manually add marker image coordinates until 11 coordinates in the image are obtained. The 11 obtained coordinates are sorted from small to large according to the horizontal coordinate to obtain the marker image coordinate set.
[0051] Among them, an identification logo picture is added to the edge of each bar of the parallel ladder, and the logo picture images of the bar ends in various scenes are collected and labeled. The labeled logo picture images are trained using the YOLO model to obtain a logo picture recognition model.
[0052] Among them, since the method for measuring the vertical climbing distance of parallel ladders can be applied to 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 light conditions, parallel ladders under different hospitals and light conditions, etc.
[0053] S220, determining the coordinates of both ends of the standard pole in the parallel ladder, and calculating the distance conversion score based on the coordinates of both ends, and determining the coordinates of the supporting point of the parallel ladder, wherein the supporting 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), (x02, y02) of both ends of the standard rod.
[0056] Among them, 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, that is, (x03, y03), (x04, y04), where x03 is smaller than x04.
[0057] S230, based on the detection of the identification image coordinate set, according to the support point coordinates and the parameter coordinates of the target person in each frame image, calculate the landing score of the target person and the starting action score of the target person.
[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 left-arm action, g7 j Score for the right arm move,
[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, it is determined 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, 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 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 detected from a static action. Otherwise, it is determined that the target person does not start detection from a static action, then the system will automatically issue a violation reminder to allow 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 times score w9=v9+1, and the return 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 of the identification picture.
[0067] S260, when the landing score is zero, the climbing distance of the target person is calculated according to the displacement score and the return number score.
[0068] In the embodiment of the present invention, after the target person is determined to be detected from a stationary action, and the landing score of the target person is determined to be zero, it is determined that the target person has landed, and then according to Determine the target person's climbing distance.
[0069] According to the distance measurement method of vertical climbing of parallel ladders of the embodiment of the present invention, the coordinate set of the identification picture of the parallel ladder is obtained, the coordinates of the two ends of the standard rod in the parallel ladder are determined, and the distance conversion score is calculated based on the coordinates of the two ends, and the support point coordinates of the parallel ladder are determined, wherein the support point coordinates include two, 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, the landing score of the target person and the starting action score of the target person are calculated, and then the terminal score of the target person is calculated according to the starting action score, the score of the number of return criteria, and the score of the first return number, and then 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, and when the landing score is zero, the climbing distance of the target person is calculated according to the displacement score and the return number score. The method utilizes sensor technology and data processing algorithms, and can realize the automatic measurement of the distance of the target person in the process of suspended climbing of the parallel ladder, improve 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an 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 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 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; Figure 3 As shown, including:
[0072] An acquisition module 310 is used to acquire a coordinate set of a logo image of a parallel ladder;
[0073] A first calculation module 320, for 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, and determining the coordinates of the support point of the parallel ladder, wherein the support point coordinates include two;
[0074] A second calculation module 330 is used to calculate the landing score of the target person and the 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 used to calculate the terminal score of the target person according to the starting action score, the return criterion score, and the first return score, and based on the terminal score and the target threshold, calculate the displacement score of the target person when it is determined that the target person has arrived at the terminal;
[0076] The fourth calculation module 350 is used 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.
[0077] According to the parallel ladder vertical climbing distance measurement device of the embodiment of the present invention, the identification picture coordinate set of the parallel ladder is obtained; the coordinates of the two ends of the standard rod in the parallel ladder are determined, and the distance conversion score is calculated based on the coordinates of the two ends, and the support point coordinates of the parallel ladder are determined, wherein the support point coordinates include two; based on the identification picture coordinate set detection, 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 return criterion score, and the first return score, 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 return score. 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 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.
[0081] Specifically, the second calculation module 330 is specifically used to determine 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 left-arm action, g7 j Score for the right arm move,
[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 used according to Determine the score of the target person arriving at the end point, where ts3 is the target threshold; if the score of the target person arriving at the end point is less than the target threshold, determine that the target person has arrived at the end point, and set the second return number score v9=g9+1, and the return criterion number score g8 is 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 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 of the identification picture.
[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 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) processor 102 (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 also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 4 More or fewer components as shown, or with Figure 4 Equivalent functions or comparisons shown Figure 4 A different configuration with more features is shown.
[0087] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the level determination method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above network 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 send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can 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 according to 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 schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit 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, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it 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 can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope 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, and calculating the distance conversion score based on the coordinates of both ends, and determining the coordinates of the support point 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 according to 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 value 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 score of the number of return times.
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 identification image, including: Acquire the coordinates of the identification picture of the parallel ladder, wherein the parallel ladder includes a plurality of identification pictures; The identification picture coordinates are sorted according to the size of the horizontal coordinates, and the sorted identification picture coordinates are used as an identification picture coordinate set.
3. The method for measuring the vertical climbing distance of a parallel ladder according to claim 1, characterized in that: 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.
4. 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, including: Determine 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.
5. The method for measuring the vertical climbing distance of a parallel ladder according to claim 3, characterized in that: Calculating the landing score and the starting action score of the target person in each frame of the image according to the support point coordinates and the parameter coordinates of the target person in each frame of the image, including: 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 left-arm action, g7 j Score for the right arm move, 6. The method for measuring the vertical climbing distance of a parallel ladder according to claim 5, characterized in that: 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, including: According to the start action score of the target person and the second judgment threshold, determining that 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 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.
7. The method for measuring the vertical climbing distance of a parallel ladder according to claim 6, characterized in that: 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 end point, where ts3 is the target threshold; When it is determined that the score of the target person arriving at the destination is less than the target threshold, it is determined that the target person has arrived at the destination, and the second return times score v9=g9+1, and the return criterion times score g8 is 0; according to Determine the score of the target person returning to the starting point; When 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 of the identification picture.
8. The method for measuring the vertical climbing distance of a parallel ladder according to claim 7, characterized in that: Calculating the climbing distance of the target person according to the displacement score and the return times score includes: According to d = 4g9 + 0.4g13 j , determine the climbing distance of the target person.
9. A device for measuring the vertical climbing distance of a parallel ladder, characterized in that: include: An acquisition module, used to acquire a coordinate set of a logo image of a parallel ladder; A first calculation module, used to determine the coordinates of both ends of the standard rod in the parallel ladder, calculate the distance conversion score based on the coordinates of both ends, and determine the coordinates of the support point of the parallel ladder, wherein the support point coordinates include two; A second calculation module is used to calculate the landing score of the target person and the starting action score of the target person based on the detection of the identification image coordinate set and the parameter coordinates of the target person in each frame of the image according to the support point coordinates and the parameter coordinates of the target person in each frame of the image; A third calculation module is used to calculate the terminal score of the target person according to the starting action score, the return criterion number score, and the first return number score, and based on the terminal score and the target threshold, calculate the displacement score of the target person when it is determined that the target person has arrived at the terminal; The fourth calculation module is used 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.
10. 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 8.
Citation Information
Patent Citations
Long jump distance determination method and device, electronic equipment and storage medium
CN116563950A
Horizontal bar suspension action standard determination method, device and equipment and storage medium
CN116563951A
Solid ball testing method and system based on skeleton point recognition and target detection
CN117671798A
Lever end support front swing-down detection method, electronic equipment and storage medium
CN118615690A
Pull-up detection method, electronic equipment and storage medium
CN118767417A