WO2023186009A1 - 计步方法及装置 - Google Patents

计步方法及装置 Download PDF

Info

Publication number
WO2023186009A1
WO2023186009A1 PCT/CN2023/085075 CN2023085075W WO2023186009A1 WO 2023186009 A1 WO2023186009 A1 WO 2023186009A1 CN 2023085075 W CN2023085075 W CN 2023085075W WO 2023186009 A1 WO2023186009 A1 WO 2023186009A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration
preset time
time period
user
sampling points
Prior art date
Application number
PCT/CN2023/085075
Other languages
English (en)
French (fr)
Inventor
王丰
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023186009A1 publication Critical patent/WO2023186009A1/zh

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers

Definitions

  • the present application belongs to the field of terminal technology, and specifically relates to a step counting method and device.
  • Existing step counting algorithms usually use an acceleration sensor to collect acceleration data when the user is walking, and calculate the number of steps taken by the user based on the collected acceleration data.
  • an acceleration sensor When the user is walking or running on a flat road, since the cycle similarity of the adjacent steps before and after is good, the similarity of the four pace cycles before and after the user can be combined in the acceleration data to calculate the number of walking steps.
  • the impulses of the three axes of acceleration in the collected acceleration data are relatively stable and do not frequently change directions and turns. In this type of scenario, the number of steps calculated using the existing step counting algorithm is more accurate.
  • the existing step counting method cannot calculate the number of steps in some scenarios such as mountain climbing, rock climbing, uneven road walking, or hiking in the wilderness with weak signals. Defects include low step accuracy and high energy consumption.
  • Embodiments of the present application provide a pedometer method and device to solve the problem that existing pedometer methods can calculate the number of steps in some scenarios such as mountain climbing, walking on uneven roads, or hiking in the wilderness with weak signals. The accuracy of the number of steps is low and the energy consumption is high.
  • embodiments of the present application provide a step counting method, including:
  • the user's movement change amount within the preset time period is greater than or equal to the preset variance threshold, based on the first acceleration, the second acceleration and the preset time period, The combined acceleration of the third acceleration and the acceleration of gravity determine the number of steps taken by the user within the preset time period.
  • embodiments of the present application also provide a pedometer device, including:
  • An acquisition unit configured to acquire the first acceleration, the second acceleration and the third acceleration of the three axes of the acceleration sensor in the terminal device within a preset time period, the first acceleration, the second acceleration and the third acceleration.
  • the acceleration is perpendicular to each other in the direction of acceleration;
  • a first determination unit configured to determine the amount of movement change of the user within the preset time period based on the first acceleration, the second acceleration, and the third acceleration within the preset time period;
  • a second determination unit configured to determine, based on the first acceleration within the preset time period, the The combined acceleration of the second acceleration and the third acceleration and the acceleration of gravity are used to determine the number of steps taken by the user within the preset time period.
  • inventions of the present application provide an electronic device.
  • the electronic device includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the programs or instructions are processed by the processor.
  • the step counting method as described in the first aspect is implemented.
  • embodiments of the present application provide a readable storage medium.
  • the readable storage medium Programs or instructions are stored on the processor, and when the programs or instructions are executed by the processor, the steps of the step counting method described in the first aspect are implemented.
  • inventions of the present application provide a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the first aspect. Described step counting method.
  • embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the step counting method as described in the first aspect.
  • the user's motion change amount can be determined based on the first acceleration, second acceleration, and third acceleration of the three axes of the acceleration sensor in the terminal device carried by the user, and when the motion change amount is large, For example, when the user is hiking in the wilderness where the signal is very weak or performing some sports where the periodic similarity of the front and back steps is disordered, that is, the movement is less stable, such as mountain climbing, rock climbing, and walking on uneven roads, it can be directly based on the user's
  • the total acceleration and gravity acceleration of the three axes of the carried terminal device within the preset time period are used to determine the actual number of steps taken by the user within the preset time period.
  • using this step counting method can also avoid the need to use the GPS module to locate the user when the signal is weak, reducing unnecessary power consumption.
  • Figure 1 is a schematic flow chart of the implementation of a step counting method provided by an embodiment of the present application
  • Figure 2 is a schematic curve diagram of the acceleration of the three axes of the acceleration sensor and its total acceleration when the user performs a jumping action in the pedometer method provided by the embodiment of the present application;
  • Figure 3 shows the acceleration of the three axes of the acceleration sensor in the pedometer method provided by the embodiment of the present application. And the schematic diagram of the curve of its combined acceleration when the smoothness of motion changes;
  • Figure 4 is a schematic structural diagram of a pedometer provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first,” “second,” etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
  • a step counting method is provided.
  • the execution subject of the method may be, but is not limited to, a wearable device such as a smart bracelet or a smart watch, or a mobile phone, tablet computer, etc. that can be configured to execute the method provided by the embodiment of the present application. At least one of the terminals.
  • the implementation of the method will be introduced below, taking as an example that the execution subject of the method is a terminal device capable of executing the method. It can be understood that the fact that the execution subject of the method is the terminal device is only an exemplary description and should not be understood as a limitation of the method.
  • the step counting method includes: first, obtaining the first acceleration, the second acceleration and the third acceleration of the three axes of the acceleration sensor in the terminal device within a preset time period. and the third acceleration are perpendicular to each other in the acceleration direction; then, based on the first acceleration, the second acceleration and the third acceleration within the preset time period, determine the user's movement change amount within the preset time period; finally, after the user When the motion change amount within the preset time period is greater than or equal to the preset variance threshold, based on the combined acceleration of the first acceleration, the second acceleration, and the third acceleration within the preset time period and the gravity acceleration, it is determined that the user is in the preset time period. Set the number of steps within the time period.
  • the user's motion change amount can be determined based on the first acceleration, second acceleration, and third acceleration of the three axes of the acceleration sensor in the terminal device carried by the user, and when the motion change amount is large, For example, when the user is hiking in the wilderness where the signal is very weak or performing some sports where the periodic similarity of the front and back steps is disordered, that is, the movement is less stable, such as mountain climbing, rock climbing, and walking on uneven roads, it can be directly based on the user's
  • the total acceleration and gravity acceleration of the three axes of the carried terminal device within the preset time period are used to determine the actual number of steps taken by the user within the preset time period.
  • using this step counting method can also avoid the need to use the Global Positioning System (GPS) module to locate the user when the signal is weak, reducing unnecessary power consumption.
  • GPS Global Positioning System
  • step counting method including:
  • the first acceleration, the second acceleration, and the third acceleration of the three axes of the acceleration sensor may be accelerations of the x, y, and z axes of the acceleration sensor respectively.
  • the embodiment of the present application can obtain the first acceleration, second acceleration and third acceleration of the three axes of the acceleration sensor in the terminal device of the user within the latest preset time period, for example, obtain the user's first acceleration, second acceleration and third acceleration in the last 20 seconds.
  • the first acceleration, the second acceleration and the third acceleration of the three axes of the acceleration sensor inside are used to determine whether the user has a jumping action, and then to determine the smoothness of the user's movement, so as to determine whether the cyclic similarity of adjacent steps is used.
  • the step counting method proposed in the embodiment of this application is still used to calculate the number of steps.
  • the embodiment of the present application can determine the user's movement change amount within the preset time period based on the first acceleration, second acceleration, and third acceleration of the three axes within the preset time period, and then determine the step counting method. , in order to more accurately calculate the user's actual number of steps.
  • the embodiment of the present application can first determine whether the user has some jumping movements within the preset time period, and then further determine the smoothness of the user's movement within the preset time period based on determining that the user may have some jumping movements. . Based on the first acceleration, second acceleration and third acceleration within the preset time period, determining the user's movement change amount within the preset time period includes:
  • the user's movement change amount within the preset time period is determined based on the first acceleration, the second acceleration, and the third acceleration within the preset time period.
  • the sum of the first acceleration, the second acceleration and the third acceleration of the designated sampling point within the preset time period is determined.
  • Acceleration specifically, can be obtained based on the square root of the sum of the squares of the first acceleration, the second acceleration, and the third acceleration of the designated sampling point within the preset time period, that is, taking each sample of the designated sampling point within the preset time period.
  • the total acceleration of the first acceleration, second acceleration and third acceleration of the point is
  • the designated sampling points within the preset time period can be selected according to actual needs. For example, the latest N sampling points within the preset time period can be selected (that is, the sampling points are sorted according to the order in which they occur, and the sampling points later in time can be selected. N sampling points), where N is a positive integer.
  • determine whether the user has a jumping action within the preset time period including:
  • the specified number of specified sampling points are the sampling points before the specified moment within the preset time period;
  • the value of the sum of the first acceleration, the second acceleration, and the third acceleration of the three axes of the acceleration sensor of the terminal device should be consistent with the value of the acceleration due to gravity.
  • the gravity acceleration can be subtracted from the total acceleration of the first acceleration, the second acceleration, and the third acceleration of the three axes to obtain the difference between the total acceleration and the gravity acceleration, and then the difference can be calculated further judgment.
  • the motion energy at a specified moment can be defined as the square of the difference between the sum of the first acceleration, the second acceleration, and the third acceleration of the three axes of the first eight adjacent sampling points at the specified moment and the gravity acceleration. average value.
  • the first acceleration, The second acceleration and the third acceleration are expressed as (x1, y1, z1), (x2, y2, z2), ..., (x8, y8, z8) respectively, then the first 8 samples adjacent to the specified time
  • the total acceleration of the first acceleration, the second acceleration and the third acceleration of the three axes of the point is
  • the motion energy at the specified moment is greater than or equal to the preset energy threshold and the second-order difference of the total acceleration at the specified moment is not greater than the preset threshold, then determine the motion energy of the sampling points within the preset time range before and after the specified moment.
  • the preset energy threshold can be set to 20 and the preset threshold to -10.
  • the second-order difference of the total acceleration at the specified time is the first-order difference of the first-order difference of the total acceleration at the specified time
  • the first-order difference of the total acceleration at the specified time is the previous total acceleration at the specified time minus the specified time. total acceleration.
  • the second-order difference of the total acceleration at the specified time is the first-order difference of the previous total acceleration at the specified time minus the first-order difference of the total acceleration at the specified time.
  • determining the motion energy of sampling points within a preset time range before and after a designated time may specifically determine the motion energy of sampling points within a preset range before and after the designated time. For example, if the preset time range is 3s and the sampling frequency is 25Hz, then there are 25 sampling points per second. Then the motion energy of the sampling points within the preset time range before and after the specified time is 75 within 3 seconds before and after the specified time. The motion energy of the sampling point.
  • the fluctuation amplitude of the motion energy of the sampling points within the preset time range before and after the specified moment can be used to determine Determine whether the user is in a state to perform a jump action at the specified moment. For example, whether the user is in a state of performing a jumping action at the specified moment can be determined based on the number of sampling points whose motion energy is less than 0.5 among 75 sampling points within 3 seconds before and after the specified moment.
  • picture 2 is a schematic curve diagram of the first acceleration, the second acceleration, the third acceleration and their combined acceleration of the three axes of the acceleration sensor in the pedometer method provided by the embodiment of the present application when the user has a jumping action.
  • Figure 2 it can be seen that the user's acceleration value is relatively stable during a period of time before and after the user jumps, that is, the change in movement is small.
  • determining the user's movement change amount within the preset time period includes:
  • the user's movement change amount within the preset time period is determined.
  • the first acceleration, the second acceleration and the third acceleration of the three axes at multiple sampling points are determined from the first acceleration, the second acceleration and the third acceleration of the three axes within a preset time period. Specifically, From the first acceleration, second acceleration and third acceleration of the three axes within the preset time period, determine the three axes of multiple sampling points (such as ten sampling points) in the latest period of time (such as within 20s) the first acceleration, the second acceleration and the third acceleration. For example, the acceleration of the three axes (Ax1, Ax2,..., Ax10, Ay1, Ay2,..., Ay10, Az1, Az2,..., Az10) every 2 seconds in the last 20 seconds can be determined. Among them, considering that it often takes 2s for a normal user to take a complete step, an interval of 2s can be selected as a sampling point.
  • A is the average value of Aa2-Aa1, Aa3-Aa2,..., Aa10-Aa9.
  • the user's movement change amount within the preset time period is determined, including:
  • the variance of the first-order difference of the summed acceleration of the first acceleration, the second acceleration and the third acceleration of the three axes of the multiple sampling points is greater than the preset variance threshold, determine the user's movement within the preset time period The amount of change is large;
  • the three axes of the multiple sampling points are determined.
  • the corresponding preset variance thresholds of the three axes can set a variance threshold for each axis, that is, set the preset variance threshold of the x-axis, the preset variance threshold of the y-axis, and the preset variance threshold of the z-axis. You can also set a unified preset variance threshold, which can be set according to the actual situation.
  • FIG. 3 is a schematic curve diagram of the acceleration of the three axes of the acceleration sensor and its total acceleration when the smoothness of motion changes in the pedometer method provided by the embodiment of the present application. It can be seen from Figure 3 that the movement change of the y-axis of the acceleration sensor is large.
  • the change amount of the user's movement within the preset time period is greater than or equal to the preset variance threshold, it may be determined that the change amount of the user's movement within the preset time period is large.
  • the number of steps taken by the user within the preset time period can be determined based on the combined acceleration of the first acceleration, the second acceleration, and the third acceleration of the three axes within the preset time period.
  • determining the number of steps taken by the user within the preset time period includes:
  • the number of steps taken by the user within the preset time period is determined.
  • the sampling point can be based on the 50 sampling points in the last two seconds within the preset time period.
  • the cube of the difference between the combined acceleration and the acceleration due to gravity determines the number of steps taken by the user in the last two seconds within the preset time period. Assume that the cube of the difference between the total acceleration and the gravity acceleration of the 50 sampling points in the last two seconds in the preset time period is sorted in chronological order: 5,25,55,90,30,-20,-10, 8,30,70,-5,....
  • the threshold is set to 125
  • the number greater than 125 from step1 to stepN can be regarded as the number of steps of the user within the preset time period.
  • the output will be 8 steps. That is, if the number of steps in the preset time period is greater than the value of the preset time period multiplied by 4, the number of steps of the user in the preset time period is determined based on the number of steps in the preset time period multiplied by 4.
  • the user's actual step counting method can be used.
  • the number of steps is calculated.
  • a low-pass filter can be used to filter the acceleration of the three axes of the acceleration sensor and its total acceleration (four axes in total) to obtain the output result; and then search for the peaks, troughs, and accelerations of the four axes after filtering. Characteristics such as height difference and time difference are calculated, and characteristics such as the deviation of four adjacent wave peaks and troughs are calculated.
  • the larger the value of the deviation diff the greater the deviation.
  • the preset deviation threshold may be 0.15. If the diff is not greater than the preset deviation threshold, it can be determined that the user's actual number of steps is calculated according to the normal step counting method.
  • the step counting method can determine the user's movement change amount based on the first acceleration, second acceleration, and third acceleration of the three axes of the acceleration sensor in the terminal device carried by the user, and calculate the When the amount of movement changes is large, such as when the user is hiking in the wilderness where the signal is very weak or performing some sports where the periodic similarity of the front and back steps is disordered, that is, the movement is less stable, For example, when climbing a mountain or walking on an uneven road, the user's acceleration within the preset time period can be directly determined based on the combined acceleration of the three axes of the terminal device carried by the user within the preset time period and the acceleration of gravity. Actual number of steps. At the same time, using this step counting method can also avoid the need to use the GPS module to locate the user when the signal is weak, reducing unnecessary power consumption.
  • the execution subject may be a step counting device.
  • the pedometer device performs the step counting method as an example to illustrate the pedometer device provided by the embodiment of the present application.
  • a schematic structural diagram of a pedometer 400 provided for an embodiment of the present application includes:
  • the acquisition unit 401 is used to acquire the first acceleration, the second acceleration and the third acceleration of the three axes of the acceleration sensor in the terminal device within a preset time period, the first acceleration, the second acceleration and the third acceleration. Three accelerations are perpendicular to each other in the acceleration direction;
  • the first determination unit 402 is configured to determine the user's movement change amount within the preset time period based on the first acceleration, the second acceleration, and the third acceleration within the preset time period;
  • the second determination unit 403 is configured to determine, based on the first acceleration in the preset time period, if the change amount of the user's movement in the preset time period is greater than or equal to the preset variance threshold.
  • the combined acceleration of the second acceleration and the third acceleration and the acceleration of gravity determine the number of steps taken by the user within the preset time period.
  • the second determining unit 403 is used to:
  • the number of steps taken by the user within the preset time period is determined based on the cube of the difference between the summed acceleration of the plurality of sampling points and the gravitational acceleration within the preset time period.
  • the second determining unit 403 is used to:
  • the number of steps taken by the user within the preset time period is determined.
  • the first determining unit 402 is used to:
  • the first acceleration, the second acceleration at the specified sampling point within the preset time period are determined.
  • the user has a jumping action within the preset time period, based on the first acceleration, the second acceleration and the third acceleration within the preset time period, it is determined that the user is in the preset time period. Describe the movement change amount within the preset time period.
  • the first determining unit 402 is used to:
  • the first acceleration, the second acceleration and the third acceleration of the plurality of sampling points are determined based on the first acceleration, the second acceleration and the third acceleration of the plurality of sampling points.
  • the movement change amount of the user within the preset time period is determined.
  • the first determining unit 402 is used to:
  • the motion energy at the designated time is greater than or equal to the preset energy threshold and the second-order difference of the total acceleration at the designated time is not greater than the preset threshold, based on the preset energy before and after the designated time, Assume the motion energy of the sampling points within the time range to determine whether the user has a jumping action within the preset time period.
  • the pedometer provided in the embodiment of the present application can determine the user's movement change amount based on the first acceleration, second acceleration and third acceleration of the three axes of the acceleration sensor in the terminal device carried by the user, and When the amount of movement changes is large, such as when the user is hiking in the wilderness where the signal is very weak, or when performing some sports where the periodic similarity of the front and back steps is disordered, that is, the movement is less stable, such as mountain climbing and walking on uneven roads. , the actual number of steps taken by the user within the preset time period can be determined directly based on the sum of the accelerations of the three axes of the terminal device carried by the user within the preset time period and the gravity acceleration. At the same time, using this step counting method can also avoid the need to use the GPS module to locate the user when the signal is weak, reducing unnecessary power consumption.
  • the pedometer device in the embodiment of the present application may be an electronic device or a component of the electronic device, such as an integrated circuit or chip.
  • the electronic device may be a terminal or other devices other than the terminal.
  • the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile internet device (Mobile Internet Device, MID), or augmented reality (AR)/virtual reality (VR).
  • the pedometer device in the embodiment of the present application may be a device with an operating system.
  • the operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
  • the pedometer device provided by the embodiment of the present application can implement various processes implemented by the method embodiments of Figures 1 to 3. To avoid duplication, they will not be described again here.
  • this embodiment of the present application also provides an electronic device M05, which includes a processor M51 and a memory M52.
  • the memory M52 stores programs or instructions that can be run on the processor M51.
  • each step of the step counting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 600 includes but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor 610, etc. part.
  • the electronic device 600 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 610 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions.
  • the structure of the electronic device shown in Figure 6 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
  • the processor 610 obtains the first acceleration, the second acceleration and the third acceleration of the three axes of the acceleration sensor in the terminal device within a preset time period, the first acceleration, the second acceleration and the third acceleration.
  • Three accelerations are perpendicular to each other in the acceleration direction; based on the first acceleration, the second acceleration and the third acceleration within the preset time period, determine the movement change of the user within the preset time period amount; in the case where the user's movement change amount within the preset time period is greater than or equal to the preset variance threshold, based on the first acceleration, the second acceleration and the preset time period,
  • the combined acceleration of the third acceleration and the acceleration of gravity determine the number of steps taken by the user within the preset time period.
  • the processor 610 is also configured to determine the combined acceleration of the first acceleration, the second acceleration and the third acceleration at multiple sampling points within the preset time period; based on the preset time period The cube of the difference between the combined acceleration of the multiple sampling points within the time period and the acceleration due to gravity determines the number of steps taken by the user within the preset time period.
  • the processor 610 is also configured to determine, from the cube of the difference between the summed acceleration of the plurality of sampling points and the gravity acceleration within the preset time period, multiple values that are positive and continuous in time.
  • a set of values from the multiple sets of values, determine a target number whose sum of each set of values is greater than a set threshold; based on the target number, determine the number of steps taken by the user within the preset time period.
  • the processor 610 is also configured to determine a designated sampling point within the preset time period based on the first acceleration, the second acceleration, and the third acceleration within the preset time period.
  • the combined acceleration of the first acceleration, the second acceleration and the third acceleration based on the combined acceleration of the specified sampling point within the preset time period, it is determined that the user is within the preset time period. Whether there is a jumping action; if the user has a jumping action within the preset time period, based on the first acceleration, the second acceleration and the third acceleration within the preset time period , determine the user's movement change amount within the preset time period.
  • the processor 610 is further configured to determine the first acceleration at multiple sampling points from the first acceleration, the second acceleration and the third acceleration within the preset time period. , the second acceleration and the third acceleration, the plurality of sampling points are evenly distributed within the preset time period; the first acceleration, the second acceleration and the The third acceleration determines the total acceleration of the first acceleration, the second acceleration and the third acceleration of the multiple sampling points; determines the first-order difference of the total acceleration of the multiple sampling points. Variance; based on the variance of the first-order difference of the summed acceleration of the multiple sampling points, determine the change amount of the user's motion within the preset time period.
  • the processor 610 is further configured to determine the motion energy at the specified moment based on the combined acceleration of a specified number of specified sampling points, which is the specified moment within the preset time period. The previous sampling point; when the motion energy at the specified moment is greater than or equal to the preset energy threshold and the second-order difference of the total acceleration at the specified moment is not greater than the preset threshold, Based on the motion energy of the sampling points within the preset time range before and after the designated moment, it is determined whether the user has a jumping action within the preset time period.
  • the user's motion change amount can be determined based on the first acceleration, second acceleration, and third acceleration of the three axes of the acceleration sensor in the terminal device carried by the user, and based on the motion change amount.
  • the user can directly The actual number of steps taken by the user within the preset time period is determined based on the sum of the accelerations of the three axes of the terminal device carried by the user within the preset time period and the gravity acceleration.
  • using this step counting method can also avoid the need to use the GPS module to locate the user when the signal is weak, reducing unnecessary power consumption.
  • the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042.
  • the graphics processor 6041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
  • the display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072 .
  • Touch panel 6071 also called touch screen.
  • the touch panel 6071 may include two parts: a touch detection device and a touch processor.
  • Other input devices 6072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
  • Memory 609 may be used to store software programs as well as various data.
  • the memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 609 may include volatile memory or non-volatile memory, or memory 609 may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electrically erasable programmable read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory bus
  • the processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 610.
  • Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the step counting method embodiment is implemented and the same can be achieved. The technical effects will not be repeated here to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage media includes computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks, etc.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the above step counting method embodiment. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
  • Embodiments of the present application provide a computer program product.
  • the program product is stored in a storage medium.
  • the program product is executed by at least one processor to implement each process of the above pedometer method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.
  • the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk , CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.

Abstract

一种计步方法及装置,该计步方法包括:获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,第一加速度、第二加速度和第三加速度在加速度方向上两两垂直(S110);基于预设时间段内的第一加速度、第二加速度和第三加速度,确定用户在该预设时间段内的运动变化量(S120);在用户在预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于预设时间段内的第一加速度、第二加速度和第三加速度的合加速度以及重力加速度,确定用户在预设时间段内的步数(S130)。

Description

计步方法及装置
交叉引用
本发明要求在2022年03月31日提交中国专利局、申请号为202210329620.4、发明名称为“计步方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
技术领域
本申请属于终端技术领域,具体涉及一种计步方法及装置。
背景技术
现有的计步算法通常是采用加速度传感器采集用户行走时的加速度数据,并基于采集到的加速度数据计算用户的行走步数。这在用户在平整路面上走路或跑步时,由于其前后相邻的步伐的周期相似性较好,可以结合加速度数据中前后四个步伐周期的相似性来计算其行走步数。而且采集的加速度数据中的加速度三个轴的冲量比较平稳,不会频繁地改变方向拐弯,这类场景中采用现有的计步算法计算的步数比较准确。
而是在一些特殊的场景中,比如爬山攀岩、不平整的路面行走或者信号很弱的荒郊野外徒步时,由于用户前后步伐的周期相似性很紊乱,导致现有的计步算法计出的步数的准确率较低。
在实现本申请过程中,发明人发现现有技术中至少存在如下问题:现有的计步方法在一些爬山攀岩、不平整的路面行走或者信号很弱的荒郊野外徒步等场景中,计算的步数的准确率较低且能耗较大等缺陷。
发明内容
本申请实施例提供一种计步方法和装置,以解决现有的计步方法在一些爬山攀岩、不平整的路面行走或者信号很弱的荒郊野外徒步等场景中,计算 的步数的准确率较低且能耗较大等问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种计步方法,包括:
获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,所述第一加速度、所述第二加速度和所述第三加速度在加速度方向上两两垂直;
基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量;
在所述用户在所述预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度的合加速度以及重力加速度,确定所述用户在所述预设时间段内的步数。
第二方面,本申请实施例还提供一种计步装置,包括:
获取单元,用于获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,所述第一加速度、所述第二加速度和所述第三加速度在加速度方向上两两垂直;
第一确定单元,用于基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量;
第二确定单元,用于在所述用户在所述预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度的合加速度以及重力加速度,确定所述用户在所述预设时间段内的步数。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的计步方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质 上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的计步方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的计步方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的计步方法。
本申请实施例中,由于可以基于用户所携带的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度来确定用户的运动变化量,并在该运动变化量较大时,比如用户在信号很弱的荒郊野外徒步或是在进行一些前后步伐的周期相似性紊乱即运动平稳性较差的运动,比如爬山攀岩、在不平整的路面行走时,可以直接基于用户所携带的终端设备在预设时间段内的三个轴的加速度的合加速度和重力加速度,来确定用户在预设时间段内的实际步数。同时采用该计步方法还能避免信号较弱时需要借助GPS模块对用户进行定位识别,减少了不必要的功耗。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种计步方法的实现流程示意图;
图2为本申请实施例提供的计步方法中加速度传感器的三个轴的加速度及其合加速度在用户存在跳跃动作时的曲线示意图;
图3为本申请实施例提供的计步方法中加速度传感器的三个轴的加速度 及其合加速度在运动平稳性发生变化时的曲线示意图;
图4为本申请实施例提供的计步装置的结构示意图;
图5为本申请实施例提供的一种电子设备的硬件结构示意图;
图6为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。根据本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的计步方法进行详细地说明。
为解决现有的计步方法在一些爬山攀岩、不平整的路面行走或者信号很弱的荒郊野外徒步等场景中,计算的步数的准确率较低且能耗较大等问题,本申请提供一种计步方法,该方法的执行主体,可以但不限于智能手环、智能手表等可穿戴设备、或是手机、平板电脑、等能够被配置为执行本申请实施例提供的该方法用户终端中的至少一种。
为便于描述,下文以该方法的执行主体为能够执行该方法的终端设备为例,对该方法的实施方式进行介绍。可以理解,该方法的执行主体为终端设备只是一种示例性的说明,并不应理解为对该方法的限定。
具体地,本申请提供的计步方法包括:首先,获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,第一加速度、第二加速度和第三加速度在加速度方向上两两垂直;然后,基于预设时间段内的第一加速度、第二加速度和第三加速度,确定用户在预设时间段内的运动变化量;最后,在用户在预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于预设时间段内的第一加速度、第二加速度和第三加速度的合加速度以及重力加速度,确定用户在预设时间段内的步数。
本申请实施例中,由于可以基于用户所携带的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度来确定用户的运动变化量,并在该运动变化量较大时,比如用户在信号很弱的荒郊野外徒步或是在进行一些前后步伐的周期相似性紊乱即运动平稳性较差的运动,比如爬山攀岩、在不平整的路面行走时,可以直接基于用户所携带的终端设备在预设时间段内的三个轴的加速度的合加速度和重力加速度,来确定用户在预设时间段内的实际步数。同时采用该计步方法还能避免信号较弱时需要借助全球定位系统(Global Positioning System,GPS)模块对用户进行定位识别,减少了不必要的功耗。
下面结合图1所示的计步方法的具体实施流程示意图,对该方法的实施过程进行详细介绍,包括:
S110,获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,第一加速度、第二加速度和第三加速度在加速度方向上两两垂直。
其中,加速度传感器三个轴的第一加速度、第二加速度和第三加速度具体可以分别是加速度传感器的x、y、z轴的加速度。
应理解,当用户在进行一些爬山攀岩、在不平整的路面行走等前后步伐的周期相似性较紊乱的运动时,采用现有的利用前后相邻的步伐的周期相似性来计算步数的方式往往难以准确计算用户的实际步数。本申请实施例为了解决这一问题,可获取用户在最近的预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,比如获取在最近的20s内的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,用以判断用户是否存在跳跃动作,进而判断用户的运动平稳性,以便确定是利用前后相邻的步伐的周期相似性来计算步数,还是采用本申请实施例提出的计步方法来计算步数。
S120,基于预设时间段内的第一加速度、第二加速度和第三加速度,确定用户在预设时间段内的运动变化量。
应理解,当用户正在进行爬山攀岩、在不平整的路面行走等前后步伐的周期相似性较紊乱的运动时,其运动稳定性往往较差。本申请实施例基于这一点,可基于预设时间段内的三个轴的第一加速度、第二加速度和第三加速度,确定用户在预设时间段内的运动变化量,进而确定计步方法,以便更准确地计算用户的实际步数。
可选地,当用户进行一些前后步伐的周期相似性较紊乱的运动时,往往会有一些间断性的跳跃动作,即存在跳跃动作时,其运动平稳性较差的可能性也较大。本申请实施例基于这一点,可先判断用户在预设时间段内是否存在一些跳跃动作,在确定用户可能存在一些跳跃动作的基础上,再进一步确定用户在预设时间段内的运动平稳性。基于预设时间段内的第一加速度、第二加速度和第三加速度,确定用户在预设时间段内的运动变化量,包括:
基于预设时间段内的第一加速度、第二加速度和第三加速度,确定预设时间段内的指定采样点的第一加速度、第二加速度和第三加速度的合加速度;
基于预设时间段内的指定采样点的合加速度,确定所述用户在预设时间段内是否存在跳跃动作;
在用户在预设时间段内存在跳跃动作的情况下,基于预设时间段内的第一加速度、第二加速度和第三加速度,确定用户在预设时间段内的运动变化量。
其中,基于预设时间段内的第一加速度、第二加速度和第三加速度x、y、z,确定预设时间段内的指定采样点的第一加速度、第二加速度和第三加速度的合加速度,具体可基于预设时间段内的指定采样点的第一加速度、第二加速度和第三加速度的平方之和进行开根号获得,即取预设时间段内的指定采样点的各采样点的第一加速度、第二加速度和第三加速度的合加速度为预设时间段内的指定采样点可按实际需求来选择,比如可以选择预设时间段内最新的N个采样点(即按照时间发生的先后顺序对采样点进行排序,在时间上靠后的N个采样点),其中N为正整数。
可选地,基于预设时间段内的指定采样点的合加速度,确定用户在预设时间段内是否存在跳跃动作,包括:
基于指定数量的指定采样点的合加速度,确定指定时刻的运动能量,指定数量的指定采样点为预设时间段内的指定时刻之前的采样点;
在指定时刻的运动能量大于或等于预设能量阈值且指定时刻的合加速度的二阶差分不大于预设阈值的情况下,基于指定时刻前后的预设时间范围内的采样点的运动能量,确定用户在预设时间段内是否存在跳跃动作。
应理解,在终端设备处于静止状态或平稳运动状态时,终端设备的加速度传感器三个轴的第一加速度、第二加速度和第三加速度的合加速度的数值应与重力加速度的数值一致。为了准确确定终端设备的运动平稳性,可将三个轴的第一加速度、第二加速度和第三加速度的合加速度减去重力加速度得到合加速度与重力加速度的差值,再对该差值进行进一步的判断。
例如,可定义指定时刻的运动能量为与该指定时刻的相邻的前8个采样点的三个轴的第一加速度、第二加速度和第三加速度的合加速度与重力加速度之差的平方的平均值。具体而言,前8个采样点的三个轴的第一加速度、 第二加速度和第三加速度分别表示为(x1,y1,z1)、(x2,y2,z2)、……、(x8,y8,z8),则与该指定时刻的相邻的前8个采样点的三个轴的第一加速度、第二加速度和第三加速度的合加速度为 与该指定时刻的相邻的前8个采样点的三个轴的第一加速度、第二加速度和第三加速度的合加速度与重力加速度之差的平方的平均值avg可表示为avg=((a1-g)2+(a2-g)2+…+(a8-g)2)/8。
例如,如果指定时刻的运动能量大于或等于预设能量阈值且所述指定时刻的合加速度的二阶差分不大于预设阈值,则确定指定时刻前后的预设时间范围内的采样点的运动能量,具体可设定预设能量阈值为20,预设阈值为-10。其中,指定时刻的合加速度的二阶差分为该指定时刻的合加速度的一阶差分的一阶差分,而指定时刻的合加速度的一阶差分为指定时刻的前一个合加速度减去指定时刻的合加速度。指定时刻的合加速度的二阶差分即为指定时刻的前一个合加速度的一阶差分减去指定时刻的合加速度的一阶差分。
例如,确定指定时刻前后的预设时间范围内的采样点的运动能量具体可确定指定时刻之前和指定时刻之后的预设范围内的采样点的运动能量。比如该预设时间范围为3s,采样频率为25Hz,则每秒有25个采样点,则指定时刻前后的预设时间范围内的采样点的运动能量即为指定时刻前后3秒内的75个采样点的运动能量。
应理解,在用户进行跳跃动作前后的预设时间范围内,用户往往处于静止或小幅波动的状态,因此,可基于指定时刻前后的预设时间范围内的采样点的运动能量的波动幅度,来确定用户在指定时刻是否处于执行跳跃动作的状态。例如,可基于指定时刻前后3秒内的75个采样点的运动能量小于0.5的采样点的个数来确定用户在指定时刻是否处于执行跳跃动作的状态。具体可设定指定时刻前后3秒内的75个采样点的运动能量小于0.5的采样点的个数大于或等于15,即判断用户在指定时刻是否处于执行跳跃动作的状态。图 2为本申请实施例提供的计步方法中加速度传感器的三个轴的第一加速度、第二加速度和第三加速度及其合加速度在用户存在跳跃动作时的曲线示意图。图2中,可看出用户存在跳跃动作前后的一段时间内其加速度数值较为平稳,即运动变化量较小。
可选地,基于预设时间段内的第一加速度、第二加速度和第三加速度,确定用户在预设时间段内的运动变化量,包括:
从预设时间段内的所述第一加速度、第二加速度和第三加速度中,确定多个采样点的第一加速度、第二加速度和第三加速度,多个采样点在预设时间段内均匀分布;
基于多个采样点的第一加速度、第二加速度和第三加速度,确定多个采样点的第一加速度、第二加速度和第三加速度的合加速度;
确定多个采样点的合加速度的一阶差分的方差;
基于多个采样点的合加速度的一阶差分的方差,确定用户在预设时间段内的运动变化量。
例如,从预设时间段内的三个轴的第一加速度、第二加速度和第三加速度中,确定多个采样点的三个轴的第一加速度、第二加速度和第三加速度,具体可从预设时间段内的三个轴的第一加速度、第二加速度和第三加速度中,确定最近一段时间内(比如20s内)的多个采样点(比如十个采样点)的三个轴的第一加速度、第二加速度和第三加速度。比如可以确定最近20s内每2s的三个轴的加速度(Ax1、Ax2、……、Ax10,Ay1、Ay2、……、Ay10,Az1、Az2、……、Az10)。其中,考虑到正常用户走完整的一步往往需要2s,因此可选择间隔2s作为一个采样点。
再基于上述10个采样点的三个轴的第一加速度、第二加速度和第三加速度(Ax1、Ax2、……、Ax10,Ay1、Ay2、……、Ay10,Az1、Az2、……、Az10),确定多个采样点的三个轴的第一加速度、第二加速度和第三加速度 的合加速度(Aa1、Aa2、……、Aa10),其中,这10个采样点的三个轴的第一加速度、第二加速度和第三加速度的合加速度的一阶差分为(Aa2-Aa1、Aa3-Aa2、……、Aa10-Aa9),其方差其中A为Aa2-Aa1、Aa3-Aa2、……、Aa10-Aa9的平均值。
其中,基于多个采样点的三个轴的第一加速度、第二加速度和第三加速度的合加速度的一阶差分的方差,确定用户在预设时间段内的运动变化量,包括:
在多个采样点的三个轴的第一加速度、第二加速度和第三加速度的合加速度的一阶差分的方差大于预设的方差阈值的情况下,确定用户在预设时间段内的运动变化量较大;
在多个采样点的三个轴的第一加速度、第二加速度和第三加速度的合加速度的一阶差分的方差小于预设的方差阈值的情况下,确定多个采样点的三个轴的第一加速度、第二加速度和第三加速度的一阶差分的方差与对应的三个轴的预设方差阈值之间的关系;
在多个采样点的三个轴的第一加速度、第二加速度和第三加速度的一阶差分的方差中存在一个或多个轴的加速度的一阶差分的方差大于对应的预设方差阈值,则确定用户在预设时间段内的运动变化量较大。
其中,对应的三个轴的预设方差阈值可以为每个轴设置一个方差阈值,即分别设置x轴的预设方差阈值、y轴的预设方差阈值、以及z轴的预设方差阈值,也可以设置一个统一的预设方差阈值,具体可根据实际情况来设置。图3为本申请实施例提供的计步方法中加速度传感器的三个轴的加速度及其合加速度在运动平稳性发生变化时的曲线示意图。从图3可看出,加速度传感器的y轴的运动变化量较大。
S130,在用户在预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于预设时间段内的第一加速度、第二加速度和第三加速度的合加速度以及重力加速度,确定用户在预设时间段内的步数。
具体地,如果用户在预设时间段内的运动变化量大于或等于预设方差阈值则可确定用户在预设时间段内的运动变化量较大。此时,可基于预设时间段内的三个轴的第一加速度、第二加速度和第三加速度的合加速度,确定用户在预设时间段内的步数。
可选地,基于预设时间段内的第一加速度、第二加速度和第三加速度的合加速度以及重力加速度,确定用户在预设时间段内的步数,包括:
确定预设时间段内多个采样点的第一加速度、第二加速度和第三加速度的合加速度;
基于预设时间段内多个采样点的合加速度与重力加速度之差的三次方,确定用户在预设时间段内的步数。
例如,以采样频率为25Hz为例,每秒的采样点为25个,且考虑到用户完成一步的时间往往在两秒内,可基于预设时间段内最近两秒内的50个采样点的合加速度与重力加速度之差的三次方,确定用户在预设时间段内最近两秒内的步数。假设预设时间段内最近两秒内的50个采样点的合加速度与重力加速度之差的三次方按照时间先后顺序排序后为:5,25,55,90,30,-20,-10,8,30,70,-5,……。
可选地,基于预设时间段内多个采样点的合加速度与重力加速度之差的三次方,确定用户在所述预设时间段内的步数,包括:
从预设时间段内多个采样点的合加速度与重力加速度之差的三次方中,确定值为正数且在时间上连续的多组数值;
从多组数值中,确定各组数值之和大于设定阈值的目标个数;
基于目标个数,确定用户在预设时间段内的步数。
在获取了预设时间段内最近两秒内的50个采样点的合加速度与重力加速度之差的三次方按照时间先后顺序排序后为:5,25,55,90,30,-20,-10,8,30,70,-5,……之后,第一组值为正数且在时间上连续的数值之和为5+25+55+90+30=205,记为step1,第二组值为正数且在时间上连续的数值之和为8+30+70=108,记为step2,……,最后一组值为正数且在时间上连续的数值之和记为stepN,假设设定阈值为125,则step1~stepN中大于125的个数即可作为用户在预设时间段内的步数。
可选地,由于人类走路跑步的极限步数为每秒钟4步,如果两秒内超过8步,则按8步输出。即如果预设时间段内的步数如果大于预设时间段乘以4的数值,则按照预设时间段乘以4的步数确定预设时间段内的用户的步数。
可选地,如果用户在预设时间段内的运动变化量大于或等于预设方差阈值或者,用户在所述预设时间段内不存在跳跃动作,则可按照正常的计步方法对用户实际的步数进行计算。具体地,可使用低通滤波器对加速度传感器的三个轴的加速度及其合加速度(共计四个轴)滤波得到其输出结果;再针对滤波之后的四个轴的加速度查找波峰、波谷及其高度差和时间差等特征,并计算四个相邻波峰波谷的偏差度等特征。
其中,偏差度的计算过程为分别从滤波后的四个轴的加速度数据中确定极大值点和极小值点作为可能的波峰波谷,再计算从波谷到波峰的高度增量dy1(即波峰的振幅减去波谷的振幅)以及下一个波谷到波峰的高度增量dy2,再计算偏差diff=(dy2-dy1)的绝对值/(dy2+dy1),该偏差diff的值越大则表明偏差度越大。例如,预设的偏差度阈值可以为0.15。如果diff不大于预设的偏差度阈值,则可确定按照正常的计步方法对用户实际的步数进行计算。
本申请实施例中提供的计步方法,由于可以基于用户所携带的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度来确定用户的运动变化量,并在该运动变化量较大时,比如用户在信号很弱的荒郊野外徒步或是在进行一些前后步伐的周期相似性紊乱即运动平稳性较差的运动, 比如爬山攀岩、在不平整的路面行走时,可以直接基于用户所携带的终端设备在预设时间段内的三个轴的加速度的合加速度和重力加速度,来确定用户在预设时间段内的实际步数。同时采用该计步方法还能避免信号较弱时需要借助GPS模块对用户进行定位识别,减少了不必要的功耗。
需要说明的是,本申请实施例提供的计步方法,执行主体可以为计步装置。本申请实施例中以计步装置执行计步方法为例,说明本申请实施例提供的计步装置。
如图4所示,为本申请实施例提供的计步装置400的结构示意图,包括:
获取单元401,用于获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,所述第一加速度、所述第二加速度和所述第三加速度在加速度方向上两两垂直;
第一确定单元402,用于基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量;
第二确定单元403,用于在所述用户在所述预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度的合加速度以及重力加速度,确定所述用户在所述预设时间段内的步数。
可选地,在一种实施方式中,所述第二确定单元403,用于:
确定所述预设时间段内多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
基于所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方,确定所述用户在所述预设时间段内的步数。
可选地,在一种实施方式中,所述第二确定单元403,用于:
从所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方中,确定值为正数且在时间上连续的多组数值;
从所述多组数值中,确定各组数值之和大于设定阈值的目标个数;
基于所述目标个数,确定所述用户在所述预设时间段内的步数。
可选地,在一种实施方式中,所述第一确定单元402,用于:
基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定所述预设时间段内的指定采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
基于所述预设时间段内的指定采样点的合加速度,确定所述用户在所述预设时间段内是否存在跳跃动作;
在所述用户在所述预设时间段内存在跳跃动作的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量。
可选地,在一种实施方式中,所述第一确定单元402,用于:
从所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度中,确定多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,所述多个采样点在所述预设时间段内均匀分布;
基于所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,确定所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
确定所述多个采样点的合加速度的一阶差分的方差;
基于所述多个采样点的合加速度的一阶差分的方差,确定所述用户在所述预设时间段内的运动变化量。
可选地,在一种实施方式中,所述第一确定单元402,用于:
基于指定数量的指定采样点的合加速度,确定指定时刻的运动能量,所述指定数量的指定采样点为所述预设时间段内的所述指定时刻之前的采样点;
在所述指定时刻的运动能量大于或等于预设能量阈值且所述指定时刻的合加速度的二阶差分不大于预设阈值的情况下,基于所述指定时刻前后的预 设时间范围内的采样点的运动能量,确定所述用户在所述预设时间段内是否存在跳跃动作。
本申请实施例中提供的计步装置,由于可以基于用户所携带的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度来确定用户的运动变化量,并在该运动变化量较大时,比如用户在信号很弱的荒郊野外徒步或是在进行一些前后步伐的周期相似性紊乱即运动平稳性较差的运动,比如爬山攀岩、在不平整的路面行走时,可以直接基于用户所携带的终端设备在预设时间段内的三个轴的加速度的合加速度和重力加速度,来确定用户在预设时间段内的实际步数。同时采用该计步方法还能避免信号较弱时需要借助GPS模块对用户进行定位识别,减少了不必要的功耗。
本申请实施例中的计步装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的计步装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的计步装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图5所示,本申请实施例还提供一种电子设备M05,包括处理器M51和存储器M52,存储器M52上存储有可在所述处理器M51上运行的程序或指令,该程序或指令被处理器M51执行时实现上述计步方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器610,获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,所述第一加速度、所述第二加速度和所述第三加速度在加速度方向上两两垂直;基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量;在所述用户在所述预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度的合加速度以及重力加速度,确定所述用户在所述预设时间段内的步数。
可选的,处理器610,还用于确定所述预设时间段内多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;基于所述预设 时间段内所述多个采样点的合加速度与重力加速度之差的三次方,确定所述用户在所述预设时间段内的步数。
可选的,处理器610,还用于从所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方中,确定值为正数且在时间上连续的多组数值;从所述多组数值中,确定各组数值之和大于设定阈值的目标个数;基于所述目标个数,确定所述用户在所述预设时间段内的步数。
可选的,处理器610,还用于基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定所述预设时间段内的指定采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;基于所述预设时间段内的指定采样点的合加速度,确定所述用户在所述预设时间段内是否存在跳跃动作;在所述用户在所述预设时间段内存在跳跃动作的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量。
可选的,处理器610,还用于从所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度中,确定多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,所述多个采样点在所述预设时间段内均匀分布;基于所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,确定所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;确定所述多个采样点的合加速度的一阶差分的方差;基于所述多个采样点的合加速度的一阶差分的方差,确定所述用户在所述预设时间段内的运动变化量。
可选的,处理器610,还用于基于指定数量的指定采样点的合加速度,确定指定时刻的运动能量,所述指定数量的指定采样点为所述预设时间段内的所述指定时刻之前的采样点;在所述指定时刻的运动能量大于或等于预设能量阈值且所述指定时刻的合加速度的二阶差分不大于预设阈值的情况下, 基于所述指定时刻前后的预设时间范围内的采样点的运动能量,确定所述用户在所述预设时间段内是否存在跳跃动作。
采用本申请提供的电子设备,由于可以基于用户所携带的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度来确定用户的运动变化量,并在该运动变化量较大时,比如用户在信号很弱的荒郊野外徒步或是在进行一些前后步伐的周期相似性紊乱即运动平稳性较差的运动,比如爬山攀岩、在不平整的路面行走时,可以直接基于用户所携带的终端设备在预设时间段内的三个轴的加速度的合加速度和重力加速度,来确定用户在预设时间段内的实际步数。同时采用该计步方法还能避免信号较弱时需要借助GPS模块对用户进行定位识别,减少了不必要的功耗。
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072中的至少一种。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸处理器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器609可以包括易失性存储器或非易失性存储器,或者,存储器609可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable  PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器609包括但不限于这些和任意其它适合类型的存储器。
处理器610可包括一个或多个处理单元;可选的,处理器610集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述计步方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述计步方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述计步方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种计步方法,包括:
    获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,所述第一加速度、所述第二加速度和所述第三加速度在加速度方向上两两垂直;
    基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量;
    在所述用户在所述预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度的合加速度以及重力加速度,确定所述用户在所述预设时间段内的步数。
  2. 如权利要求1所述的方法,其中,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度的合加速度以及重力加速度,确定所述用户在所述预设时间段内的步数,包括:
    确定所述预设时间段内多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
    基于所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方,确定所述用户在所述预设时间段内的步数。
  3. 如权利要求2所述的方法,其中,基于所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方,确定所述用户在所述预设时间段内的步数,包括:
    从所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方中,确定值为正数且在时间上连续的多组数值;
    从所述多组数值中,确定各组数值之和大于设定阈值的目标个数;
    基于所述目标个数,确定所述用户在所述预设时间段内的步数。
  4. 如权利要求1所述的方法,其中,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量,包括:
    基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定所述预设时间段内的指定采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
    基于所述预设时间段内的指定采样点的合加速度,确定所述用户在所述预设时间段内是否存在跳跃动作;
    在所述用户在所述预设时间段内存在跳跃动作的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量。
  5. 如权利要求1或4所述的方法,其中,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量,包括:
    从所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度中,确定多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,所述多个采样点在所述预设时间段内均匀分布;
    基于所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,确定所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
    确定所述多个采样点的合加速度的一阶差分的方差;
    基于所述多个采样点的合加速度的一阶差分的方差,确定所述用户在所述预设时间段内的运动变化量。
  6. 如权利要求4所述的方法,其中,基于预设时间段内的指定采样点的合加速度,确定所述用户在所述预设时间段内是否存在跳跃动作,包括:
    基于指定数量的指定采样点的合加速度,确定指定时刻的运动能量,所述指定数量的指定采样点为所述预设时间段内的所述指定时刻之前的采样点;
    在所述指定时刻的运动能量大于或等于预设能量阈值且所述指定时刻的合加速度的二阶差分不大于预设阈值的情况下,基于所述指定时刻前后的预设时间范围内的采样点的运动能量,确定所述用户在所述预设时间段内是否存在跳跃动作。
  7. 一种计步装置,包括:
    获取单元,用于获取预设时间段内的终端设备中的加速度传感器三个轴的第一加速度、第二加速度和第三加速度,所述第一加速度、所述第二加速度和所述第三加速度在加速度方向上两两垂直;
    第一确定单元,用于基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量;
    第二确定单元,用于在所述用户在所述预设时间段内的运动变化量大于或等于预设方差阈值的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度的合加速度以及重力加速度,确定所述用户在所述预设时间段内的步数。
  8. 如权利要求7所述的装置,其中,所述第二确定单元,用于:
    确定所述预设时间段内多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
    基于所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方,确定所述用户在所述预设时间段内的步数。
  9. 如权利要求8所述的装置,其中,所述第二确定单元,用于:
    从所述预设时间段内所述多个采样点的合加速度与重力加速度之差的三次方中,确定值为正数且在时间上连续的多组数值;
    从所述多组数值中,确定各组数值之和大于设定阈值的目标个数;
    基于所述目标个数,确定所述用户在所述预设时间段内的步数。
  10. 如权利要求7所述的装置,其中,所述第一确定单元,用于:
    基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定所述预设时间段内的指定采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
    基于所述预设时间段内的指定采样点的合加速度,确定所述用户在所述预设时间段内是否存在跳跃动作;
    在所述用户在所述预设时间段内存在跳跃动作的情况下,基于所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度,确定用户在所述预设时间段内的运动变化量。
  11. 如权利要求7或10所述的装置,其中,所述第一确定单元,用于:
    从所述预设时间段内的所述第一加速度、所述第二加速度和所述第三加速度中,确定多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,所述多个采样点在所述预设时间段内均匀分布;
    基于所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度,确定所述多个采样点的所述第一加速度、所述第二加速度和所述第三加速度的合加速度;
    确定所述多个采样点的合加速度的一阶差分的方差;
    基于所述多个采样点的合加速度的一阶差分的方差,确定所述用户在所述预设时间段内的运动变化量。
  12. 如权利要求10所述的装置,其中,所述第一确定单元,用于:
    基于指定数量的指定采样点的合加速度,确定指定时刻的运动能量,所述指定数量的指定采样点为所述预设时间段内的所述指定时刻之前的采样点;
    在所述指定时刻的运动能量大于或等于预设能量阈值且所述指定时刻的合加速度的二阶差分不大于预设阈值的情况下,基于所述指定时刻前后的预设时间范围内的采样点的运动能量,确定所述用户在所述预设时间段内是否存在跳跃动作。
  13. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的计步方法的步骤。
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的计步方法的步骤。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-6任一项所述的计步方法的步骤。
  16. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1-6任一项所述的计步方法的步骤。
  17. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至6中任一项所述的计步方法的步骤。
