CN105487656B - Exercise data recording method and device - Google Patents

Exercise data recording method and device Download PDF

Info

Publication number
CN105487656B
CN105487656B CN201510822542.1A CN201510822542A CN105487656B CN 105487656 B CN105487656 B CN 105487656B CN 201510822542 A CN201510822542 A CN 201510822542A CN 105487656 B CN105487656 B CN 105487656B
Authority
CN
China
Prior art keywords
state
exercise
image
body part
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510822542.1A
Other languages
Chinese (zh)
Other versions
CN105487656A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510822542.1A priority Critical patent/CN105487656B/en
Publication of CN105487656A publication Critical patent/CN105487656A/en
Application granted granted Critical
Publication of CN105487656B publication Critical patent/CN105487656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

Present disclose provides a kind of exercise data recording method and devices, belong to field of terminal technology.The method includes:After detecting the trigger action of setting in motion, whether periodically detect in image taking window comprising specified body part;If calculating the current area for specifying body part image comprising specified body part in image taking window;Current area is compared, and based on comparative result and present count state with the preset area of specified body part image, records times of exercise.The disclosure can automatically record exercise data after user's setting in motion so that user can attentively move without artificially recording exercise data, therefore the record result of this kind of exercise data recording mode is accurate, movement effects are good.

Description

