A kind of accurate method of counting and device of pedometerTechnical field
The present embodiments relate to Digital Electronic Technique field more particularly to the accurate method of counting and dress of a kind of pedometerIt sets.
Background technique
At this stage, the people increasingly focuses on the health condition of oneself, other than arranging the reasonable daily schedule, effectivelyMovement and exercise be most by the people approve mode.Due to by working or living environment is limited, most of groupsCrowd's selection is walked and the exercising way of running.
Traditional pedometer obtains data information of people during walking or running by gravity sensor, leads toIt crosses and is further processed and analyzes, realize step function.Since its working principle is simple, it is extremely difficult to the purpose of accurate counting, veryExtremely, when people are adept to go to shake pedometer, pedometer still carries out step counting.Which results in the step counting information of pedometer is inadequateReally.
Summary of the invention
The embodiment of the present invention provides the accurate method of counting and device of a kind of pedometer, and only user may be implemented realStep counting is carried out on foot or in the case where running, effective exclusive PCR information makes the more accurate effect of step counting result.
In a first aspect, the embodiment of the invention provides a kind of accurate method of counting of pedometer, this method comprises:
Obtain terminal step counting feature, wherein the step counting feature includes step count information;
Judge whether the step count information is more than given threshold;
When the step count information is more than given threshold, determine that the step count information is effective step count information, and to describedEffective step count information is counted.
Further, the step counting feature further includes location information and motion information, is determining that the step count information is to haveStep count information is imitated, and before counting to effective step count information, further includes:
Judge whether the location information changes;
Judging result according to the positional information, veritifies whether the motion information meets preset condition;
Correspondingly,
If veritifying the motion information meets preset condition, it is determined that the step count information is effective step count information, andEffective step count information is counted.
Further, the motion information includes at least one of directional information, angle information and radian information.
Further, judging result according to the positional information, veritifies whether the motion information meets preset conditionInclude:
When judging that the location information does not change:
Veritify whether the angle information meets predetermined angle information condition;And/or
Veritify whether the radian information meets default radian information condition;
When judging location information variation:
Veritify whether the angle information meets predetermined angle information condition;And/or
Veritify whether the radian information meets default radian information condition;And/or
Veritify whether the directional information meets preset direction information condition.
It is further:
It veritifies the angle information and whether meets predetermined angle information condition and include:
Whether the angle information for obtaining the terminal judges the angle information of the terminal in predetermined angle information threshold modelIn enclosing, if so, being verified as meeting predetermined angle information condition;
It veritifies the radian information and whether meets default radian information condition and include:
The radian information of the terminal is obtained, whether the radian packet parantheses long message judges the arc length informationIn default arc length threshold range, if so, being verified as meeting default radian information condition;
It veritifies the directional information and whether meets preset direction information condition and include:
The direction of motion information for obtaining the terminal, judges whether direction of motion information accumulation amount on direction meetsGiven threshold, if being then verified as meeting preset direction information condition.
Further, when judging that the location information does not change, further includes:
Carry out the prompting of anaerobic exercise duration.
Second aspect, the embodiment of the invention also provides a kind of accurate counting device of pedometer, which includes:
Step counting feature obtains module, for obtaining terminal step counting feature, wherein the step counting feature includes step count information;
Step count information judgment module, for judging whether the step count information is more than given threshold;
Effective step count information counting module, for when the step count information is more than given threshold, determining the step number letterBreath is effective step count information, and is counted to effective step count information.
Further, the step counting feature further includes location information and motion information, described device further include:
Location information judgment module, for judging whether the location information changes;
Action message veritifies module and whether veritifies the motion information for judging result according to the positional informationMeet preset condition;
Correspondingly,
Effective step count information counting module, if meeting preset condition for veritifying the motion information, it is determined thatThe step count information is effective step count information, and is counted to effective step count information.
Further, the motion information includes at least one of directional information, angle information and radian information.
Further, the action message veritification module includes:
First action message veritifies unit, for when judging that the location information does not change:
Veritify whether the angle information meets predetermined angle information condition;And/or
Veritify whether the radian information meets default radian information condition;
Second action message veritifies unit, for when judging location information variation:
Veritify whether the angle information meets predetermined angle information condition;And/or
Veritify whether the radian information meets default radian information condition;And/or
Veritify whether the directional information meets preset direction information condition.
It is further:
It veritifies the angle information and whether meets predetermined angle information condition and include:
Whether the angle information for obtaining the terminal judges the angle information of the terminal in predetermined angle information threshold modelIn enclosing, if so, being verified as meeting predetermined angle information condition;
It veritifies the radian information and whether meets default radian information condition and include:
The radian information of the terminal is obtained, whether the radian packet parantheses long message judges the arc length informationIn default arc length threshold range, if so, being verified as meeting default radian information condition;
It veritifies the directional information and whether meets preset direction information condition and include:
The direction of motion information for obtaining the terminal, judges whether direction of motion information accumulation amount on direction meetsGiven threshold, if being then verified as meeting preset direction information condition.
Further, when the location information judgment module judges that the location information does not change, described device is also wrappedIt includes:
Anaerobic exercise duration reminding module, for carrying out anaerobic exercise duration prompting.
The embodiment of the present invention is further judged by the step counting feature got to terminal, determines that the step counting is characterized inStep counting feature of the no true reflection people under motion state, solving pedometer in the prior art can not accurately, really rememberThe problem of recording the movement step number of people may be implemented only user and carry out step counting in the case where really walking or running, effectivelyExclusive PCR information makes the more accurate effect of step counting result.
Detailed description of the invention
Fig. 1 a is a kind of flow chart of the accurate method of counting for pedometer that the embodiment of the present invention one provides;
Fig. 1 b is the limb motion track schematic diagram during the people that the embodiment of the present invention one provides walks;
Fig. 2 is a kind of flow chart of the accurate method of counting of pedometer provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow chart of the accurate method of counting for pedometer that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram of the pedometer that the embodiment of the present invention four provides precisely counted.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to justOnly the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detailThe processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of theseStep can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operationThe processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be withCorresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 a is a kind of flow chart of the accurate method of counting for pedometer that the embodiment of the present invention one provides, and the present embodiment canIt is applicable in step counting situation, a kind of this method accurate counting device of pedometer provided by the embodiment of the present invention executes,The device can be realized by the mode of software and/or hardware, and can be integrated in pedometer, mobile phone, smartwatch etc. with meterIn the terminal for walking function.
As shown in Figure 1a, the accurate method of counting of the pedometer includes:
S110, terminal step counting feature is obtained, wherein the step counting feature includes step count information.
Step counting feature can be from the information got, can be used as a kind of feature of the information of step counting.Step counting featureAcquisition modes can be and get vibration information or the other information of terminal by sensor to obtain.For example, can be withThe acceleration of gravity information of terminal is obtained by gravity sensor, acceleration transducer obtains the acceleration information of terminal, speedSensor obtains the velocity information of terminal, and temperature sensor obtains the temperature information of terminal and angular-rate sensor obtains eventuallyThe angular velocity information etc. at end.
Step counting feature includes step count information, and wherein step count information can be obtained by gravity sensor or vibrating sensorIt is extract into the information of the acquisition rule variation of terminal, step count information can be the numerical value of the specific step number of record.
Illustratively, Fig. 1 b be the embodiment of the present invention one provide people walk during limb motion track schematic diagram,As shown in Figure 1 b, for people during walking, the motion profile of four limbs is that have certain rule.Since people often walks two steps, bodyThe characteristics of motion of each section is a circulation.So what head movement geometric locus 1 showed is round-trip in each circulationFluctuation, the human body characteristics of motion of body and head movement geometric locus 1 in addition to four limbs are almost the same.Hand exercise railTrace curve 2 is that a bigger arc connects the geometric locus for being similar to ellipse.One when foot movement geometric locus 3A arc more smaller than 2 radius of hand exercise geometric locus.
Wherein, it if terminal is placed on human body upper body, can be obtained by shock sensor or gravity sensorThe signal back and forth occurred to one, often makes a round trip, so that it may get corresponding step count information, the step count information is speciallyTwo steps, at this point, the component with counter function can be to act or one step of action record or two steps twice each time.It will be wholeEnd, which is worn on hand or foot, can also take corresponding mode to carry out step counting.
S120, judge whether the step count information is more than given threshold.
Wherein, given threshold can be is obtained by statistical experiment, can directly be set before terminal is dispatched from the factory, can alsoThrough user's manual setting.Judge whether step count information is more than given threshold, directly can receive its other party to avoid because of terminalThe information errors that formula generates carry out step counting as step count information, and e.g. people deliberately rocks terminal, and regularity movement mayPeople can be resulted to walk step counting feature similar in process, but stopped within the set threshold range, terminal is not count to itStep.
Optionally, given threshold can be set to 8 times.The benefit being arranged in this way is can be to avoid the excessive possibility of given thresholdMany information can be omitted in recorder one day movement step number, the accuracy of step counting is caused to reduce.Alternatively, it is also possible to avoid settingSet the too low accuracy that can not just filter invalid information, lead to influence step counting.
S130, when the step count information is more than given threshold, determine that the step count information is effective step count information, and it is rightEffective step count information is counted.
Effective step count information, which can be, can filter out other interference, can be used as the step count information on step counting basis.
Illustratively, in the step counting feature generated during detecting people on foot such as terminal, step count information is 10 steps, is more than8 steps of given threshold then carry out step counting to step count information 10, and in the follow-up process, will continue the step counting feature gotIn step count information carry out step counting.
The technical solution of the present embodiment is further judged by the step counting feature got to terminal, determines the meterWalk feature whether really step counting feature of the reflection people under motion state, solve in the prior art pedometer can not it is accurate,The problem of movement step number of true recorder, may be implemented only user and count in the case where really walking or runningStep, effective exclusive PCR information make the more accurate effect of step counting result.
Based on the above technical solution, it is preferred that the step counting feature can also include location information and movement letterBreath.Wherein, location information, which can be, positions terminal by positioning function, obtains the whether changed information in position.Motion information can be the information of reflection motion state of terminal, such as can be acceleration information, velocity information and angular speedInformation etc., the advantages of this arrangement are as follows can for whether in step counting feature step count information carry out step counting multidimensional degree is providedAccording to reference, be conducive to the accuracy for improving step counting.
Embodiment two
Fig. 2 is a kind of flow chart of the accurate method of counting of pedometer provided by Embodiment 2 of the present invention.The present embodiment existsOn the basis of above-described embodiment, the accurate method of counting of pedometer is optimized.
As shown in Fig. 2, the accurate method of counting of the pedometer includes:
S210, terminal step counting feature is obtained, wherein the step counting feature includes step count information.
S220, judge whether the step count information is more than given threshold.
S230, when the step count information be more than given threshold when, judge whether the location information changes.
Wherein, judge whether the location information changes, it can be by calling GPS positioning data to carry out position pointAnalysis, wherein position analysis can be carried out according to preset time period, for example, every the location information of acquisition in 30 seconds.
S240, judging result according to the positional information, veritify whether the motion information meets preset condition.
The result for judging location information includes that position changes and do not change with position two kinds.Wherein location information is sent outChanging then indicates people indoors or open air is walked or running, if position does not change, then it represents that people may runIt walks or runs on step machine.
According to the judging result of location information, suitable mode is selected to veritify motion information.Veritify motion informationWhether meet preset condition and can be and the various exercise data threshold values of motion information are obtained by mass data statistical result, works as fortuneWhen various movements all meet or partially meet exercise data threshold value in row information, so that it may think that motion information meets default itemPart.
Illustratively, when people is when treadmill and open air are walked, if terminal is worn on the upper body of human body, the fortune of the twoDynamic information does not have very big difference.When terminal be worn on arm or it is hand held middle when, the operation information of the two has very bigDifference since there is no variations for position, that is, is not displaced, the fortune of arm and hand if people is to walk on a treadmillDynamic state is probably the arcuate reciprocating motion using shoulder as the center of circle;If people is outdoors, since human body has displacement, so equipmentMotion profile be probably hand exercise geometric locus 2 in Fig. 1 b, so if the fortune that the sensor in equipment is gotDynamic information is different certainly, and can go to carry out the setting of exercise data threshold value according to respective feature, such as to terminal pointThe setting of the size and Orientation change threshold of change threshold and speed and acceleration.
If S250, veritifying the motion information and meeting preset condition, it is determined that the step count information is effective step number letterBreath, and effective step count information is counted.
If the one or more exercise data in motion information meets preset threshold, it is full to be regarded as motion informationSufficient preset condition then can be identified as effectively to step count information and counting.
The present embodiment on the basis of the above embodiments, provides one kind when step count information is more than given threshold, according toLocation information determines that environment of walking is on outdoor or treadmill, and takes the step count information in step counting feature and utilize movement letterThe mode veritified is ceased, the precision of step counting is improved.
Based on the above technical solution, it is preferred that the motion information includes directional information, angle information and radianAt least one of information.Wherein, directional information can be the information for judging the direction of people's movement, and angle information can be terminalThe angle information that itself is rotated in people's motion process, radian information can be total by angular-rate sensor and velocity sensorWith what is obtained, the information for the radian that computing terminal turns in a period of motion.The benefit being arranged in this way is can be sufficiently sharpWhether reference is provided for effective step count information to component movement information with sensor information each in terminal for step count information,Improve pedometer accuracy.
Embodiment three
Fig. 3 is a kind of flow chart of the accurate method of counting for pedometer that the embodiment of the present invention three provides.The present embodiment existsOn the basis of the various embodiments described above, to judging result according to the positional information, veritify the motion information whether meet it is pre-If condition is optimized.
As shown in figure 3, the accurate method of counting of the pedometer includes:
S310, terminal step counting feature is obtained, wherein the step counting feature includes step count information.
S320, judge whether the step count information is more than given threshold.
S330, when the step count information be more than given threshold when, judge whether the location information changes, if so, holdingRow S340, if it is not, then executing S350.
Wherein, location information changes corresponding outdoor sports state, and location information does not change corresponding treadmill fortuneDynamic state.Outdoors under motion state, one or more of angle information, radian information and directional information can be carried outIt veritifies.Wherein, if e.g., veritified to above-mentioned three kinds of information to multinomial veritify, it may be set in it and veritifying knotIn fruit, meeting there are a kind of information or two kinds of information can determine whether that motion information meets preset condition, be effective step count information.
S340, veritify whether the angle information meets predetermined angle information condition;And/or the veritification radian information isIt is no to meet default radian information condition;And/or veritify whether the directional information meets preset direction information condition.
Correspondingly, veritifying the angle information whether to meet predetermined angle information condition includes: the angle for obtaining the terminalInformation is spent, the angle information of the terminal is judged whether within the scope of predetermined angle information threshold, if so, being verified as meeting pre-If angle information condition.
Wherein, predetermined angle information condition can be obtains from a large amount of data statistics, and the angle information of terminal can be withIt is the variable quantity of terminal itself rotation angle, can be obtained by gyroscope.
Illustratively, by dividing to terminal is worn on the data such as upper body, hand and foot in people's motion processAnalysis, discovery is when being worn on upper body for the terminal, and in each period of motion, the angle variable quantity of its own rotation is 15-25Degree, when be worn over arm or it is hand held middle when, angle variable quantity of its own rotation is 20-60 degree, when being worn over ankle or legWhen portion, the angle variable quantity of its own rotation is 20-35 degree.Then pass through above-mentioned statistical result, predetermined angle information condition can be withIt is in each period of motion, itself rotation angle of terminal should be in 15-60 degree, if not within this range, be considered asPredetermined angle information condition is not met.
Veritifying the radian information whether to meet default radian information condition includes: the radian information for obtaining the terminal,The radian packet parantheses long message judges the arc length information whether in default arc length threshold range, if so, verificationTo meet default radian information condition.
Wherein, presetting radian information condition can be and obtains from a large amount of data statistics, and the angle information of terminal can be withIt is the arc length that terminal motion profile passes through, can be obtained by angular-rate sensor.
Illustratively, in conjunction with shown in Fig. 1 b, by terminal is worn on upper body, hand and foot in people's motion processEtc. data analyzed, discovery is when by the terminal being worn on upper body, in each period of motion, arc length that motion profile passes throughBe 40-60 centimetres, when be worn over arm or it is hand held middle when, the arc length that motion profile passes through is 40-90 centimetres, when being worn over ankleOr when leg, the arc length that motion profile passes through is 40-80 centimetres.Then pass through above-mentioned statistical result, presets radian information conditionCan be in each period of motion, terminal itself rotation arc length should at 40-90 centimetres, if not within this range,Then it is considered as and does not meet default radian information condition.
Veritifying the directional information whether to meet preset direction information condition includes: the direction of motion letter for obtaining the terminalBreath, judges whether direction of motion information accumulation amount on direction meets given threshold, if being then verified as meeting default sideTo information condition.
Wherein, preset direction information condition can be obtains from a large amount of data statistics, and the directional information of terminal can be withIt is the increment that terminal is done exercises on direction, can be obtained by direction sensor.
Such as in a certain direction of motion, increment superposition is to a certain extent it is considered that people is in normal outdoor sports shapeState, for example, when detecting that the increment on direction reaches 3 meters, so that it may 3 meters of standard for having reached given threshold, then it can be trueIt is eligible to determine directional information verification.
Illustratively, such as people is in riding process, and possible directional information meets given threshold, but can veritify simultaneouslyAngle information and radian information, are judged as it is not effective step count information, this just considerably increases the accuracy of step counting.
S350, veritify whether the angle information meets predetermined angle information condition;And/or the veritification radian information isIt is no to meet default radian information condition.
Correspondingly, veritifying the angle information whether to meet predetermined angle information condition includes: the angle for obtaining the terminalInformation is spent, the angle information of the terminal is judged whether within the scope of predetermined angle information threshold, if so, being verified as meeting pre-If angle information condition.
Veritifying the radian information whether to meet default radian information condition includes: the radian information for obtaining the terminal,The radian packet parantheses long message judges the arc length information whether in default arc length threshold range, if so, verificationTo meet default radian information condition.
Wherein, under treadmill motion state, the veritification of angle information and the angle information under outdoor sports state are veritifiedIt is almost the same.It is worth noting that under treadmill motion state, without considering directional information, because people moves in situ nothingMethod obtains the increment on direction, and under treadmill motion state, the radian information under radian information and outdoor sports stateIt veritifies different.
Illustratively, under treadmill motion state, in each cycle period, the arm of people does the pendulum fortune recycledIt is dynamic, and leg and step are then the movements in a curve first done such as foot path curves 3 in Fig. 1 b, then do straight line fortune backwardReason this in this case, the radian information detected is less than the radian information under outdoor sports state, presetArc length threshold value may be at 30-60 centimetres.
If S360, veritifying the motion information and meeting preset condition, it is determined that the step count information is effective step number letterBreath, and effective step count information is counted.
Wherein, it veritifies the motion information and meets preset condition, can be total movement information and meet preset condition, it can alsoTo be that componental movement information meets preset condition.
The present embodiment provides one kind under treadmill motion state and outdoor sports on the basis of the various embodiments described aboveUnder state, the concrete mode veritified respectively to motion information, veritification result is to step count information obtained in the much informationWhether for effective step count information the reference information of multi-angle is provided, improves the accuracy of step counting.
On the basis of above-mentioned each embodiment, it is preferred that when judging that the location information does not change, can also carry outAnaerobic exercise duration is reminded.The anaerobic exercise duration of user can be monitored and be sounded an alarm under treadmill motion stateInformation has prompted user to pay attention to the duration of anaerobic exercise, can lead to oxygen concentration in movement environment to avoid long-term anaerobic exerciseIt is lower, influence the exercise effect of user.
Example IV
Fig. 4 is the structural schematic diagram of the pedometer that the embodiment of the present invention four provides precisely counted.As shown in figure 4, describedThe accurate counting device of pedometer, comprising:
Step counting feature obtains module 410, for obtaining terminal step counting feature, wherein the step counting feature includes step number letterBreath;
Step count information judgment module 420, for judging whether the step count information is more than given threshold;
Effective step count information counting module 430, for determining the step number when the step count information is more than given thresholdInformation is effective step count information, and is counted to effective step count information.
On the basis of the various embodiments described above, the step counting feature further includes location information and motion information, described deviceFurther include:
Location information judgment module, for judging whether the location information changes;
Action message veritifies module and whether veritifies the motion information for judging result according to the positional informationMeet preset condition;
Correspondingly,
Effective step count information counting module 430, if meeting preset condition for veritifying the motion information, reallyThe fixed step count information is effective step count information, and is counted to effective step count information.
On the basis of the various embodiments described above, the motion information includes in directional information, angle information and radian informationAt least one.
On the basis of the various embodiments described above, the action message veritifies module and includes:
First action message veritifies unit, for when judging that the location information does not change:
Veritify whether the angle information meets predetermined angle information condition;And/or
Veritify whether the radian information meets default radian information condition;
Second action message veritifies unit, for when judging location information variation:
Veritify whether the angle information meets predetermined angle information condition;And/or
Veritify whether the radian information meets default radian information condition;And/or
Veritify whether the directional information meets preset direction information condition.
On the basis of the various embodiments described above,
It veritifies the angle information and whether meets predetermined angle information condition and include:
Whether the angle information for obtaining the terminal judges the angle information of the terminal in predetermined angle information threshold modelIn enclosing, if so, being verified as meeting predetermined angle information condition;
It veritifies the radian information and whether meets default radian information condition and include:
The radian information of the terminal is obtained, whether the radian packet parantheses long message judges the arc length informationIn default arc length threshold range, if so, being verified as meeting default radian information condition;
It veritifies the directional information and whether meets preset direction information condition and include:
The direction of motion information for obtaining the terminal, judges whether direction of motion information accumulation amount on direction meetsGiven threshold, if being then verified as meeting preset direction information condition.
On the basis of the various embodiments described above, when the location information judgment module judges that the location information does not changeWhen, described device further include:
Anaerobic exercise duration reminding module, for carrying out anaerobic exercise duration prompting.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution methodAnd beneficial effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art thatThe invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present inventionIt is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, alsoIt may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.