PCT/CN2023/085075 2022-03-31 2023-03-30 计步方法及装置 WO2023186009A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210329620.4A CN114719883A (zh) 2022-03-31 2022-03-31 计步方法及装置
CN202210329620.4 2022-03-31

Publications (1)

Publication Number Publication Date
WO2023186009A1 true WO2023186009A1 (zh) 2023-10-05

Family

ID=82240813

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/085075 WO2023186009A1 (zh) 2022-03-31 2023-03-30 计步方法及装置

Country Status (2)

Country Link
CN (1) CN114719883A (zh)
WO (1) WO2023186009A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114719883A (zh) * 2022-03-31 2022-07-08 维沃移动通信有限公司 计步方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100024531A1 (en) * 2008-07-29 2010-02-04 Kyocera Corporation Mobile Device, Step Counting Method, and Gravity Direction Detecting Method
JP2011014157A (ja) * 2010-09-03 2011-01-20 Kyocera Corp 携帯機器、歩数カウント方法、重力方向検出方法、歩数カウントプログラムおよび重力方向検出プログラム
CN102445214A (zh) * 2011-09-20 2012-05-09 杭州电子科技大学 基于智能手机3d重力传感器的计步方法
CN104197952A (zh) * 2014-09-02 2014-12-10 百度在线网络技术(北京)有限公司 一种用户步行计步方法、装置及移动终端
CN106225803A (zh) * 2016-07-20 2016-12-14 浪潮软件集团有限公司 一种基于三轴加速器的计步方法
CN114034313A (zh) * 2021-11-10 2022-02-11 广东乐心医疗电子股份有限公司 计步方法和装置
CN114719883A (zh) * 2022-03-31 2022-07-08 维沃移动通信有限公司 计步方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100024531A1 (en) * 2008-07-29 2010-02-04 Kyocera Corporation Mobile Device, Step Counting Method, and Gravity Direction Detecting Method
JP2011014157A (ja) * 2010-09-03 2011-01-20 Kyocera Corp 携帯機器、歩数カウント方法、重力方向検出方法、歩数カウントプログラムおよび重力方向検出プログラム
CN102445214A (zh) * 2011-09-20 2012-05-09 杭州电子科技大学 基于智能手机3d重力传感器的计步方法
CN104197952A (zh) * 2014-09-02 2014-12-10 百度在线网络技术(北京)有限公司 一种用户步行计步方法、装置及移动终端
CN106225803A (zh) * 2016-07-20 2016-12-14 浪潮软件集团有限公司 一种基于三轴加速器的计步方法
CN114034313A (zh) * 2021-11-10 2022-02-11 广东乐心医疗电子股份有限公司 计步方法和装置
CN114719883A (zh) * 2022-03-31 2022-07-08 维沃移动通信有限公司 计步方法及装置

