CN110020630A - Method, apparatus, storage medium and the electronic equipment of assessment movement completeness - Google Patents

Method, apparatus, storage medium and the electronic equipment of assessment movement completeness Download PDF

Info

Publication number
CN110020630A
CN110020630A CN201910289746.1A CN201910289746A CN110020630A CN 110020630 A CN110020630 A CN 110020630A CN 201910289746 A CN201910289746 A CN 201910289746A CN 110020630 A CN110020630 A CN 110020630A
Authority
CN
China
Prior art keywords
movement
collection
posture information
information collection
similarity
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.)
Granted
Application number
CN201910289746.1A
Other languages
Chinese (zh)
Other versions
CN110020630B (en
Inventor
申波
练帅超
战永盛
郑鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU CODOON INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHENGDU CODOON INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CHENGDU CODOON INFORMATION TECHNOLOGY Co Ltd filed Critical CHENGDU CODOON INFORMATION TECHNOLOGY Co Ltd
Priority to CN201910289746.1A priority Critical patent/CN110020630B/en
Publication of CN110020630A publication Critical patent/CN110020630A/en
Application granted granted Critical
Publication of CN110020630B publication Critical patent/CN110020630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/20Movements or behaviour, e.g. gesture recognition
    • G06V40/23Recognition of whole body movements, e.g. for sport training

Abstract

The embodiment of the present invention proposes method, apparatus, storage medium and the electronic equipment of a kind of assessment movement completeness.By compared with Template Information collection, it is concentrated from posture information and obtains the first posture information collection, the dynamics goodness of fit and movement similarity are obtained according to the first posture information collection and Template Information collection, and completeness is acted according to the dynamics goodness of fit and movement similarity acquisition, it obtains user and executes the corresponding movement completeness of swooping template action, user can by act completeness judge its movement whether standard, whether need to improve, user is helped to detect its movement completeness when taking exercise, it is helped to judge whether standard, to promote the exercise effect of user.

Description

Method, apparatus, storage medium and the electronic equipment of assessment movement completeness
Technical field
The present invention relates to technical field of electronic equipment, method, dress in particular to a kind of assessment movement completeness It sets, storage medium and electronic equipment.
Background technique
With the increasingly promotion of living standards of the people, people also increasingly pay attention to physical exercise.Meanwhile in people's lives Also various body-building softwares (APP) are flooded with, to be used to that people is helped to take exercise.
Current body-building software, which uses, plays coach's movement (swooping template action) to guide user's study, imitate, to reach forging Refine the purpose of user's body.But existing body-building software, can not supervisory user study or imitate coach movement performance, If the movement of user is acted with respect to coach, there are larger differences can not take exercise that is, in the case where user action completeness difference The body of user may make its body be damaged instead.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of assessment movement method, apparatus of completeness, storage medium and Electronic equipment.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, it is applied to user terminal the embodiment of the invention provides a kind of method of assessment movement completeness, it is described Method includes:
Obtain the posture information collection of user, wherein the posture information collection includes at least two collection point information;
The first posture information collection is obtained according to the posture information collection and presetting Template Information collection, wherein the mould Plate information collection is corresponding with swooping template action, and posture when the first posture information collection executes the swooping template action with user is corresponding, The first posture information collection belongs to the posture information collection;
The dynamics goodness of fit and movement similarity are obtained according to the first posture information collection and the Template Information collection, In, the goodness of fit of the movement dynamics of the movement dynamics and template of the dynamics goodness of fit characterization user, the movement similarity table Take over the similarity of the movement locus at family and the movement locus of template for use;
Completeness is acted according to the dynamics goodness of fit and the movement similarity acquisition, wherein the movement completeness Characterize the standard degree of user action
Second aspect, the embodiment of the invention also provides a kind of devices of assessment movement completeness, are applied to user terminal, packet It includes:
Data obtaining module, for obtaining the posture information collection of user, wherein the posture information collection includes at least two Collection point information;
Processing module, for obtaining the first posture information according to the posture information collection and presetting Template Information collection Collection, wherein the Template Information collection is corresponding with swooping template action, and the first posture information collection and user execute the swooping template action When posture it is corresponding, the first posture information collection belongs to the posture information collection;According to the first posture information collection and institute It states Template Information collection and obtains the dynamics goodness of fit and movement similarity, wherein the movement dynamics of the dynamics goodness of fit characterization user With the goodness of fit of the movement dynamics of template, the phase of the movement locus and the movement locus of template of the movement similarity characterization user Like degree;Completeness is acted according to the dynamics goodness of fit and the movement similarity acquisition, wherein the movement completeness characterization The standard degree of user action.
The third aspect, the embodiment of the invention also provides a kind of storage medium, the storage medium is stored with computer and refers to It enables, the method that the computer instruction executes the movement completeness of assessment described in first aspect when being read and running.
Fourth aspect, the embodiment of the invention also provides a kind of electronic equipment, the electronic equipment includes processor, storage Device, is equipped with the device of assessment movement completeness in the memory, the device of the assessment movement completeness include one or Multiple software function modules executed by the processor, the device that the assessment acts completeness include:
Data obtaining module, for obtaining the posture information collection of user, wherein the posture information collection includes at least two Collection point information;
Processing module, for obtaining the first posture information according to the posture information collection and presetting Template Information collection Collection, wherein the Template Information collection is corresponding with swooping template action, and the first posture information collection and user execute the swooping template action When posture it is corresponding, the first posture information collection belongs to the posture information collection;According to the first posture information collection and institute It states Template Information collection and obtains the dynamics goodness of fit and movement similarity, wherein the movement dynamics of the dynamics goodness of fit characterization user With the goodness of fit of the movement dynamics of template, the phase of the movement locus and the movement locus of template of the movement similarity characterization user Like degree;Completeness is acted according to the dynamics goodness of fit and the movement similarity acquisition, wherein the movement completeness characterization The standard degree of user action.
The method, apparatus of assessment provided in an embodiment of the present invention movement completeness, storage medium and electronic equipment have Beneficial effect: by being concentrated from posture information and obtaining the first posture information collection compared with Template Information collection, according to the first posture information Collection and Template Information collection obtain the dynamics goodness of fit and movement similarity, and are acted according to the dynamics goodness of fit and movement similarity Completeness obtains user and executes the corresponding movement completeness of swooping template action, and user can judge its movement by acting completeness Whether standard, if need to improve, help user detect its take exercise when movement completeness, help it to judge whether standard, To promote the exercise effect of user.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the structure application schematic diagram of electronic equipment provided in an embodiment of the present invention;
Fig. 2 shows the flow diagrams of the method for assessment provided in an embodiment of the present invention movement completeness;
Fig. 3 shows the flow diagram of the method for another assessment movement completeness provided in an embodiment of the present invention;
Fig. 4 shows the sub-step flow diagram of S104 provided in an embodiment of the present invention;
Fig. 5 shows the schematic diagram of posture information collection provided in an embodiment of the present invention;
Fig. 6 shows the schematic diagram of pre- posture information collection provided in an embodiment of the present invention;
Fig. 7 shows the sub-step flow diagram of S1046 provided in an embodiment of the present invention;
Fig. 8 shows pre- posture information collection i provided in an embodiment of the present invention and zooms to equal length with Template Information collection Flow diagram;
Fig. 9 shows the sub-step flow diagram of S105 provided in an embodiment of the present invention;
Figure 10 shows the functional unit schematic diagram of the device of assessment movement completeness provided in an embodiment of the present invention.
Icon: 100- electronic equipment;101- processor;102- memory;103- bus;104- communication interface;201- letter Breath obtains module;202- processing module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that the relational terms of term " first " and " second " or the like be used merely to an entity or Operation is distinguished with another entity or operation, and without necessarily requiring or implying between these entities or operation, there are any This actual relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-exclusive Property include so that include a series of elements process, method, article or equipment not only include those elements, but also Further include other elements that are not explicitly listed, or further include for this process, method, article or equipment it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described There is also other identical elements in the process, method, article or equipment of element.
The embodiment of the invention provides a kind of methods of assessment movement completeness, are applied to electronic equipment 100.Please refer to figure 1, it is the partial structure diagram of electronic equipment 100.Electronic equipment 100 include processor 101, memory 102, bus 103 with And communication interface 104.Processor 101, memory 102 and communication interface 104 are connected by bus 103, and processor 101 is used for Execute the executable module stored in memory 102, such as computer program.
Processor 101 may be a kind of IC chip, the processing capacity with signal.During realization, assessment Each step for acting the method for completeness can be by the integrated logic circuit of the hardware in processor 101 or software form Instruction is completed.Above-mentioned processor 101 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processor, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Memory 102 may include high-speed random access memory (RAM:Random Access Memory), it is also possible to It further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.
Bus 103 can be ISA (Industry Standard Architecture) bus, PCI (Peripheral Component Interconnect) bus or EISA (Extended Industry Standard Architecture) be total Line etc..It is only indicated with a four-headed arrow in Fig. 1, it is not intended that an only bus 103 or a type of bus 103.
Memory 102 is for storing program, such as the device of assessment movement completeness.The device packet of assessment movement completeness Electronic equipment 100 can be stored in memory 102 or be solidificated in the form of software or firmware (firmware) by including at least one Operating system (operating system, OS) in software function module.Processor 101 after receiving and executing instruction, The method that described program is executed to realize assessment movement completeness.
Communication interface 104 (can support wired or wireless communication protocol) is to realize between other equipment of outside Communication connection, electronic equipment 100 interacts communication by communication interface 104 and posture information collector, that is, receives posture The posture information of information acquisition device transmission, in one possible implementation, posture information collector is according to presetting frequency Rate acquires the posture information of user, and will become one in a time point collected posture information combination current time stamp and adopt Collection point information.Of course, multiple collection point information packages can be sent to electronic equipment 100 by posture information collector.Posture Information acquisition device can be one of three-axis gyroscope, triaxial accelerometer or a variety of combinations.
It should be understood that structure shown in FIG. 1 is only the structure application schematic diagram of electronic equipment 100, electronic equipment 100 It may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.Shown in Fig. 1 Each component can be realized using hardware, software, or its combination.
A kind of method of assessment movement completeness provided in an embodiment of the present invention, is applied to electronic equipment 100, specific to flow Journey refers to Fig. 2:
S101: the posture information collection of user is obtained.
Wherein, posture information collection includes at least two collection point information.Specifically, posture information integrates as posture information acquisition The set of the collection point information of device transmission.Collection point information includes posture information collector in some time point collected use The posture information at family.In one possible implementation, electronic equipment 100 receives each the adopting of posture information collector transmission Collect point information, and be stored in a set, is i.e. posture information collection.
S104: the first posture information collection is obtained according to posture information collection and presetting Template Information collection.
Specifically, Template Information collection is corresponding with swooping template action, and staff passes through posture information in typing swooping template action Collector collecting work personnel in the corresponding posture information of various time points, and by above-mentioned staff various time points appearance State finish message is Template Information collection.In one possible implementation, electronic equipment 100 can also include display, should Display can be acted with play template.Processor 101 can select corresponding templates information by currently playing swooping template action.? In a kind of possible implementation, electronic equipment 100 is by network from server downloads template movement i.e. its corresponding template letter Breath collection.
First posture information collection is corresponding with posture when user's execution swooping template action, i.e., the first posture information integrates exists as user The set of the collected each collection point information of posture information collector, the first posture information collection belong to appearance when executing swooping template action State information collection.In one possible implementation, processor 101 is concentrated from posture information according to presetting Template Information and is sieved Select the first posture information collection, the in detail content see hereafter S1041~S1049.
S105: the dynamics goodness of fit and movement similarity are obtained according to the first posture information collection and Template Information collection.
Specifically, the goodness of fit of the movement dynamics of the movement dynamics and template of dynamics goodness of fit characterization user, acts similar The movement locus of degree characterization user and the similarity of swooping template action track.In one possible implementation, power can be passed through Degree the goodness of fit judge strength of the user when doing swooping template action whether standard, can by movement similarity judge that user is doing mould Plate act when body swing whether standard.
S106: completeness is acted according to the dynamics goodness of fit and movement similarity acquisition.
Specifically, the standard degree of movement completeness characterization user action.In one possible implementation, standard journey Degree gives a mark to the movement of user.
In conclusion in a kind of method of assessment movement completeness provided in an embodiment of the present invention, by with Template Information Collection compares, and concentrates from posture information and obtains the first posture information collection, obtains power according to the first posture information collection and Template Information collection The goodness of fit and movement similarity are spent, and acts completeness according to the dynamics goodness of fit and movement similarity acquisition, obtains user's execution The corresponding movement completeness of swooping template action, user can by act completeness judge its movement whether standard, if needs change Into help user detects its movement completeness when taking exercise, and helps it to judge whether standard, to promote the exercise effect of user Fruit.
On the basis of Fig. 2, the embodiment of the invention also provides a kind of methods of possible assessment movement completeness, please join See Fig. 3, this method comprises:
S102: judge whether to need local pose information being converted to world's posture information according to Template Information collection.If so, Then execute S103;If it is not, then executing S104.
Specifically, collection point information carries timestamp and local posture information, in one possible implementation, appearance Each collection point information that state information is concentrated is arranged according to chronological order.Wherein, local pose information representation user is in appearance The posture information in coordinate system that state information acquisition device carries;World's posture information characterizes posture of the user in world coordinate system Information.When posture information collector is carried at the hand of user, user does the movement with hand displacement and (such as has lain on the back Sit), the rotation of wrist can change the distribution of the coordinate system of posture information collector carrying, at this time, it may be necessary to by local pose information Be converted to world's posture information.When swooping template action be only Wrist-sport, without hand displacement movement (such as push-up) when, Conversion can then not had to.When needing to convert, then S103 is executed, when not needing, then executes S104.
S103: world's posture information is converted by local pose information according to runge kutta method, timestamp.
Specifically, runge kutta method (Runge-Kutta methods) is the weight of the solution for nonlinear ordinary differential equation A kind of implicitly or explicitly iterative method wanted.In one possible implementation, it can be updated by runge kutta method matrix (1) Quaternary number calculates spin matrix of the current pose relative to world coordinate system according to quaternary number, thus by adding under local coordinate system Velocity amplitude is mapped as acceleration value under world coordinate system.Wherein, q0、q1、q2、q3Current pose is characterized relative to world coordinate system Quaternary number, when initial value is according to typing Template Information, movement initial attitude (requiring staff static at this time) under three axis Acceleration value (as gravity is in three axis components) calculates Eulerian angles and obtains to convert, each posture information in identification process Collection is iterated calculating with this initial quaternary number.
Wherein, ωxCharacterize the x-axis angular speed in local coordinate system, ωyCharacterize the y-axis angular speed in local coordinate system, ωz The z-axis angular speed in local coordinate system is characterized, Δ t characterizes the time difference of two neighboring point, and t characterizes a collection point information Timestamp.
Judge whether to need to be converted to world's posture information according to current template movement (corresponding to Template Information collection), when need When being converted to world's posture information, the influence of wrist rotation bring is eliminated, that is, the accuracy of posture information is improved, when not It when needing to be converted to world's posture information, is directly calculated with local pose information, reduces flow path switch, to alleviate The load of processor 101 promotes operation efficiency.
On the basis of Fig. 2, when collection point, information carries timestamp and posture information, for the content of S104, originally Inventive embodiments additionally provide a kind of possible implementation, refer to Fig. 4, and S104 includes:
S1041: current collection point information is obtained.
In one possible implementation, each collection point information that posture information is concentrated is according to the time respectively carried The sequencing of stamp arranges.As shown in figure 5, each information gathering point that posture information is concentrated arranges in sequence, wherein current Collection point information be C, C carry timestamp be current pose information concentrate each collection point information carry timestamp in most One of evening.
S1042: the collection point information received out of first time period randomly chooses N number of collection point information.
Please continue to refer to Fig. 5, the first time period, that is, collection point A information is between the information of the collection point B.First time period is (T1-t1, T1-t2), t1To execute the corresponding maximum duration of swooping template action, t2To execute swooping template action corresponding shortest time, T1 For the timestamp that current collection point information carries, the i.e. timestamp of the collection point C information carrying.N is according to t1-t2Difference, user terminal Performance and receive the predetermined frequency of collection point information and set.In one possible implementation, when frequency is bigger, N Numerical value it is smaller;Work as t1-t2Difference it is bigger when, the numerical value of N is bigger;When the performance of user terminal is better, the numerical value of N is bigger.
S1043: the N number of pre- posture information collection of building.
Wherein, N number of pre- posture information collection be respectively receive N number of collection point information arrive respectively receive current collection point it Between all collection point information for receiving.Referring to Fig. 6, above-mentioned N number of collection point information is respectively 1,2 ... the collection points n letter Breath, No. 1 pre- posture information collection include all collection point information of No. 1 collection point information to the collection point C information, No. 2 pre- posture letters Breath collection includes all collection point information of No. 2 collection point information to the collection point C information, and No. n pre- posture information collection includes No. n acquisition All collection point information of the point information to the collection point C information.
S1044: the first movement similarity of N number of pre- posture information collection and Template Information collection is successively calculated, until pre- posture is believed First movement similarity of breath collection i and Template Information collection is greater than presetting threshold value.
Specifically, it calculates according to the posture information in collection point information included by each pre- posture information collection and believes with template First movement similarity of breath collection.Pre- posture information integrates the head end of i as collection point information i, successively from the separate collection point C information The corresponding pre- posture information collection of head end starts to calculate, and with continued reference to Fig. 6, i.e., successively calculates No. 1 posture information collection, No. 2 posture letters First movement similarity of breath collection ... n posture information collection and Template Information collection.The corresponding posture of first movement similarity characterization The similarity of variation track.When the first movement similarity of pre- posture information collection i therein and Template Information collection is greater than presetting Threshold value when, at this point, by collection point information i regard as user imitation origination action correspondence posture information.And do not have to count again Calculate the first movement similarity of other pre- posture information collection and Template Information collection.
S1045: next collection point information is obtained, and next collection point information is added in pre- posture information collection i.
Wherein, next collection point information arrangement the end of pre- posture information collection i next bit because posture information is adopted Storage is periodically transmitting collection point information to electronic equipment 100, Gu the collection point information for the end that posture information is concentrated exists Ceaselessly change.With continued reference to Fig. 6, the point of posture information collection is entered behind the information of the collection point C, as next collection point letter Breath.T2For the timestamp that collection point information i is carried, the timestamp that next collection point information carries is T3, need to meet T3-T2 ≤t1, because no more than the defined maximum duration for doing corresponding actions.Work as T3-T2>t1When, directly pre- posture information collection i is recognized It is set to the first posture information collection, then executes S105.
S1046: the second movement similarity of pre- posture information collection i and Template Information collection is calculated.
Specifically, pre- posture information collection i includes above-mentioned next collection point information at this time.
S1047: judge whether the second movement similarity is greater than the first movement similarity.If so, executing S1048;If it is not, Then execute S1049.
When the second movement similarity is greater than the first movement similarity, above-mentioned next collection point information is also to imitate mould What plate acquired when acting, S1048 is executed at this time;Otherwise, simultaneously non-user is imitating swooping template action to above-mentioned next collection point information When acquire, then execute S1049.
S1048: the value of the second movement similarity is assigned to the first movement similarity.
Specifically, by second movement similarity value assign first movement similarity, after empty the second movement similarity Value.
S1049: the collection point information added recently is rejected from pre- posture information collection i, and the pre- posture after rejecting is believed Breath collection i regards as the first posture information collection.
Specifically, above-mentioned next collection point information and non-user are acquired when imitating swooping template action, therefore are needed from pre- The collection point information added recently is rejected in posture information collection i, the pre- posture information collection i after rejecting is the first posture information Collection.The last value of first movement similarity is to act the value of similarity.
In one possible implementation, with continued reference to Fig. 5, when the quantity of the collection point information between A~B is less than N When, then all collection point information between A~B are taken, to construct pre- posture information collection.
By the above-mentioned means, initial time and the deadline of user's echomotism are obtained, so as to obtain user's First posture information collection is convenient accurate.
On the basis of fig. 4, for the content of S1046, the embodiment of the invention also provides a kind of possible implementation, Fig. 7 is referred to, S1046 includes:
S10461: pre- posture information collection i is zoomed into the equal length with Template Information collection.
Specifically, i.e., so that the quantity for the collection point information for including in pre- posture information collection i includes with Template Information concentration Collection point information quantity it is equal.The embodiment of the invention provides a kind of possible implementations, refer to Fig. 8, by pre- appearance State information collection i is zoomed to includes: with the process of the equal length of Template Information collection
Assuming that the length that Template Information integrates is model_size, pre- posture information integrates the length of i as list_in_size, then Need list_in_size new data point to be scaled model_size.When scaling according to scaling and its near Point carries out interpolation complement point or abandons point.Zoom method is as follows: initiation parameter i=1, k=0, list_in is the data of input Point list, list_out are the output after scaling, and scale is the ratio (model_size/list_in_size) for needing to scale.
Since scale is generally decimal, so the size of list_out may have a point tolerance with the size of template, if Greater than template, then first position data is deleted, until being equal to, if it is less than template, then supplements last positional number below According to until being equal to.
S10462: according to the pre- posture information collection i difference after Pearson correlation coefficient formula, Template Information collection and scaling Calculate x-axis similarity, y-axis similarity, z-axis similarity.
Specifically, posture information includes x-axis acceleration, y-axis acceleration, z-axis acceleration.Pearson correlation coefficient formula Expression formula is as follows:
Wherein, X characterizes the posture information in each collection point information that Template Information is concentrated, and Y characterizes pre- posture information collection i In each collection point information in posture information, μx、μyThe appearance in each collection point information that characterization Template Information is concentrated respectively The average value of state information, each collection point information in pre- posture information collection i, σx、σyIt is poor for respective standard.X-axis is accelerated respectively The above-mentioned Pearson correlation coefficient formula of each value substitution of degree, y-axis acceleration, z-axis acceleration, can be obtained x-axis similarity, y Axis similarity, z-axis similarity.
S10463: go out the second movement similarity according to x-axis similarity, y-axis similarity, z-axis similarity calculation.
For the content of S10463, the embodiment of the present invention gives two kinds of possible implementations:
The first
The average value of x-axis similarity, y-axis similarity and z-axis similarity is calculated, and using the average value as the second movement Similarity.
Second
In certain specific movements, the position mainly taken exercise is different, x-axis similarity, y-axis similarity, z-axis similarity Importance also just it is not exactly the same, such as Bobbi bounce make, predominantly detect the movement that hand lifts, the movement is corresponding with z-axis, that Z-axis similarity should be greater than the accounting system of x-axis similarity, y-axis similarity in the accounting coefficient that calculating second acts similarity Number.
For this purpose, the accounting coefficient according to Template Information set analysis x-axis similarity, y-axis similarity, z-axis similarity, calculates X-axis similarity, y-axis similarity, z-axis similarity and corresponding accounting coefficient product, and moved the sum of above-mentioned product as second Make similarity.
In one possible implementation, the acquisition of the obtaining step of the first movement similarity and the second movement similarity Step is similarly.
On the basis of Fig. 2, (dynamics is obtained according to the first posture information collection and Template Information collection for the content in S105 The goodness of fit), the embodiment of the invention also provides a kind of possible implementations, refer to Fig. 9, and S105 includes:
S1051: it is flat that the corresponding x-axis average acceleration of the first posture information collection, y-axis average acceleration and z-axis are calculated Equal acceleration.
Wherein, the first posture information collection includes at least two collection point information, and collection point information includes that corresponding x-axis accelerates Degree, y-axis acceleration, z-axis acceleration.Acquire respectively the first posture information concentrate each collection point information x-axis average acceleration, Y-axis average acceleration and z-axis average acceleration.
S1052: the corresponding dynamics value of each collection point information is successively calculated.
Wherein, the corresponding dynamics value of each collection point information is the difference of respective x-axis acceleration and x-axis average acceleration Square, the difference of respective y-axis acceleration and y-axis average acceleration square and respective z-axis acceleration and z-axis average acceleration The difference of degree square summation.
S1053: maximum, force angle value is filtered out.
Find out the maximum total value in S1052.
S1054: the dynamics goodness of fit is calculated according to maximum, force angle value and template dynamics value.
Specifically, the dynamics goodness of fit is obtained divided by template dynamics value by maximum, force angle value.Wherein, template dynamics value is pre- If when, step and S1051 and S1502 are similarly.
Wherein, posture information collector is also affected by gravity in addition to being influenced by body acceleration, to influence whether dynamics Calculating.So before use, each number of axle evidence subtracts its mean value, although possible outcome is less than true dynamics, mould in this way Plate similarly operates, and is ratio because finally acquiring, and influence is smaller, and eliminates gravity influence.
In one possible implementation, a movement does the primary standard used time as 1s, and user completes this movement 2s is taken, even when he has reached the amplitude of this action request, dynamics (acceleration) also can be lower than standard.It is this by Cause dynamics relatively low slowly in what is done, cannot function as the dynamics foundation that judgement counts, need to compensate.Definition penalty coefficient is k, Maximum, force angle value is power, and template dynamics value is std_power, current action used time time, template used time std_time.It is false If there is certain relationship to fit quadratic equation according to the truthful data largely sampled out by k and (time/std_time):
B=time/std_time (b ∈ [1 ,+∞]);
K=-0.2051323+0.9849389*b+0.298844*b2
Power_score is acquired at this time are as follows: power_score=k*power/std_power, wherein power_score Represent the dynamics goodness of fit.
Referring to Fig. 10, Figure 10 is that the device that a kind of assessment provided in an embodiment of the present invention acts completeness optionally should The device that assessment acts completeness can use the implementation of electronic equipment 100.It should be noted that the present embodiment is provided Assessment movement completeness device, the technical effect of basic principle and generation is identical with above-described embodiment, to briefly describe, The present embodiment part does not refer to place, can refer to corresponding contents in the above embodiments.
The device for estimating movement completeness includes data obtaining module 201 and processing module 202.
Data obtaining module 201, for obtaining the posture information collection of user, wherein posture information collection includes at least two Collection point information;In one possible implementation, data obtaining module 201 can execute S101.
Processing module 202, for obtaining the first posture information collection according to posture information collection and presetting Template Information collection, Wherein, Template Information collection is corresponding with swooping template action, and the first posture information collection is corresponding with posture when user's execution swooping template action, the One posture information collection belongs to posture information collection;The dynamics goodness of fit and movement are obtained according to the first posture information collection and Template Information collection Similarity, wherein the dynamics goodness of fit characterizes the goodness of fit of the movement dynamics of user and the movement dynamics of template, acts similarity table Take over the similarity of the movement locus at family and the movement locus of template for use;It has been acted according to the dynamics goodness of fit and movement similarity acquisition Cheng Du, wherein the standard degree of movement completeness characterization user action.In one possible implementation, processing module 202 S104, S105 and S106 can be executed.
The embodiment of the invention also provides a kind of storage medium, which is stored with computer instruction, the computer The method that instruction executes the assessment movement completeness of above-described embodiment when being read and running.The storage medium may include interior Deposit, flash memory, register or its combine etc..
A kind of electronic equipment 100 is provided below, the electronic equipment 100 is as shown in Figure 1, that above-mentioned Figure 10 may be implemented is corresponding The device of assessment movement completeness;Specifically, the electronic equipment 100 includes: processor 101, memory 102, bus 103 and Communication interface 104.Processor 101 can be baseband chip.
Other than the device that the electronic equipment 100 may have in figure, which can also include: battery, each Class sensor, touch screen, radio circuit etc..Optionally, which can be with are as follows: PDA, smart phone, plate, intelligence The products such as energy wearing.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method of assessment movement completeness, is applied to user terminal, which is characterized in that the described method includes:
Obtain the posture information collection of user, wherein the posture information collection includes at least two collection point information;
The first posture information collection is obtained according to the posture information collection and presetting Template Information collection, wherein the template letter Breath collection is corresponding with swooping template action, and posture when the first posture information collection executes the swooping template action with user is corresponding, described First posture information collection belongs to the posture information collection;
The dynamics goodness of fit and movement similarity are obtained according to the first posture information collection and the Template Information collection, wherein institute State the goodness of fit of the movement dynamics of dynamics goodness of fit characterization user and the movement dynamics of template, the movement similarity characterization user Movement locus and template movement locus similarity;
Completeness is acted according to the dynamics goodness of fit and the movement similarity acquisition, wherein the movement completeness characterization The standard degree of user action.
2. the method for assessment movement completeness according to claim 1, which is characterized in that the collection point information carries Timestamp and local posture information, wherein the coordinate that the local pose information representation user carries in posture information collector Posture information in system, after the posture information collection for obtaining user, the method also includes:
Judge whether to need the local pose information being converted to world's posture information according to the Template Information collection, wherein Posture information of the world's posture information characterization user in world coordinate system;
If so, the local pose information is converted to world's posture information according to runge kutta method, the timestamp.
3. the method for assessment movement completeness according to claim 1, which is characterized in that the collection point information carries Timestamp and posture information, it is described according to the posture information collection and presetting Template Information collection obtains the first posture information collection The step of include:
Obtain current collection point information;
The collection point information received out of first time period randomly chooses N number of collection point information, wherein the first time period For (T1-t1, T1-t2), t1To execute the corresponding maximum duration of the swooping template action, t2It is corresponding most to execute the swooping template action Short time, T1For the timestamp that the current collection point information carries, N is according to t1-t2Difference, the performance of the user terminal with And it receives the predetermined frequency of collection point information and sets;
Construct N number of pre- posture information collection, wherein N number of pre- posture information collection is respectively to receive N number of collection point information All collection point information for receiving and receiving between current collection point are arrived respectively;
The the first movement similarity for successively calculating N number of pre- posture information collection and the Template Information collection, until pre- posture information The the first movement similarity for collecting i and the Template Information collection is greater than presetting threshold value, wherein the pre- posture information collection i's Head end is collection point information i;
Next collection point information is obtained, and next collection point information is added in pre- posture information collection i, wherein T2 For the timestamp that the collection point information i is carried, the timestamp that next collection point information carries is T3, and T3-T2≤ t1
Calculate the second movement similarity of pre- posture information collection i and the Template Information collection;
Judge whether the second movement similarity is greater than the first movement similarity;
If so, assigning the value of the second movement similarity to the first movement similarity, and repeat to obtain next adopt Collection point information, and next collection point information is added in pre- posture information collection i;
If it is not, then reject the collection point information added recently from pre- posture information collection i, and by the pre- posture information collection after rejecting I regards as the first posture information collection.
4. the method for assessment movement completeness according to claim 3, which is characterized in that the posture information includes x-axis Acceleration, y-axis acceleration, z-axis acceleration, it is described to calculate second movement phase of the pre- posture information collection i with the Template Information collection The step of seemingly spending include:
Pre- posture information collection i is zoomed to the equal length with the Template Information collection;
X is calculated separately out according to the pre- posture information collection i after Pearson correlation coefficient formula, the Template Information collection and scaling Axis similarity, y-axis similarity, z-axis similarity;
Go out the second movement similarity according to the x-axis similarity, the y-axis similarity, the z-axis similarity calculation.
5. the method for assessment movement completeness according to claim 4, which is characterized in that described similar according to the x-axis Degree, the y-axis similarity, the z-axis similarity calculation go out it is described second movement similarity the step of include:
Calculate the average value of the x-axis similarity, the y-axis similarity and the z-axis similarity;
Using the average value as the second movement similarity.
6. the method for assessment movement completeness according to claim 4, which is characterized in that described similar according to the x-axis Degree, the y-axis similarity, the z-axis similarity calculation go out it is described second movement similarity the step of include:
Accounting system according to x-axis similarity described in the Template Information set analysis, the y-axis similarity, the z-axis similarity Number;
The x-axis similarity, the y-axis similarity, the z-axis similarity and corresponding accounting coefficient product are calculated, and Using the sum of the product as the second movement similarity.
7. the method for assessment movement completeness according to claim 1, which is characterized in that the first posture information Ji Bao At least two collection point information are included, the collection point information includes x-axis acceleration, y-axis acceleration, z-axis acceleration, the foundation The first posture information collection and the Template Information collection obtain the step of dynamics goodness of fit and include:
Calculate the corresponding x-axis average acceleration of the first posture information collection, y-axis average acceleration and z-axis average acceleration Degree;
Successively calculate the corresponding dynamics value of each collection point information, wherein the dynamics value is that x-axis acceleration averagely adds with x-axis Speed difference square, y-axis acceleration and y-axis average acceleration difference square and z-axis acceleration and z-axis average acceleration difference Square summation;
Filter out maximum, force angle value;
The dynamics goodness of fit is calculated according to the maximum, force angle value and template dynamics value.
8. a kind of device of assessment movement completeness, is applied to user terminal characterized by comprising
Data obtaining module, for obtaining the posture information collection of user, wherein the posture information collection includes at least two acquisitions Point information;
Processing module, for obtaining the first posture information collection according to the posture information collection and presetting Template Information collection, In, the Template Information collection is corresponding with swooping template action, when the first posture information collection and user execute the swooping template action Posture is corresponding, and the first posture information collection belongs to the posture information collection;According to the first posture information collection and the mould Plate information collection obtains the dynamics goodness of fit and movement similarity, wherein the movement dynamics and mould of the dynamics goodness of fit characterization user The movement locus of the goodness of fit of the movement dynamics of plate, the movement similarity characterization user is similar to the movement locus of template Degree;Completeness is acted according to the dynamics goodness of fit and the movement similarity acquisition, wherein the movement completeness characterization is used The standard degree of family movement.
9. a kind of storage medium, which is characterized in that the storage medium is stored with computer instruction, and the computer instruction is in quilt The method that perform claim requires 1~7 any assessment movement completeness when reading and running.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor, memory, installation in the memory There is the device of assessment movement completeness, the device of the assessment movement completeness includes that one or more is executed by the processor Software function module, the device of assessment movement completeness includes:
Data obtaining module, for obtaining the posture information collection of user, wherein the posture information collection includes at least two acquisitions Point information;
Processing module, for obtaining the first posture information collection according to the posture information collection and presetting Template Information collection, In, the Template Information collection is corresponding with swooping template action, when the first posture information collection and user execute the swooping template action Posture is corresponding, and the first posture information collection belongs to the posture information collection;According to the first posture information collection and the mould Plate information collection obtains the dynamics goodness of fit and movement similarity, wherein the movement dynamics and mould of the dynamics goodness of fit characterization user The movement locus of the goodness of fit of the movement dynamics of plate, the movement similarity characterization user is similar to the movement locus of template Degree;Completeness is acted according to the dynamics goodness of fit and the movement similarity acquisition, wherein the movement completeness characterization is used The standard degree of family movement.
CN201910289746.1A 2019-04-11 2019-04-11 Method and device for evaluating action completion degree, storage medium and electronic equipment Active CN110020630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910289746.1A CN110020630B (en) 2019-04-11 2019-04-11 Method and device for evaluating action completion degree, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910289746.1A CN110020630B (en) 2019-04-11 2019-04-11 Method and device for evaluating action completion degree, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110020630A true CN110020630A (en) 2019-07-16
CN110020630B CN110020630B (en) 2020-12-18

Family

ID=67191034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910289746.1A Active CN110020630B (en) 2019-04-11 2019-04-11 Method and device for evaluating action completion degree, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110020630B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705496A (en) * 2019-10-11 2020-01-17 成都乐动信息技术有限公司 Swimming posture identification method based on nine-axis sensor
CN110755084A (en) * 2019-10-29 2020-02-07 南京茂森电子技术有限公司 Motion function evaluation method and device based on active and passive staged actions
CN110782967A (en) * 2019-11-01 2020-02-11 成都乐动信息技术有限公司 Fitness action standard degree evaluation method and device
CN113239849A (en) * 2021-05-27 2021-08-10 数智引力(厦门)运动科技有限公司 Fitness action quality evaluation method and system, terminal equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989326A (en) * 2009-07-31 2011-03-23 三星电子株式会社 Human posture recognition method and device
CN103984416A (en) * 2014-06-10 2014-08-13 北京邮电大学 Gesture recognition method based on acceleration sensor
CN105184382A (en) * 2015-07-14 2015-12-23 成都乐动信息技术有限公司 Optimization method of trajectory and device
CN105617638A (en) * 2015-12-25 2016-06-01 深圳市酷浪云计算有限公司 Badminton racket swinging movement recognizing method and device
CN106474711A (en) * 2016-11-15 2017-03-08 广东小天才科技有限公司 A kind of golf supplemental training method and device
CN107049324A (en) * 2016-11-23 2017-08-18 深圳大学 The determination methods and device of a kind of limb motion posture
CN107122048A (en) * 2017-04-21 2017-09-01 甘肃省歌舞剧院有限责任公司 One kind action assessment system
CN107330361A (en) * 2017-05-24 2017-11-07 深圳和而泰智能家居科技有限公司 Determination methods, beauty appliance and the storage medium of beauty appliance skin care gimmick
CN107392098A (en) * 2017-06-15 2017-11-24 北京小轮科技有限公司 A kind of action completeness recognition methods based on human skeleton information
CN108205654A (en) * 2017-09-30 2018-06-26 北京市商汤科技开发有限公司 A kind of motion detection method and device based on video
CN108509924A (en) * 2018-03-29 2018-09-07 北京微播视界科技有限公司 The methods of marking and device of human body attitude
CN109248414A (en) * 2018-09-30 2019-01-22 深圳市科迈爱康科技有限公司 Training based reminding method, device, equipment and readable storage medium storing program for executing
CN109448815A (en) * 2018-11-28 2019-03-08 平安科技(深圳)有限公司 Self-service body building method, device, computer equipment and storage medium
CN109598746A (en) * 2018-12-26 2019-04-09 成都纵横自动化技术股份有限公司 A kind of method and device tracking image template generation

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989326A (en) * 2009-07-31 2011-03-23 三星电子株式会社 Human posture recognition method and device
CN103984416A (en) * 2014-06-10 2014-08-13 北京邮电大学 Gesture recognition method based on acceleration sensor
CN105184382A (en) * 2015-07-14 2015-12-23 成都乐动信息技术有限公司 Optimization method of trajectory and device
CN105617638A (en) * 2015-12-25 2016-06-01 深圳市酷浪云计算有限公司 Badminton racket swinging movement recognizing method and device
CN106474711A (en) * 2016-11-15 2017-03-08 广东小天才科技有限公司 A kind of golf supplemental training method and device
CN107049324A (en) * 2016-11-23 2017-08-18 深圳大学 The determination methods and device of a kind of limb motion posture
CN107122048A (en) * 2017-04-21 2017-09-01 甘肃省歌舞剧院有限责任公司 One kind action assessment system
CN107330361A (en) * 2017-05-24 2017-11-07 深圳和而泰智能家居科技有限公司 Determination methods, beauty appliance and the storage medium of beauty appliance skin care gimmick
CN107392098A (en) * 2017-06-15 2017-11-24 北京小轮科技有限公司 A kind of action completeness recognition methods based on human skeleton information
CN108205654A (en) * 2017-09-30 2018-06-26 北京市商汤科技开发有限公司 A kind of motion detection method and device based on video
CN108509924A (en) * 2018-03-29 2018-09-07 北京微播视界科技有限公司 The methods of marking and device of human body attitude
CN109248414A (en) * 2018-09-30 2019-01-22 深圳市科迈爱康科技有限公司 Training based reminding method, device, equipment and readable storage medium storing program for executing
CN109448815A (en) * 2018-11-28 2019-03-08 平安科技(深圳)有限公司 Self-service body building method, device, computer equipment and storage medium
CN109598746A (en) * 2018-12-26 2019-04-09 成都纵横自动化技术股份有限公司 A kind of method and device tracking image template generation

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705496A (en) * 2019-10-11 2020-01-17 成都乐动信息技术有限公司 Swimming posture identification method based on nine-axis sensor
CN110705496B (en) * 2019-10-11 2023-04-18 成都乐动信息技术有限公司 Swimming posture identification method based on nine-axis sensor
CN110755084A (en) * 2019-10-29 2020-02-07 南京茂森电子技术有限公司 Motion function evaluation method and device based on active and passive staged actions
CN110782967A (en) * 2019-11-01 2020-02-11 成都乐动信息技术有限公司 Fitness action standard degree evaluation method and device
CN110782967B (en) * 2019-11-01 2023-04-21 成都乐动信息技术有限公司 Body-building action standard degree assessment method and device
CN113239849A (en) * 2021-05-27 2021-08-10 数智引力(厦门)运动科技有限公司 Fitness action quality evaluation method and system, terminal equipment and storage medium
CN113239849B (en) * 2021-05-27 2023-12-19 数智引力(厦门)运动科技有限公司 Body-building action quality assessment method, body-building action quality assessment system, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN110020630B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN110020630A (en) Method, apparatus, storage medium and the electronic equipment of assessment movement completeness
Sikder et al. KU-HAR: An open dataset for heterogeneous human activity recognition
CN103460221B (en) For User Activity is classified using the combination of likelihood function value in the mobile device system, method and apparatus
CN105814593B (en) Data communications method and data communication system
CN103460722B (en) Method, equipment and device for carrying out activity classification using the time scaling to the feature on the basis of the time
CN106022826A (en) Cheating user recognition method and system in webcast platform
CN107871011A (en) Image processing method, device, mobile terminal and computer-readable recording medium
CN111558195B (en) Rope skipping counting method, device and equipment based on wearable equipment and storage medium
CN107368820B (en) Refined gesture recognition method, device and equipment
CN104346408B (en) A kind of method and apparatus being labeled to the network user
CN105797319A (en) Badminton motion data processing method and device
CN110012495A (en) A kind of demographic method, device and computer equipment
CN107133323A (en) Data model construction method, the implementation method of government affairs service business and device
CN108052960A (en) Method, model training method and the terminal of identification terminal grip state
CN109102324A (en) Model training method, the red packet material based on model are laid with prediction technique and device
CN110209551A (en) A kind of recognition methods of warping apparatus, device, electronic equipment and storage medium
CN108536314A (en) Method for identifying ID and device
CN109615360A (en) A kind of encoding of graphs methods of exhibiting and device
CN108876409A (en) Authentication method, system and relevant device are subsidized in a kind of colleges and universities' poverty
CN104765476B (en) Handwriting tracks generation method and device
CN106970705A (en) Motion capture method, device and electronic equipment
CN105105757B (en) A kind of wearable human motion posture track record and assessment device
CN106598230A (en) Virtual reality headset and method and device for tracking spatial attitude information thereof
CN106650698A (en) Data acquisition method and system based on intelligent platform
CN108737487A (en) Method of data synchronization and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant