CN105487656A - Exercise data recording method and device - Google Patents

Exercise data recording method and device Download PDF

Info

Publication number
CN105487656A
CN105487656A CN201510822542.1A CN201510822542A CN105487656A CN 105487656 A CN105487656 A CN 105487656A CN 201510822542 A CN201510822542 A CN 201510822542A CN 105487656 A CN105487656 A CN 105487656A
Authority
CN
China
Prior art keywords
exercise
body part
image
area
detected
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
CN201510822542.1A
Other languages
Chinese (zh)
Other versions
CN105487656B (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.)
Beijing Xiaomi Technology Co Ltd
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

The invention provides an exercise data recording method and device, and belongs to the technical field of terminals. The method comprises the following steps: periodically detecting whether an image shooting window comprises an appointed body part or not after detecting a trigger operation of starting an exercise; if the image shooting window comprises the appointed body part, calculating current area of an image of the appointed body part; and comparing the current area with preset area of the image of the appointed body part, and recording the exercise times on the basis of the comparison result and the current counting state. The exercise data recording device can automatically record exercise data after a user starts the exercise; and the user can focus on the exercise without artificially recording the exercise data, so that the exercise data recording method is accurate in recording result and good in exercise effect.

Description

Exercise data recording method and device
Technical field
The disclosure relates to field of terminal technology, particularly relates to a kind of exercise data recording method and device.
Background technology
Motion is the important channel of fitness of keeping fit, improve.The mode of motion has a variety of, such as push-up, sit-ups, dumbbell exercise, seat body forerunner etc.When people are when moving, especially when doing some and having the special exercise of repetitive, the general exercise data needed by recording repetitive, such as times of exercise, knows the amount of exercise of self.When recording exercise data, usually needing in the process of motion, artificially repetitive each time being counted.Such as in the process pressed your body up from the floor with your arms and then lower it slowly, need oneself to read out or read silently the current number done at heart, recorded the times of exercise of this push-up by the memory of oneself.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of exercise data recording method and device, and described technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of exercise data recording method is provided, comprises:
After the trigger action of setting in motion being detected, periodically whether comprise appointment body part in detected image shooting window;
If comprise described appointment body part in described image taking window, then calculate the current area of specifying body part image;
Described current area and preset area are compared, described preset area is the area apart from appointment body part image described during described image taking window preset distance;
Result and present count state based on the comparison, record times of exercise.
Alternatively, described result based on the comparison and present count state, record times of exercise comprises:
If described current area is not less than described preset area, then judge whether described present count state is released state;
If described present count state is described released state, then described times of exercise is added one, and described present count state is converted to lock-out state by described released state.
Alternatively, described result based on the comparison and present count state, record times of exercise comprises:
If described current area is less than described preset area, then judge whether described present count state is lock-out state;
If described present count state is described lock-out state, then described present count state is converted to released state by described lock-out state.
Alternatively, described method also comprises:
When the open operation of motion recording function being detected, the information of image camera function is opened in display;
After the open operation of image camera function being detected, detect in described image taking window whether comprise described appointment body part;
If comprise described appointment body part in described image taking window, then calculate described appointment body part apart from initial area during described image taking window preset distance;
Described initial area is set to described preset area.
Alternatively, described method also comprises:
After the trigger action of setting in motion being detected, start to record run duration;
Described run duration and described times of exercise is shown in described image taking window.
Alternatively, described method also comprises:
After the trigger action of stop motion being detected, stop the record to described run duration and described times of exercise;
According to run duration during stop motion and times of exercise, calculate the mean motion time of each action;
Times of exercise when run duration during display stop motion, stop motion and described mean motion time.
According to the second aspect of disclosure embodiment, a kind of exercise data pen recorder is provided, comprises:
Whether detection module, for after the trigger action of setting in motion being detected, periodically comprise appointment body part in detected image shooting window;
Computing module, for when comprising described appointment body part in described image taking window, calculates the current area of specifying body part image;
Comparison module, for described current area and preset area being compared, described preset area is the area apart from appointment body part image described during described image taking window preset distance;
Logging modle, for result and present count state based on the comparison, record times of exercise.
Alternatively, described logging modle, for when described current area is not less than described preset area, judges whether described present count state is released state; If described present count state is described released state, then described times of exercise is added one, and described present count state is converted to lock-out state by described released state.
Alternatively, described logging modle, for when described current area is less than described preset area, judges whether described present count state is lock-out state; If described present count state is described lock-out state, then described present count state is converted to released state by described lock-out state.
Alternatively, described device also comprises:
First display module, for when the open operation of motion recording function being detected, the information of image camera function is opened in display;
Described detection module, also for after the open operation of image camera function being detected, detects in described image taking window whether comprise described appointment body part;
Described computing module, also for when comprising described appointment body part in described image taking window, calculates described appointment body part apart from initial area during described image taking window preset distance;
Module is set, for described initial area is set to described preset area.
Alternatively, described device also comprises:
Described logging modle, also for after the trigger action of setting in motion being detected, starts to record run duration;
Second display module, for showing described run duration and described times of exercise in described image taking window.
Alternatively, described device also comprises:
Described logging modle, also for after the trigger action of stop motion being detected, stops the record to described run duration and described times of exercise;
Described computing module, also for according to run duration during stop motion and times of exercise, calculates the mean motion time of each action;
3rd display module, times of exercise when run duration during for showing stop motion, stop motion and described mean motion time.
According to the third aspect of disclosure embodiment, a kind of exercise data pen recorder is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: after the trigger action of setting in motion being detected, periodically whether comprises appointment body part in detected image shooting window; If comprise described appointment body part in described image taking window, then calculate the current area of specifying body part image; Described current area and preset area are compared, described preset area is the area apart from appointment body part image described during described image taking window preset distance; Result and present count state based on the comparison, record times of exercise.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
After the trigger action of setting in motion being detected, periodically whether comprise appointment body part in detected image shooting window; If comprise appointment body part in image taking window, then calculate the current area of specifying body part image; Current area is compared with specifying the preset area of body part image, and result and present count state based on the comparison, record times of exercise.Due to automatically record can be carried out to exercise data after user's setting in motion, such that user can attentively move and without the need to recording exercise data artificially, therefore the record result of this kind of exercise data recording mode is accurate, movement effects is good.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of exercise data recording method according to an exemplary embodiment.
Fig. 2 is the process flow diagram of a kind of exercise data recording method according to an exemplary embodiment.
Fig. 3 is the block diagram of a kind of exercise data pen recorder according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of exercise data pen recorder according to an exemplary embodiment.
Fig. 5 is the block diagram of a kind of exercise data pen recorder according to an exemplary embodiment.
Fig. 6 is the block diagram of a kind of exercise data pen recorder according to an exemplary embodiment.
Fig. 7 is the block diagram of a kind of exercise data pen recorder according to an exemplary embodiment.
Embodiment
For making object of the present disclosure, technical scheme and advantage clearly, below in conjunction with accompanying drawing, disclosure embodiment is described in further detail.
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of exercise data recording method according to an exemplary embodiment, as shown in Figure 1, comprises the following steps:
In a step 101, after the trigger action of setting in motion being detected, periodically whether comprise appointment body part in detected image shooting window.
In a step 102, if comprise appointment body part in image taking window, then calculate the current area of specifying body part image.
In step 103, current area and preset area are compared.
Wherein, the area of body part image is specified when preset area is range image shooting window preset distance.
At step 104, result and present count state based on the comparison, record times of exercise.
Whether the method that disclosure embodiment provides, after trigger action setting in motion being detected, periodically comprise appointment body part in detected image shooting window; If comprise appointment body part in image taking window, then calculate the current area of specifying body part image; Current area is compared with specifying the preset area of body part image, and result and present count state based on the comparison, record times of exercise.Due to automatically record can be carried out to exercise data after user's setting in motion, such that user can attentively move and without the need to recording exercise data artificially, therefore the record result of this kind of exercise data recording mode is accurate, movement effects is good.
Alternatively, result and present count state based on the comparison, record times of exercise comprises:
If current area is not less than preset area, then judge whether present count state is released state;
If present count state is released state, then times of exercise is added one, and present count state is converted to lock-out state by released state.
Alternatively, result and present count state based on the comparison, record times of exercise comprises:
If current area is less than preset area, then judge whether present count state is lock-out state;
If present count state is lock-out state, then present count state is converted to released state by lock-out state.
Alternatively, the method also comprises:
When the open operation of motion recording function being detected, the information of image camera function is opened in display;
After the open operation of image camera function being detected, in detected image shooting window, whether comprise appointment body part;
If comprise appointment body part in image taking window, then calculate initial area when specifying body part range image shooting window preset distance;
Initial area is set to preset area.
Alternatively, the method also comprises:
After the trigger action of setting in motion being detected, start to record run duration;
Run duration and times of exercise is shown in image taking window.
Alternatively, the method also comprises:
After the trigger action of stop motion being detected, stop the record to run duration and times of exercise;
According to run duration during stop motion and times of exercise, calculate the mean motion time of each action;
Times of exercise when run duration during display stop motion, stop motion and average run duration.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation embodiment of the present disclosure, this is no longer going to repeat them.
Fig. 2 is the process flow diagram of a kind of exercise data recording method according to an exemplary embodiment, as shown in Figure 2, comprises the following steps:
In step 201, when the open operation of motion recording function being detected, the information of image camera function is opened in display.
In the disclosed embodiments, in order to special exercise push-up, sit-ups, dumbbell exercise, seat body forerunner, chin-up etc. to repetitive carries out exercise data record, present disclose provides and utilize image recognition to record the function of exercise data.Wherein, this function can by independently APP (Application, an application program) realization, and a function that also can carry as terminal system realizes, and disclosure embodiment does not specifically limit this.Due to when recording exercise data, terminal needs image recognition to record times of exercise, therefore needs first to open image camera function when recording exercise data.
In the process of specific implementation, terminal for user provides can operation interface, when user needs record exercise data, can perform the operation of opening movement writing function by operation interface at this.Wherein, the operation of opening movement writing function can realize by the opening movement switch on operation interface by being arranged on.Such as, operation interface can show opening movement switch, this opening movement switch can horizontally slip in a bounding box.Wherein, side, the left side can be closed condition side, and side, the right can be opening side.Under default conditions, this opening movement switch is in closed condition side, when detect this opening movement switch by closed condition Slideslip to opening side time, determine trigger action opening movement record being detected, opening movement writing function.
When terminal detects the open operation of motion recording function, the information of image camera function is opened in display, and this information can show by playing window.Wherein, this information can be the Word message of similar " the preposition or post-positioned pick-up head opened a terminal ".User further, the unlatching option of image camera function can also be shown, so that directly can open image camera function by triggering this unlatching option.When user does not need record exercise data, can closing movement writing function.
In step 202., after the open operation of image camera function being detected, obtain the preset area of specifying body part image.
In the disclosed embodiments, when user is when doing the special exercise with repetitive, the appointment body part of user 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, the head of user can repeated moving up and down.Now, if be placed on the ground of lower head by the terminal of opening image camera function, then can get the head image that area changes in repeatability, and head is the closer to terminal, the area of head image is larger.Therefore can judge whether user completes one-off according to the area change of the appointment body part image of user, and then record times of exercise.Before record times of exercise, terminal first need obtain the preset area of specifying body part, and this preset area can be used as an area reference, to use when recording times of exercise in subsequent step 205.Obtain and specify the process of the preset area of body part as follows:
After the open operation of image camera function being detected, display image taking window, and whether comprise appointment body part in detected image shooting window; If comprise appointment body part in image taking window, then calculate initial area when specifying body part range image shooting window preset distance; This initial area is set to preset area.
It should be noted that, in order to make the area of the appointment body part image of acquisition more accurate, when terminal obtains preset area, user need keep specifying body part to remain static.In order to give the setup time of user's abundance, can provide in image taking window and starting to take option, and after the trigger action starting to take option being detected, then perform in detected image shooting window whether comprise the step of specifying body part.
Such as, by ground as a reference plane, be mobile phone for terminal, if user is when pressing your body up from the floor with your arms and then lower it slowly, head is 15 centimetres apart from the minor increment on ground, ultimate range apart from ground is 45 centimetres, then user is before pressing your body up from the floor with your arms and then lower it slowly, and first mobile phone can be placed into the position apart from head predeterminable range, and camera is aimed at head, after making mobile phone the head of oneself be detected in image taking window, calculate the initial area of head image, and then get the preset area of head image.Wherein, predeterminable range can be the numerical value between head distance reference planes minor increment and ultimate range, such as 15 centimetres, 18 centimetres, 20 centimetres, 25 centimetres, 30 centimetres etc., can be selected voluntarily by user.In order to reach movement effects better, predeterminable range is preferably chosen and is greater than minor increment but closer to the numerical value of minor increment.Because after determining predeterminable range, when user's head is less than or equal to predeterminable range apart from ground, just determines one-off, and be designated as and once move.
It should be noted that, the appointment body part of user is different along with the difference of mode of motion.Such as when doing dumbbell exercise, the hand etc. of specifying body part to can be user is doing the body part of repetitive, and disclosure embodiment does not specifically limit this.And, obtain specify body part image time, can be and specify arbitrary side image of body part, determine according to the demand of concrete mode of motion, disclosure embodiment does not specifically limit equally to this.When opening image camera function, can open front-facing camera, also can open post-positioned pick-up head, disclosure embodiment does not specifically limit this.
In another embodiment, after the open operation of image camera function being detected, if terminal detects store the preset area that user specifies body part image, then directly can show the information of whether setting in motion, the trigger action of setting in motion detected in terminal after, perform following step 203.
In another embodiment, terminal can store the preset area of the appointment body part image for different motion.Before setting in motion, can show needle to the preset area list of different motion, when the selection operation of user to arbitrary preset area being detected, the preset area that preset area user chosen is moved as this.In addition, if the preset area stored is wrong, also can modify to it, upgrade or the operation such as deletion.
In step 203, after the trigger action of setting in motion being detected, periodically whether comprise appointment body part in detected image shooting window, if comprise appointment body part in image taking window, then perform following step 204.
In the disclosed embodiments, after getting the preset area of specifying body part image in terminal, the information of whether setting in motion can be shown, the content of information can be " when moving; head position needs than now position more near camera; just can be regarded as is once move " at every turn, to make user clearly complete the opportunity of condition and the setting in motion once moved.Terminal, after the trigger action of setting in motion being detected, starts to record run duration, and shows run duration in image taking window.Meanwhile, terminal periodically detected image can take in window whether comprise appointment body part.Wherein, sense cycle is Millisecond, and such as 50 milliseconds, 100 milliseconds, 150 milliseconds, 200 milliseconds etc., disclosure embodiment does not specifically limit this.Such as, when user is when pressing your body up from the floor with your arms and then lower it slowly, after the preset area getting user's head image, mobile phone can be placed on when pressing your body up from the floor with your arms and then lower it slowly immediately below head, and camera is aimed at head.If sense cycle is now 100 milliseconds, then user is in the process of motion, and mobile phone can detect in an image taking window whether comprise head every 100 milliseconds, if comprise, performs following step 204.If detect in image taking window and do not comprise appointment body part, then continue to perform in detected image shooting window whether comprise the step of specifying body part.Wherein, when whether comprising appointment body part in detected image shooting window, can based on realizations such as the detection algorithms of curvature scale space, disclosure embodiment does not specifically limit this.
In step 204, if comprise appointment body part in image taking window, then calculate the current area of specifying body part image.
In the disclosed embodiments, after the trigger action of setting in motion being detected, whether terminal can comprise appointment body part in constantly detected image shooting window.When in order to judge that terminal detects appointment body part in image taking window, whether user completes an action, namely whether complete and once move, then when appointment body part being detected, obtain and specify body part image and calculate the current area of specifying body part image, this current area and preset area are compared in subsequent step 205, and then judge whether to complete and once move.When calculating the area of specifying body part image, can based on realizations such as the Object Area Algorithms of chain code, disclosure embodiment does not specifically limit this.
In step 205, current area and preset area are compared, and result and present count state based on the comparison, record times of exercise.
In the disclosed embodiments, by the current area and preset area of specifying body part image being compared, judge whether user completes and once move, once move if complete, then times of exercise adds 1.Press your body up from the floor with your arms and then lower it slowly for user, if user is when arranging preset area, the distance between the head of user and terminal is 20 centimetres, and the initial area calculated is A1, and namely preset area is A1.So when the area of the head image got is more than or equal to A1, when the distance namely between the head and terminal of user is less than or equal to 20 centimetres, just can be regarded as and once move.When being less than 20 centimetres to prevent the distance between user's head and terminal in once moving, repeat to record times of exercise, the disclosure sets present count state.Wherein, present count state comprises released state and lock-out state, realizes by a status indication position.Such as status indication position is designated as released state for time " 0 ", is designated as lock-out state when status indication position is " 1 ".Now can record times of exercise according to the comparative result of current area and 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, then judge whether present count state is released state; If present count state is released state, then times of exercise is added one, and present count state is converted to lock-out state by released state.If current area is less than preset area, then judge whether present count state is lock-out state; If present count state is lock-out state, then present count state is converted to released state by lock-out state.
Or to press your body up from the floor with your arms and then lower it slowly motion for above-mentioned user, when user's head is apart from 19 centimetres, terminal, judge that the current area of head image is greater than preset area A1, if detect simultaneously, present count state is released state, then determine that the current area calculating head image is for the first time greater than A1, times of exercise is added 1, and present count state is converted to lock-out state by released state.If now when head continues to detect that the area of head image is greater than A1 in the process of fast mobile terminal, because present count state is lock-out state, therefore times of exercise can not be added 1, avoid repeat count.When user's head is apart from 21 centimetres, terminal, judge that the current area of head image is less than A1, if detect simultaneously, present count state is lock-out state, then determine that the area calculating head image is for the first time less than A1, and present count state conversion is converted to released state by lock-out state, indicate the end of this action, be prepared as next action and count.
In the disclosed embodiments, know current exercise data for the ease of user, while record times of exercise, times of exercise can be shown in image taking window.If the trigger action of user to stop motion do not detected, then the process of repeated execution of steps 203 to step 205.After the trigger action of stop motion being detected, stop the record to run duration and times of exercise, and according to run duration during stop motion and times of exercise, calculate the mean motion time of each action.Such as, user is when pressing your body up from the floor with your arms and then lower it slowly, if the moment of the trigger action of stop motion detected, the run duration of record is 10 minutes, and times of exercise is 20 times, then the time of on average doing a push-up is 30 seconds.
In the disclosed embodiments, after the trigger action of stop motion being detected, times of exercise when run duration when can show stop motion, stop motion and average run duration.Display interface can be image taking window interface, and also can show on a new interface, disclosure embodiment does not specifically limit this.
Whether the method that disclosure embodiment provides, after trigger action setting in motion being detected, periodically comprise appointment body part in detected image shooting window; If comprise appointment body part in image taking window, then calculate the current area of specifying body part image; Current area is compared with specifying the preset area of body part image, and result and present count state based on the comparison, record times of exercise.Due to automatically record can be carried out to exercise data after user's setting in motion, such that user can attentively move and without the need to recording exercise data artificially, therefore the record result of this kind of exercise data recording mode is accurate, movement effects is good.
Fig. 3 is the block diagram of a kind of exercise data pen recorder according to an exemplary embodiment.With reference to Fig. 3, this device comprises detection module 301, computing module 302, comparison module 303 and logging modle 304.
Wherein, detection module 301 is connected with computing module 302, for after the trigger action of setting in motion being detected, periodically whether comprises appointment body part in detected image shooting window; Computing module 302 is connected with comparison module 303, for when comprising appointment body part in image taking window, calculates the current area of specifying body part image; Comparison module 303 is connected with logging modle 304, for current area and preset area being compared, specifies the area of body part image when preset area is range image shooting window preset distance; Logging modle 304, for result and present count state based on the comparison, record times of exercise.
Alternatively, logging modle 304, for when current area is not less than preset area, judges whether present count state is released state; If present count state is released state, then times of exercise is added one, and present count state is converted to lock-out state by released state.
Alternatively, logging modle 304, for when current area is less than preset area, judges whether present count state is lock-out state; If present count state is lock-out state, then present count state is converted to released state by lock-out state.
Alternatively, see Fig. 4, this device also comprises:
First display module 305, for when the open operation of motion recording function being detected, the information of image camera function is opened in display;
Whether detection module 301, also for after the open operation of image camera function being detected, comprise appointment body part in detected image shooting window;
Computing module 302, also for when comprising appointment body part in image taking window, calculates initial area when specifying body part range image shooting window preset distance;
Module 306 is set, for initial area is set to preset area.
Alternatively, see Fig. 5, this device also comprises:
Logging modle 304, also for after the trigger action of setting in motion being detected, starts to record run duration;
Second display module 307, for showing run duration and times of exercise in image taking window.
Alternatively, see Fig. 6, this device also comprises:
Logging modle 304, also for after the trigger action of stop motion being detected, stops the record to run duration and times of exercise;
Computing module 302, also for according to run duration during stop motion and times of exercise, calculates the mean motion time of each action;
3rd display module 308, times of exercise when run duration during for showing stop motion, stop motion and average run duration.
Whether the device that disclosure embodiment provides, after trigger action setting in motion being detected, periodically comprise appointment body part in detected image shooting window; If comprise appointment body part in image taking window, then calculate the current area of specifying body part image; Current area is compared with specifying the preset area of body part image, and result and present count state based on the comparison, record times of exercise.Due to automatically record can be carried out to exercise data after user's setting in motion, such that user can attentively move and without the need to recording exercise data artificially, therefore the record result of this kind of exercise data recording mode is accurate, movement effects is good.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 7 is the block diagram of a kind of exercise data pen recorder according to an exemplary embodiment.Such as, device 700 can be mobile phone, computing machine, 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 can comprise following one or more assembly: processing components 702, storer 704, power supply module 706, multimedia groupware 704, audio-frequency assembly 710, I/O (I/O) interface 712, sensor module 714, and communications component 716.
The integrated operation of the usual control device 700 of processing components 702, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 702 can comprise one or more processor 720 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 702 can comprise one or more module, and what be convenient between processing components 702 and other assemblies is mutual.Such as, processing components 702 can comprise multi-media module, mutual with what facilitate between multimedia groupware 708 and processing components 702.
Storer 704 is configured to store various types of data to be supported in the operation of device 700.The example of these data comprises for any application program of operation on device 700 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 704 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 706 is device 700 provide electric power.Power supply module 706 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 700 and be associated.
Multimedia groupware 708 is included in the screen providing an output interface between described device 700 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 708 comprises a front-facing camera and/or post-positioned pick-up head.When device 700 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 710 is configured to export and/or input audio signal.Such as, audio-frequency assembly 710 comprises a microphone (MIC), and when device 700 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 704 further or be sent via communications component 716.In certain embodiments, audio-frequency assembly 710 also comprises a loudspeaker, for output audio signal.
I/O interface 712 is for providing interface between processing components 702 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 714 comprises one or more sensor, for providing the state estimation of various aspects for device 700.Such as, sensor module 714 can detect the opening/closing state of device 700, the relative positioning of assembly, such as described assembly is display and the keypad of device 700, the position of all right pick-up unit 700 of sensor module 714 or device 700 1 assemblies changes, the presence or absence that user contacts with device 700, the temperature variation of device 700 orientation or acceleration/deceleration and device 700.Sensor module 714 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 714 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 714 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 716 is configured to the communication being convenient to wired or wireless mode between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 716 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 716 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 700 can be realized, for performing above-mentioned exercise data recording method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 704 of instruction, above-mentioned instruction can perform said method by the processor 720 of device 700.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform above-mentioned exercise data recording method.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. an exercise data recording method, is characterized in that, described method comprises:
After the trigger action of setting in motion being detected, periodically whether comprise appointment body part in detected image shooting window;
If comprise described appointment body part in described image taking window, then calculate the current area of specifying body part image;
Described current area and preset area are compared, described preset area is the area apart from appointment body part image described during described image taking window preset distance;
Result and present count state based on the comparison, record times of exercise.
2. method according to claim 1, is characterized in that, described result based on the comparison and present count state, and record times of exercise comprises:
If described current area is not less than described preset area, then judge whether described present count state is released state;
If described present count state is described released state, then described times of exercise is added one, and described present count state is converted to lock-out state by described released state.
3. method according to claim 1, is characterized in that, described result based on the comparison and present count state, and record times of exercise comprises:
If described current area is less than described preset area, then judge whether described present count state is lock-out state;
If described present count state is described lock-out state, then described present count state is converted to released state by described lock-out state.
4. method according to claim 1, is characterized in that, described method also comprises:
When the open operation of motion recording function being detected, the information of image camera function is opened in display;
After the open operation of image camera function being detected, detect in described image taking window whether comprise described appointment body part;
If comprise described appointment body part in described image taking window, then calculate described appointment body part apart from initial area during described image taking window preset distance;
Described initial area is set to described preset area.
5. method according to claim 1, is characterized in that, described method also comprises:
After the trigger action of setting in motion being detected, start to record run duration;
Described run duration and described times of exercise is shown in described image taking window.
6. method according to claim 5, is characterized in that, described method also comprises:
After the trigger action of stop motion being detected, stop the record to described run duration and described times of exercise;
According to run duration during stop motion and times of exercise, calculate the mean motion time of each action;
Times of exercise when run duration during display stop motion, stop motion and described mean motion time.
7. an exercise data pen recorder, is characterized in that, described device comprises:
Whether detection module, for after the trigger action of setting in motion being detected, periodically comprise appointment body part in detected image shooting window;
Computing module, for when comprising described appointment body part in described image taking window, calculates the current area of specifying body part image;
Comparison module, for described current area and preset area being compared, described preset area is the area apart from appointment body part image described during described image taking window preset distance;
Logging modle, for result and present count state based on the comparison, record times of exercise.
8. device according to claim 7, is characterized in that, described logging modle, for when described current area is not less than described preset area, judges whether described present count state is released state; If described present count state is described released state, then described times of exercise is added one, and described present count state is converted to lock-out state by described released state.
9. device according to claim 7, is characterized in that, described logging modle, for when described current area is less than described preset area, judges whether described present count state is lock-out state; If described present count state is described lock-out state, then described present count state is converted to released state by described lock-out state.
10. device according to claim 7, is characterized in that, described device also comprises:
First display module, for when the open operation of motion recording function being detected, the information of image camera function is opened in display;
Described detection module, also for after the open operation of image camera function being detected, detects in described image taking window whether comprise described appointment body part;
Described computing module, also for when comprising described appointment body part in described image taking window, calculates described appointment body part apart from initial area during described image taking window preset distance;
Module is set, for described initial area is set to described preset area.
11. devices according to claim 7, is characterized in that, described device also comprises:
Described logging modle, also for after the trigger action of setting in motion being detected, starts to record run duration;
Second display module, for showing described run duration and described times of exercise in described image taking window.
12. devices according to claim 11, is characterized in that, described device also comprises:
Described logging modle, also for after the trigger action of stop motion being detected, stops the record to described run duration and described times of exercise;
Described computing module, also for according to run duration during stop motion and times of exercise, calculates the mean motion time of each action;
3rd display module, times of exercise when run duration during for showing stop motion, stop motion and described mean motion time.
13. 1 kinds of exercise data pen recorders, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: after the trigger action of setting in motion being detected, periodically whether comprises appointment body part in detected image shooting window; If comprise described appointment body part in described image taking window, then calculate the current area of specifying body part image; Described current area and preset area are compared, described preset area is the area apart from appointment body part image described during described image taking window preset distance; Result and present count state based on the comparison, record times of exercise.
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 true CN105487656A (en) 2016-04-13
CN105487656B 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)