Also Published As

Publication number Publication date
CN114719883A (zh) 2022-07-08

Similar Documents

Publication Publication Date Title
JP6824433B2 (ja) カメラ姿勢情報の決定方法、決定装置、モバイル端末及びコンピュータプログラム
CN108596976B (zh) 相机姿态追踪过程的重定位方法、装置、设备及存储介质
US10102829B2 (en) Display rotation management
WO2023186009A1 (zh) 计步方法及装置
WO2018233623A1 (zh) 图像显示的方法和装置
CN108682037B (zh) 相机姿态追踪过程的重定位方法、装置、设备及存储介质
CN112004117B (zh) 视频播放方法及装置
CN113873148A (zh) 录像方法、装置、电子设备和可读存储介质
CN108829595B (zh) 测试方法、装置、存储介质及电子设备
CN111382701B (zh) 动作捕捉方法、装置、电子设备及计算机可读存储介质
WO2023134663A1 (zh) 运动的识别方法、装置、电子设备和可读存储介质
CN103460174A (zh) 增加用户界面元素
CN111813280B (zh) 显示界面的控制方法、装置、电子设备及可读存储介质
CN111263084B (zh) 基于视频的手势抖动检测方法、装置、终端和介质
CN114648556A (zh) 视觉跟踪方法、装置和电子设备
TW201818274A (zh) 視訊索引建立方法及應用其之裝置
CN114170620A (zh) 手掌位置确定方法、装置、电子设备及存储介质
CN110624240B (zh) 一种网络游戏的操作控制方法、装置、终端设备和介质
CN111159551A (zh) 用户生成内容的显示方法、装置及计算机设备
CN112861565A (zh) 确定轨迹相似度的方法、装置、计算机设备和存储介质
CN110163657A (zh) 基于流形学习算法的保险产品推荐方法及相关设备
CN109883442A (zh) 用于检测vr设备倾斜程度的方法和装置
CN113673224B (zh) 识别热门词汇的方法、装置、计算机设备及可读存储介质
WO2022062508A1 (zh) 地震数据静校正处理方法、装置、计算机设备和存储介质
CN110929093B (zh) 用于搜索控制的方法、装置、设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23778374

Country of ref document: EP

Kind code of ref document: A1