CN117037286B - Method, device, equipment and medium for detecting rope skipping number of double simultaneous rope skipping - Google Patents
Method, device, equipment and medium for detecting rope skipping number of double simultaneous rope skipping Download PDFInfo
- Publication number
- CN117037286B CN117037286B CN202311265096.XA CN202311265096A CN117037286B CN 117037286 B CN117037286 B CN 117037286B CN 202311265096 A CN202311265096 A CN 202311265096A CN 117037286 B CN117037286 B CN 117037286B
- Authority
- CN
- China
- Prior art keywords
- person
- frame
- score
- center coordinates
- crotch
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 210000000988 bone and bone Anatomy 0.000 claims abstract description 95
- 235000008694 Humulus lupulus Nutrition 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 13
- 230000006870 function Effects 0.000 claims description 10
- 238000002360 preparation method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009191 jumping Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 210000004072 lung Anatomy 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
- G06V40/23—Recognition of whole body movements, e.g. for sport training
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B5/00—Apparatus for jumping
- A63B5/16—Training devices for jumping; Devices for balloon-jumping; Jumping aids
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B71/00—Games or sports accessories not covered in groups A63B1/00 - A63B69/00
- A63B71/06—Indicating or scoring devices for games or players, or for other sports activities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/66—Analysis of geometric attributes of image moments or centre of gravity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B2220/00—Measuring of physical parameters relating to sporting activity
- A63B2220/17—Counting, e.g. counting periodical movements, revolutions or cycles, or including further data processing to determine distances or speed
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30221—Sports video; Sports image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30242—Counting objects in image
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Abstract
The application relates to a method, a device, equipment and a medium for detecting the number of rope skipping of double simultaneous rope skipping, wherein the method comprises the following steps: acquiring real-time positions of a first person and a second person in each frame of scene; determining a person intersection score of each frame according to the real-time positions of the first person and the second person; determining that the first person and the second person are independent or the first person and the second person are blocked from each other according to the person intersection score of each frame; when the first person and the second person in the current frame are relatively independent or mutually shielded, determining the center coordinates of the crotch bones of the first person and the second person in each frame; determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the end of the double simultaneous rope skipping; and determining the rope skipping number of the first person and the rope skipping number of the second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame.
Description
Technical Field
The application relates to the technical field of rope skipping counting, in particular to a rope skipping number detection method, device, equipment and medium for double simultaneous rope skipping.
Background
In the body test, the rope skipping is a common test item, and can evaluate the physical quality of the tested person in multiple aspects of heart and lung endurance, coordination, flexibility, response speed and the like. In the double rope skipping process, the phenomenon that the recognition result is error due to the fact that the distance between two persons is relatively close. Aiming at the phenomenon, a method for detecting the number of double simultaneous rope skipping is designed to realize the counting of the simultaneous rope skipping of multiple persons.
Disclosure of Invention
Based on the problems, the application provides a rope skipping number detection method, device, equipment and medium for double simultaneous rope skipping.
In a first aspect, an embodiment of the present invention provides a method for detecting the number of rope skipping of two simultaneous rope skipping, including:
when a first person and a second person who jump ropes simultaneously enter a scene to finish preparation work, marking identities of the first person and the second person;
acquiring real-time positions of a first person and a second person in each frame of scene;
determining a person intersection score of each frame according to the real-time positions of the first person and the second person;
determining that the first person and the second person are relatively independent or the first person and the second person are mutually shielded according to the person intersection score of each frame;
when the first person and the second person in the current frame are relatively independent, acquiring the center coordinates of the crotch bones of the first person and the second person, and when the first person and the second person in the current frame are mutually shielded, acquiring the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the previous frame of the current frame and the center coordinates of the crotch bones of the two persons in the previous frame of the current frame;
determining single person similarity scores according to the center coordinates of the crotch bones of two persons in the current frame, the center coordinates of the crotch bones of two persons in the frame before the current frame and the center coordinates of the crotch bones of two persons in the frame before the current frame;
according to the value of the single person similarity score, determining the crotch bone center coordinates of the first person and the second person in each frame when the first person and the second person are blocked;
determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the end of the double simultaneous rope skipping;
and determining the rope skipping number of the first person and the rope skipping number of the second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame.
Further, in the method for detecting the number of rope skipping of double simultaneous rope skipping, the person intersection score of each frame is determined according to the real-time positions of the first person and the second person, and is determined according to the following formula:
wherein,represents an intersection width score,The intersection height score is represented as such,a set first judgment threshold value is indicated,representing the person intersection score for each frame,representing the real-time position of the first person,Representing the real-time position of the second person,the coordinates of the left corner of the square are identified for the first person and the second person respectively,the width of the box is identified for the first person and the second person respectively,the height of the box is identified for the first person and the second person, respectively.
Further, in the method for detecting the number of rope skipping of double simultaneous rope skipping, determining whether the first person and the second person are independent or the first person and the second person are mutually shielded according to the person intersection score of each frame includes:
when people cross scoreWhen the number is equal to 1, judging that two persons are blocked;
when people cross scoreWhen the number is equal to 1, judging that the two persons are independent;
where i represents the number of frames.
Further, in the above method for detecting the number of rope jumps by two persons simultaneously, the single person similarity score is determined according to the center coordinates of the crotch bones of two persons in the current frame, the center coordinates of the crotch bones of two persons in the previous frame and the center coordinates of the crotch bones of two persons in the previous frame, by the following formula:
wherein,,representing the center coordinates of the crotch bones of two persons in the current frame,,representing the center coordinates of the crotch bones of two persons in the frame preceding the current frame,,representing the center coordinates of the crotch bones of two persons in the first two frames of the current frame,for the set second judgment threshold value,for the first similarity score,for a second similarity score, the first similarity score,for the crotch center distance score,single person similarity scoreA function is calculated for the distance score,for a first distanceThe function is calculated and the function is calculated,for the distance comparison score,a function is calculated for the second distance,score for angle contrast,The crotch center coordinates of the first person and the second person, i the number of frames,for the third judgment threshold value to be set,for the fourth judgment threshold value to be set,for the fifth judgment threshold value to be set,is the set sixth judgment threshold.
Further, in the above method for detecting the number of simultaneous rope skipping of two persons, the method for determining the center coordinates of the crotch bones of the first person and the second person in each frame according to the value of the single person similarity score includes:
when a single person is scoring similarlyWhen equal to 1, let the center coordinate of the crotch bone of the first person in the present frame iCrotch center coordinates of the second person;
When a single person is scoring similarlyWhen the crotch bone center coordinate of the first person in the frame i is not equal to 1Crotch center coordinates of the second person;
Where i represents the number of frames.
Further, in the method for detecting the number of rope skipping of the double simultaneous rope skipping, the fluctuation score of the first person and the fluctuation score of the second person in each frame are determined according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the end of the double simultaneous rope skipping, and are determined according to the following formula:
wherein i=3, where,,representing the fluctuating score of the first person,representing the fluctuating score of the second person,,the center coordinates of the crotch bones of the first person and the second person are respectively represented, and i represents the number of frames.
Further, in the method for detecting the number of rope hops of two persons simultaneously, the number of rope hops of the first person and the number of rope hops of the second person are determined according to the fluctuation score of the first person and the fluctuation score of the second person in each frame, and the number of rope hops of the first person and the number of rope hops of the second person are determined according to the following formula:
wherein,representing the fluctuating score of the first person,representing the fluctuating score of the second person,indicating the number of rope jumps of the first person,the number of rope jumps for the second person, i for the number of frames, i=3,,the number of frames indicating the end of the rope skipping.
In a second aspect, an embodiment of the present invention further provides a device for detecting the number of rope skipping of two persons simultaneously, including:
and the marking module is used for: when a first person and a second person who jump the rope simultaneously enter a scene to finish preparation work, the first person and the second person are subjected to identity marking;
the acquisition module is used for: the real-time position acquisition module is used for acquiring the real-time positions of the first person and the second person in each frame of scene;
a first determination module: the system comprises a first person and a second person, wherein the first person and the second person are positioned in real time, and the first person and the second person are positioned in real time;
a second determination module: the method comprises the steps that when a first person and a second person in a current frame are relatively independent, the center coordinates of the crotch bones of the first person and the second person are obtained, and when the first person and the second person in the current frame are mutually shielded, the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in a frame before the current frame and the center coordinates of the crotch bones of the two persons in the frame before the current frame are obtained;
and a third determination module: the method comprises the steps of determining a single person similarity score according to the center coordinates of the crotch bones of two persons in a current frame, the center coordinates of the crotch bones of two persons in a frame before the current frame and the center coordinates of the crotch bones of two persons in the frame before the current frame;
a fourth determination module: the method comprises the steps of determining the center coordinates of the crotch bones of a first person and a second person in each frame when the first person and the second person are blocked according to the value of the single person similarity score;
a fifth determination module: the method comprises the steps of determining fluctuation scores of a first person and a second person in each frame according to crotch center coordinates of the first person and the second person in each frame from the beginning of double simultaneous rope skipping to the end of double simultaneous rope skipping;
a sixth determination module: and the rope skipping number of the first person and the rope skipping number of the second person are determined according to the fluctuation score of the first person and the fluctuation score of the second person in each frame.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a processor and a memory;
the processor is used for executing the rope skipping number detection method for double simultaneous rope skipping according to any one of the above by calling the program or the instruction stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing a program or instructions that cause a computer to execute the method for detecting the number of rope jumps of a double person simultaneous rope jump described in any one of the above.
The embodiment of the application has the advantages that: according to the method, when a first person and a second person who jump ropes simultaneously enter a scene to finish preparation work, identity marking is carried out on the first person and the second person; acquiring real-time positions of a first person and a second person in each frame of scene; determining a person intersection score of each frame according to the real-time positions of the first person and the second person; determining that the first person and the second person are independent or the first person and the second person are blocked from each other according to the person intersection score of each frame; when the first person and the second person in the current frame are relatively independent, acquiring the center coordinates of the crotch bones of the first person and the second person, and when the first person and the second person in the current frame are mutually shielded, acquiring the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the previous frame of the current frame and the center coordinates of the crotch bones of the two persons in the previous frame of the current frame; determining single person similarity scores according to the center coordinates of the crotch bones of two persons in the current frame, the center coordinates of the crotch bones of two persons in the frame before the current frame and the center coordinates of the crotch bones of two persons in the frame before the current frame; according to the value of the single person similarity score, determining the crotch bone center coordinates of the first person and the second person in each frame when the first person and the second person are blocked; determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the end of the double simultaneous rope skipping; and determining the rope skipping number of the first person and the rope skipping number of the second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame. According to the method, the rope skipping times of double simultaneous rope skipping are determined, so that workers are helped to efficiently and accurately determine the rope skipping times of double simultaneous rope skipping.
Drawings
In order to more clearly illustrate the technical solutions of embodiments or conventional techniques of the present application, the drawings required for the descriptions of the embodiments or conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of a rope skipping number detection method for double simultaneous rope skipping according to an embodiment of the present application;
fig. 2 is a schematic diagram of a rope skipping number detection device for double simultaneous rope skipping provided in an embodiment of the present application;
fig. 3 is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the above objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar modifications can be made by those skilled in the art without departing from the spirit of the application, and therefore the application is not limited to the specific embodiments disclosed below.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a schematic diagram of a rope skipping number detection method for double simultaneous rope skipping according to an embodiment of the present application.
In a first aspect, an embodiment of the present invention provides a method for detecting the number of rope skipping of two persons simultaneously, and in combination with fig. 1, the method includes eight steps S101 to S109:
s101: when a first person and a second person who jump the rope simultaneously enter a scene to finish preparation work, the first person and the second person are labeled with identities.
Specifically, in the embodiment of the invention, when a first person and a second person who jump ropes simultaneously enter a scene to finish preparation work, the first person and the second person are marked with identities by the staff and the number of the jumpers is determined.
S102: and acquiring the real-time positions of the first person and the second person in each frame of scene.
Specifically, in the embodiment of the invention, the real-time positions of the first person and the second person in each frame i scene can be obtained through the camera of the intelligent all-in-one machine.
S103: and determining a person intersection score of each frame according to the real-time positions of the first person and the second person.
Specifically, in the embodiment of the present invention, a method for determining a person intersection score of each frame according to real-time positions of a first person and a second person is described in detail below.
S104: and determining that the first person and the second person are independent or the first person and the second person are blocked from each other according to the person intersection score of each frame.
Specifically, in the embodiment of the present invention, a method for determining that the first person and the second person are relatively independent or the first person and the second person are mutually blocked according to the person intersection score of each frame is described in detail below.
S105: when the first person and the second person in the current frame are relatively independent, the center coordinates of the crotch bones of the first person and the second person are obtained, and when the first person and the second person in the current frame are mutually shielded, the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the frame before the current frame and the center coordinates of the crotch bones of the two persons in the frame before the current frame are obtained.
S106: and determining the single person similarity score according to the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the frame before the current frame and the center coordinates of the crotch bones of the two persons in the frame before the current frame.
Specifically, in the embodiment of the present invention, a method for determining a single person similarity score according to the center coordinates of the crotch bones of two persons in the current frame, the center coordinates of the crotch bones of two persons in the frame immediately before the current frame, and the center coordinates of the crotch bones of two persons in the frame immediately before the current frame is described in detail below.
S107: and determining the crotch bone center coordinates of the first person and the second person in each frame when the first person and the second person are blocked according to the value of the single person similarity score.
Specifically, in the embodiment of the present invention, a method for determining the center coordinates of the crotch bones of the first person and the second person in each frame when the first person and the second person are blocked by each other according to the value of the single person similarity score is described in detail below.
S108: and determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the ending of the double simultaneous rope skipping.
Specifically, in the embodiment of the present invention, a method for determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the center coordinates of the crotch bones of the first person and the second person in each frame from the start of the double simultaneous rope skipping to the end of the double simultaneous rope skipping is described in detail below.
S109: and determining the rope skipping number of the first person and the rope skipping number of the second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame.
Specifically, in the embodiment of the present invention, a method for determining the number of rope skipping of the first person and the number of rope skipping of the second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame is described in detail below.
Further, in the method for detecting the number of rope skipping of double simultaneous rope skipping, the person intersection score of each frame is determined according to the real-time positions of the first person and the second person, and is determined according to the following formula:
wherein,represents an intersection width score,The intersection height score is represented as such,a set first judgment threshold value is indicated,representing the person intersection score for each frame,representing the real-time position of the first person,Representing the real-time position of the second person,the coordinates of the left corner of the square are identified for the first person and the second person respectively,the width of the box is identified for the first person and the second person respectively,the height of the box is identified for the first person and the second person, respectively.
Specifically, in the embodiment of the present invention, a first judgment threshold is setThe size of the (C) is flexibly set according to actual conditions.
Further, in the method for detecting the number of rope skipping of double simultaneous rope skipping, determining whether the first person and the second person are independent or the first person and the second person are mutually shielded according to the person intersection score of each frame includes:
when people cross scoreWhen the value is equal to 1, judging that two persons are blocked mutually;
When people cross scoreWhen the number is equal to 1, judging that the two persons are independent;
where i represents the number of frames.
Further, in the above method for detecting the number of rope jumps by two persons simultaneously, the single person similarity score is determined according to the center coordinates of the crotch bones of two persons in the current frame, the center coordinates of the crotch bones of two persons in the previous frame and the center coordinates of the crotch bones of two persons in the previous frame, by the following formula:
wherein,,representing the center coordinates of the crotch bones of two persons in the current frame,,representing the center coordinates of the crotch bones of two persons in the frame preceding the current frame,,representing the center coordinates of the crotch bones of two persons in the first two frames of the current frame,for the set second judgment threshold value,for the first similarity score,for a second similarity score, the first similarity score,for the crotch center distance score,single person similarity scoreA function is calculated for the distance score,a function is calculated for the first pitch,for the distance comparison score,a function is calculated for the second distance,score for angle contrast,The crotch center coordinates of the first person and the second person, i the number of frames,for the third judgment threshold value to be set,for the fourth judgment threshold value to be set,for the fifth judgment threshold value to be set,is the set sixth judgment threshold.
Specifically, in the embodiment of the present invention, the set second judgment threshold valueA third judgment threshold value is setA fourth judgment threshold value setA fifth judgment threshold value is setA sixth judgment threshold value is setThe size of the (C) is flexibly set according to actual conditions.
Further, in the above method for detecting the number of simultaneous rope skipping of two persons, the method for determining the center coordinates of the crotch bones of the first person and the second person in each frame according to the value of the single person similarity score includes:
when a single person is scoring similarlyWhen equal to 1, let the center coordinate of the crotch bone of the first person in the present frame iCrotch center coordinates of the second person;
When a single person is scoring similarlyWhen the crotch bone center coordinate of the first person in the frame i is not equal to 1Crotch center coordinates of the second person;
Where i represents the number of frames.
Further, in the method for detecting the number of rope skipping of the double simultaneous rope skipping, the fluctuation score of the first person and the fluctuation score of the second person in each frame are determined according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the end of the double simultaneous rope skipping, and are determined according to the following formula:
wherein i=3, where,,representing the fluctuating score of the first person,representing the fluctuating score of the second person,,the center coordinates of the crotch bones of the first person and the second person are respectively represented, and i represents the number of frames.
Further, in the method for detecting the number of rope hops of double simultaneous rope hops, the number of rope hops of the first person and the number of rope hops of the second person are determined according to the fluctuation score of the first person and the fluctuation score of the second person in each frame, and the number of rope hops of the first person and the number of rope hops of the second person are determined according to the following formula:
wherein,representing the fluctuating score of the first person,representing the fluctuating score of the second person,indicating the number of rope jumps of the first person,the number of rope jumps of the second person is represented, i represents the number of frames, i=3...,,The number of frames indicating the end of the rope skipping.
Fig. 2 is a schematic diagram of a rope skipping number detection device for double simultaneous rope skipping according to an embodiment of the present application.
In a second aspect, an embodiment of the present invention further provides a device for detecting the number of rope skipping of two persons simultaneously skipping ropes, with reference to fig. 2, including:
labeling module 201: when a first person and a second person who jump the rope simultaneously enter a scene to finish preparation work, the first person and the second person are subjected to identity marking;
the acquisition module 202: the real-time position acquisition module is used for acquiring the real-time positions of the first person and the second person in each frame of scene;
the first determination module 203: the system comprises a first person and a second person, wherein the first person and the second person are positioned in real time, and the first person and the second person are positioned in real time;
the second determination module 204: the method comprises the steps that when a first person and a second person in a current frame are relatively independent, the center coordinates of the crotch bones of the first person and the second person are obtained, and when the first person and the second person in the current frame are mutually shielded, the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in a frame before the current frame and the center coordinates of the crotch bones of the two persons in the frame before the current frame are obtained;
the third determination module 205: the method comprises the steps of determining a single person similarity score according to the center coordinates of the crotch bones of two persons in a current frame, the center coordinates of the crotch bones of two persons in a frame before the current frame and the center coordinates of the crotch bones of two persons in the frame before the current frame;
a fourth determination module 206: the method comprises the steps of determining the center coordinates of the crotch bones of a first person and a second person in each frame when the first person and the second person are blocked according to the value of the single person similarity score;
a fifth determination module 207: the method comprises the steps of determining fluctuation scores of a first person and a second person in each frame according to crotch center coordinates of the first person and the second person in each frame from the beginning of double simultaneous rope skipping to the end of double simultaneous rope skipping;
a sixth determination module 208: and the rope skipping number of the first person and the rope skipping number of the second person are determined according to the fluctuation score of the first person and the fluctuation score of the second person in each frame.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a processor and a memory;
the processor is used for executing the rope skipping number detection method for double simultaneous rope skipping according to any one of the above by calling the program or the instruction stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing a program or instructions that cause a computer to execute the method for detecting the number of rope jumps of a double person simultaneous rope jump described in any one of the above.
Fig. 3 is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure.
As shown in fig. 3, the electronic device includes: at least one processor 301, at least one memory 302, and at least one communication interface 303. The various components in the electronic device are coupled together by a bus system 304. A communication interface 303 for information transfer with an external device. It is understood that bus system 304 is used to enable connected communications between these components. The bus system 304 includes a power bus, a control bus, and a status signal bus in addition to the data bus. The various buses are labeled in fig. 3 as bus system 304 for clarity of illustration.
It is to be understood that the memory 302 in this embodiment may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory.
In some implementations, the memory 302 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system and application programs.
The operating system includes various system programs, such as a framework layer, a core library layer, a driving layer, and the like, and is used for realizing various basic services and processing hardware-based tasks. Applications, including various applications such as Media Player (Media Player), browser (Browser), etc., are used to implement various application services. The program for implementing any one of the methods for detecting the rope skipping number of the double simultaneous rope skipping provided in the embodiments of the present application may be included in the application program.
In the embodiment of the present application, the processor 301 is configured to execute the steps of each embodiment of the method for detecting the number of rope hops by two persons simultaneously jumping the rope, where the steps are executed by the processor 301 by calling a program or an instruction stored in the memory 302, specifically, a program or an instruction stored in an application program.
When a first person and a second person who jump ropes simultaneously enter a scene to finish preparation work, marking identities of the first person and the second person;
acquiring real-time positions of a first person and a second person in each frame of scene;
determining a person intersection score of each frame according to the real-time positions of the first person and the second person;
determining that the first person and the second person are relatively independent or the first person and the second person are mutually shielded according to the person intersection score of each frame;
when the first person and the second person in the current frame are relatively independent, acquiring the center coordinates of the crotch bones of the first person and the second person, and when the first person and the second person in the current frame are mutually shielded, acquiring the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the previous frame of the current frame and the center coordinates of the crotch bones of the two persons in the previous frame of the current frame;
determining a single person similarity score according to the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the frame before the current frame and the center coordinates of the crotch bones of the two persons in the frame before the current frame;
determining the center coordinates of the crotch bones of the first person and the second person in each frame when the first person and the second person are blocked according to the single person similarity score value;
determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the end of the double simultaneous rope skipping;
and determining the rope skipping number of the first person and the rope skipping number of the second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame.
Any one of the methods for detecting the rope skipping number of double simultaneous rope skipping provided in the embodiments of the present application may be applied to the processor 301 or implemented by the processor 301. The processor 301 may be an integrated circuit chip with signal capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry of hardware in the processor 301 or instructions in the form of software. The processor 301 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of any one of the rope skipping number detection methods for double simultaneous rope skipping provided in the embodiments of the present application may be directly embodied as execution completion of a hardware decoding processor, or may be executed by a combination of hardware and software units in the decoding processor. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 302, and the processor 301 reads the information in the memory 302, and combines the hardware of the processor to complete the steps of the rope skipping number detection method for double simultaneous rope skipping.
Those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the present application and form different embodiments.
Those skilled in the art will appreciate that the descriptions of the various embodiments are each focused on, and that portions of one embodiment that are not described in detail may be referred to as related descriptions of other embodiments.
The present invention is not limited to the above embodiments, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and these modifications and substitutions are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (9)
1. The method for detecting the number of the rope skipping of double persons simultaneously skipping the rope is characterized by comprising the following steps:
when a first person and a second person who jump ropes simultaneously enter a scene to finish preparation work, marking identities of the first person and the second person;
acquiring real-time positions of a first person and a second person in each frame of scene;
determining a person intersection score of each frame according to the real-time positions of the first person and the second person;
determining that the first person and the second person are relatively independent or the first person and the second person are mutually shielded according to the person intersection score of each frame;
when the first person and the second person in the current frame are relatively independent, acquiring the center coordinates of the crotch bones of the first person and the second person, and when the first person and the second person in the current frame are mutually shielded, acquiring the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the previous frame of the current frame and the center coordinates of the crotch bones of the two persons in the previous frame of the current frame;
determining a single person similarity score according to the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in the frame before the current frame and the center coordinates of the crotch bones of the two persons in the frame before the current frame;
determining the center coordinates of the crotch bones of the first person and the second person in each frame when the first person and the second person are blocked according to the single person similarity score value;
determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the crotch center coordinates of the first person and the second person in each frame from the beginning of the double simultaneous rope skipping to the end of the double simultaneous rope skipping;
determining the rope skipping number of the first person and the rope skipping number of the second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame;
the person intersection score of each frame is determined according to the real-time positions of the first person and the second person, and is determined by the following formula:
wherein,representing intersection width score,/->Representing intersection height score,/->A set first judgment threshold value is indicated,person intersection score representing each frame, +.>Representing the real-time position of the first person,representing the real-time position of the second person, +.>Identifying the coordinates of the left top corner of the square for the first person and the second person, respectively, < >>Identifying the width of the box for the first person and the second person, respectively,/->The height of the box is identified for the first person and the second person, respectively.
2. The method for detecting the number of rope hops by which two persons simultaneously jump ropes according to claim 1, wherein determining that the first person and the second person are independent or the first person and the second person are blocked from each other according to the person intersection score of each frame comprises:
when people cross scoreWhen the number is equal to 1, judging that two persons are blocked;
when people cross scoreWhen the number is equal to 1, judging that the two persons are independent;
where i represents the number of frames.
3. The method for detecting the number of double simultaneous rope skipping according to claim 1, wherein the single similarity score is determined based on the center coordinates of the crotch bones of two persons in the current frame, the center coordinates of the crotch bones of two persons in the frame immediately before the current frame, and the center coordinates of the crotch bones of two persons in the frame immediately before the current frame by the following formula:
wherein,,/>representing the center coordinates of the crotch bones of two persons in the current frame, < >>,Representing the center coordinates of the crotch bones of two persons in the frame immediately preceding the current frame, < >>,Representing the center coordinates of the crotch bones of two persons in the two frames before the current frame,/>For a second decision threshold value set, +.>For the first similarity score, < >>For a second similarity score, ++>For the crotch center distance score, < >>Single person similarity score->Calculating a function for the distance score +.>Calculating a function for the first distance, +.>For distance contrast score, < >>A function is calculated for the second distance,score +.>,/>The center coordinates of the crotch bones of the first person and the second person are represented by the current frame, i represents the number of frames,/->For a third decision threshold value set, +.>For a fourth decision threshold value set, +.>For a fifth decision threshold value set, +.>Is the set sixth judgment threshold.
4. The method for detecting the number of simultaneous rope jumps of two persons according to claim 1, wherein determining the center coordinates of the crotch bones of the first person and the second person in each frame based on the value of the single person similarity score includes:
when a single person is scoring similarlyWhen equal to 1, let the center coordinate of the crotch bone of the first person in the present frame iCrotch center coordinates of the second person +.>;
When a single person is scoring similarlyWhen the crotch bone center coordinate of the first person in the frame i is not equal to 1Crotch center coordinates of the second person +.>;
Where i represents the number of frames.
5. The method for detecting the number of the double simultaneous rope skipping according to claim 1, wherein the step of determining the fluctuation score of the first person and the fluctuation score of the second person in each frame according to the center coordinates of the crotch bones of the first person and the second person in each frame from the start of the double simultaneous rope skipping to the end of the double simultaneous rope skipping is determined by the following formula:
wherein i=3, where,i represents the number of frames, ">Frame number indicating the end of rope skipping, +.>Representing the fluctuation score of the first person, +.>Representation ofFluctuation score of the second person, +.>,/>Respectively representing the center coordinates of the crotch bones of the first person and the second person.
6. The method for detecting the number of the double simultaneous rope skipping according to claim 1, wherein the number of the double simultaneous rope skipping and the number of the double simultaneous rope skipping are determined according to the fluctuation score of the first person and the fluctuation score of the second person in each frame, wherein the number of the double simultaneous rope skipping and the number of the double simultaneous rope skipping are determined according to the following formula:
wherein,representing the fluctuation score of the first person, +.>Representing the fluctuation score of the second person, +.>Representing the number of rope jumps of the first person, +.>The number of rope jumps of the second person, i the number of frames, i=3,>,/>the number of frames indicating the end of the rope skipping.
7. The utility model provides a double rope skipping number detection device that hops rope simultaneously which characterized in that includes:
and the marking module is used for: when a first person and a second person who jump the rope simultaneously enter a scene to finish preparation work, the first person and the second person are subjected to identity marking;
the acquisition module is used for: the real-time position acquisition module is used for acquiring the real-time positions of the first person and the second person in each frame of scene;
a first determination module: the personal intersection score of each frame is determined according to the real-time positions of the first person and the second person;
a second determination module: the method comprises the steps that when a first person and a second person in a current frame are relatively independent, the center coordinates of the crotch bones of the first person and the second person are obtained, and when the first person and the second person in the current frame are mutually shielded, the center coordinates of the crotch bones of the two persons in the current frame, the center coordinates of the crotch bones of the two persons in a frame before the current frame and the center coordinates of the crotch bones of the two persons in the frame before the current frame are obtained;
and a third determination module: the method comprises the steps of determining a single person similarity score according to the center coordinates of the crotch bones of two persons in the current frame, the center coordinates of the crotch bones of two persons in the frame before the current frame and the center coordinates of the crotch bones of two persons in the frame before the current frame;
a fourth determination module: the crotch center coordinates of the first person and the second person in each frame when the first person and the second person are blocked are determined according to the single person similarity score value;
a fifth determination module: the method comprises the steps of determining fluctuation scores of a first person and a second person in each frame according to crotch center coordinates of the first person and the second person in each frame from the beginning of double simultaneous rope skipping to the end of double simultaneous rope skipping;
a sixth determination module: the method comprises the steps of determining the number of rope skipping of a first person and the number of rope skipping of a second person according to the fluctuation score of the first person and the fluctuation score of the second person in each frame;
the person intersection score of each frame is determined according to the real-time positions of the first person and the second person, and is determined by the following formula:
wherein,representing intersection width score,/->Representing intersection height score,/->A set first judgment threshold value is indicated,person intersection score representing each frame, +.>Representing the real-time position of the first person,representing the real-time position of the second person, +.>Identifying the coordinates of the left top corner of the square for the first person and the second person, respectively, < >>The width of the box is identified for the first person and the second person respectively,the height of the box is identified for the first person and the second person, respectively.
8. An electronic device, comprising: a processor and a memory;
the processor is used for executing the rope skipping number detection method for simultaneously rope skipping of two persons according to any one of claims 1 to 6 by calling a program or instructions stored in the memory.
9. A determination machine-readable storage medium storing a program or instructions that cause a determination machine to execute the double-person simultaneous rope-skipping number detection method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311265096.XA CN117037286B (en) | 2023-09-28 | 2023-09-28 | Method, device, equipment and medium for detecting rope skipping number of double simultaneous rope skipping |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311265096.XA CN117037286B (en) | 2023-09-28 | 2023-09-28 | Method, device, equipment and medium for detecting rope skipping number of double simultaneous rope skipping |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117037286A CN117037286A (en) | 2023-11-10 |
CN117037286B true CN117037286B (en) | 2023-12-26 |
Family
ID=88632042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311265096.XA Active CN117037286B (en) | 2023-09-28 | 2023-09-28 | Method, device, equipment and medium for detecting rope skipping number of double simultaneous rope skipping |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117037286B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112007348A (en) * | 2018-05-29 | 2020-12-01 | 库里欧瑟产品公司 | Reflective video display device for interactive training and demonstration and method of use thereof |
CN112581670A (en) * | 2019-09-28 | 2021-03-30 | 南通莱斯体育科技有限公司 | Cultural and physical activity multi-purpose intelligent gallery product, method and system |
CN114758507A (en) * | 2022-06-15 | 2022-07-15 | 东莞先知大数据有限公司 | Method for processing illegal getting-off of driver at docking station, electronic equipment and storage medium |
CN116563951A (en) * | 2023-07-07 | 2023-08-08 | 东莞先知大数据有限公司 | Method, device, equipment and storage medium for determining horizontal bar suspension action specification |
CN116563950A (en) * | 2023-07-07 | 2023-08-08 | 东莞先知大数据有限公司 | Long jump distance determining method and device, electronic equipment and storage medium |
-
2023
- 2023-09-28 CN CN202311265096.XA patent/CN117037286B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112007348A (en) * | 2018-05-29 | 2020-12-01 | 库里欧瑟产品公司 | Reflective video display device for interactive training and demonstration and method of use thereof |
CN113633956A (en) * | 2018-05-29 | 2021-11-12 | 库里欧瑟产品公司 | Reflective video display device for interactive training and demonstration and method of use thereof |
CN112581670A (en) * | 2019-09-28 | 2021-03-30 | 南通莱斯体育科技有限公司 | Cultural and physical activity multi-purpose intelligent gallery product, method and system |
CN114758507A (en) * | 2022-06-15 | 2022-07-15 | 东莞先知大数据有限公司 | Method for processing illegal getting-off of driver at docking station, electronic equipment and storage medium |
CN116563951A (en) * | 2023-07-07 | 2023-08-08 | 东莞先知大数据有限公司 | Method, device, equipment and storage medium for determining horizontal bar suspension action specification |
CN116563950A (en) * | 2023-07-07 | 2023-08-08 | 东莞先知大数据有限公司 | Long jump distance determining method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117037286A (en) | 2023-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11878433B2 (en) | Method for detecting grasping position of robot in grasping object | |
CN116563950B (en) | Long jump distance determining method and device, electronic equipment and storage medium | |
CN109543641A (en) | A kind of multiple target De-weight method, terminal device and the storage medium of real-time video | |
CN112733767B (en) | Human body key point detection method and device, storage medium and terminal equipment | |
CN110619333A (en) | Text line segmentation method, text line segmentation device and electronic equipment | |
CN115043285B (en) | Method for determining a child's illegal operation of an elevator, electronic device and storage medium | |
CN117037286B (en) | Method, device, equipment and medium for detecting rope skipping number of double simultaneous rope skipping | |
CN112307852A (en) | Matching method of face detection target and marking, storage medium and processor | |
CN109784207B (en) | Face recognition method, device and medium | |
CN102005056A (en) | Target tracking method based on robust PCA (principal component analysis) subspace | |
CN115529837A (en) | Face recognition method and device for mask wearing, and computer storage medium | |
CN113228105A (en) | Image processing method and device and electronic equipment | |
CN115392407B (en) | Non-supervised learning-based danger source early warning method, device, equipment and medium | |
CN109146973B (en) | Robot site feature recognition and positioning method, device, equipment and storage medium | |
CN110390344B (en) | Alternative frame updating method and device | |
CN116129496A (en) | Image shielding method and device, computer equipment and storage medium | |
JP2015215893A (en) | Identification method and facility for sign character of exercise participant | |
CN111046848B (en) | Gait monitoring method and system based on animal running platform | |
US8509541B2 (en) | Method for eye detection for a given face | |
CN115240856A (en) | Exercise health assessment method, system and equipment based on exercise posture | |
CN109145554A (en) | A kind of recognition methods of keystroke characteristic abnormal user and system based on support vector machines | |
CN117079192B (en) | Method, device, equipment and medium for estimating number of rope skipping when personnel are shielded | |
CN115116087A (en) | Action assessment method, system, storage medium and electronic equipment | |
CN110096958B (en) | Method and device for recognizing front face image and computing equipment | |
CN111353511B (en) | Number recognition device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |