The content of the invention
In view of this, the application provides a kind of default take a step dynamics detection method, processor and motion detection device, is used for
The one default dynamics of taking a step for being capable of accurate detection user movement information is provided.
To achieve these goals, it is proposed that scheme it is as follows:
The default dynamics detection method of taking a step of one kind, including:
Obtain user's continuous multigroup three number of axle evidence that Gravity accelerometer is sent under the first motion state;
Calculate and obtain three number of axle of every group of three number of axle according to sum, be designated as the first data parameters A1;
Maximum of every group of three number of axle in is obtained, the second data parameters A2 is designated as;
According to every group of three number of axle formula V=(45*A1+ are used according to the first data parameters and the second data parameters matched
77*A2)/256 calculate and obtain with every group of three number of axle according to the vector initial data V matched;
By continuous eight vector initial data according to formula Vector=X1 (V0-V7)+X2 (V1-V6)+X3 (V2-V5)+
X4 (V3-V4) is calculated and is obtained vector data Vector;
Extract the peak-data in the vector data Vector;
The average value of all peak-datas is calculated, default dynamics of taking a step is designated as;
Wherein, described X1, X2, X3 and X4 are preset weights.
It is preferred that, in above-mentioned default dynamics detection method of taking a step, the weights X1 is that 125, weights X2 is 114, weights X3
It is 38 for 76, weights X4.
It is preferred that, in above-mentioned default dynamics detection method of taking a step, the average value for calculating all peak-datas is designated as pre-
If dynamics is taken a step, including:
The average value of all peak-datas is calculated, filters with the average value difference value to be more than in the peak-data and presets
The peak-data of value;
The average value for obtaining remaining peak-data is calculated, default dynamics of taking a step is designated as.
A kind of processor, is connected with Gravity accelerometer, including:
Vector data computing module, for obtaining the user company that Gravity accelerometer is sent under the first motion state
Continue multigroup three number of axle evidence, calculate and obtain three number of axle of every group of three number of axle according to sum, be designated as the first data parameters A1, obtain every
Maximum of three number of axle of group in, is designated as the second data parameters A2, according to every group of three number of axle according to the first data parameters matched
Calculated and obtained with every group of three number of axle according to the vector matched using formula V=(45*A1+77*A2)/256 with the second data parameters
Initial data V, by continuous eight vector initial data according to formula Vector=X1 (V0-V7)+X2 (V1-V6)+X3 (V2-V5)
+ X4 (V3-V4) is calculated and is obtained vector data Vector;
Default dynamics computing module of taking a step, extracts the peak-data in the vector data Vector, calculates all peak values
The average value of data, is designated as default dynamics of taking a step;
Wherein, described X1, X2, X3 and X4 are preset weights.
It is preferred that, in above-mentioned processor, the weights X1 is that 125, weights X2 is that 114, weights X3 is that 76, weights X4 is
38。
It is preferred that, in above-mentioned processor, the mean value calculation module, including:
Peak-data extraction module, for extracting the peak-data in the vector data Vector;
Effective mean value calculation module, the average value for calculating all peak-datas, filter in the peak-data with
The average value difference is more than the peak-data of preset value, calculates the average value for obtaining remaining peak-data, is designated as default step
Step dynamics.
A kind of motion detection device, including:
Memory, the memory internal memory contains the default dynamics of taking a step matched from different motion states;
Selector, for according to user input transfer instruction transferred by memory it is described transfer that instruction matched preset
Take a step dynamics;
Detector, the motion step count information for detecting user according to the default dynamics of taking a step that the selector is transferred.
It is preferred that, above-mentioned motion detection device, including:
The memory by internal memory contain it is being matched from different motion states, using a kind of default above-mentioned dynamics of taking a step
The memory for the default dynamics of taking a step that detection method is obtained.
It is preferred that, above-mentioned motion detection device also includes:
Processor disclosed in above-mentioned any one, the processor is connected with the memory, for detecting that user is different
The default dynamics of taking a step that motion state is matched, and default take a step dynamics and the default dynamics of taking a step matched by described
Motion state is stored to memory.
It is preferred that, above-mentioned motion detection device also includes:
Adjuster, the adjuster is connected with the memory, is taken a step for adjusting the default of memory memory storage
The size of dynamics.
It can be seen from above-mentioned technical scheme that, default dynamics detection method of taking a step disclosed in the present application, by according to use
Three number of axle evidences that Gravity accelerometer is generated when family is moved under the first motion state, generate vector data Vector, carry
To take be used in the vector data Vector and represent user in motion process, often the peak value of the size of the power used by a step advanced in years
According to, and it regard the average value of the peak-data as default dynamics of taking a step.It can be seen that, method disclosed in the above embodiments of the present application
In, by calculating when user is moved with the first motion state, the average value of dynamics used by a step is often stepped as the first motion shape
The default dynamics of taking a step of state.Because described preset takes a step to generate when dynamics is moved according to user with the first motion state, because
This has higher precision.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is a kind of flow chart of default dynamics detection method of taking a step disclosed in the embodiment of the present application.
Referring to Fig. 1 and Fig. 2, default dynamics detection method of taking a step disclosed in the present application includes:
Step S101:Obtain user's continuous multigroup three number of axle that Gravity accelerometer is sent under the first motion state
According to;
Three number of axle evidence includes:X-axis data abs (X), Y-axis data abs (Y) and Z axis data abs (Z).
Step S102:Calculate and obtain three number of axle of every group of three number of axle according to sum, be designated as the first data parameters A1;
That is, the step can be calculated by formula A1=abs (X)+abs (Y)+abs (Z) and obtain the number of axle of group three according to institute
Corresponding first data parameters A1;
Step S103:Maximum of every group of three number of axle in is obtained, the second data parameters A2 is designated as;
That is, by choosing every group of three number of axle according to the maximum in (abs (X), abs (Y), abs (Z)) in the step, by institute
Maximum is stated as the number of axle of group three according to the second corresponding data parameters A2.
Step S104:According to every group of three number of axle according to the first data parameters A1 matched and the second data parameters A2 using public
Formula V=(45*A1+77*A2)/256, which is calculated, to be obtained with every group of three number of axle according to the vector initial data V (waveforms in such as Fig. 2 matched
Shown in 01);
Wherein, described 45 and 77 and 256 be the weights in the formula;
Step S105:By continuous eight vector initial data according to formula Vector=X1 (V0-V7)+X2 (V1-V6)+X3
(V2-V5)+X4 (V3-V4) is calculated and is obtained vector data Vector (as shown in waveform 02 in Fig. 2);
It is pointed out that every group of three number of axle evidence in the above embodiments of the present application can generate one and three number of axle
According to the vector initial data matched, for example, the time according to every group of three number of axle evidences got is different, can by temporally its
First is divided into the number of axle evidence of N groups three, described first to the number of axle of N groups three according to corresponding vector initial data be first to
N vector initial data, when calculating first vector data Vector0 in this step, by the first vector initial data
Above-mentioned formula is applied to the 8th vector initial data and is obtained, when calculating second vector data Vector1, by the second arrow
Amount initial data is applied to above-mentioned formula to the 9th vector initial data and obtained, wherein, above-mentioned continuous eight vector original numbers
In, first vector initial data is designated as V0, second vector initial data and is designated as V1, the like, the 8th vector original
Beginning data are designated as V7, wherein, X1, X2, X3 and X4 described in above-mentioned formula are preset weights, and described X1, X2, X3 and X4's is big
It is small adjustable.
Step S106:Extract the peak-data in the vector data Vector;
The peak-data represents user when being moved with the first motion state, the dynamics of taking a step of each step;
Step S107:The average value of all peak-datas is calculated, default dynamics of taking a step is designated as;
The default dynamics of taking a step can be used as default take a step power of the motion detection device when detecting user movement information
Degree.
Wherein, the first motion state of the user can be riding condition, running state or normal walking states etc..
It is visible by method disclosed in the above embodiments of the present application, during by being moved according to user under the first motion state
Three number of axle evidences of Gravity accelerometer generation, generate vector data Vector, extract and are used in the vector data Vector
In representing user in motion process, the often peak-data of the size of the power used by a step advanced in years, and putting down the peak-data
Average is used as default dynamics of taking a step.It can be seen that, in method disclosed in the above embodiments of the present application, by calculating in user with the first fortune
During dynamic state motion, the average value for often stepping dynamics used by a step is used as the default dynamics of taking a step of the first motion state.Due to described
It is default to take a step to generate when dynamics is moved according to user with the first motion state, therefore with higher precision.
It is understood that in the application above method, by continuous eight groups of vector initial data V according to above-mentioned
When formula calculating obtains vector data, the size of weights X1, X2, X3, X4 in above-mentioned formula can be carried out according to user's request
Setting, for example, for accurate measurement, the weights X1 in the above embodiments of the present application could be arranged to 125, weights X2 can be with
It is set to 114, weights X3 and could be arranged to 76, weights X4 to could be arranged to 38.
It is understood that in method disclosed in above-described embodiment, if user is always maintained at transporting with the first motion state
When dynamic, the dynamics of taking a step can be accurately preset, still, user is determining described preset with the motion of the first motion state
During dynamics of taking a step, it is possible that irregular action, and cause the peak-data now generated to there is larger fluctuation, it is final right
The precision of the default dynamics of taking a step is impacted, therefore, in order to avoid above mentioned problem, referring to Fig. 3, the above-mentioned implementation of the application
The step S107 in example can include:
Step S1071:Calculate the average value of all peak-datas, filter in the peak-data with the average value difference
Peak-data of the value more than preset value;
Step S1072:The average value for obtaining remaining peak-data is calculated, default dynamics of taking a step is designated as.
In the above-mentioned methods, the peak-data produced due to irregular act must be fortuitous phenomena, and it can not be to institute
The size for stating average value produces extreme influence, therefore, first time or after obtaining average value, judge be in the peak-data
It is no to there is the peak-data (being more than preset value with the difference of average value) that there is notable difference with the average value, if in the presence of this peak
Value Data, then show when the peak-data is generated, and the action of user is irregular action, filters the peak-data, counts again
Average value is calculated, therefore, even if user occurs in that irregular action, using this method still when being run with the first motion state
It can calculate and obtain accurately default dynamics of taking a step.
It is understood that corresponding to the above method, disclosed herein as well is a kind of processor, both can mutually borrow
Mirror.Referring to Fig. 4, processor 1 includes disclosed in the embodiment of the present application:
Vector data computing module 101, sends for obtaining user's Gravity accelerometer 0 under the first motion state
Continuous multigroup three number of axle evidence, calculate and obtain three number of axle of every group of three number of axle according to sum, be designated as the first data parameters A1, obtain
Maximum of every group of three number of axle in is taken, the second data parameters A2 is designated as, according to every group of three number of axle according to the first data matched
Parameter and the second data parameters, which are calculated using formula V=(45*A1+77*A2)/256, to be obtained with every group of three number of axle according to being matched
Vector initial data V, by continuous eight vector initial data according to formula Vector=X1 (V0-V7)+X2 (V1-V6)+X3
(V2-V5)+X4 (V3-V4) is calculated and is obtained vector data Vector;
Default dynamics computing module 102 of taking a step, extracts the peak-data in the vector data Vector, calculates all peaks
The average value of Value Data, is designated as default dynamics of taking a step;
Wherein, described X1, X2, X3 and X4 are preset weights.
Corresponding to above-mentioned default dynamics detection method of taking a step, the above-mentioned weights X1 of the application is that 125, weights X2 is 114, weights
X3 is that 76, weights X4 is 38.
It is corresponding with above-mentioned default dynamics detection method of taking a step, the mean value calculation mould in the above embodiments of the present application
Block 102 can include:
Peak-data extraction module, for extracting the peak-data in the vector data Vector;
Effective mean value calculation module, the average value for calculating all peak-datas, filter in the peak-data with
The average value difference is more than the peak-data of preset value, calculates the average value for obtaining remaining peak-data, is designated as default step
Step dynamics.
It is understood that it is corresponding with the above method and processor, disclosed herein as well is a kind of motion detection device,
Referring to Fig. 5, including:
Memory 2, the memory internal memory contains the default dynamics of taking a step matched from different motion states;
Selector 3, is transferred described transfer by memory and instructs matched pre- for the instruction of transferring according to user input
If taking a step dynamics;
Detector 4, the motion step count information for detecting user according to the default dynamics of taking a step that the selector is transferred.
Wherein, the detector 4 can be motion detection device main body commonly used in the prior art, its detection process and original
Manage as already present technical scheme in the prior art, need not explain again herein.
Referring to motion detection device disclosed in the embodiment of the present application, it is provided with the memory 2 and different motion shapes
The default dynamics of taking a step that state matches, user can pass through choosing when to be detected to the movable information of a certain motion state
The default dynamics of taking a step that device 3 selects to be matched with the motion state is selected, the detector 3 is controlled according to the default dynamics pair of taking a step
The movable information of user is detected.
It is understood that corresponding with the above method, the default of memory storage in the above embodiments of the present application steps
Step dynamics can be using presetting that any one disclosed default dynamics detection method of taking a step of the above embodiments of the present application is obtained
Take a step dynamics.
It is understood that corresponding with processor disclosed in the above embodiments of the present application, the above embodiments of the present application are public
The motion detection device opened can also include:
Processor 1 disclosed in the above-mentioned any one of the application, the processor 1 is connected with the memory 2, for detecting
The default dynamics of taking a step that user's different motion state is matched, and preset dynamics of taking a step and the default dynamics of taking a step by described
The motion state matched is stored to memory 2.
It is understood that the memory 2, in the default dynamics and described of taking a step for getting that the processor sends
After the default motion state taken a step corresponding to dynamics, default dynamics data of taking a step originally corresponding with the motion state are updated to
The default dynamics data of taking a step currently obtained.
It is understood that user voluntarily can simply manually set default take a step dynamics data, this Shen for convenience
It please go back in motion detection device disclosed in above-described embodiment, be also provided with an adjuster, the adjuster and the storage
Device is connected, the size of the default dynamics of taking a step for adjusting the memory memory storage.
When user set manually it is default take a step dynamics when, user can make the default dynamics data setting of taking a step exists in advance
Certain value, is then walked with the first motion state, while voluntarily record movable information (such as the step number in motion process), then
Check whether the movable information that the motion detection device is obtained is consistent with the movable information that user oneself records, if fruit is,
Then show that the default dynamics of taking a step that user manually sets can use, otherwise continue to adjust the default dynamics of taking a step.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other
Between the difference of embodiment, each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.