Cited By (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 (4)

* 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
JP2014194675A (en) * 2013-03-29 2014-10-09 Brother Ind Ltd Program and communication device
CN104383674A (en) * 2014-10-21 2015-03-04 小米科技有限责任公司 Counting method and device used for intelligent wearing equipment as well as intelligent wearing equipment

Patent Citations (4)

* 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
JP2014194675A (en) * 2013-03-29 2014-10-09 Brother Ind Ltd Program and communication device
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

Cited By (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

Also Published As

Publication number Publication date
CN105487656B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN104598111B (en) Switch the method and device of display pattern
CN104158946B (en) A kind of method and device controlling terminal
CN106454336B (en) The method and device and terminal that detection terminal camera is blocked
CN104182173A (en) Camera switching method and device
CN104394312A (en) Shooting control method and device
CN105468152A (en) Terminal operation control method and device based on wearable equipment, and equipment
CN105511631A (en) Gesture recognition method and device
CN105549849A (en) Method and device for processing misoperation instruction
CN104794382A (en) Application starting method and device
CN105183152A (en) Sport ability analysis method, apparatus and terminal
CN105517112A (en) Method and device for displaying WiFi network information
CN107608561A (en) Touch-screen control method and device
CN104049864B (en) object control method and device
CN104460185A (en) Automatic focusing method and device
CN105353901A (en) Method and apparatus for determining validity of touch operation
CN107102801A (en) Terminal screen spinning solution and device
CN104461568A (en) Electronic accessory recognition device and method
CN104243829A (en) Self-shooting method and self-shooting device
CN105224171A (en) icon display method, device and terminal
CN104123075B (en) The method of control terminal and device
CN103955274A (en) Application control method and device
CN105511777A (en) Session display method and device of touch display screen
CN104881342B (en) terminal test method and device
CN105468281A (en) Setup interface display method and device
CN104539497B (en) Method for connecting network and device

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