Exercise data recording method and device
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of exercise data recording method and device.
Background technology
The important channel that movement is to maintain health, improves fitness.There are many kinds of the modes of movement, such as prostrate Support, sit-ups, dumbbell exercise, seat body forerunner etc..When people are in movement, some especially are being done with repeatability When the special exercise of action, the exercise data by recording repetitive, such as times of exercise are generally required, to know itself Amount of exercise.When recording exercise data, it usually needs during movement, artificially carried out to repetitive each time It counts.Such as during pressing your body up from the floor with your arms and then lower it slowly, needs oneself to read out or read silently at heart the number currently done, pass through the memory of oneself To record the times of exercise of this push-up.
Invention content
To overcome the problems in correlation technique, a kind of exercise data recording method of disclosure offer and device, it is described Technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of exercise data recording method is provided, including:
After detecting the trigger action of setting in motion, whether periodically detect in image taking window comprising specified body Body region;
If it includes the specified body part that described image, which is shot in window, calculates and specify the current of body part image Area;
The current area is compared with preset area, the preset area is pre- apart from described image shooting window If apart from when the specified body part image area;
Based on comparative result and present count state, times of exercise is recorded.
Optionally, it is described based on comparative result and present count state, record times of exercise includes:
If the current area is not less than the preset area, judge whether the present count state is unlock shape State;
If the present count state is the unlocked state, the times of exercise is added one, and by the current meter Number state is converted to lock-out state by the unlocked state.
Optionally, it is described based on comparative result and present count state, record times of exercise includes:
If the current area is less than the preset area, judge whether the present count state is lock-out state;
If the present count state is the lock-out state, the present count state is turned by the lock-out state It is changed to unlocked state.
Optionally, the method further includes:
When detecting the opening operation of motion recording function, the prompt message of image camera function is opened in display;
Whether include the finger in detection described image shooting window after detecting the opening operation of image camera function Determine body part;
If it includes the specified body part that described image, which is shot in window, the specified body part is calculated apart from institute State image taking window preset apart from when initial area;
Set the initial area to the preset area.
Optionally, the method further includes:
After detecting the trigger action of setting in motion, start recording run duration;
The run duration and the times of exercise are shown in described image shoots window.
Optionally, the method further includes:
After detecting the trigger action of stop motion, stop the record to the run duration and the times of exercise;
Run duration when according to stop motion and times of exercise calculate the mean motion time each acted;
Show stop motion when run duration, stop motion when times of exercise and the mean motion time.
According to the second aspect of the embodiment of the present disclosure, a kind of exercise data recording device is provided, including:
Detection module, for after detecting the trigger action of setting in motion, periodically detecting in image taking window Whether specified body part is included;
Computing module, for when it includes the specified body part that described image, which is shot in window, calculating and specifying body The current area of position image;
Comparison module, for the current area to be compared with preset area, the preset area is described in distance Image taking window preset apart from when the specified body part image area;
Logging modle, for based on comparative result and present count state, recording times of exercise.
Optionally, the logging modle, for when the current area is not less than the preset area, working as described in judgement Whether preceding count status is unlocked state;If the present count state is the unlocked state, the times of exercise is added One, and the present count state is converted into lock-out state by the unlocked state.
Optionally, the logging modle, it is described current for when the current area is less than the preset area, judging Whether count status is lock-out state;If the present count state is the lock-out state, by the present count state Unlocked state is converted to by the lock-out state.
Optionally, described device further includes:
First display module, for when detecting the opening operation of motion recording function, image taking work(to be opened in display The prompt message of energy;
The detection module, is additionally operable to after detecting the opening operation of image camera function, detection described image shooting Whether include the specified body part in window;
The computing module is additionally operable to, when described image is shot in window comprising the specified body part, calculate institute State specified body part apart from described image shooting window preset apart from when initial area;
Setup module, for setting the initial area to the preset area.
Optionally, described device further includes:
The logging modle, is additionally operable to after detecting the trigger action of setting in motion, start recording run duration;
Second display module, for showing the run duration and the times of exercise in shooting window in described image.
Optionally, described device further includes:
The logging modle, is additionally operable to after detecting the trigger action of stop motion, stop to the run duration and The record of the times of exercise;
The computing module, run duration when being additionally operable to according to stop motion and times of exercise, what calculating each acted The mean motion time;
Third display module, for when showing stop motion run duration, stop motion when times of exercise and described The mean motion time.
According to the third aspect of the embodiment of the present disclosure, a kind of exercise data recording device is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:After detecting the trigger action of setting in motion, image is periodically detected It whether shoots in window comprising specified body part;If it includes the specified body part that described image, which is shot in window, count Calculate the current area for specifying body part image;The current area is compared with preset area, the preset area is Apart from described image shooting window preset apart from when the specified body part image area;It counts based on comparative result and currently Number state records times of exercise.
The technical scheme provided by this disclosed embodiment can include the following benefits:
After detecting the trigger action of setting in motion, whether periodically detect in image taking window comprising specified body Body region;If calculating the current area for specifying body part image comprising specified body part in image taking window;It will work as Front product is compared with the preset area of specified body part image, and based on comparative result and present count state, is recorded Times of exercise.Due to can be recorded automatically to exercise data after user's setting in motion so that user can attentively move and Without artificially recording exercise data, therefore the record result of this kind of exercise data recording mode is accurate, movement effects are good.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of exercise data recording method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of exercise data recording method shown according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of exercise data recording device shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of exercise data recording device shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of exercise data recording device shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of exercise data recording device shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of exercise data recording device shown according to an exemplary embodiment.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of exercise data recording method shown according to an exemplary embodiment, as shown in Figure 1, Include the following steps:
In a step 101, after detecting the trigger action of setting in motion, periodically detecting in image taking window is It is no to include specified body part.
In a step 102, it if comprising specified body part in image taking window, calculates and specifies body part image Current area.
In step 103, current area is compared with preset area.
Wherein, preset area be range image shoot window preset apart from when specify the area of body part image.
At step 104, based on comparative result and present count state, times of exercise is recorded.
The method that the embodiment of the present disclosure provides periodically detects image after detecting the trigger action of setting in motion It whether shoots in window comprising specified body part;If calculating comprising specified body part in image taking window and specifying body The current area of body region image;Current area is compared with the preset area of specified body part image, and based on than Compared with result and present count state, times of exercise is recorded.Due to can remember automatically to exercise data after user's setting in motion Record so that user can attentively move without artificially recording exercise data, therefore the note of this kind of exercise data recording mode Record result is accurate, movement effects are good.
Optionally, based on comparative result and present count state, record times of exercise includes:
If current area is not less than preset area, judge whether present count state is unlocked state;
If present count state is unlocked state, times of exercise is added one, and by present count state by unlocked state Be converted to lock-out state.
Optionally, based on comparative result and present count state, record times of exercise includes:
If current area is less than preset area, judge whether present count state is lock-out state;
If present count state is lock-out state, present count state is converted into unlocked state by lock-out state.
Optionally, this method further includes:
When detecting the opening operation of motion recording function, the prompt message of image camera function is opened in display;
After detecting the opening operation of image camera function, whether detection image shoots in window comprising specified body Position;
If comprising specified body part in image taking window, calculates and specify body part range image shooting window pre- If apart from when initial area;
Set initial area to preset area.
Optionally, this method further includes:
After detecting the trigger action of setting in motion, start recording run duration;
Run duration and times of exercise are shown in image taking window.
Optionally, this method further includes:
After detecting the trigger action of stop motion, stop the record to run duration and times of exercise;
Run duration when according to stop motion and times of exercise calculate the mean motion time each acted;
Show stop motion when run duration, stop motion when times of exercise and average run duration.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 2 is a kind of flow chart of exercise data recording method shown according to an exemplary embodiment, as shown in Fig. 2, Include the following steps:
In step 201, when detecting the opening operation of motion recording function, carrying for image camera function is opened in display Show information.
In the embodiments of the present disclosure, in order to push-up, sit-ups, dumbbell exercise, seat body forerunner, chin-up etc. Special exercise with repetitive carries out exercise data record, and present disclose provides record movement number using image recognition According to function.Wherein, which can be realized by an independent APP (Application, application program), can also be made The function of being carried for terminal system realizes that the embodiment of the present disclosure is to this without specifically limiting.Due to being moved in record When data, terminal needs image recognition to record times of exercise, therefore needs first to open image taking when recording exercise data Function.
During specific implementation, terminal has provided operable interface to the user, when user needs to record exercise data When, the operation of opening movement writing function can be executed at the operable interface.Wherein, the operation of opening movement writing function can lead to The opening movement switch being arranged on operable interface is crossed to realize.For example, show that opening movement switchs on operable interface, it should Opening movement switch can horizontally slip in a bounding box.Wherein, left side side can be off state side, and the right side can be to open State side.Under default conditions the opening movement switch be closed side, when detect the opening movement switch by closing shape When state Slideslip is to open state side, the trigger action of opening movement record, opening movement writing function are confirmly detected.
When terminal detects the opening operation of motion recording function, the prompt message of image camera function is opened in display, The prompt message can be shown by pop-up.Wherein, which can be similar to " the preposition or postposition to open a terminal is taken the photograph The text information of picture head ".Further, the unlatching option that can also show image camera function, so that user can directly pass through The unlatching option is triggered to open image camera function.When user need not record exercise data, can be recorded with closing movement Function.
In step 202, it after detecting the opening operation of image camera function, obtains and specifies the pre- of body part image If area.
In the embodiments of the present disclosure, when user is when doing the special exercise with repetitive, the specified body of user Position can moving back and forth along curve movement repeatability.Such as when pressing your body up from the floor with your arms and then lower it slowly, above and below the head meeting repeatability of user Movement.If at this point, the terminal for opening image camera function is placed on the ground of lower head, area can be got in weight The head image of renaturation variation, and head, closer to terminal, the area of head image is bigger.It therefore can be according to the specified body of user The area change of body region image judges whether user completes one-off, and then records times of exercise.It is moved in record Before number, terminal need to first obtain the preset area of specified body part, which can be used as an area reference, with It is used when just recording times of exercise in subsequent step 205.It obtains and specifies the process of the preset area of body part as follows:
After detecting the opening operation of image camera function, image taking window is shown, and detection image shoots window In whether include specified body part;If comprising specified body part in image taking window, calculate specify body part away from Initial area when with a distance from image taking window preset;Set the initial area to preset area.
It should be noted that in order to keep the area of the specified body part image of acquisition more accurate, obtained in terminal pre- If when area, user need to keep specified body part to remain static.It, can be in image for the time to user's abundance It is provided in shooting window and starts to shoot option, and after detecting the trigger action for starting to shoot option, then execute detection image The step of whether shooting in window comprising specified body part.
For example, as a reference plane by ground, by taking terminal is mobile phone as an example, if user, when pressing your body up from the floor with your arms and then lower it slowly, head is far from ground The minimum range in face is 15 centimetres, and the maximum distance away from ground is 45 centimetres, then user, can be first by mobile phone before pressing your body up from the floor with your arms and then lower it slowly It is placed into the position away from head pre-determined distance, and camera is directed at head so that mobile phone detects in image taking window Behind the head of oneself, the initial area of head image is calculated, and then gets the preset area of head image.Wherein, preset away from From can be head away from the numerical value between reference planes minimum range and maximum distance, for example, 15 centimetres, 18 centimetres, 20 centimetres, It 25 centimetres, 30 centimetres etc., can voluntarily be selected by user.In order to preferably reach movement effects, pre-determined distance preferably selects Take the numerical value more than minimum range but closer to minimum range.Because after determining pre-determined distance, when user's head is small away from ground When pre-determined distance, just determines and complete one-off, and be denoted as primary movement.
It should be noted that the specified body part of user is different with the difference of motion mode.For example making dumbbell When movement, specified body part can be hand etc. of user in the body part for doing repetitive, and the embodiment of the present disclosure is to this Without specifically limiting.Can be the either side image of specified body part moreover, when obtaining specified body part image, Depending on the demand of specific motion mode, the embodiment of the present disclosure is to this equally without specifically limiting.Opening image taking When function, front camera can be opened, can also open rear camera, the embodiment of the present disclosure is to this without specifically limiting.
In another embodiment, after detecting the opening operation of image camera function, if terminal detects that storage is useful The preset area of body part image is specified at family, then can directly display whether the prompt message of setting in motion, detected in terminal After the trigger action of setting in motion, following step 203 is executed.
In another embodiment, terminal can store the preset area of the specified body part image for different motion. Before setting in motion, the preset area list for different motion can be shown, when detecting choosing of the user to any preset area When extract operation, the preset area that is moved as this of preset area that user is chosen.In addition, if the preset area of storage has Accidentally, operations can be also modified, update or deleted etc. to it.
In step 203, after detecting the trigger action of setting in motion, periodically detecting in image taking window is No includes specified body part, if executing following step 204 comprising specified body part in image taking window.
In the embodiments of the present disclosure, it after the preset area that terminal gets specified body part image, can display whether The content of the prompt message of setting in motion, prompt message can be that " every time when movement, head position needs more to lean on than position at this time Nearly camera, it is once to move that can just can be regarded as " etc., so as to the condition that makes user clearly complete once to move and setting in motion when Machine.Terminal is after detecting the trigger action of setting in motion, start recording run duration, and fortune is shown in image taking window The dynamic time.Meanwhile whether terminal can periodically detect in image taking window comprising specified body part.Wherein, detection week Phase is Millisecond, such as 50 milliseconds, 100 milliseconds, 150 milliseconds, 200 milliseconds etc., and the embodiment of the present disclosure is to this without specifically limiting It is fixed.For example, when user is when pressing your body up from the floor with your arms and then lower it slowly, after the preset area for getting user's head image, mobile phone can be placed on The underface on head when pressing your body up from the floor with your arms and then lower it slowly, and camera is directed at head.If detection cycle at this time is 100 milliseconds, user exists During movement, mobile phone can every 100 milliseconds detect an image taking window in whether include head, if including if execute Following step 204.Do not include specified body part in image taking window if detecting, continues to execute detection image shooting window The step of in mouthful whether comprising specified body part.Wherein, whether comprising specified body part in detection image shoots window When, the realizations such as detection algorithm that can be based on curvature scale space, the embodiment of the present disclosure is to this without specifically limiting.
In step 204, it if comprising specified body part in image taking window, calculates and specifies body part image Current area.
In the embodiments of the present disclosure, after detecting the trigger action of setting in motion, terminal can constantly detection image clap It whether takes the photograph in window comprising specified body part.In order to judge that terminal detects specified body part in image taking window Whether moment, user complete an action, i.e., whether complete primary movement, then when detecting specified body part, obtain Fetching determines body part image and calculates the current area for specifying body part image, to deserve in subsequent step 205 Front product is compared with preset area, and then judges whether complete primary movement.Body part image is specified calculating Area when, the realizations such as Object Area Algorithms that can be based on chain code, the embodiment of the present disclosure is to this without specifically limiting.
In step 205, current area is compared with preset area, and based on comparative result with current count shape State records times of exercise.
In the embodiments of the present disclosure, by the way that the current area of specified body part image to be compared with preset area, Judge whether user completes primary movement, if completing primary movement, times of exercise adds 1.With user press your body up from the floor with your arms and then lower it slowly for Example, if user, when preset area is arranged, the distance between the head of user and terminal are 20 centimetres, and are calculated initial Area is A1, i.e., preset area is A1.So when the area of the head image got is greater than or equal to A1, i.e., when user's When the distance between head and terminal are less than or equal to 20 centimetres, it can just can be regarded as primary movement.User's head and end in order to prevent When the distance between end is less than 20 centimetres in primary movement, repeat to record times of exercise, the disclosure sets current count shape State.Wherein, present count state includes unlocked state and lock-out state, can be realized by a status indication position.Such as shape State marker bit is denoted as unlocked state when being " 0 ", and status indication position is denoted as lock-out state when being " 1 ".It at this time can be according to current area Times of exercise is recorded with the comparison result of preset area and present count state, detailed process is as follows:
Judge whether current area is less than preset area;If current area is not less than preset area, current count is judged Whether state is unlocked state;If present count state is unlocked state, times of exercise is added one, and by present count state Lock-out state is converted to by unlocked state.If current area is less than preset area, judge whether present count state is locking State;If present count state is lock-out state, present count state is converted into unlocked state by lock-out state.
Or by taking above-mentioned user presses your body up from the floor with your arms and then lower it slowly movement as an example, when 19 centimetres away from terminal of user's head, head figure is judged The current area of picture is more than preset area A1, if it is unlocked state to be detected simultaneously by present count state, it is determined that be for the first time The current area for calculating head image is more than A1, is converted to by unlocked state by times of exercise plus 1, and by present count state Lock-out state.If at this time head continue the during of being moved to terminal detect head image area be more than A1 when, due to Present count state is lock-out state, therefore will not times of exercise be added 1, avoids repeat count.When user's head is away from terminal At 21 centimetres, judge that the current area of head image is less than A1, if it is lock-out state to be detected simultaneously by present count state, Determination is to calculate the area of head image for the first time less than A1, and present count state is converted and is converted to solution by lock-out state Lock status indicates this time end of action, is prepared as next action and is counted.
In the embodiments of the present disclosure, current exercise data is known for the ease of user, it can be in the same of record times of exercise When, show times of exercise in image taking window.If trigger action of the user to stop motion is not detected, repeat Step 203 to step 205 process.After detecting the trigger action of stop motion, stop to run duration and times of exercise Record, and run duration when according to stop motion and times of exercise calculate the mean motion time each acted.For example, User is when pressing your body up from the floor with your arms and then lower it slowly, if detect the trigger action of stop motion, the run duration of record is 10 minutes, movement Number is 20 times, then the time for averagely doing a push-up is 30 seconds.
In the embodiments of the present disclosure, after detecting the trigger action of stop motion, movement when stop motion can be shown Times of exercise when time, stop motion and average run duration.Display interface can be image taking window interface, also can be one It is shown on a new interface, the embodiment of the present disclosure is to this without specifically limiting.
The method that the embodiment of the present disclosure provides periodically detects image after detecting the trigger action of setting in motion It whether shoots in window comprising specified body part;If calculating comprising specified body part in image taking window and specifying body The current area of body region image;Current area is compared with the preset area of specified body part image, and based on than Compared with result and present count state, times of exercise is recorded.Due to can remember automatically to exercise data after user's setting in motion Record so that user can attentively move without artificially recording exercise data, therefore the note of this kind of exercise data recording mode Record result is accurate, movement effects are good.
Fig. 3 is a kind of block diagram of exercise data recording device shown according to an exemplary embodiment.With reference to Fig. 3, the dress It sets including detection module 301, computing module 302, comparison module 303 and logging modle 304.
Wherein, detection module 301 is connect with computing module 302, for after detecting the trigger action of setting in motion, week Whether include specified body part in detection image shooting window to phase property;Computing module 302 is connect with comparison module 303, is used In when in image taking window comprising specified body part, the current area for specifying body part image is calculated;Comparison module 303 connect with logging modle 304, and for current area to be compared with preset area, preset area shoots for range image Window preset apart from when specify the area of body part image;Logging modle 304, for based on comparative result with current count shape State records times of exercise.
Optionally, logging modle 304, for when current area is not less than preset area, judging that present count state is No is unlocked state;If present count state is unlocked state, times of exercise is added one, and by present count state by unlocking State is converted to lock-out state.
Optionally, logging modle 304, for when current area is less than preset area, whether judging present count state For lock-out state;If present count state is lock-out state, present count state is converted into unlocked state by lock-out state.
Optionally, referring to Fig. 4, which further includes:
First display module 305, for when detecting the opening operation of motion recording function, image taking to be opened in display The prompt message of function;
Detection module 301, is additionally operable to after detecting the opening operation of image camera function, and detection image is shot in window Whether specified body part is included;
Computing module 302 is additionally operable to when in image taking window comprising specified body part, calculate and specify body part Range image shoot window preset apart from when initial area;
Setup module 306, for setting initial area to preset area.
Optionally, referring to Fig. 5, which further includes:
Logging modle 304, is additionally operable to after detecting the trigger action of setting in motion, start recording run duration;
Second display module 307, for showing run duration and times of exercise in image taking window.
Optionally, referring to Fig. 6, which further includes:
Logging modle 304, is additionally operable to after detecting the trigger action of stop motion, stops to run duration and movement time Several records;
Computing module 302, run duration when being additionally operable to according to stop motion and times of exercise, calculating each act flat Equal run duration;
Third display module 308, for when showing stop motion run duration, stop motion when times of exercise peace Equal run duration.
The device that the embodiment of the present disclosure provides periodically detects image after detecting the trigger action of setting in motion It whether shoots in window comprising specified body part;If calculating comprising specified body part in image taking window and specifying body The current area of body region image;Current area is compared with the preset area of specified body part image, and based on than Compared with result and present count state, times of exercise is recorded.Due to can remember automatically to exercise data after user's setting in motion Record so that user can attentively move without artificially recording exercise data, therefore the note of this kind of exercise data recording mode Record result is accurate, movement effects are good.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 7 is a kind of block diagram of exercise data recording device shown according to an exemplary embodiment.For example, device 700 Can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, Body-building equipment, personal digital assistant etc..
With reference to Fig. 7, device 700 may include following one or more components:Processing component 702, memory 704, power supply Component 706, multimedia component 704, audio component 710, input/output (I/O) interface 712, sensor module 714, Yi Jitong Believe component 716.
The integrated operation of 702 usual control device 700 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes instruction for any application program or method that are operated on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 may include power management system System, one or more power supplys and other generated with for device 700, management and the associated component of distribution electric power.
Multimedia component 708 is included in the screen of one output interface of offer between described device 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When device 700 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set Part 716 is sent.In some embodiments, audio component 710 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 712 provide interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 714 can detect the state that opens/closes of device 700, and the relative positioning of component, for example, it is described Component is the display and keypad of device 700, and sensor module 714 can be with 700 1 components of detection device 700 or device Position change, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700 Temperature change.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned exercise data record side Method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when the storage is situated between When instruction in matter is executed by the processor of mobile terminal so that mobile terminal is able to carry out above-mentioned exercise data recording method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. a kind of exercise data recording method, which is characterized in that the method includes:
After detecting the trigger action of setting in motion, whether periodically detect in image taking window comprising specified body Position;
If it includes the specified body part that described image, which is shot in window, calculate specified body part image works as front Product;
The current area is compared with preset area, the preset area be apart from described image shoot window preset away from From when the specified body part image area;
Based on comparative result and present count state, times of exercise is recorded;
Wherein, it is described based on comparative result and present count state, record times of exercise includes:If the current area is less than institute Preset area is stated, then judges whether the present count state is lock-out state;If the present count state is the locking The present count state is then converted to unlocked state by state by the lock-out state.
2. according to the method described in claim 1, it is characterized in that, it is described based on comparative result and present count state, record Times of exercise includes:
If the current area is not less than the preset area, judge whether the present count state is unlocked state;
If the present count state is the unlocked state, the times of exercise is added one, and by the current count shape State is converted to lock-out state by the unlocked state.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
When detecting the opening operation of motion recording function, the prompt message of image camera function is opened in display;
Whether include the specified body in detection described image shooting window after detecting the opening operation of image camera function Body region;
If it includes the specified body part that described image, which is shot in window, the specified body part is calculated apart from the figure As shooting window preset apart from when initial area;
Set the initial area to the preset area.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
After detecting the trigger action of setting in motion, start recording run duration;
The run duration and the times of exercise are shown in described image shoots window.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
After detecting the trigger action of stop motion, stop the record to the run duration and the times of exercise;
Run duration when according to stop motion and times of exercise calculate the mean motion time each acted;
Show stop motion when run duration, stop motion when times of exercise and the mean motion time.
6. a kind of exercise data recording device, which is characterized in that described device includes:
Detection module, for after detecting the trigger action of setting in motion, periodically detect in image taking window whether Including specified body part;
Computing module, for when it includes the specified body part that described image, which is shot in window, calculating and specifying body part The current area of image;
Comparison module, for the current area to be compared with preset area, the preset area is apart from described image Shoot window preset apart from when the specified body part image area;
Logging modle, for based on comparative result and present count state, recording times of exercise;
Wherein, the logging modle, for when the current area is less than the preset area, judging the current count shape Whether state is lock-out state;If the present count state is the lock-out state, by the present count state by described Lock-out state is converted to unlocked state.
7. device according to claim 6, which is characterized in that the logging modle is not small for working as the current area When the preset area, judge whether the present count state is unlocked state;If the present count state is described The times of exercise is then added one, and the present count state is converted to locking shape by the unlocked state by unlocked state State.
8. device according to claim 6, which is characterized in that described device further includes:
First display module, for when detecting the opening operation of motion recording function, image camera function to be opened in display Prompt message;
The detection module, is additionally operable to after detecting the opening operation of image camera function, and detection described image shoots window In whether include the specified body part;
The computing module is additionally operable to, when described image is shot in window comprising the specified body part, calculate the finger Determine body part apart from described image shooting window preset apart from when initial area;
Setup module, for setting the initial area to the preset area.
9. device according to claim 6, which is characterized in that described device further includes:
The logging modle, is additionally operable to after detecting the trigger action of setting in motion, start recording run duration;
Second display module, for showing the run duration and the times of exercise in shooting window in described image.
10. device according to claim 9, which is characterized in that described device further includes:
The logging modle, is additionally operable to after detecting the trigger action of stop motion, stops to the run duration and described The record of times of exercise;
The computing module, run duration when being additionally operable to according to stop motion and times of exercise, what calculating each acted is averaged Run duration;
Third display module, for when showing stop motion run duration, stop motion when times of exercise and described average Run duration.
11. a kind of exercise data recording device, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:After detecting the trigger action of setting in motion, image taking is periodically detected Whether include specified body part in window;If it includes the specified body part that described image, which is shot in window, calculating refers to Determine the current area of body part image;The current area is compared with preset area, the preset area is distance Described image shoot window preset apart from when the specified body part image area;Based on comparative result with current count shape State records times of exercise;
Wherein, the processor is additionally configured to:If the current area is less than the preset area, the current meter is judged Whether number state is lock-out state;If the present count state be the lock-out state, by the present count state by The lock-out state is converted to unlocked state.
CN201510822542.1A 2015-11-24 2015-11-24 Exercise data recording method and device Active CN105487656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510822542.1A CN105487656B (en) 2015-11-24 2015-11-24 Exercise data recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510822542.1A CN105487656B (en) 2015-11-24 2015-11-24 Exercise data recording method and device

Publications (2)

Publication Number Publication Date
CN105487656A CN105487656A (en) 2016-04-13
CN105487656B true CN105487656B (en) 2018-09-18

Family

ID=55674680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510822542.1A Active CN105487656B (en) 2015-11-24 2015-11-24 Exercise data recording method and device

Country Status (1)

Country Link
CN (1) CN105487656B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105920824A (en) * 2016-04-20 2016-09-07 上海斐讯数据通信技术有限公司 Method for recording movement times by adopting intelligent terminal and intelligent terminal used for recording movement times

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079011A (en) * 2013-01-08 2013-05-01 杭州电子科技大学 Android smart phone-based multifunctional bodybuilder system
CN103426025A (en) * 2013-08-23 2013-12-04 华南理工大学 Non-contact push-up count method based on smart phone platform
CN104383674A (en) * 2014-10-21 2015-03-04 小米科技有限责任公司 Counting method and device used for intelligent wearing equipment as well as intelligent wearing equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014194675A (en) * 2013-03-29 2014-10-09 Brother Ind Ltd Program and communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079011A (en) * 2013-01-08 2013-05-01 杭州电子科技大学 Android smart phone-based multifunctional bodybuilder system
CN103426025A (en) * 2013-08-23 2013-12-04 华南理工大学 Non-contact push-up count method based on smart phone platform
CN104383674A (en) * 2014-10-21 2015-03-04 小米科技有限责任公司 Counting method and device used for intelligent wearing equipment as well as intelligent wearing equipment

Also Published As

Publication number Publication date
CN105487656A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN105204742B (en) Control method, device and the terminal of electronic equipment
CN104158946B (en) A kind of method and device controlling terminal
CN104932455B (en) The group technology and apparatus for grouping of smart machine in intelligent domestic system
CN104933170B (en) Information displaying method and device
CN108519818A (en) Information cuing method and device
CN104182313B (en) Be delayed the method and apparatus taken pictures
CN107545569A (en) Method for recognizing impurities and device
CN105261131B (en) A kind of method and apparatus sending alert notification messages
CN105405249B (en) Collision-proof method, device, distance measuring sensor and terminal
CN108803980A (en) Operation recognition methods, device, equipment and the readable storage medium storing program for executing of equipment
CN106652113A (en) Access control method and device
CN108319836A (en) The method and apparatus for executing processing based on fingerprint recognition
CN108668080A (en) Prompt method and device, the electronic equipment of camera lens degree of fouling
CN107102801A (en) Terminal screen spinning solution and device
WO2021244058A1 (en) Process execution method, device, and readable medium
CN108898591A (en) Methods of marking and device, electronic equipment, the readable storage medium storing program for executing of picture quality
CN105468281B (en) The method and apparatus for showing set interface
CN104811904B (en) Contact person's setting method and device
CN106791394A (en) Image processing method and device
CN105589622B (en) Chat method and device based on barrage
CN105430639B (en) Information processing method and device
CN108241842A (en) Fingerprint identification method and device
CN104539497B (en) Method for connecting network and device
CN105487656B (en) Exercise data recording method and device
CN109376674A (en) Method for detecting human face, device and storage medium

Legal Events

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