CN116212354A - Rope skipping counting method, device, equipment and medium - Google Patents
Rope skipping counting method, device, equipment and medium Download PDFInfo
- Publication number
- CN116212354A CN116212354A CN202310369402.8A CN202310369402A CN116212354A CN 116212354 A CN116212354 A CN 116212354A CN 202310369402 A CN202310369402 A CN 202310369402A CN 116212354 A CN116212354 A CN 116212354A
- Authority
- CN
- China
- Prior art keywords
- rope
- skipping
- rope skipping
- user
- motion signal
- 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.)
- Pending
Links
Images
Classifications
-
- 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
- A63B71/0619—Displays, user interfaces and indicating devices, specially adapted for sport equipment, e.g. display mounted on treadmills
- A63B71/0669—Score-keepers or score display devices
-
- 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/20—Skipping-ropes or similar devices rotating in a vertical plane
-
- 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
- A63B71/0605—Decision makers and devices using detection means facilitating arbitration
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B2244/00—Sports without balls
- A63B2244/08—Jumping, vaulting
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Physical Education & Sports Medicine (AREA)
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Maintenance And Inspection Apparatuses For Elevators (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
- Measurement Of Unknown Time Intervals (AREA)
Abstract
The application discloses a rope skipping counting method, device, equipment and medium, which are applied to the technical field of intelligent equipment and are used for solving the problem of poor rope skipping counting accuracy in the prior art. The method comprises the following steps: acquiring a rope skipping motion signal of a user; judging the change characteristics of the rope skipping motion signal in the first time, if the change characteristics meet the jump threshold condition of the level of the user, determining that the user starts rope skipping and calculating the first rope skipping number; determining a target rope skipping motion signal; based on the amplitude value of the effective waveform of the target rope-skipping motion signal after the first time, updating the counting threshold value in real time, and sequentially identifying the waveform of the target rope-skipping motion signal after the first time according to the counting threshold value to obtain the second rope-skipping number; and determining the current total number of the rope skipping based on the first rope skipping number and the second rope skipping number. Therefore, by matching the jump threshold conditions of the corresponding levels for the user, the accuracy of rope skipping detection of different crowds is improved, and the counting threshold is updated in real time, so that the rope skipping counting accuracy can be improved.
Description
Technical Field
The application relates to the technical field of intelligent equipment, in particular to a rope skipping counting method, a device, equipment and a medium.
Background
Rope skipping is a physical exercise with simple equipment, small site restrictions and obvious fitness effects, and often requires counting the number of ropes to determine the amount of exercise per se.
At present, the rope skipping counting method is mainly divided into counting and intelligent counting. The artificial counting often needs the user to count by himself, and the phenomenon of counting errors easily occurs. The intelligent counting is mainly realized by using a rope skipping counting handle provided with a counter or intelligent wearing equipment provided with a sensor. The rope skipping counting handle provided with the counter cannot accurately judge whether a user successfully crosses the rope skipping, so that the counting accuracy is poor; the intelligent wearable equipment provided with the sensor still has larger error when the user has the condition of irregular rope skipping action; the existing rope skipping counting method generally has the problem of poor accuracy.
Disclosure of Invention
The embodiment of the application provides a rope skipping counting method, device, equipment and medium, which are used for solving the problem of poor rope skipping counting accuracy in the prior art.
The technical scheme provided by the embodiment of the application is as follows:
in one aspect, an embodiment of the present application provides a rope skipping counting method, including:
acquiring a rope skipping motion signal of a user;
judging the change characteristics of the rope skipping motion signals in the first time, if the change characteristics meet the jump threshold conditions of the level of the user in the grading jump threshold conditions, determining that the user starts rope skipping and calculating the first rope skipping number of the user in the first time;
determining a rope skipping motion signal of an effective shaft in the rope skipping motion signals of the user as a target rope skipping motion signal;
based on the amplitude value of the effective waveform of the target rope-skipping motion signal after the first time, updating a counting threshold in real time, and sequentially identifying the waveform of the target rope-skipping motion signal after the first time according to the counting threshold to obtain the second rope-skipping number of the user after the first time;
and determining the current total number of the rope skipping of the user based on the first rope skipping number and the second rope skipping number, and outputting the current total number of the rope skipping of the user.
On the other hand, the embodiment of the application provides a rope skipping counting device, including:
the signal acquisition unit is used for acquiring rope skipping motion signals of a user;
the starting and counting unit is used for judging the change characteristics of the rope skipping motion signal in the first time, if the change characteristics meet the jump threshold condition of the level of the user in the grading jump threshold condition, determining that the user starts rope skipping and calculating the first rope skipping number of the user in the first time;
a target signal determining unit, configured to determine a rope skipping motion signal of an effective axis in the rope skipping motion signals of the user as a target rope skipping motion signal;
the counting unit is used for updating the counting threshold value in real time based on the amplitude value of the effective waveform of the target rope-skipping motion signal after the first time, and sequentially identifying the waveform of the target rope-skipping motion signal after the first time according to the counting threshold value to obtain the second rope-skipping number of the user after the first time;
and the quantity counting unit is used for determining the current total quantity of the rope skipping of the user based on the first rope skipping quantity and the second rope skipping quantity and outputting the current total quantity of the rope skipping.
In another aspect, an embodiment of the present application provides an electronic device, including: the rope skipping counting method comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the rope skipping counting method provided by the embodiment of the application when executing the computer program.
On the other hand, the embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium stores computer instructions which are executed by the processor to realize the rope skipping counting method provided by the embodiment of the application.
The beneficial effects of the embodiment of the application are as follows:
in the embodiment of the application, whether the user starts rope skipping is determined by determining whether the user starts rope skipping based on the jump threshold condition of the level where the user is located in the hierarchical jump threshold conditions, namely, the user is matched with the jump threshold condition corresponding to the level where the user is located, so that whether the user starts rope skipping is determined, the detection for starting rope skipping is more targeted, and the accuracy of detecting the starting rope skipping of different crowds is effectively improved; and based on the amplitude of the effective waveform of the target rope-skipping motion signal after the first time, the counting threshold value is updated in real time, the waveform of the target rope-skipping motion signal after the first time is sequentially identified according to the counting threshold value, and the number of second rope-skipping of the user after the first time is obtained, so that the real-time updating of the counting threshold value of the identification waveform can be realized, the adaptability of rope-skipping counting is improved, and the accuracy of rope-skipping counting is effectively improved.
As will become apparent from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a schematic overview of a rope skipping counting method according to an embodiment of the present application;
fig. 2 is a schematic overview flow chart of a first rope skipping number determining method in an embodiment of the application;
FIG. 3 is a schematic view of a sliding window according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a counting threshold in an embodiment of the present application;
fig. 5 is a functional schematic diagram of a rope skipping counting device in an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the application.
Detailed Description
In order to make the objects, technical solutions and advantageous effects of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments, but not all embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that references to "first," "second," etc. in this application are for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that such terms are interchangeable under appropriate circumstances such that the embodiments described herein are capable of operation in other sequences than those illustrated or otherwise described herein.
The embodiment of the application provides a rope skipping counting method, which is applied to intelligent wearing equipment, and the intelligent wearing equipment related to the embodiment of the application is portable equipment which is directly worn on or integrated with clothes or accessories of a user, and can include, but is not limited to, intelligent watches, intelligent wrist bands, intelligent glasses, rings or helmets and the like. For convenience of explanation, a smart watch will be described in detail below as an example. Referring to fig. 1, an overview flow of the rope skipping counting method provided in the embodiment of the present application is as follows:
step 101: and acquiring a rope skipping motion signal of the user.
In practical application, after a user enters a rope skipping mode by clicking a corresponding position in an interface of the intelligent watch or pressing a key, an accelerometer sensor or a gyroscope sensor arranged on the intelligent watch detects and obtains a rope skipping motion signal of the user. The rope skipping motion signal is a rope skipping motion signal detected by an accelerometer sensor or a rope skipping motion signal detected by a gyroscope sensor, wherein the rope skipping motion signal comprises three axial rope skipping motion signals of an x axis, a y axis and a z axis.
Step 102: and judging the change characteristics of the rope skipping motion signals in the first time, if the change characteristics meet the jump threshold conditions of the level of the user in the grading jump threshold conditions, determining that the user starts rope skipping, and calculating the first rope skipping number of the user in the first time.
In practical application, the hierarchical threshold conditions comprise different levels of threshold conditions of signal characteristics generated according to different degrees of force. The hierarchical threshold conditions may be generally divided into five levels, with the threshold conditions in each level being derived through large sample machine learning training. The rope skipping gesture and the force applying degree of different users are different, the signal characteristics generated by the force applying degree of the users can determine the level of the jump threshold condition corresponding to the signal characteristics generated by the force applying degree of the users in the hierarchical jump threshold condition, and whether the change characteristics of the rope skipping motion signal in the first time meet the jump threshold condition is judged; if yes, determining the user to take off, and recording the first rope skipping number of the user in the first time. If not, determining that the user does not take off. The condition of the grading jump threshold is mainly divided into two types, one is to set a grading jump threshold comprising a grading amplitude threshold and a grading interval threshold for the jump rope motion signal detected by the accelerometer sensor, and the other is to set a grading jump threshold comprising a grading amplitude threshold for the jump rope motion signal detected by the gyroscope sensor. By setting different levels of jump threshold conditions which are divided according to signal characteristics generated by different force-generating degrees in the grading jump threshold conditions, all jump threshold conditions corresponding to the signal characteristics generated by different force-generating degrees generated by different rope-skipping postures of different people can be covered, and the accuracy of rope-skipping starting accuracy and the accuracy of rope-skipping starting counting in the process of detecting different people are ensured.
In specific implementation, referring to fig. 2, determining a change feature of the rope skipping motion signal in the first time, if the change feature meets a jump threshold condition of a level where a user is located in a hierarchical jump threshold condition, determining that the user starts rope skipping and calculating the number of first rope skipping of the user in the first time may be, but is not limited to, the following ways:
step 201: and determining the jump threshold condition of the level of the user in the hierarchical jump threshold condition according to the signal characteristics generated by the stress degree of the user.
In practical application, the signal characteristics generated by the force degree of the user are detected by the intelligent watch in the process of the first rope skipping of the user. Specifically, when the user jumps the rope for the first time, the jump threshold value of the user is set smaller, and the intelligent watch can determine the signal characteristics generated by the stress degree of the user according to the jump rope motion signal of the user. The signal characteristics generated by the force exertion degree of the user can be obtained by, but not limited to, moving the sliding window according to a preset step length in a preset time, and comprehensively judging according to each peak value and each trough value in a preset number of sliding windows, wherein specific comprehensive judging modes include, but not limited to, that the amplitude of each peak needs to be larger than a smaller peak threshold value set for the first rope skipping of the user, and the amplitude of each trough needs to be smaller than a smaller trough threshold value set for the first rope skipping of the user. The classification threshold type may be preset according to a sensor generating the rope-skipping motion signal of the user, or the classification threshold type may be determined by a sensor recognizing the rope-skipping motion signal of the user, and then the class threshold condition corresponding to the user may be determined among the classification threshold conditions according to the signal characteristics generated by the degree of the user's stress.
Step 202: and determining the change characteristics of the rope skipping motion signals in the axial directions through the sliding window in the first time.
In practical application, each axial direction of the rope skipping motion signal mainly comprises three axial directions of an x axis, a y axis and a z axis. The sensors for detecting the obtained rope skipping motion signals are different, and the corresponding rope skipping motion signals are different in change characteristics. The change characteristics corresponding to the rope skipping motion signals detected and obtained by the accelerometer sensor are amplitude characteristics and interval characteristics, and the change characteristics corresponding to the rope skipping motion signals detected and obtained by the gyroscope sensor are amplitude characteristics. The window size of the sliding window is related to the frequency of the rope skipping motion signal, and referring specifically to fig. 3, the window size of the sliding window is smaller than one period of the rope skipping motion signal, and only one peak value and one trough value exist in each axial rope skipping motion signal in one sliding window. In the first time, a step length can be set, the sliding window is moved according to the step length, and the peak value and the trough value of each axial rope-skipping motion signal can be determined in the sliding window at each position and are correspondingly used as the amplitude characteristics of each axial rope-skipping motion signal in the sliding window at each position; and determining the time interval of two adjacent wave crests corresponding to each axial rope-skipping motion signal in the sliding window at the adjacent position, thereby obtaining the interval characteristic of each axial rope-skipping motion signal.
Step 203: if the change characteristic of one axial rope skipping motion signal meets the jump threshold condition, recording the rope skipping number of the first axial rope skipping motion signal, and taking the rope skipping number of the first axial rope skipping motion signal as the first primary selection rope skipping number.
In practical application, the first axial direction is the first axial direction in which the change characteristic of the rope skipping motion signal meets the jump threshold condition, and may be any axial direction in which any one of the three axial directions of the x axis, the y axis and the z axis included in the rope skipping motion signal meets the jump threshold condition at first. In the first time, aiming at the rope skipping motion signals obtained by the detection of the accelerometer sensor, if the amplitude characteristics and the interval characteristics in the sliding windows with the continuously preset quantity in one axial rope skipping motion signal meet the starting threshold value conditions of the level corresponding to the signal characteristics generated by the stress degree of the user, the number of the rope skipping of the first axial rope skipping motion signal is recorded as the number of the first initially selected rope skipping. In the first time, if the amplitude characteristics in the sliding windows with the continuously preset quantity in one axial rope skipping motion signal meet the jump threshold value condition of the level corresponding to the signal characteristics generated by the stress degree of the user in the rope skipping motion signal obtained through detection of the gyroscope sensor, the number of the rope skipping of the first axial rope skipping motion signal is recorded as the number of the first initially selected rope skipping. The amplitude characteristic refers to the peak value and the trough value of the rope-skipping motion signal in the same axial direction, and the interval characteristic refers to the interval between two adjacent peaks of the rope-skipping motion signal in the same axial direction or the interval between two adjacent troughs of the rope-skipping motion signal in the same axial direction. The number of the rope skipping of the first axial rope skipping motion signal is determined according to the amplitude characteristics of the first axial rope skipping motion signal, which meet the jump threshold condition of the level corresponding to the signal characteristics generated by the force exertion degree of the user.
Step 204: and if the change characteristics of at least two axial rope skipping motion signals meet the jump threshold value condition, taking the number of the second axial rope skipping motion signals as the second primary selection rope skipping number.
In practical applications, the second axis is the second axis in which the characteristic of the change in the rope-jump motion signal satisfies the jump threshold condition. The first time refers to the time consumed between the time when the change characteristics of the rope skipping motion signals of the first axial direction and the second axial direction after the rope skipping motion signals of the user are obtained and the time when the change characteristics of the rope skipping motion signals of the first axial direction and the second axial direction meet the take-off threshold conditions of the level where the user is located. Since the rope skipping action has a force in at least two axial directions, after determining that the change characteristics of the rope skipping motion signal in the first axial direction all meet the jump threshold condition of the level corresponding to the signal characteristics generated by the force degree of the user, when the rope skipping motion signal in the second axial direction also meets the jump threshold condition met by the change characteristics of the rope skipping motion signal in the first axial direction in the first time, the user can be determined to start rope skipping, and further, the specific number of ropes skipping of the rope skipping motion signal in the second axial direction may be determined as follows:
first case: the change characteristic of the second axial rope-skipping motion signal meets the corresponding take-off threshold condition, and the change characteristic of the third axial rope-skipping motion signal does not meet the corresponding take-off threshold condition. At this time, it is determined that the user starts rope skipping, and it is determined based on the number of amplitude features in the second rope skipping motion signal that satisfy the take-off threshold condition of the level corresponding to the signal feature generated by the user's degree of exertion.
Second case: the change characteristics of the rope skipping motion signals in the second axial direction and the third axial direction meet the corresponding take-off threshold conditions. At this time, it is determined that the user starts rope skipping, and the number of amplitude features satisfying the jump threshold condition of the level corresponding to the signal feature generated by the user's degree of force in the second rope skipping motion signal or the third rope skipping motion signal is determined as the second initially selected number of rope skipping, wherein the third axial direction is an axial direction other than the first axial direction and the second axial direction in the rope skipping motion signal.
Step 205: and determining the first rope skipping number in the first time according to the first primary selection rope skipping number and the second primary selection rope skipping number.
In practical application, there may be deviation between the first primary rope skipping number and the second primary rope skipping number, and the first rope skipping number in the first time needs to be further determined through the difference between the first primary rope skipping number and the second primary rope skipping number, which specifically can be but is not limited to the following modes:
judging whether the difference value between the first primary selection rope skipping number and the second primary selection rope skipping number is larger than a preset threshold value;
if yes, taking the minimum primary selection rope skipping number in the first primary selection rope skipping number and the second primary selection rope skipping number as the first rope skipping number;
if not, the largest primary selection rope skipping number in the first primary selection rope skipping number and the second primary selection rope skipping number is used as the first rope skipping number.
When the method is implemented, if the difference value between the first primary rope skipping number and the second primary rope skipping number is larger than a preset threshold value, the counting point representing the beginning corresponding to the axial direction corresponding to the larger primary rope skipping number in the first primary rope skipping number and the second primary rope skipping number is a non-rope skipping point, the counting point representing the beginning corresponding to the axial direction corresponding to the smaller primary rope skipping number in the first primary rope skipping number and the second primary rope skipping number is a real rope skipping starting point, and at the moment, the smallest primary rope skipping number in the first primary rope skipping number and the second primary rope skipping number is taken as the first rope skipping number. If the difference value of the first primary selection rope skipping number and the second primary selection rope skipping number is not larger than the preset threshold value, the largest primary selection rope skipping number in the first primary selection rope skipping number and the second primary selection rope skipping number is used as the first rope skipping number more accurately.
Step 103: and determining the rope skipping motion signal of the effective shaft in the rope skipping motion signals of the user as a target rope skipping motion signal.
In practical application, in order to reduce the operand of the identification process of rope skipping counting and reduce the interference caused by waveform abnormality in a certain axial direction, one axial rope skipping motion signal with normal overall waveform and larger waveform amplitude can be selected from the rope skipping motion signals of a user as a target rope skipping motion signal for further rope skipping counting identification. The waveform is normal, namely the condition that the same axial rope skipping motion signal in one window does not have secondary wave peaks, namely the condition of two wave peaks which are larger than each other.
Step 104: based on the amplitude of the effective waveform of the target rope-skipping motion signal after the first time, updating the counting threshold in real time, and sequentially identifying the waveform of the target rope-skipping motion signal after the first time according to the counting threshold to obtain the second rope-skipping number of the user after the first time.
In practical application, after determining that the user starts rope skipping, the waveform of the target rope skipping motion signal after the first time can be identified based on the counting threshold updated in real time, and specifically, the following modes can be adopted but are not limited to:
firstly, determining an initial counting threshold value based on the amplitude value of a target rope-skipping motion signal in the first time, and judging whether a first waveform of the target rope-skipping motion signal after the first time is an effective waveform or not according to the initial counting threshold value; if yes, recording the number of the second rope skipping and adding 1, and eliminating the number of the non-rope skipping; if not, the number of non-jump ropes is recorded plus 1.
In specific implementation, the initial counting threshold includes an initial peak counting threshold and an initial trough counting threshold, the initial peak counting threshold can be determined according to the average value of peak values meeting the threshold condition of the user's level in the first time multiplied by a mean value ratio coefficient, the initial trough counting threshold can be determined according to the average value of trough values meeting the threshold condition of the user's level in the first time multiplied by a mean value ratio coefficient, and the mean value ratio coefficient is generally selected to be 0.7. Judging whether a first waveform of the target rope-skipping motion signal after the first time is an effective waveform or not according to the initial counting threshold, if the peak of the first waveform is larger than the initial peak counting threshold and the trough of the first waveform is smaller than the initial trough counting threshold, recording the number of second rope-skipping and adding 1 if the first waveform is the effective waveform, and clearing the number of non-rope-skipping; otherwise, the first waveform is not a valid waveform, and the number of non-jump ropes is recorded plus 1.
Then, for each waveform after the first time of the target rope-skipping motion signal, determining a counting threshold of the current waveform based on the amplitude of the previous effective waveform and the counting threshold of the previous effective waveform; judging whether the current waveform in the target rope-skipping motion signal is a valid waveform or not according to the counting threshold value of the current waveform; if yes, recording the number of the second rope skipping and adding 1, and eliminating the number of the non-rope skipping; if not, the number of non-jump ropes is recorded plus 1.
In specific implementation, determining the count threshold of the current waveform based on the amplitude of the previous valid waveform and the count threshold of the previous valid waveform is specifically: count threshold of current waveform = count threshold of previous active waveform x a + amplitude of previous active waveform x b; where a is the proportionality coefficient of the count threshold of the previous active waveform, b is the proportionality coefficient of the amplitude of the previous active waveform, and a and b are empirically set. In the specific calculation process, substituting the wave crest counting threshold value of the previous effective waveform and the wave crest amplitude value of the previous effective waveform to obtain the current wave crest counting threshold value; substituting the trough counting threshold value of the previous effective waveform and the trough amplitude value of the previous effective waveform to obtain the current trough counting threshold value. Referring to fig. 4, whether the peak value of the current waveform in the target rope-skipping motion signal is greater than the count threshold of the peak of the current waveform and whether the valley value of the current waveform is less than the count threshold of the valley of the current waveform is determined according to the count threshold of the current peak and the count threshold of the current valley; if the crest value of the current waveform is larger than the counting threshold value of the current crest and the trough value of the current waveform is smaller than the counting threshold value of the current trough, the crest of the current waveform is an effective crest and the trough of the current waveform is an effective trough, the current waveform can be further determined to be an effective waveform, the number of second rope skipping is recorded, 1 is added, and the number of non-rope skipping is cleared; otherwise, determining that the current waveform is not the effective waveform, and recording the number of non-jump ropes plus 1. Therefore, the counting threshold value of the current waveform is determined based on the amplitude value of the previous effective waveform and the counting threshold value of the previous effective waveform, so that the dynamic adjustment of the counting threshold value can be realized, the adaptability of rope skipping counting is improved, and the counting accuracy is effectively improved.
Step 105: and determining the current total number of the rope skipping of the user based on the first rope skipping number and the second rope skipping number, and outputting the current total number of the rope skipping.
In the specific implementation, the sum of the number of the first rope skipping and the number of the second rope skipping is the current total number of the rope skipping of the user.
In one possible implementation manner, after obtaining the second rope skipping number of the user after the first time, it may also be determined whether the user stops rope skipping, specifically, but not limited to the following manners may be adopted:
judging whether the number of the non-skipping ropes is larger than a stop threshold value or not;
if yes, determining that the user stops rope skipping currently, recording the number of tripping ropes and adding 1, and outputting the sum of the number of the first rope skipping and the number of the current second rope skipping as the current continuous rope skipping number;
if not, determining that the user continuously jumps the rope currently.
In practical application, whether the user stops rope skipping can be determined according to whether the number of non-rope skipping is larger than a stop threshold value. If the number of the non-skipping ropes is larger than the stop threshold value, determining that the user stops skipping the ropes currently, wherein the stopping of skipping the ropes in the middle refers to stopping of skipping the ropes by the user due to the tripping of the ropes, at the moment, recording the tripping times, adding 1, updating the displayed tripping times, outputting the sum of the first skipping number and the current second skipping number as the current continuous skipping number, and if the number of the non-skipping ropes is not larger than the stop threshold value, determining that the user continuously skipping the ropes currently.
In one possible implementation manner, after determining the current number of continuous hops, the current maximum number of continuous hops of the user can be output, which can be specifically but not limited to the following ways:
when the current continuous hop number is determined to be greater than the historical maximum continuous hop number, the current continuous hop number is used as the maximum continuous hop number to be output.
In practical application, the intelligent watch can display the maximum continuous jump number of the user in real time, after the user stops the rope skipping due to the tripping rope and outputs the current continuous jump number each time, the current continuous jump number is compared with the historical maximum continuous jump number, if the current continuous jump number is larger than the historical maximum continuous jump number, the current continuous jump number is output as the maximum continuous jump number, and if the current continuous jump number is not larger than the historical maximum continuous jump number, the original maximum continuous jump number is maintained.
Based on the foregoing embodiments, the embodiments of the present application provide a rope skipping counting device, as shown in fig. 5, where the rope skipping counting device 500 provided in the embodiments of the present application at least includes:
a signal acquisition unit 501, configured to acquire a rope skipping motion signal of a user;
the counting unit 502 is configured to determine a change characteristic of the rope skipping motion signal in a first time, determine that the user starts rope skipping and calculate a first rope skipping number of the user in the first time if the change characteristic meets a jump threshold condition of a level where the user is located in the hierarchical jump threshold condition;
a target signal determining unit 503 for determining a rope skipping motion signal of an effective axis among the rope skipping motion signals of the user as a target rope skipping motion signal;
the counting unit 504 is configured to update the count threshold in real time based on the amplitude of the effective waveform of the target rope-skipping motion signal after the first time, and sequentially identify the waveform of the target rope-skipping motion signal after the first time according to the count threshold, so as to obtain the second rope-skipping number of the user after the first time;
and the quantity counting unit 505 is used for determining the current total quantity of the rope skipping of the user based on the first rope skipping quantity and the second rope skipping quantity and outputting the current total quantity of the rope skipping.
In one possible embodiment, the rope skipping motion signal is obtained by detection by at least one of an accelerometer sensor and a gyroscope sensor; the change characteristics of the rope skipping motion signal detected by the accelerometer sensor in the first time comprise amplitude characteristics and interval characteristics; the change characteristic of the rope skipping motion signal detected by the gyroscope sensor in the first time is an amplitude characteristic.
In one possible implementation, the starting and counting unit 502 is specifically configured to:
determining the jump threshold condition of the level of the user in the hierarchical jump threshold condition according to the signal characteristics generated by the stress degree of the user;
determining the change characteristics of each axial rope skipping motion signal through a sliding window in the first time;
if the change characteristic of one axial rope skipping motion signal meets the jump threshold condition, recording the rope skipping number of the first axial rope skipping motion signal, and taking the rope skipping number of the first axial rope skipping motion signal as the first primary selection rope skipping number;
if the change characteristics of at least two axial rope skipping motion signals meet the jump threshold condition, taking the number of the second axial rope skipping motion signals as the second primary selection rope skipping number;
and determining the first rope skipping number in the first time according to the first primary selection rope skipping number and the second primary selection rope skipping number.
In one possible implementation, the starting and counting unit 502 is specifically configured to:
judging whether the difference value between the first primary selection rope skipping number and the second primary selection rope skipping number is larger than a preset threshold value;
if yes, taking the minimum primary selection rope skipping number in the first primary selection rope skipping number and the second primary selection rope skipping number as the first rope skipping number;
if not, the largest primary selection rope skipping number in the first primary selection rope skipping number and the second primary selection rope skipping number is used as the first rope skipping number.
In one possible implementation, the counting unit 504 is specifically configured to:
determining an initial counting threshold value based on the amplitude value of the target rope-skipping motion signal in the first time, and judging whether the first waveform of the target rope-skipping motion signal after the first time is a valid waveform or not according to the initial counting threshold value; if yes, recording the number of the second rope skipping and adding 1, and eliminating the number of the non-rope skipping; if not, the number of the non-skipping ropes is recorded and is increased by 1;
determining a count threshold of the current waveform based on the amplitude of the previous effective waveform and the count threshold of the previous effective waveform for each waveform after the first time of the target rope-skipping motion signal; judging whether the current waveform in the target rope-skipping motion signal is a valid waveform or not according to the counting threshold value of the current waveform; if yes, recording the number of the second rope skipping and adding 1, and eliminating the number of the non-rope skipping; if not, the number of non-jump ropes is recorded plus 1.
Count threshold in one possible embodiment, the rope skipping counting apparatus 500 further comprises:
a stop-skip determining unit 506, configured to determine whether the number of non-skip ropes is greater than a stop threshold; if yes, determining that the user stops rope skipping currently, recording the number of tripping ropes and adding 1, and outputting the sum of the number of the first rope skipping and the number of the current second rope skipping as the current continuous rope skipping number; if not, determining that the user continuously jumps the rope currently.
In one possible embodiment, the rope skipping counting device 500 further includes:
and a maximum continuous hop determination unit 507, configured to output the current continuous hop number as the maximum continuous hop number when determining that the current continuous hop number is greater than the historical maximum continuous hop number.
It should be noted that, the principle of solving the technical problem of the rope skipping counting device 500 provided in the embodiment of the present application is similar to that of the rope skipping counting method provided in the embodiment of the present application, so that the implementation of the rope skipping counting device 500 provided in the embodiment of the present application can refer to the implementation of the rope skipping counting method provided in the embodiment of the present application, and the repetition is not repeated.
After the rope skipping counting method and device provided by the embodiment of the application are introduced, the electronic equipment provided by the embodiment of the application is briefly introduced.
Referring to fig. 6, an electronic device 600 provided in an embodiment of the present application at least includes: the rope skipping counting method provided by the embodiment of the application is realized by the processor 601, the memory 602 and the computer program stored on the memory 602 and capable of running on the processor 601 when the processor 601 executes the computer program.
It should be noted that the electronic device 600 shown in fig. 6 is only an example, and should not impose any limitation on the functions and application scope of the embodiments of the present application.
The electronic device 600 provided by the embodiments of the present application may also include a bus 603 that connects the different components, including the processor 601 and the memory 602. Where bus 603 represents one or more of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and so forth.
The Memory 602 may include readable media in the form of volatile Memory, such as random access Memory (Random Access Memory, RAM) 6021 and/or cache Memory 6022, and may further include Read Only Memory (ROM) 6023.
The electronic device 600 may also communicate with one or more external devices 604 (e.g., keyboard, remote control, etc.), with one or more devices that enable a user to interact with the electronic device 600 (e.g., cell phone, computer, etc.), and/or with any device that enables the electronic device 600 to communicate with one or more other electronic devices 600 (e.g., router, modem, etc.). Such communication may occur through an Input/Output (I/O) interface 605. Also, the electronic device 600 may communicate with one or more networks such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network such as the internet via the network adapter 606. As shown in fig. 6, the network adapter 606 communicates with other modules of the electronic device 600 over a bus 603. It should be appreciated that although not shown in fig. 6, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) subsystems, tape drives, data backup storage subsystems, and the like.
The following describes a computer-readable storage medium provided in an embodiment of the present application. The computer readable storage medium provided by the embodiment of the application stores computer instructions, which when executed by the processor, implement the rope skipping counting method provided by the embodiment of the application. Specifically, the computer instruction may be built into or installed in the electronic device 600, so that the electronic device 600 may implement the rope skipping counting method provided in the embodiment of the present application by executing the built-in or installed computer instruction.
In addition, the rope skipping counting method provided in the embodiment of the present application may also be implemented as a program product including a program code for causing the electronic device 600 to execute the rope skipping counting method provided in the embodiment of the present application when the program product is executable on the electronic device 600.
The program product provided by the embodiments of the present application may employ any combination of one or more readable media, where the readable media may be a readable signal medium or a readable storage medium, and the readable storage medium may be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof, and more specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a RAM, a ROM, an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), an optical fiber, a portable compact disk read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product provided by the embodiments of the present application may be implemented as a CD-ROM and include program code that may also be run on a computing device. However, the program product provided by the embodiments of the present application is not limited thereto, and in the embodiments of the present application, the readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required to or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to encompass such modifications and variations.
Claims (10)
1. A rope skipping counting method, comprising:
acquiring a rope skipping motion signal of a user;
judging the change characteristics of the rope skipping motion signals in the first time, if the change characteristics meet the jump threshold conditions of the level of the user in the grading jump threshold conditions, determining that the user starts rope skipping and calculating the first rope skipping number of the user in the first time;
determining a rope skipping motion signal of an effective shaft in the rope skipping motion signals of the user as a target rope skipping motion signal;
based on the amplitude value of the effective waveform of the target rope-skipping motion signal after the first time, updating a counting threshold in real time, and sequentially identifying the waveform of the target rope-skipping motion signal after the first time according to the counting threshold to obtain the second rope-skipping number of the user after the first time;
and determining the current total number of the rope skipping of the user based on the first rope skipping number and the second rope skipping number, and outputting the current total number of the rope skipping of the user.
2. The rope skipping counting method of claim 1 wherein the rope skipping motion signal is detected by at least one of an accelerometer sensor and a gyroscope sensor; the change characteristics of the rope skipping motion signal detected by the accelerometer sensor in the first time comprise amplitude characteristics and interval characteristics; the change characteristic of the rope skipping motion signal detected by the gyroscope sensor in the first time is an amplitude characteristic.
3. The rope-skipping counting method of claim 1, wherein the step of determining the change characteristic of the rope-skipping motion signal in the first time, if the change characteristic meets the threshold condition of the level of the user in the threshold condition of the hierarchical take-off, determining that the user starts rope-skipping and calculating the first number of rope-skipping of the user in the first time comprises:
determining the jump threshold condition of the level of the user in the hierarchical jump threshold condition according to the signal characteristics generated by the stress degree of the user;
determining the change characteristics of each axial rope skipping motion signal through a sliding window in the first time;
if the change characteristic of one axial rope skipping motion signal meets the take-off threshold condition, recording the rope skipping number of a first axial rope skipping motion signal, and taking the rope skipping number of the first axial rope skipping motion signal as a first primary selection rope skipping number;
if the change characteristics of at least two axial rope skipping motion signals meet the starting threshold value condition, taking the number of the second axial rope skipping motion signals as the second primary selection rope skipping number;
and determining the first rope skipping number in the first time according to the first primary selection rope skipping number and the second primary selection rope skipping number.
4. The rope-skipping counting method of claim 3 wherein the step of determining the first number of rope-hops in a first time based on the first and second initially selected numbers of rope-hops comprises:
judging whether the difference value between the first primary selection rope skipping number and the second primary selection rope skipping number is larger than a preset threshold value or not;
if yes, taking the minimum primary selection rope skipping number in the first primary selection rope skipping number and the second primary selection rope skipping number as the first rope skipping number;
and if not, taking the largest primary selection rope skipping number in the first primary selection rope skipping number and the second primary selection rope skipping number as the first rope skipping number.
5. The rope-skipping counting method of any one of claims 1-4, wherein the step of updating the count threshold in real time based on the magnitude of the effective waveform of the target rope-skipping motion signal after the first time, and sequentially identifying the waveform of the target rope-skipping motion signal after the first time according to the count threshold, to obtain the second number of ropes-skipping of the user after the first time, comprises:
determining an initial counting threshold value based on the amplitude value of the target rope-skipping motion signal in the first time, and judging whether a first waveform of the target rope-skipping motion signal after the first time is an effective waveform or not according to the initial counting threshold value; if yes, recording the number of the second rope skipping and adding 1, and eliminating the number of the non-rope skipping; if not, the number of the non-skipping ropes is recorded and is increased by 1;
determining a counting threshold of a current waveform based on the amplitude of a previous effective waveform and the counting threshold of the previous effective waveform for each waveform after a first time of the target rope-skipping motion signal; judging whether the current waveform in the target rope-skipping motion signal is an effective waveform or not according to the counting threshold value of the current waveform; if yes, recording the number of the second rope skipping and adding 1, and clearing the number of the non-rope skipping; if not, the number of the non-skipping ropes is recorded to be increased by 1.
6. The rope skipping counting method of claim 5, wherein said deriving said second number of ropes for said user after said first time further comprises:
judging whether the number of the non-skipping ropes is larger than a stop threshold value or not;
if yes, determining that the user stops rope skipping currently, recording the number of tripping ropes plus 1, and outputting the sum of the number of the first rope skipping and the number of the current second rope skipping as the current continuous rope skipping;
if not, determining that the user continuously jumps the rope currently.
7. The rope-skipping counting method of claim 6, wherein after outputting the sum of the first rope-skipping number and the current second rope-skipping number as the current continuous-skipping number, further comprising:
and when the current continuous hop number is determined to be larger than the historical maximum continuous hop number, outputting the current continuous hop number as the maximum continuous hop number.
8. A rope skipping counting device, comprising:
the signal acquisition unit is used for acquiring rope skipping motion signals of a user;
the starting and counting unit is used for judging the change characteristics of the rope skipping motion signal in the first time, if the change characteristics meet the jump threshold condition of the level of the user in the grading jump threshold condition, determining that the user starts rope skipping and calculating the first rope skipping number of the user in the first time;
a target signal determining unit, configured to determine a rope skipping motion signal of an effective axis in the rope skipping motion signals of the user as a target rope skipping motion signal;
the counting unit is used for updating a counting threshold value in real time based on the amplitude value of the effective waveform of the target rope-skipping motion signal after the first time, and sequentially identifying the waveform of the target rope-skipping motion signal after the first time according to the counting threshold value to obtain the second rope-skipping number of the user after the first time;
and the quantity counting unit is used for determining the current total quantity of the rope skipping of the user based on the first rope skipping quantity and the second rope skipping quantity and outputting the current total quantity of the rope skipping.
9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the rope jump counting method according to any one of claims 1-7 when executing the computer program.
10. A computer readable storage medium storing computer instructions which when executed by a processor implement the rope jump counting method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310369402.8A CN116212354A (en) | 2023-04-03 | 2023-04-03 | Rope skipping counting method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310369402.8A CN116212354A (en) | 2023-04-03 | 2023-04-03 | Rope skipping counting method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116212354A true CN116212354A (en) | 2023-06-06 |
Family
ID=86573268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310369402.8A Pending CN116212354A (en) | 2023-04-03 | 2023-04-03 | Rope skipping counting method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116212354A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117194927A (en) * | 2023-11-02 | 2023-12-08 | 深圳市微克科技有限公司 | Indoor rope skipping counting method, system and medium based on triaxial acceleration sensor |
-
2023
- 2023-04-03 CN CN202310369402.8A patent/CN116212354A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117194927A (en) * | 2023-11-02 | 2023-12-08 | 深圳市微克科技有限公司 | Indoor rope skipping counting method, system and medium based on triaxial acceleration sensor |
CN117194927B (en) * | 2023-11-02 | 2024-03-22 | 深圳市微克科技股份有限公司 | Indoor rope skipping counting method, system and medium based on triaxial acceleration sensor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1408443B1 (en) | Method and apparatus for analysing gestures produced by a human, e.g. for commanding apparatus by gesture recognition | |
Ghasemzadeh et al. | Power-aware computing in wearable sensor networks: An optimal feature selection | |
CN206026334U (en) | Motion amount detection device and intelligent wearable equipment comprising same | |
US20170357848A1 (en) | Method for recognizing a human motion, method for recognizing a user action and smart terminal | |
CN102438519B (en) | Characterizing a physical capability by motion analysis | |
CN109087335A (en) | A kind of face tracking method, device and storage medium | |
CN110782045A (en) | Method and device for generating dynamic threshold of operation and maintenance alarm system | |
CN116212354A (en) | Rope skipping counting method, device, equipment and medium | |
US8095568B2 (en) | System and method for assisting user searches in support system | |
CN114298443A (en) | Industrial equipment predictive maintenance method and device based on health state index and electronic equipment | |
AU2012200812B2 (en) | Measuring cognitive load | |
CN108960286A (en) | A kind of target following localization method and device | |
CN111210912A (en) | Parkinson prediction method and device | |
Qiu et al. | A Dual-Mode Grade Prediction Architecture for Identifying At-Risk Students | |
US11538351B1 (en) | Human-machine systems with interaction based cognitive assessment input systems | |
CN116440483A (en) | Effective counting shaft determining method, device, equipment and medium | |
CN109408531B (en) | Method and device for detecting slow-falling data, electronic equipment and storage medium | |
CN108959594A (en) | A kind of ability level appraisal procedure and device based on time-variant weights | |
Mayilvaganan et al. | Designing a human computer interface system based on cognitive model | |
US12093873B2 (en) | User performance analysis and correction for S/W | |
CN118552088B (en) | Football match comprehensive athletic performance evaluation method and system | |
CN117666788B (en) | Action recognition method and system based on wearable interaction equipment | |
US11961419B2 (en) | Event detection and prediction | |
CN117975545B (en) | Communication module calling system and method | |
CN113986347B (en) | Migration evaluation method and system for man-machine interaction mode in software environment |
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 |