CN110260882B - Electronic map-based step counting method and device and electronic equipment - Google Patents

Electronic map-based step counting method and device and electronic equipment Download PDF

Info

Publication number
CN110260882B
CN110260882B CN201910556680.8A CN201910556680A CN110260882B CN 110260882 B CN110260882 B CN 110260882B CN 201910556680 A CN201910556680 A CN 201910556680A CN 110260882 B CN110260882 B CN 110260882B
Authority
CN
China
Prior art keywords
positioning
set range
determining
steps
electronic map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910556680.8A
Other languages
Chinese (zh)
Other versions
CN110260882A (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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910556680.8A priority Critical patent/CN110260882B/en
Publication of CN110260882A publication Critical patent/CN110260882A/en
Application granted granted Critical
Publication of CN110260882B publication Critical patent/CN110260882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Navigation (AREA)

Abstract

The invention provides a step counting method and device based on an electronic map and electronic equipment, wherein the method comprises the following steps: if the positioning determination enters a set range in the electronic map, reading a first step count, if the positioning determination leaves the set range, reading a second step count, determining a difference value between the first step count and the second step count, and determining the step count in the set range according to the difference value and a set coefficient so as to provide corresponding reward resources.

Description

Electronic map-based step counting method and device and electronic equipment
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a step counting method and device based on an electronic map and electronic equipment.
Background
With the improvement of the living standard of your people, people pay more and more attention to healthy life, and walk to become a family who is busy in work, or a preferred exercise mode of the crowd who can not carry out high-intensity training, walk at ten thousand steps every day, and the exercise mode that can play beneficial effect to the human body is confirmed.
In daily life, people can count walking steps by wearing a pedometer, and the conventional step counting method is single in function and cannot arouse the enthusiasm of users.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a step counting method based on an electronic map, which guides a user to enter a set range by counting the number of steps of the user entering the set range of the electronic map and providing corresponding rewards for the counted number of steps, thereby increasing the heat of the set range and having a certain interest.
The second purpose of the invention is to provide a step-counting device based on an electronic map.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a non-transitory computer-readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a step counting method based on an electronic map, including:
if the electronic map is positioned and determined to enter a set range in the electronic map, reading a first counting number;
if the positioning is determined to leave the set range, reading a second counting number;
determining a difference between the first number of steps and the second number of steps;
and determining the number of steps in the set range according to the difference and the set coefficient so as to provide corresponding reward resources.
Optionally, as a first possible implementation manner of the first aspect, before reading the first step count if the positioning is determined to enter the set range in the electronic map, the method further includes:
positioning, determining that the distance between the positioning device and the boundary of the set range is smaller than a first distance threshold value, and reducing a positioning interval;
after the positioning is determined to leave the set range, the method further comprises the following steps:
and the distance between the positioning determination and the set range boundary is larger than a second distance threshold value, and the positioning interval is increased.
Optionally, as a second possible implementation manner of the first aspect, the positioning interval is used to indicate an interval duration of two adjacent positioning; or, the positioning interval is used for indicating the interval step number of two adjacent positioning.
Optionally, as a third possible implementation manner of the first aspect, after determining, according to the difference and a set coefficient, the step number in the set range, the method further includes:
determining the total step number according to the step number in the set range and the step number outside the set range;
and providing corresponding reward resources according to the total steps.
Optionally, as a fourth possible implementation manner of the first aspect, before determining, according to the difference and a set coefficient, the step number in the set range, the method further includes:
determining a first moment when the first positioning enters the set range;
determining a second time when the mobile terminal is first positioned out of the set range after the first time;
and determining the coefficient according to the time length between the first time and the second time.
Optionally, as a fifth possible implementation manner of the first aspect, before determining, according to the difference and a set coefficient, the step number in the set range, the method further includes:
determining an activity area according to the position located in the set range;
and determining the coefficient according to the area of the activity area and/or the target position covered by the activity area.
Optionally, as a sixth possible implementation manner of the first aspect, before determining, according to the difference and a set coefficient, the step number in the set range, the method further includes:
determining an activity path according to the position located in the set range;
and determining the coefficient according to the length of the moving path and/or the target position passed by the moving path.
In order to achieve the above object, a second embodiment of the present invention provides an electronic map-based step counting device, including:
the first reading module is used for reading a first counting number if the electronic map is positioned and determined to enter a set range;
the second reading module is used for reading a second counting number if the positioning is determined to leave the set range;
a processing module for determining a difference between the first and second counts;
and the reward module is used for determining the number of steps in the set range according to the difference and the set coefficient so as to provide corresponding reward resources.
Optionally, as a first possible implementation manner of the second aspect, the apparatus further includes:
the frequency setting module is used for positioning, determining that the distance between the frequency setting module and the set range boundary is smaller than a first distance threshold value, and reducing the positioning interval;
the frequency setting module is further configured to:
and the distance between the positioning determination and the set range boundary is larger than a second distance threshold value, and the positioning interval is increased.
Optionally, as a second possible implementation manner of the second aspect, the positioning interval is used to indicate an interval duration of two adjacent positioning; or, the positioning interval is used for indicating the interval step number of two adjacent positioning.
Optionally, as a third possible implementation manner of the second aspect, the reward module is further configured to:
determining the total step number according to the step number in the set range and the step number outside the set range;
and providing corresponding reward resources according to the total steps.
Optionally, as a fourth possible implementation manner of the second aspect, the apparatus further includes:
the determining module is used for determining the first moment when the first positioning enters the set range; determining a second time when the mobile terminal is first positioned out of the set range after the first time; and determining the coefficient according to the time length between the first time and the second time.
Optionally, as a fifth possible implementation manner of the second aspect, the determining module is further configured to:
determining an activity area according to the position located in the set range;
and determining the coefficient according to the area of the activity area and/or the target position covered by the activity area.
Optionally, as a sixth possible implementation manner of the second aspect, the determining module is further configured to:
determining an activity path according to the position located in the set range;
and determining the coefficient according to the length of the moving path and/or the target position passed by the moving path.
To achieve the above object, an embodiment of a third aspect of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic map-based step counting method according to the first aspect is implemented.
To achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the electronic map-based step counting method according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
if the positioning determination enters the set range in the electronic map, reading the first step count, if the positioning determination leaves the set range, reading the second step count, determining the difference between the first step count and the second step count, and determining the step count in the set range according to the difference and the set coefficient so as to provide corresponding reward resources.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a step counting method based on an electronic map according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a setting range according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating another electronic map based step counting method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a step counting method based on an electronic map according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a step counting device based on an electronic map according to an embodiment of the present invention; and
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The electronic map based step counting method, device and electronic equipment according to the embodiments of the present invention are described below with reference to the accompanying drawings.
In the related art, the pedometer is only used for counting the number of steps taken by the user, and cannot guide the user and bring interesting experience to the user.
According to the step counting method based on the electronic map, if the positioning is determined to enter the set range in the electronic map, the first step counting number is read, if the positioning is determined to leave the set range, the second step counting number is read, the difference value between the first step counting number and the second step counting number is determined, the step counting number in the set range is determined according to the difference value and the set coefficient, so that corresponding reward resources are provided, corresponding reward is conducted on the step counting number counted in the set range through the set range in the electronic map, the purpose that a user is guided to enter the set range is achieved, the heat degree of the set range is improved, and meanwhile certain interestingness is achieved.
Fig. 1 is a schematic flow chart of a step counting method based on an electronic map according to an embodiment of the present invention.
As shown in fig. 1, the method comprises the steps of:
step 101, if the positioning is determined to enter the set range in the electronic map, reading a first counting number.
The set range in the electronic map may be a virtual range on the electronic map determined based on the electronic fence technology, where the set range may be any shape, such as a circular range or a polygonal range, and is not limited in this embodiment. The number of the setting ranges in the electronic map may be 1 or more, and the present embodiment is not limited thereto.
As a possible implementation manner, the position of the electronic device is obtained, where the electronic device may be a mobile phone, an intelligent pedometer, an intelligent bracelet, an intelligent wearable device, and the like, and this embodiment is not limited. The electronic device positions the position of the electronic device through a positioning module, such as a Global Positioning System (GPS), a Beidou positioning system, or a positioning mode based on a mobile base station, so that a management server can obtain the position positioned by the electronic device, the management server maps the obtained positioning position of the electronic device into a map coordinate system to obtain a position coordinate In the map coordinate system, judges whether the position of the electronic device enters a set range In an electronic map according to the position coordinate of the electronic device and a coordinate Point corresponding to the preset set range, as a possible implementation mode, can be determined through a Point-In-Polygon (PIP) algorithm, when the electronic device is positioned In the set range set by a user In the electronic map, a first step count is read, wherein the first step count is an initial step count when the user enters the set range In the electronic map, as a possible implementation manner, a step counting module is built in the electronic device, for example, a triaxial acceleration sensor chip calculates an acting force to obtain an acceleration, and then determines a traveling direction and a frequency, so as to calculate the number of steps of walking.
For example, as shown in fig. 2, 20 in fig. 2 indicates a setting range set in the electronic map, as shown in fig. 2, user a will enter the setting range 20, user B has left the setting range 20, and users C and D are moving within the setting range 20, where the setting range 20 may be a shopping mall, a commercial pedestrian street area, a certain park, a certain specific area, etc., the setting range 20 may be preset by an administrator in the management background, or the management background may be set and updated periodically according to an area with a high heat degree. Furthermore, when the user is located to enter the setting range 20 in the electronic map, the user can be prompted by voice that the user has entered the setting range, such as "you have entered the xx walking street area, stroll without worry, and have a reward", or the boundary of the setting range is highlighted by a display device or highlighted by color to prompt the user to enter the setting range, and the first step number is read, so that the user is guided to enter the setting range, and the passenger flow of merchants in the setting range is improved.
And 102, reading a second counting number if the positioning is determined to leave the set range.
Specifically, after entering the setting range, the user walks within the setting range, the step counting module of the electronic device counts steps to obtain a step count, if the user is positioned and determined to leave the setting range, the activity of the user in the setting range is finished, the second step count is read, and the second step count is used as a final step count when the user leaves the setting range, so that the second step count is greater than the first step count.
Step 103, determining a difference between the first step count and the second step count.
Specifically, the obtained second step count is subtracted from the first step count to obtain a difference between the first step count and the second step count, so that the step count of actual walking of the user carrying the electronic device in the set range is obtained.
And step 104, determining the number of steps within the set range according to the difference and the set coefficient so as to provide corresponding reward resources.
The set coefficient may be predetermined, and the set coefficient is greater than 1, for example, the set coefficient is 2, so as to double the step count corresponding to actual walking of the user in the set range, increase the confidence of walking of the user, and encourage the user to enter the set range, where the value of the set coefficient is not limited in this embodiment, and the method for determining the set coefficient will be described in detail in the subsequent embodiments.
Specifically, in order to achieve an incentive for the user to enter the setting range, the setting coefficient may be set to be greater than 1, the difference between the first count number of steps and the second count number of steps, multiplied by the setting coefficient, that is, the step number in the set range is obtained, so that the step number in the determined set range is larger than the difference value between the first step number and the second step number which are obtained by statistics in the set range, i.e. to realize the reward of the user for walking steps within a set range, e.g. the difference a between the first and second number of steps is 1000 steps, a set factor is 2, the obtained step count B in the set range is 2000, the step count B is greater than the step count A, and comprises 1000 rewarded steps, the number of steps of the user walking within the set range is doubled by 1, so that the user obtains the reward of the number of steps of the user walking within the set range, and the user preference degree of the user to the set range is improved. Furthermore, corresponding reward resources can be provided according to the calculated step number in the set range, the bonus resource is used to guide the user into a set range and increase the user's motivation to enter the set range, e.g., the bonus resource may be a language incentive, e.g., the animation effect displays that' if you walk 5000 steps with a stick, you are the most beautiful son on the street, and then, or providing the coupon and the like through merchants in a set range, if the step number of the determined user in the set range meets a preset threshold value, or the ranking is within the preset range, the coupons are issued, the coupons can be issued based on the ranking of the step number, the higher the ranking is, the higher the coupon sum is, the user is guided to enter the setting range again, the enthusiasm of the user for entering the setting range is improved, and meanwhile, the interestingness is achieved.
The numerical values in the present embodiment are only for illustration and do not limit the present embodiment.
According to the step counting method based on the electronic map, provided by the embodiment of the invention, if the positioning determination is in the set range in the electronic map, the first step counting number is read, if the positioning determination is out of the set range, the second step counting number is read, the difference value between the first step counting number and the second step counting number is determined, the step counting number in the set range is determined according to the difference value and the set coefficient, so that the corresponding reward resource is provided, and the step counting number counted in the set range is correspondingly rewarded through the set range in the electronic map, so that the purpose of guiding a user to enter the set range is realized, the heat degree of the set range is improved, and meanwhile, certain interestingness is achieved.
Based on the previous embodiment, this embodiment provides a possible implementation manner of another step counting method based on an electronic map, and fig. 3 is a schematic flow chart of another step counting method based on an electronic map according to an embodiment of the present invention.
As shown in fig. 3, the method may include the steps of:
step 301, the distance between the positioning determination and the set range boundary is smaller than a first distance threshold, and the positioning interval is reduced.
The positioning interval is used for indicating the interval duration of two adjacent positioning; alternatively, the positioning interval is used to indicate the number of interval steps between two adjacent positioning. For convenience of explanation, the increased positioning interval is referred to as a first positioning interval.
Specifically, a positioning module of the electronic device is configured to perform real-time positioning on a position of the electronic device, a positioning interval is preset, a boundary of a set range has a corresponding coordinate range in an electronic map, and according to a plurality of coordinates corresponding to the boundary of the current position and the set range, the current position of the electronic device is determined not to be within the boundary of the set range, that is, the user is not within the set range, and when it is determined that a distance between the current position and the boundary of the set range is smaller than a first threshold, that is, the distance between the user and the boundary of the set range is smaller than the first threshold, in order to improve accuracy of a first number of steps read when the user enters the set range, the positioning interval is reduced to obtain a first positioning interval, that is, an interval duration of two adjacent positioning is reduced, for example, positioning is performed once from 5 seconds, the positioning is reduced to 2 seconds once, namely the first positioning interval is 2 seconds once; or the number of steps between two adjacent positions is reduced, for example, from one position per 10 steps taken to one position per 3 steps taken, i.e., the first positioning interval is once per 3 steps. When the distance of the user approaching the boundary of the setting range is smaller than the first distance threshold, the positioning precision can be improved by reducing the positioning interval, so that the accuracy of the first counting number read when the user enters the setting range is improved.
Step 302, if the positioning is determined to enter the set range in the electronic map, reading a first counting number.
In this embodiment, after the positioning determination enters the setting range in the electronic map, when the positioning is performed until the user is within the setting range and the boundary between the user and the setting range is greater than the third threshold, that is, the user is within the setting range and is far from the boundary between the setting range, the positioning interval may be increased, that is, the first positioning interval is increased.
For the method of reading the first count number, step 101 in the previous embodiment may be referred to, and the distance is the same, which is not described herein again.
Step 303, reading a second counting number if the positioning is determined to leave the set range.
In this embodiment, when the user is positioned within the setting range and the user is close to the boundary of the setting range, the current second positioning interval is decreased, and for convenience of distinguishing, the positioning interval obtained after the second positioning interval is decreased is referred to as a third positioning interval, which can improve the positioning accuracy, so as to improve the accuracy of the second step number read when the user walks out of the boundary of the setting range.
The positioning interval values corresponding to the first positioning interval and the third positioning interval may be the same or different.
Step 303 may specifically refer to step 102 in the previous embodiment, and the principle is the same, which is not described herein again.
And step 304, determining that the distance between the positioning determination and the set range boundary is larger than a second distance threshold value, and increasing the positioning interval.
Specifically, according to the coordinates of the boundary between the current position located by the electronic device and the set range in the electronic map, it is determined that the current position of the electronic device is outside the boundary of the set range, that is, the user is not already within the set range, when it is determined that the distance between the current position and the boundary of the set range is greater than the second threshold, that is, the distance between the user and the boundary of the set range is greater than the second threshold, in order to reduce the power consumption of high-frequency positioning of the electronic device and the occupation of system resources, the positioning interval is increased, that is, the positioning interval is increased from the third positioning interval to the fourth positioning interval, specifically, the interval duration of two adjacent positioning is increased, for example, from one positioning at 5 seconds to one positioning at 10 seconds, or the interval step number of two adjacent positioning is increased, for example, from one positioning at every 10 steps, to one positioning at every 30 steps, when the distance of the user far away from the set range boundary is larger than the second distance threshold, the power consumption of the electronic equipment and the occupation of system resources are reduced by increasing the positioning interval.
It should be noted that the positioning intervals corresponding to the second positioning interval and the fourth positioning interval are smaller, and the values of the positioning intervals may be the same or different.
Step 305, determining a difference value between the first step count and the second step count;
and step 306, determining the number of steps within the set range according to the difference and the set coefficient so as to provide the corresponding reward resources.
Specifically, step 305 and step 306 may refer to step 103 and step 104 in the previous embodiment, and the principle is the same, and are not described here again.
And 307, determining the total step number according to the step number in the set range and the step number outside the set range, and providing corresponding reward resources according to the total step number.
As a possible implementation manner, for determining the total number of steps, the number of steps in the determined setting range and the number of steps read by the user outside the setting range may be determined, the number of steps outside the setting range may be the number of steps read by the user when the user enters the setting range, and may be a first number of steps, the first number of steps and the number of steps determined in the setting range are accumulated, and then the total number of steps is determined, and according to the total number of steps, corresponding reward resources are provided to improve the enthusiasm of the user when the user enters the setting range, and meanwhile, a manner of determining the reward resources is added, wherein description of the reward resources may refer to step 104 in the previous embodiment, and the principle is the same, and details are not repeated here.
As another possible implementation manner, the number of steps outside the setting range may also be that the user continues to walk after leaving the setting range, the electronic device counts the number of steps the user walks in real time, accumulates the number of steps in the setting range, the number of steps the user walks after leaving the setting range, and a first count number of steps read when the user enters the setting range to obtain a total number of steps the user walks, and provides a corresponding reward resource according to the total number of steps to improve the enthusiasm of the user for entering the setting range, where the description of the reward resource may refer to step 104 in the previous embodiment, and the principle is the same, and is not described here again.
In the step counting method based on the electronic map, the distance between the positioning determination and the boundary of the setting range is smaller than a first distance threshold value, the positioning interval is reduced, if the positioning determination enters the setting range in the electronic map, the first step counting number is read, if the positioning determination leaves the setting range, the second step counting number is read, and the distance between the positioning determination and the boundary of the setting range is larger than a second distance threshold value, the positioning interval is increased, the accuracy of the obtained first step counting number and the second step counting number is improved through the adjustment of the positioning interval, the power consumption of the electronic equipment and the occupation condition of system resources are reduced, the performance of the electronic equipment is improved, the difference between the first step counting number and the second step counting number is determined, the step number in the setting range is determined according to the difference and the set coefficient, and the total step number of the user walking in the setting range and outside the setting range can be further determined, corresponding reward resources are provided, the counted step number in the set range is rewarded correspondingly through the set range in the electronic map, the user is guided to enter the set range, the heat degree of the set range is improved, and meanwhile certain interestingness is achieved.
Based on the above embodiment, after the user is guided to enter the setting range, the number of steps the user walks within the setting range is doubled or increased by more times according to the set coefficient, so as to improve the walking enthusiasm of the user.
As shown in fig. 4, before step 306, the method further includes the following steps:
step 401, the set coefficients are determined.
As a possible implementation manner, a first time when the first positioning enters the setting range is determined, and a second time when the first positioning leaves the setting range is determined after the first time, specifically, when the positioning determines that the user carrying the electronic device enters the setting range, the current time, namely the first time, is read, similarly, when the positioning determines that the electronic device leaves the setting range, the current time, namely the second time, is read, according to the time length between the first time and the second time, a coefficient is determined, that is, the longer the time length that the user stays in the setting range after the user enters the setting range is, the longer the time length that the user walks in the setting range is, the larger the number of steps is, the larger the coefficient should be walked, that is, the more the number of steps is doubled, that the number of steps that the user needs to be rewarded is also larger, so as to promote the time length that the user stays in the setting range is longer, and the good sensitivity to the set range is increased, and the aims of increasing the passenger flow in the set range and the like are fulfilled. For example, if the duration between the first time and the second time is 20 minutes, the corresponding coefficient is 2; if the time period between the first and second time is 40 minutes, the corresponding factor is 3.
As another possible implementation manner, an activity area is determined according to the position located and obtained in the set range, and a coefficient is determined according to the area of the activity area and/or the target position covered by the activity area, where the area of the activity area and/or the target position covered by the activity area is proportional to the coefficient, because the larger the area of the activity area in the set range of the user, and/or the larger the target position covered by the activity area or the more the target position is, it is indicated that the larger the number of steps the user walks in the set range is, the larger the coefficient should be correspondingly determined, so that the more the number of steps is doubled, that is, the more the number of steps the user needs to be rewarded is, and by the number of rewarded steps, the user can obtain the corresponding rewarded resources, and the user is prompted to stay in the set range for a longer time in an easy and interesting manner, and the good sensitivity to the set range is increased, and the aims of increasing the passenger flow in the set range and the like are fulfilled. For example, if the area of the user moving within the set range is 2 km, the determined coefficient is 2; if the area of the user moving in the set range is 5 kilometers, the determined coefficient is 4; if the number of target positions covered by the user in the activity area within the set range is 3, the determined coefficient is 2; if the number of target positions covered by the user in the activity area within the set range is 6, the determined coefficient is 4; if the area of the user moving in the set range is 5 kilometers and the corresponding target positions are 7, the determined coefficient is 4.
The numbers in the present embodiment are for illustration only, and do not limit the present embodiment.
As another possible implementation manner, the activity path is determined according to the position located and obtained in the setting range, the coefficient is determined according to the length of the activity path and/or the target position passed by the activity path, wherein the length of the activity path and/or the number of the target positions passed by the activity path is proportional to the coefficient, because the longer the length of the activity path and/or the larger the number of the target positions passed by the activity path, the larger the number of steps taken by the user is represented, and thus the correspondingly determined coefficient should be larger, so that the number of steps doubled is larger, that is, the number of steps to be rewarded for the user is larger, and through the corresponding number of rewarded steps, the user can obtain the corresponding rewarded resources, and in an easy and interesting manner, the user is prompted to stay longer in the setting range, and the good feeling for the setting range is increased, the purpose of increasing the passenger flow in the set range is achieved.
In the step counting method based on the electronic map, before the step number in the set range is determined according to the difference and the set coefficient, the set coefficient is determined, and the setting coefficient is determined according to the positive proportional relation between the setting coefficient and the movement range of the user or the movement path of the user in the set range by determining the stay time of the user in the set range or the movement range of the user in the set range, so that the user is guided to enter the set range and the enthusiasm of the user in entering the set range is increased.
In order to realize the embodiment, the invention further provides a step counting device based on the electronic map.
Fig. 5 is a schematic structural diagram of a step counting device based on an electronic map according to an embodiment of the present invention.
As shown in fig. 5, the apparatus includes: a first reading module 51, a second reading module 52, a processing module 53 and a reward module 54.
The first reading module 51 is configured to read a first counting number if the location is determined to enter a set range in the electronic map.
And a second reading module 52, configured to read a second count number of steps if the positioning determination is out of the set range.
A processing module 53, configured to determine a difference between the first step count and the second step count.
And the reward module 54 is configured to determine the number of steps within the set range according to the difference and the set coefficient, so as to provide the corresponding reward resource.
Further, in a possible implementation manner of the embodiment of the present invention, the apparatus further includes: the device comprises a frequency setting module and a determining module.
And the frequency setting module is used for positioning, determining that the distance between the frequency setting module and the set range boundary is smaller than a first distance threshold value, and reducing the positioning interval.
The frequency setting module is further configured to:
and the distance between the positioning determination and the set range boundary is larger than a second distance threshold value, and the positioning interval is increased.
As a possible implementation manner, the positioning interval is used to indicate an interval duration of two adjacent positioning; or, the positioning interval is used for indicating the interval step number of two adjacent positioning.
The determining module is used for determining the first moment when the first positioning enters the set range; determining a second time when the mobile terminal is first positioned out of the set range after the first time; and determining the coefficient according to the time length between the first time and the second time.
As another possible implementation manner, the determining module is further configured to determine an activity area according to the position located in the setting range; and determining the coefficient according to the area of the activity area and/or the target position covered by the activity area.
As another possible implementation manner, the determining module determines the moving path according to the position located in the setting range; and determining the coefficient according to the length of the moving path and/or the target position passed by the moving path.
As a possible implementation manner, the reward module 54 is specifically configured to:
determining the total step number according to the step number in the set range and the step number outside the set range;
and providing corresponding reward resources according to the total steps.
It should be noted that the foregoing explanation of the embodiment of the step counting method is also applicable to the step counting device of the embodiment, and is not repeated herein.
In the electronic map-based step counting device, if the positioning is determined to enter the set range in the electronic map, the first step counting number is read, if the positioning is determined to leave the set range, the second step counting number is read, the difference value between the first step counting number and the second step counting number is determined, the step number in the set range is determined according to the difference value and the set coefficient, so that corresponding reward resources are provided, corresponding reward is carried out on the step counting number counted in the set range through the set range in the electronic map, the purpose of guiding a user to enter the set range is achieved, the heat of the set range is improved, and meanwhile, certain interestingness is achieved.
In order to implement the foregoing embodiment, the present invention further provides an electronic device, and fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 6, an electronic device 110 includes a memory 111, a processor 112, and a computer program 113 stored in the memory 111 and capable of running on the processor 112, and when the processor 112 executes the computer program, the electronic map-based step counting method according to the foregoing method embodiment is implemented.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the electronic map-based step counting method as described in the foregoing method embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A step counting method based on an electronic map is characterized by comprising the following steps:
if the electronic map is positioned and determined to enter a set range in the electronic map, reading a first counting number;
if the positioning is determined to leave the set range, reading a second counting number;
determining a difference between the first number of steps and the second number of steps;
determining an activity path according to the position located in the set range;
determining a set coefficient according to the length of the moving path and/or the target position passed by the moving path;
determining the number of steps in the set range according to the difference and the set coefficient so as to provide corresponding reward resources; the set coefficient value is greater than 1.
2. The step counting method according to claim 1, wherein before reading the first step counting number if the positioning is determined to enter the set range in the electronic map, the step counting method further comprises:
positioning, determining that the distance between the positioning device and the boundary of the set range is smaller than a first distance threshold value, and reducing a positioning interval;
after the positioning is determined to leave the set range, the method further comprises the following steps:
and the distance between the positioning determination and the set range boundary is larger than a second distance threshold value, and the positioning interval is increased.
3. The step counting method according to claim 2,
the positioning interval is used for indicating the interval duration of two adjacent positioning;
or, the positioning interval is used for indicating the interval step number of two adjacent positioning.
4. The step counting method according to claim 1, wherein after determining the number of steps within the set range according to the difference and the set coefficient, the step counting method further comprises:
determining the total step number according to the step number in the set range and the step number outside the set range;
and providing corresponding reward resources according to the total steps.
5. An electronic map-based step counting device, characterized in that the device comprises:
the first reading module is used for reading a first counting number if the electronic map is positioned and determined to enter a set range;
the second reading module is used for reading a second counting number if the positioning is determined to leave the set range;
the determining module is used for determining an activity path according to the position located in the set range; determining a set coefficient according to the length of the moving path and/or the target position passed by the moving path;
a processing module for determining a difference between the first and second counts;
the reward module is used for determining the number of steps in the set range according to the difference and the set coefficient so as to provide corresponding reward resources; wherein the set coefficient value is greater than 1.
6. The step counting device of claim 5, further comprising:
the frequency setting module is used for positioning, determining that the distance between the frequency setting module and the set range boundary is smaller than a first distance threshold value, and reducing the positioning interval;
the frequency setting module is further configured to:
and the distance between the positioning determination and the set range boundary is larger than a second distance threshold value, and the positioning interval is increased.
7. The step counting device of claim 6,
the positioning interval is used for indicating the interval duration of two adjacent positioning;
or, the positioning interval is used for indicating the interval step number of two adjacent positioning.
8. The step-counting device of claim 5, wherein the reward module is further configured to:
determining the total step number according to the step number in the set range and the step number outside the set range;
and providing corresponding reward resources according to the total steps.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the electronic map based step counting method according to any one of claims 1 to 4 when executing the program.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the electronic map-based step counting method according to any one of claims 1 to 4.
CN201910556680.8A 2019-06-25 2019-06-25 Electronic map-based step counting method and device and electronic equipment Active CN110260882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910556680.8A CN110260882B (en) 2019-06-25 2019-06-25 Electronic map-based step counting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910556680.8A CN110260882B (en) 2019-06-25 2019-06-25 Electronic map-based step counting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110260882A CN110260882A (en) 2019-09-20
CN110260882B true CN110260882B (en) 2022-02-18

Family

ID=67921448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910556680.8A Active CN110260882B (en) 2019-06-25 2019-06-25 Electronic map-based step counting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110260882B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7690556B1 (en) * 2007-01-26 2010-04-06 Dp Technologies, Inc. Step counter accounting for incline
KR20160020915A (en) * 2014-08-14 2016-02-24 경희대학교 산학협력단 Apparatus and method for counting step in smartphone
CN105701687A (en) * 2016-02-17 2016-06-22 网易传媒科技(北京)有限公司 User behavior-based data processing method and apparatus
CN106980987A (en) * 2016-01-18 2017-07-25 李明悌 Feedback system for walking and step counting
CN108332770A (en) * 2017-12-29 2018-07-27 青岛真时科技有限公司 A kind of methods, devices and systems of anti-meter step cheating
CN108618251A (en) * 2017-03-23 2018-10-09 保康县熊绎中学 The leather shoes of step number can be counted
CN109803229A (en) * 2018-12-28 2019-05-24 北京指掌易科技有限公司 A kind of dynamic prediction method and device based on polygon fence and running fix

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103007493B (en) * 2006-09-07 2016-06-01 耐克创新有限合伙公司 Athletic performance tracking system and method
CN103970888B (en) * 2014-05-21 2017-02-15 山东省科学院情报研究所 Document classifying method based on network measure index
CN105354729A (en) * 2015-12-14 2016-02-24 电子科技大学 Commodity recommendation method in electronic commerce system
CN107274213A (en) * 2017-05-26 2017-10-20 厦门欧安居信息技术有限公司 A kind of flow method of river diversion based on IOT
CN108635807A (en) * 2018-05-14 2018-10-12 四川斐讯信息技术有限公司 A kind of motion-activated method and intelligent wearable device applied to intelligent wearable device
CN109672719A (en) * 2018-09-26 2019-04-23 深圳壹账通智能科技有限公司 Information-pushing method and relevant device based on user behavior big data
CN109409950B (en) * 2018-10-12 2021-11-12 东南大学 Optimal charging pricing software based on traffic safety

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7690556B1 (en) * 2007-01-26 2010-04-06 Dp Technologies, Inc. Step counter accounting for incline
KR20160020915A (en) * 2014-08-14 2016-02-24 경희대학교 산학협력단 Apparatus and method for counting step in smartphone
CN106980987A (en) * 2016-01-18 2017-07-25 李明悌 Feedback system for walking and step counting
CN105701687A (en) * 2016-02-17 2016-06-22 网易传媒科技(北京)有限公司 User behavior-based data processing method and apparatus
CN108618251A (en) * 2017-03-23 2018-10-09 保康县熊绎中学 The leather shoes of step number can be counted
CN108332770A (en) * 2017-12-29 2018-07-27 青岛真时科技有限公司 A kind of methods, devices and systems of anti-meter step cheating
CN109803229A (en) * 2018-12-28 2019-05-24 北京指掌易科技有限公司 A kind of dynamic prediction method and device based on polygon fence and running fix

Also Published As

Publication number Publication date
CN110260882A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
US10207175B2 (en) Media, systems, and methods for game-based exercise tracking with virtual world variations
EP2947588B1 (en) Method for calculating the activity of a user
RU2607953C2 (en) Capturing of optical data on exercises in addition to calculation of assessment of health
KR101593194B1 (en) Service method and system for providing service using moving path of user
CN108681921B (en) Method and device for acquiring crowd sensing incentive strategy based on random game
KR20170001377A (en) Method and Apparatus for Providing Workout Guide Information
CN101614560B (en) Movement recorder based on GPS positioning and method thereof
WO2020059816A1 (en) Game server, program, method, game system, and information processing terminal
KR20150032375A (en) Service method and system for providing service using user activity
US20190017829A1 (en) Selecting routes
CN111208508A (en) Motion quantity measuring method and device and electronic equipment
US10488222B2 (en) Mobile device control leveraging user kinematics
US20150018013A1 (en) Method and apparatus for mobile context determination
CN104750716A (en) Social network site friend recommendation method and social network site friend recommendation device
KR102359416B1 (en) Smart system for running-machine able to health care base a truth geographic information
US20120101723A1 (en) Method of monitoring fitness levels with a personal navigation device and related device thereof
CN110260882B (en) Electronic map-based step counting method and device and electronic equipment
CN114995640A (en) Motion management method and system based on intelligent footpath
CN110276645A (en) Resource processing method and device based on electronic map and electronic equipment
CN107249699B (en) Motion information measurement device, exercise management method and storage medium
CN115510115A (en) Weather-based play route recommendation method, system, storage medium and equipment
JP2021168737A (en) Content determination device, gaming system, content determination method and content determination program
CN115300891B (en) Anti-cheating healthy walking distance calculation method and tool
CN117542205B (en) Lane guiding method, device, equipment and storage medium
JP7258283B2 (en) Virtual currency management device and virtual currency management method

Legal Events

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