Nothing Special   »   [go: up one dir, main page]

CN116708638A - Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product - Google Patents

Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product Download PDF

Info

Publication number
CN116708638A
CN116708638A CN202210176551.8A CN202210176551A CN116708638A CN 116708638 A CN116708638 A CN 116708638A CN 202210176551 A CN202210176551 A CN 202210176551A CN 116708638 A CN116708638 A CN 116708638A
Authority
CN
China
Prior art keywords
mode
running
user
detection result
running mode
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.)
Pending
Application number
CN202210176551.8A
Other languages
Chinese (zh)
Inventor
曹怡鹏
彭敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN202210176551.8A priority Critical patent/CN116708638A/en
Publication of CN116708638A publication Critical patent/CN116708638A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/10Details of telephonic subscriber devices including a GPS signal receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/74Details of telephonic subscriber devices with voice recognition means

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The application provides a running mode processing method, a running mode processing device, running mode processing equipment, running mode medium and running mode program product, wherein the running mode processing method comprises the following steps: according to the starting instruction input by the user, starting the running detection function, acquiring displacement data of the user in the running process, determining a target mode corresponding to the displacement data according to the corresponding relation between the mode and the displacement range, and outputting first reminding information when the target mode is a second mode. In the scheme, when the target mode determined by the displacement data of the user in the running process is the second mode, the reminding information reminding the user to switch the running mode is output, so that the accuracy of the motion detection result is improved, and the distortion degree of the motion detection result is reduced.

Description

Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product
Technical Field
The present application relates to the field of electronic technology, and in particular, to a running mode processing method, apparatus, device, medium and program product.
Background
With the rising of the health and hot tide of the whole people, sports application programs are also generated. The user can use the exercise application program to obtain the exercise detection result in the exercise process while exercising, for example, the exercise track, the average running speed, the heat consumption and the like can be obtained. The method and the device have the advantages that the motion detection result in the motion process is accurately obtained, so that a user can accurately make a motion plan according to the motion detection result and own requirements, and therefore the method and the device are very important.
Running is not limited by sports fields, does not need excessive sports skills, and has wide audience range, so that the running becomes the main choice of body-building sports. At present, the exercise detection result obtained in the running process of the user mainly comprises that the user selects a corresponding running mode (a non-outdoor running mode is selected when running indoors or running in place and an outdoor running mode is selected when running outdoors) through an exercise application program in the terminal equipment before running, clicks a start control, and then the terminal equipment obtains exercise parameters of the user in the running process through a global positioning system (Global Positioning System, GPS), an accelerometer, a gyroscope and the like, and executes program codes corresponding to the running mode selected by the user, so that the exercise detection result is obtained.
However, if the running environment of the user changes (e.g., from indoor to outdoor) during running, the exercise application still obtains the exercise detection result through the previous program code, and there may be a problem that the accuracy of the calculated exercise detection result is poor.
Disclosure of Invention
The application provides a running mode processing method, a running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product, and aims to solve the problem that accuracy of a running detection result is poor.
In a first aspect, an embodiment of the present application provides a method for processing a running mode, including:
starting a running detection function according to an opening instruction input by a user, wherein the current mode of the running detection function is a first mode;
acquiring displacement data of a user in the running process;
determining a target mode corresponding to the displacement data according to the corresponding relation between the mode and the displacement range;
when the target mode is a second mode, outputting first reminding information, wherein the first reminding information is used for reminding a user to switch the current mode from the first mode to the second mode.
In one possible design of the first aspect, after outputting the first alert information when the target mode is the second mode, the method further includes:
receiving a switching confirmation instruction input by a user, wherein the switching confirmation instruction is used for switching the mode of the running detection function;
and switching the current mode of the running detection function from the first mode to the second mode according to the switching confirmation instruction.
In another possible design of the first aspect, after outputting the first alert information when the target mode is the second mode, the method further includes:
Starting a timer to count, outputting second reminding information when the accumulated time length obtained by counting by the timer reaches the preset time length and does not receive a switching confirmation instruction input by a user, resetting the timer, and repeating the steps until the accumulated time of the output reminding information is greater than the preset time, wherein the second reminding information is used for reminding the user to switch the current mode from the first mode to the second mode.
In yet another possible design of the first aspect, when the displacement data is within the target displacement range, the method further comprises:
acquiring running duration data and running step number data of a user in a running process;
and generating a motion detection result according to the running duration data, the running step number data, the displacement data and the current mode of the running detection function.
Optionally, the method further comprises:
acquiring a closing instruction input by a user, wherein the closing instruction is used for closing the running detection function;
and closing the running detection function according to the closing instruction, and outputting the movement detection result.
Optionally, the outputting the motion detection result includes:
Displaying the motion detection result in an interface;
or,
performing voice broadcasting on the motion detection result;
or,
and sending the motion detection result to a wearable device of a pre-connected user.
In a second aspect, an embodiment of the present application provides a processing apparatus for a running mode, including:
the starting module is used for starting the running detection function according to a starting instruction input by a user, and the current mode of the running detection function is a first mode;
the acquisition module is used for acquiring displacement data of a user in the running process;
the processing module is used for determining a target mode corresponding to the displacement data according to the corresponding relation between the mode and the displacement range;
the output module is used for outputting first reminding information when the target mode is a second mode, and the first reminding information is used for reminding a user to switch the current mode from the first mode to the second mode.
In one possible design of the second aspect, after outputting the first alert information when the target mode is the second mode, the apparatus further includes:
the receiving module is used for receiving a switching confirmation instruction input by a user, and the switching confirmation instruction is used for switching the mode of the running detection function;
The processing module is further configured to switch a current mode of the running detection function from the first mode to the second mode according to the switch confirmation instruction.
In another possible design of the second aspect, after outputting the first alert information when the target mode is the second mode, the method further includes:
the output module is further configured to start a timer to count, output a second reminding message when the accumulated time length obtained by counting by the timer reaches a preset time length and a switching confirmation instruction input by a user is not received, reset the timer, and repeat the above steps until the accumulated time of the output reminding message is greater than the preset time, where the second reminding message is used to remind the user to switch the current mode from the first mode to the second mode.
In yet another possible design of the second aspect, the obtaining module is further configured to obtain running duration data and running step number data of the user during running when the displacement data is within the target displacement range;
the processing module is further configured to generate a motion detection result according to the running duration data, the running step number data, the displacement data, and the current mode of the running detection function.
Optionally, the acquiring module is further configured to acquire a closing instruction input by a user, where the closing instruction is used to close the running detection function;
the output module is also used for closing the running detection function according to the closing instruction and outputting the movement detection result.
Optionally, the output module is specifically configured to:
displaying the motion detection result in an interface;
or,
performing voice broadcasting on the motion detection result;
or,
and sending the motion detection result to a wearable device of a pre-connected user.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and computer program instructions stored on the memory and executable on the processor for implementing the method provided by the first aspect and each possible design when the processor executes the computer program instructions.
In a fourth aspect, embodiments of the present application may provide a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out the method provided by the first aspect and each possible design.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program for implementing the method provided by the first aspect and each possible design when executed by a processor.
According to the running mode processing method, device, equipment, medium and program product, in the running mode processing method, the running detection function is started according to the starting instruction input by a user, displacement data of the user in the running process are obtained, a target mode corresponding to the displacement data is determined according to the corresponding relation between the mode and the displacement range, and when the target mode is the second mode, first reminding information is output. In the scheme, when the target mode determined by the displacement data of the user in the running process is the second mode, the reminding information reminding the user to switch the running mode is output, so that the accuracy of the motion detection result is improved, and the distortion degree of the motion detection result is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1A is a schematic diagram of an interface of a first embodiment of a prior art sports application;
FIG. 1B is a schematic diagram of a second embodiment of a prior art exercise application;
fig. 2 is a schematic diagram of an application scenario of a running mode processing method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a first embodiment of a method for processing a running pattern according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a second embodiment of a method for processing a running pattern according to the present application;
FIG. 5 is a flowchart illustrating a third embodiment of a method for processing a running pattern according to the present application;
FIG. 6 is an interface diagram of a motion detection result list according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a fourth embodiment of a method for processing a running mode according to an embodiment of the present application;
FIG. 8 is a flowchart of a fifth embodiment of a method for processing a running pattern according to the present application;
FIG. 9 is a schematic diagram of a running mode processing device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Before describing the embodiments of the present application, an application background of the embodiments of the present application will be explained first:
running, one of the most popular exercise modes at present, has risen from single sports to a mass cultural trend. People can choose to run on a wide outdoor place, such as a playground, a park and the like, and can choose to run on sports equipment such as a running machine and the like indoors, so that the effects of body building and weight losing can be well achieved.
With the rise of running hot flashes and the development of mobile interconnects, sports applications have grown from the original data logging tools to today's sports social media. The user can acquire the motion detection result in the motion process by using the motion application program while body building, accurately make a motion plan according to the motion detection result and own requirements, and share the motion detection result to social media (sharing to WeChat friend circle, microblog or sending to friends, etc.), so as to synchronize the motion progress with friends. Therefore, it is important to accurately acquire the motion detection result during the motion.
At present, the exercise detection result in the running process of the user is mainly that the user selects a corresponding running mode through an exercise application program in the terminal equipment before running and clicks a start control, and then the terminal equipment acquires exercise parameters of the user in the running process through a GPS, an accelerometer, a gyroscope and the like and executes program codes corresponding to the running mode selected by the user, so that the exercise detection result is acquired.
FIG. 1A is a schematic diagram of an interface of a first embodiment of a prior art sports application. FIG. 1B is a schematic diagram of a second embodiment of an interface for a sports application according to the prior art. As shown in fig. 1A and 1B, a running mode control is included in the dashed box, and a user may select a running mode according to an actual running environment and running conditions. Wherein, the outdoor running in fig. 1A and the running machine in fig. 1B are in the current mode. It should be appreciated that the indoor running of FIG. 1A and the treadmill of FIG. 1B correspond to the non-outdoor running mode described above; the outdoor running in fig. 1A and the outdoor running in fig. 1B correspond to the outdoor running mode described above.
However, in the prior art, there may be two problems:
a) The running mode cannot be changed after the user clicks the start control until the running process is finished. If the running environment of the user changes during running (such as from indoor to outdoor), the exercise application program still obtains the exercise detection result through the previous program codes.
b) When a user opens the motion application program, the motion application program can default to select the motion mode selected last time, and if the motion mode is inconsistent with the actual motion condition of the user, the user is required to manually change the motion mode. When the user does not manually change and directly clicks the start control, the motion application program acquires a motion detection result by adopting program codes corresponding to a motion mode selected by default.
c) According to the normal use habit of a user, the operation of selecting a movement mode is easy to ignore, or the user cannot click on the correct mode control displayed in the terminal device due to the perspiration of the finger in the process of carrying out the operation.
To summarize, in the prior art, when the actual motion situation of the user is inconsistent with the current motion mode, there may be a problem that the accuracy of the motion detection result obtained by calculation is poor. For example, if running indoors and the current exercise mode is an outdoor running mode, the generated exercise detection result is distorted in exercise track and the like; if running outdoors and the current exercise mode is a non-outdoor running mode, the generated exercise detection result does not contain exercise tracks, maximum oxygen uptake and the like.
In view of the above problems, the inventive concept of the present application is as follows: because the program codes of different motion modes are different in motion detection results obtained by calculation according to the same motion parameters, the calculated detection results are inaccurate when the actual motion condition is not matched with the selected motion mode. Based on the above, the inventor found that if the correspondence between the running mode and the displacement range can be obtained in advance, the running mode corresponding to the displacement data is obtained according to the correspondence and the displacement data of the user in the running process, and when the running mode is inconsistent with the selected running mode, the reminding information is generated to remind the user to switch the running mode, so that the problem that the accuracy of the motion detection result calculated in the prior art is poor can be solved, and the effectiveness of the motion plan formulated according to the motion detection result is improved.
The method for processing the running mode provided by the embodiment of the application can be applied to an application scene schematic diagram shown in fig. 2. Fig. 2 is a schematic view of an application scenario of a running mode processing method according to an embodiment of the present application, so as to solve the above-mentioned technical problems. As shown in fig. 2, the application scenario may include: electronic device (e.g., a cell phone in fig. 2) 11 may also include treadmill 12 and wearable device 13.
In the embodiment of the present application, electronic device 11 may directly obtain the displacement data of the user, and may also obtain the displacement data of the user through wearable device 13 or treadmill 12. Then, the electronic device 11 executes the program code of the running mode processing method and outputs reminding information.
Optionally, the electronic device 11 may also directly acquire running duration data and running step number data of the user during running, or may also acquire running duration data and running step number data of the user during running through the wearable device 13 or the treadmill 12, and then execute the program code of the running mode processing method to generate the exercise detection result.
It may be understood that the execution body of the embodiment of the present application may be a terminal device, for example, a mobile phone, a computer, a tablet computer, or the like, or may be a server, for example, a background processing platform, or the like. Thus, the present embodiment is explained with the terminal device and the server collectively referred to as an electronic device, which can be determined in actual cases as to whether the electronic device is specifically a terminal device or a server.
Optionally, in practical application, as a preferred implementation, the execution body of the embodiment of the present application is a mobile phone.
The technical scheme of the application is described in detail through specific embodiments.
It should be noted that the following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 3 is a flowchart illustrating a first embodiment of a running mode processing method according to an embodiment of the present application. As shown in fig. 3, the running mode processing method may include the steps of:
s31, starting the running detection function according to a starting instruction input by a user.
In an embodiment of the application, an exercise application is run in the electronic equipment, and the exercise application comprises a running detection function so as to generate an exercise detection result according to exercise parameters of a user in the running process.
Illustratively, the running detection function includes a first mode and a second mode.
In practical applications, the first mode may be a non-outdoor running mode, and the second mode may be an outdoor running mode. Optionally, the first mode may be an outdoor running mode, and the second mode may be a non-outdoor running mode, which is not limited by specific content corresponding to the first mode and the second mode in the embodiment of the present application.
The first mode and the second mode may be running modes existing in the prior art, or may be modes in which a user writes program codes according to actual demands of the user and determines according to actual demands, which is not particularly limited in the embodiment of the present application.
In one possible implementation, the electronic device may turn on the running detection function in response to a user's click operation on the sports application. The electronic equipment displays a visual interface to a user through the motion application program, the visual interface is displayed with a first mode control, a second mode control and a start control. The user can click on the first mode control according to the actual requirement and click on the start control. And the electronic equipment responds to the click operation of the start control by the user, receives an opening instruction input by the user, and accordingly opens the running detection function.
Wherein the current mode of the running detection function is the first mode.
In another possible implementation manner, the starting instruction may be a first voice instruction, and the electronic device may receive the first voice instruction sent by the user and start the running detection function. For example, the user may send a first voice command to the electronic device before the start of the sport or during the sport, such as "i want to run outdoors". The electronic equipment receives a first voice instruction sent by a user, converts the first voice instruction into a first text, and starts a running detection function according to the first text, wherein the current mode of the running detection function is an outdoor running mode.
In yet another possible implementation, the electronic device may also receive an activation instruction sent by the wearable device worn by the user, thereby activating the running detection function. For example, the user may click on an open control displayed in an interface of the wearable device, or press an open button in the wearable device, the wearable device generates an open instruction in response to an operation of the user, and sends the open instruction to the electronic device. The electronic equipment receives an opening instruction sent by a user through the wearable equipment, and starts the running detection function according to the opening instruction.
Optionally, the exercise application may further include yoga function, course function, live-broadcast course function, etc., which may be confirmed according to actual situations, and the embodiment of the present application is not limited in particular.
S32, acquiring displacement data of the user in the running process.
Optionally, the electronic device may acquire the displacement data of the user in the running process in real time, or may acquire the displacement data according to a preset period, and may determine the displacement data according to an actual situation, which is not particularly limited in the embodiment of the present application.
The preset period may be 1 second for 1 time, or may be 1 second for 2 times, 1 second for 3 times, or the like, which is not particularly limited in the embodiment of the present application.
In one implementation, the electronic device may obtain GPS data of the user, and obtain displacement data of the user during running according to the GPS data.
The electronic device can acquire displacement data according to the current GPS signal of the user and the GPS signal of the last moment.
In another implementation, the electronic device may obtain displacement data of the user during running acquired by a wearable device worn by the user.
S33, determining a target mode corresponding to the displacement data according to the corresponding relation between the mode and the displacement range.
Alternatively, the correspondence between the mode and the displacement range may be obtained in advance from a server corresponding to the motion application program, or may be stored in the electronic device in advance by the user. In this implementation manner, the user may store the correspondence relationship in the electronic device through a data storage device storing the correspondence relationship.
For example, the correspondence between the modes and the displacement ranges may be as shown in table 1 below:
TABLE 1
Sequence number Mode Displacement range
1 First mode Displacement range 1
2 Second mode Displacement range 2
Taking the correspondence shown in table 1 as an example, if the displacement data is in the displacement range 1, the electronic device determines, according to the correspondence, that the target mode corresponding to the displacement data is the first mode. Taking the correspondence shown in table 1 as an example, if the displacement data is in the displacement range 2, the electronic device determines, according to the correspondence, that the target mode corresponding to the displacement data is the second mode.
S34, outputting first reminding information when the target mode is the second mode.
The first reminding information is used for reminding a user to switch the current mode from the first mode to the second mode.
In one implementation, the electronic device may display the generated first alert information in a visual interface. If "please switch the current mode from the non-outdoor running mode to the outdoor running mode" is displayed in the visual interface.
In another implementation manner, the electronic device may further perform voice broadcasting on the first reminding information.
In still another implementation manner, the electronic device may further send the first alert information to a wearable device worn by the user and connected to the electronic device in advance, so that the wearable device displays the first alert information or vibrates according to the first alert information, thereby reminding the user to switch the current mode from the first mode to the second mode.
According to the running mode processing method provided by the embodiment of the application, the running detection function is started according to the starting instruction input by the user, the displacement data of the user in the running process are obtained, the target mode corresponding to the displacement data is determined according to the corresponding relation between the mode and the displacement range, and when the target mode is the second mode, the first reminding information is output. In the scheme, when the target mode determined by the displacement data of the user in the running process is the second mode, the reminding information reminding the user to switch the running mode is output, so that the accuracy of the motion detection result is improved, and the distortion degree of the motion detection result is reduced.
Further, when the target mode is the second mode, the reminding information is output, and the user can decide whether to switch the running mode according to the reminding information, so that the situation that the electronic equipment is automatically switched according to displacement data errors under some special conditions is avoided, the user experience is improved, the viscosity of an application program is increased, and the authenticity of a motion detection result is further improved.
Fig. 4 is a flowchart illustrating a second embodiment of a running mode processing method according to an embodiment of the present application. As shown in fig. 4, on the basis of the above embodiment, after outputting the first reminding information when the current mode is inconsistent with the target mode, the processing method of the running mode may further include the following steps:
s41, receiving a switching confirmation instruction input by a user.
The switching confirmation instruction is used for switching the mode of the running detection function.
In one implementation, the handover confirmation instruction may be a second voice instruction, and the electronic device may receive the second voice instruction sent by the user. For example, after receiving the reminding information sent by the electronic device, the user may send a second voice command, such as "ok", "people", "and the like, to the electronic device, and the electronic device may receive the second voice command sent by the user, so as to switch the running detection function mode according to the second voice command.
In another implementation, the electronic device may receive a switch confirmation instruction input by the user in response to a click operation of the sports application by the user. For example, the electronic device may display the alert information to the user through a pop-up window in the sports application, the pop-up window including the switch control. The user can click the switching control in the popup window, and the electronic equipment responds to the click operation of the user on the switching control and receives a switching confirmation instruction input by the user.
In still another implementation manner, a mapping relationship between the pressing operation and the instruction may be preset, and the electronic device receives the switching confirmation instruction input by the user through the earphone connected to the electronic device and the mapping relationship. The electronic device responds to the pressing operation of the earphone button or the mobile phone button by the user, and obtains the switching confirmation instruction input by the user according to the pressing operation and the mapping relation between the pressing operation and the instruction. The pressing operation may be, for example, a pressing operation of a pause play button in the headphone or a pressing operation of the last button in the headphone twice.
In yet another implementation, the electronic device may receive a switch confirmation instruction sent by the user through the wearable device.
S42, switching the current mode of the running detection function from the first mode to the second mode according to the switching confirmation instruction.
According to the running mode processing method provided by the embodiment of the application, the current mode of the running detection function is switched from the first mode to the second mode according to the switching confirmation instruction by receiving the switching confirmation instruction input by the user. In the scheme, the mode of the running detection function can be switched according to the confirmation instruction sent by the user, so that the electronic equipment can generate the motion detection result by adopting the program code matched with the actual motion condition, and the accuracy of the motion detection result is further improved.
In some embodiments, after outputting the first alert information when the target mode is the second mode, the running mode processing method may further include the following steps: starting a timer to count, outputting second reminding information when the accumulated time length obtained by counting by the timer reaches the preset time length and the switching confirmation instruction input by the user is not received, resetting the timer, repeating the steps until the accumulated time of the output reminding information is greater than the preset time, and stopping the operation, wherein the second reminding information is used for reminding the user to switch the current mode from the first mode to the second mode.
The preset times may be set by a user before the exercise application program is used, or may be obtained by the electronic device from a server corresponding to the exercise application program in advance. The preset times may be 1 time, or may be 2 times, 3 times, etc., and may be determined according to actual situations, which is not particularly limited in the embodiment of the present application.
In the above embodiment, the electronic device outputs the second reminding information for multiple times to remind the user for multiple times, and stops until the accumulated times of the output reminding information is greater than the preset times, so that the normal movement of the user can be prevented from being disturbed, and the user can be reminded in time.
Fig. 5 is a flowchart illustrating a third embodiment of a running mode processing method according to an embodiment of the present application. As shown in fig. 5, the processing method of the running mode may further include the following steps, based on any of the above embodiments:
s51, acquiring running duration data and running step number data of a user in the running process.
Optionally, the electronic device may acquire running duration data and running step number data of the user in the running process in real time, and may also acquire the running duration data and the running step number data according to a preset period, and may determine the running duration data and the running step number data according to an actual situation, which is not particularly limited in the embodiment of the present application.
In one implementation, the electronic device may directly obtain running duration data and running step number data of the user during running.
In another implementation, the electronic device may obtain running duration data and running step number data of the user during running, which are collected by the wearable device worn by the user and/or the treadmill.
S52, generating a motion detection result according to the running duration data, the running step number data, the displacement data and the current mode of the running detection function.
The electronic equipment generates a motion detection result according to running time length data, running number data and displacement data of a user in the running process and through a program code corresponding to a current mode.
Optionally, when the current mode is the non-outdoor running mode, the accuracy of the acquired GPS data is low and even the GPS signal cannot be acquired due to the limitation of the GPS positioning module of the electronic device. The electronic equipment simulates the walking data of the human body through an accelerator, a screw instrument and the like, so that a motion detection result is generated. The motion detection result may include a motion distance, a motion duration, an amount of heat consumed during the motion, an average pace, an average speed, an average stride, a total number of steps, an average heart rate, an aerobic training effect score, and a duration from a time when the next training may be performed.
Optionally, when the current mode is the outdoor running mode, the electronic device may generate a motion detection result according to a GPS, an accelerometer, a screw, and the like. The electronic device can also receive the motion parameters sent by the wearable device and generate a motion detection result. Based on the motion detection result, the method can further comprise a motion track, accumulated surge, accumulated decline and maximum oxygen uptake.
Optionally, after generating the motion detection result, the electronic device may further generate a historical motion detection result list according to the historical motion detection result generated by the historical motion. Fig. 6 is an interface schematic diagram of a motion detection result list according to an embodiment of the present application. As shown in fig. 6, the history motion detection result list includes 8 motion detection results (only 6 motion detection results are shown in fig. 6) of 10 months of 2021, in which a total motion of 50.49 km consumes 3426 kcal of heat.
In the above embodiment, the electronic device generates the motion detection result, so that the user can accurately grasp the current motion situation through the motion detection result, and can further process the historical motion detection result, thereby effectively improving the user experience.
Fig. 7 is a flowchart illustrating a fourth embodiment of a method for processing a running mode according to an embodiment of the present application. As shown in fig. 7, the processing method of the running mode may further include the following steps, based on any of the above embodiments:
S71, acquiring a closing instruction input by a user.
Wherein, the closing instruction is used for closing the running detection function.
Optionally, this step may refer to a specific implementation manner of receiving the handover confirmation instruction input by the user in S41, which is not described herein.
S72, according to the closing instruction, the running detection function is closed, and a movement detection result is output.
In one implementation, the motion detection results may be displayed in an interface.
In another implementation manner, the motion detection result may also be voice broadcast.
In yet another implementation, the motion detection result may also be sent to a wearable device of a pre-connected user.
In the method, the user can intuitively grasp the movement condition by outputting the movement detection result.
In the above embodiment, when the running detection function is turned off according to the turn-off instruction, the exercise detection result is output, so that the user can accurately make exercise calculation according to the output exercise detection result, or judge and judge the completion condition of the exercise plan made in advance, thereby effectively ensuring the user experience.
Fig. 8 is a flowchart of a fifth embodiment of a running mode processing method according to an embodiment of the present application. As shown in fig. 8, the running mode processing method may further include the steps of:
Step 1, starting.
Step 2, obtaining displacement data of the user in the running process, and determining a target mode corresponding to the displacement data according to the corresponding relation between the mode and the displacement range.
And step 3, judging whether the current mode is consistent with the target mode. And if the two steps are consistent, jumping to the step 2, and if the two steps are inconsistent, jumping to the step 4.
By way of example, it may be determined whether the current mode is consistent with the target mode through table 2.
TABLE 2
As shown in table 2, if the current mode is the first mode and the target mode is the first mode, it is determined that the current mode is consistent with the target mode, and if the current mode is the first mode and the target mode is the second mode, it is determined that the current mode is inconsistent with the target mode.
And step 4, outputting the first reminding information.
And step 5, starting a timer to count, and judging whether a switching confirmation instruction input by a user is received or not when the accumulated time length obtained by counting by the timer reaches the preset time length. If a switching confirmation instruction input by a user is received, jumping to a step 6; if the switching confirmation instruction input by the user is not received, resetting the timer and jumping to the step 7.
Step 6, switching the running detection function from the current mode to the target mode according to the switching confirmation instruction. And then jumps to step 8.
And step 7, outputting whether the accumulated times of the reminding information is larger than the preset times. If the value is larger than the preset value, jumping to the step 8, and if the value is smaller than or equal to the preset value, jumping to the step 2.
And 8, ending.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 9 is a schematic structural diagram of a running mode processing device according to an embodiment of the application. As shown in fig. 9, the running mode processing apparatus includes:
an opening module 91, configured to open the running detection function according to an opening instruction input by a user, where a current mode of the running detection function is a first mode;
an acquisition module 92 for acquiring displacement data of a user during running;
a processing module 93, configured to determine a target mode corresponding to the displacement data according to a correspondence between the mode and the displacement range;
the output module 94 is configured to output first alert information when the target mode is the second mode, where the first alert information is used to alert a user to switch the current mode from the first mode to the second mode.
In one possible design of the embodiment of the present application, after outputting the first alert information when the target mode is the second mode, the apparatus further includes:
The receiving module is used for receiving a switching confirmation instruction input by a user, and the switching confirmation instruction is used for switching the mode of the running detection function;
the processing module 93 is further configured to switch the current mode of the running detection function from the first mode to the second mode according to the switch confirmation instruction.
In another possible design of the embodiment of the present application, after outputting the first alert information when the target mode is the second mode, the method further includes:
the output module 94 is further configured to start the timer to count, output a second reminder when the accumulated time length obtained by counting the time by the timer reaches the preset time length and the switching confirmation instruction input by the user is not received, reset the timer, and repeat the above steps until the accumulated number of times of outputting the reminder is greater than the preset number of times, where the second reminder is used to remind the user to switch the current mode from the first mode to the second mode.
In yet another possible design of an embodiment of the present application, the obtaining module 92 is further configured to obtain running duration data and running step number data of the user during running when the displacement data is within the target displacement range;
the processing module 93 is further configured to generate a motion detection result according to the running duration data, the running step number data, the displacement data and the current mode of the running detection function.
Optionally, the obtaining module 92 is further configured to obtain a closing instruction input by a user, where the closing instruction is used to close the running detection function;
the output module 94 is further configured to turn off the running detection function according to the turn-off command, and output the exercise detection result.
Optionally, the output module 94 is specifically configured to:
displaying the motion detection result in an interface;
or,
performing voice broadcasting on the motion detection result;
or,
and sending the motion detection result to the wearable device of the pre-connected user.
The running mode processing device provided by the embodiment of the application can be used for executing the running mode processing method in any of the above embodiments, and the implementation principle and technical effects are similar, and are not repeated here.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. In addition, all or part of the modules may be integrated together or may be implemented independently. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device 11 may include: the processor 101, the memory 102, and computer program instructions stored on the memory 102 and executable on the processor 101, which when executed by the processor 101, implement the method of processing a running pattern provided by any of the foregoing embodiments.
Alternatively, the above-mentioned devices of the electronic apparatus 11 may be connected by a system bus.
The memory 102 may be a separate memory unit or may be a memory unit integrated into the processor. The number of processors is one or more.
Optionally, the electronic device 11 may also include interfaces to interact with other devices.
Optionally, a display is used to display the processing result of the processor 101 and interact with a human machine. Alternatively, the display may be a user interface that may include graphics, text, icons, video, and any combination thereof. In some embodiments, the display may be a front panel of the electronic device 11; in other embodiments, the display may be a flexible display screen, disposed on a curved surface or a folded surface of the electronic device 11. Even more, the display may be arranged as a non-rectangular irregularly patterned display screen, i.e. a shaped screen. The display may be made of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
It should be appreciated that the processor 101 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The system bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The system bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus. The memory may include random access memory (random access memory, RAM) and may also include non-volatile memory (NVM), such as at least one disk memory.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape, floppy disk, optical disk, and any combination thereof.
The electronic device provided by the embodiment of the present application may be used to execute the processing method of the running mode provided by any of the above method embodiments, and its implementation principle and technical effects are similar, and are not described herein again.
Embodiments of the present application provide a computer-readable storage medium having stored therein computer instructions that, when executed on a computer, cause the computer to perform the processing method of the running mode described above.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as static random access memory, electrically erasable programmable read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
In the alternative, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC). The processor and the readable storage medium may reside as discrete components in a device.
Embodiments of the present application also provide a computer program product, which includes a computer program stored in a computer readable storage medium, from which at least one processor can read the computer program, and the at least one processor can implement the processing method of the running mode when executing the computer program.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for processing a running mode, comprising:
Starting a running detection function according to an opening instruction input by a user, wherein the current mode of the running detection function is a first mode;
acquiring displacement data of a user in the running process;
determining a target mode corresponding to the displacement data according to the corresponding relation between the mode and the displacement range;
when the target mode is a second mode, outputting first reminding information, wherein the first reminding information is used for reminding a user to switch the current mode from the first mode to the second mode.
2. The method of claim 1, wherein after outputting the first alert information when the target mode is the second mode, the method further comprises:
receiving a switching confirmation instruction input by a user, wherein the switching confirmation instruction is used for switching the mode of the running detection function;
and switching the current mode of the running detection function from the first mode to the second mode according to the switching confirmation instruction.
3. The method of claim 1, wherein after outputting the first alert information when the target mode is the second mode, the method further comprises:
starting a timer to count, outputting second reminding information when the accumulated time length obtained by counting by the timer reaches the preset time length and does not receive a switching confirmation instruction input by a user, resetting the timer, and repeating the steps until the accumulated time of the output reminding information is greater than the preset time, wherein the second reminding information is used for reminding the user to switch the current mode from the first mode to the second mode.
4. A method according to any one of claims 1 to 3, wherein when the displacement data is within the target displacement range, the method further comprises:
acquiring running duration data and running step number data of a user in a running process;
and generating a motion detection result according to the running duration data, the running step number data, the displacement data and the current mode of the running detection function.
5. The method according to claim 4, wherein the method further comprises:
acquiring a closing instruction input by a user, wherein the closing instruction is used for closing the running detection function;
and closing the running detection function according to the closing instruction, and outputting the movement detection result.
6. The method of claim 5, wherein the outputting the motion detection result comprises:
displaying the motion detection result in an interface;
or,
performing voice broadcasting on the motion detection result;
or,
and sending the motion detection result to a wearable device of a pre-connected user.
7. A running mode processing apparatus, comprising:
The starting module is used for starting the running detection function according to a starting instruction input by a user, and the current mode of the running detection function is a first mode;
the acquisition module is used for acquiring displacement data of a user in the running process;
the processing module is used for determining a target mode corresponding to the displacement data according to the corresponding relation between the mode and the displacement range;
the output module is used for outputting first reminding information when the target mode is a second mode, and the first reminding information is used for reminding a user to switch the current mode from the first mode to the second mode.
8. An electronic device, comprising: processor, memory and computer program instructions stored on the memory and executable on the processor, wherein the processor executes the computer program instructions for implementing a method of processing a running mode as claimed in any one of claims 1 to 6.
9. A computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, which when executed by a processor is configured to implement the method of processing a running mode according to any one of claims 1 to 6.
10. A computer program product comprising a computer program for implementing a processing method of a running mode according to any one of claims 1 to 6 when executed by a processor.
CN202210176551.8A 2022-02-24 2022-02-24 Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product Pending CN116708638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210176551.8A CN116708638A (en) 2022-02-24 2022-02-24 Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210176551.8A CN116708638A (en) 2022-02-24 2022-02-24 Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product

Publications (1)

Publication Number Publication Date
CN116708638A true CN116708638A (en) 2023-09-05

Family

ID=87822658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210176551.8A Pending CN116708638A (en) 2022-02-24 2022-02-24 Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product

Country Status (1)

Country Link
CN (1) CN116708638A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106031824A (en) * 2015-03-20 2016-10-19 明跃国际健康科技股份有限公司 A wearable device applicable for different motion types
CN112014866A (en) * 2019-05-28 2020-12-01 华为技术有限公司 Motion track recording method and related equipment
CN112860052A (en) * 2019-11-28 2021-05-28 Oppo广东移动通信有限公司 Operation mode control method and device, wearable device and computer-readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106031824A (en) * 2015-03-20 2016-10-19 明跃国际健康科技股份有限公司 A wearable device applicable for different motion types
CN112014866A (en) * 2019-05-28 2020-12-01 华为技术有限公司 Motion track recording method and related equipment
CN112860052A (en) * 2019-11-28 2021-05-28 Oppo广东移动通信有限公司 Operation mode control method and device, wearable device and computer-readable storage medium

Similar Documents

Publication Publication Date Title
US20200298091A1 (en) Athletic Data Aggregation for Online Communities
US11213723B2 (en) Athletic team integrated communication, notification, and scheduling system
CN109168062B (en) Video playing display method and device, terminal equipment and storage medium
US20100267521A1 (en) Digital fitness trainer
CN109621425B (en) Video generation method, device, equipment and storage medium
CN112439180B (en) Intelligent voice playing method and equipment
CN111836110A (en) Display method and device of game video, electronic equipment and storage medium
KR102157322B1 (en) Method for progressing fitness content
CN105681911A (en) Motion picture training method and system
Ramesh et al. Role of information technology in enhancing sports performance
WO2019153454A1 (en) Sports course scoring method and system
CN114513694B (en) Score determination method, device, electronic equipment and storage medium
CN116708638A (en) Running mode processing method, running mode processing device, running mode processing equipment, running mode processing medium and running mode processing program product
CN114220119B (en) Human body posture detection method, terminal device and computer readable storage medium
CN113709566B (en) Method, device, equipment and computer storage medium for playing multimedia content
US20230029032A1 (en) In-activity visualizations in a distributed environment
CN113176904A (en) Application starting animation adjusting method and device
CN107749201B (en) Click-to-read object processing method and device, storage medium and electronic equipment
CN115282584B (en) Rope skipping examination evaluation method and device, rope skipping system and storage medium
WO2019042249A1 (en) Page-turning method and apparatus, and storage medium
CN112866810B (en) Video playing method and video playing device
KR20230100557A (en) The method of providing a moving image to guide exercise and the apparatus comprising thereof
CN106990843A (en) A kind of parameter calibrating method and electronic equipment of eyes tracking system
CN113823377A (en) Motion guiding method and electronic equipment
CN112911363A (en) Track video generation method, terminal device and computer-readable storage medium

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