WO2022068626A1 - Track correction method and system - Google Patents

Track correction method and system Download PDF

Info

Publication number
WO2022068626A1
WO2022068626A1 PCT/CN2021/119278 CN2021119278W WO2022068626A1 WO 2022068626 A1 WO2022068626 A1 WO 2022068626A1 CN 2021119278 W CN2021119278 W CN 2021119278W WO 2022068626 A1 WO2022068626 A1 WO 2022068626A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
motion trajectory
motion
trajectory
cloud server
Prior art date
Application number
PCT/CN2021/119278
Other languages
French (fr)
Chinese (zh)
Inventor
张康
程国红
郭永峰
王晓力
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022068626A1 publication Critical patent/WO2022068626A1/en

Links

Images

Classifications

    • 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
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the embodiments of the present application relate to the field of terminals, and in particular, to a trajectory deviation correction method and system.
  • a user can run with a smart watch and record the user's movement track through the smart watch. Then, the user can connect the smart watch to the mobile phone and upload the movement track recorded by the smart watch to the mobile phone to display the user's movement through the mobile phone. trajectory.
  • the present application proposes a trajectory correction method and system.
  • the motion trajectory uploaded by the second electronic device can be corrected by the first electronic device based on the motion trajectory obtained from the cloud server, so as to correct the deviation of the non-standard motion trajectory with the standard motion trajectory,
  • the accuracy of the motion trajectory displayed by the first electronic device is effectively improved.
  • a trajectory correction system in a first aspect, includes: a cloud server, a first electronic device and a second electronic device, the first electronic device is connected to the second electronic device through Bluetooth, and the first electronic device performs data interaction with the cloud server through a cellular network; the first electronic device uses To: obtain the first motion track and the second motion track within the first area, and send the first motion track and the second motion track to the cloud server; the cloud server is used for: according to the received first motion track and the second motion track a motion trajectory, to obtain a third motion trajectory; a first electronic device, for: acquiring a third motion trajectory from a cloud server; a second electronic device, for: acquiring a fourth motion trajectory within the first area; The device sends a fourth motion trajectory; the first electronic device is further configured to: in response to the received fourth motion trajectory, correct the fourth motion trajectory based on the third motion trajectory, and display the corrected fourth motion trajectory. In this way, the first electronic device can correct the motion trajectory uploaded by the second electronic device based on the motion trajectory obtained
  • the first electronic device may also send a third motion trajectory, a fourth motion trajectory, etc. to the cloud server, and the first to fourth motion trajectories are all acquired by the first electronic device within the first area, and the cloud server Based on more motion trajectories sent by the first electronic device, a motion trajectory with a higher similarity to the actual motion trajectory can be obtained.
  • the first electronic device can correct the motion trajectory of the second electronic device based on the motion trajectory trained by the cloud server, so that the similarity between the motion trajectory displayed by the first electronic device and the actual motion trajectory is further improved.
  • the manner in which the cloud server obtains the third motion trajectory includes: performing similarity matching between the first motion trajectory and a plurality of stored motion trajectories; if there is a successful similarity matching with the first motion trajectory , obtain the third motion trajectory according to the motion trajectory successfully matched by the similarity, the first motion trajectory and the second motion trajectory; if the multiple motion trajectories match the first motion trajectory The trajectory similarity matching fails, and the third motion trajectory is acquired according to the first motion trajectory and the second motion trajectory.
  • a projection point corresponding to at least one trajectory point on the first movement trajectory on the motion trajectory for which the similarity is successfully matched wherein the number of the projection points is greater than a first threshold, and the projection point The distance from the corresponding trajectory point on the first motion trajectory is smaller than the second threshold, and the direction difference between the direction of the projection point and the corresponding trajectory point on the first motion trajectory is smaller than the third threshold.
  • a projection point corresponding to at least one trajectory point on the fourth movement trajectory on the third movement trajectory, wherein the number of the projection points is greater than the first threshold, and the projection point is the same as the projection point.
  • the distance between the corresponding trajectory points on the fourth motion trajectory is smaller than the second threshold, and the direction difference between the direction of the projection point and the corresponding trajectory point on the fourth motion trajectory is smaller than the third threshold.
  • the fourth motion track after the deviation correction includes the jump track point; the fourth motion track satisfies any of the following conditions: The trajectory point is the jump trajectory point: the direction difference with the previous trajectory point or the next trajectory point is greater than the fourth threshold; the speed difference with the previous trajectory point or the next trajectory point is greater than the fifth threshold; The distance difference from the previous trajectory point or the next trajectory point is greater than the sixth threshold.
  • the system further includes a third electronic device, and the third electronic device performs data interaction with the cloud server through the cellular network; the third electronic device is used for: acquiring the fifth motion trajectory within the first area; the cloud server, is also used for: receiving the fifth motion trajectory; obtaining the sixth motion trajectory according to the fifth motion trajectory and the third motion trajectory; the first electronic device is also used for: acquiring the sixth motion trajectory from the cloud server; the second electronic device, used for: acquiring the seventh motion trajectory within the range of the first area; sending the seventh motion trajectory to the first electronic device; the first electronic device is further used for: responding to the received seventh motion trajectory, based on the sixth motion trajectory , rectify the seventh motion track, and display the seventh motion track after the rectification.
  • the cloud server can also be based on one or more other electronic devices, such as a third electronic device, and of course, it can also be the motion trajectory within the first area sent by the fourth electronic device, the fifth electronic device, etc.
  • the motion trajectory is trained to obtain a more standard motion trajectory, so that the first electronic device can correct the motion trajectory of the second electronic device based on the seventh motion trajectory obtained after further training, thereby improving the accuracy of the displayed motion trajectory. sex.
  • the system further includes a third electronic device, the third electronic device performs data interaction with the cloud server through the cellular network; the third electronic device is used to obtain the second area The eighth motion track and the ninth motion track within the range, the first area range is different from the second area range; the cloud server is also used for: receiving the eighth motion track and the ninth motion track; according to the eighth motion track and the ninth motion track The motion track is used to obtain the tenth motion track; the first electronic device is further used for: obtaining the tenth motion track from the cloud server; the first electronic device is also used for: combining the fourth motion track with the third motion track and the tenth motion track The trajectories are respectively matched for similarity, and it is determined that the similarity between the fourth motion trajectory and the third motion trajectory is successfully matched; based on the third motion trajectory whose similarity is successfully matched, the deviation of the fourth motion trajectory is corrected, and the corrected fourth motion trajectory is displayed.
  • the cloud server can obtain one or more standard motion trajectories corresponding to the region based on the motion trajectories in the different regions (that is, the third motion track corresponding to the first region and the tenth motion corresponding to the second region).
  • motion trajectory the first electronic device can obtain one or more standard motion trajectories (such as the third motion trajectory and the tenth motion trajectory) from the cloud server, and then the first electronic device can upload the motion trajectory uploaded by the second electronic device Perform similarity matching with one or more obtained standard motion trajectories, and correct the motion trajectory uploaded by the second electronic device based on the successfully matched standard trajectory (for example, the third motion trajectory), so as to improve the displayed motion accuracy of the trajectory.
  • the similarity between the first motion trajectory and the second motion trajectory is greater than or equal to a similarity threshold.
  • the cloud server can perform training based on multiple motion trajectories within the same area and whose similarity is greater than a threshold, so as to obtain a standard motion trajectory.
  • the similarity between multiple motion trajectories in the same area uploaded by the same electronic device, or the similarity between multiple motion trajectories in the same area uploaded by different electronic devices may be greater than or equal to the similarity.
  • Threshold the cloud server can obtain standard motion trajectories based on multiple motion trajectories within the same area uploaded by the same electronic device or different electronic devices.
  • the similarity between multiple motion trajectories within the same area uploaded by the same electronic device or different electronic devices may be less than the similarity threshold, and the cloud server may perform similarity matching on the multiple motion trajectories.
  • the cloud server may perform similarity matching on the multiple motion trajectories.
  • the first electronic device is configured to: receive an instruction from a user, and acquire a third motion trajectory from a cloud server in response to the instruction from the user.
  • the first electronic device can actively request the cloud server for the third motion trajectory based on the user's instruction, and obtain the third motion trajectory.
  • the user's instruction may also instruct the first electronic device to obtain a specified area from the cloud server, such as a motion trajectory within the second area, and the first electronic device may request the cloud server for the second area based on the user's instruction. trajectory within.
  • the cloud server is configured to: send indication information to the first electronic device, for indicating that the first electronic device can download the third motion trajectory from the cloud server.
  • the cloud server can notify the first electronic device that there is currently a downloadable third motion trajectory by sending indication information.
  • the cloud server may record an area range corresponding to the first electronic device, and accordingly, after the cloud server generates a motion trajectory corresponding to the area range, the cloud server may send indication information to the first electronic device.
  • the first electronic device may display the undownloaded motion track that exists in the cloud server within the specified area on the application interface of the sports health application, or pull down the notification bar, or the notification bar when the screen is locked. The first electronic device may download the motion trajectory within the specified area from the cloud server in response to the received user's instruction.
  • the first electronic device is a mobile phone
  • the second electronic device is a smart watch.
  • one or more motion trajectories are acquired through the first electronic device (that is, the mobile phone) with relatively strong positioning capability
  • the cloud server trains one or more motion trajectories sent by the mobile phone, so as to obtain a high similarity with the actual motion trajectories.
  • Standard motion trajectory The mobile phone can correct the motion trajectory uploaded by the smart watch with weak positioning ability based on the motion trajectory trained by the cloud server, so as to improve the similarity between the corrected motion trajectory and the actual motion trajectory, so as to effectively improve the user experience.
  • the first electronic device and the second electronic device are respectively installed with a sports health application.
  • the first electronic device and the second electronic device can be paired through the sports health application and perform data interaction, for example, the second electronic device can send the acquired motion trajectory to the first electronic device through the sports health application.
  • the first electronic device is configured to: display the fourth motion trajectory after deviation correction on the application interface of the sports health application.
  • the sports health application may also call the road network data of the map application to display the fourth motion trajectory after deviation correction at the corresponding position on the map.
  • the first electronic device and the second electronic device have the same user account.
  • the user can log in to the first electronic device and the second electronic device through the user account, and the first electronic device and the second electronic device can perform data interaction in the scenario of having the same user account.
  • a trajectory correction method is provided.
  • the method is applied to a communication system, and the system includes: a cloud server, a first electronic device and a second electronic device, the first electronic device is connected to the second electronic device through Bluetooth, and the first electronic device exchanges data with the cloud server through a cellular network;
  • the method includes: the first electronic device acquires the first motion track and the second motion track within the first area, and sends the first motion track and the second motion track to the cloud server; the cloud server obtains the first motion track and the second motion track according to the received The second motion track is to obtain the third motion track; the first electronic device obtains the third motion track from the cloud server; the second electronic device obtains the fourth motion track within the first area, and sends the fourth motion track to the first electronic device ;
  • the first electronic device corrects the fourth motion trajectory based on the third motion trajectory, and displays the corrected fourth motion trajectory.
  • the system further includes a third electronic device, and the third electronic device performs data interaction with the cloud server through the cellular network; the method further includes: the third electronic device acquires a fifth motion trajectory within the first area; the cloud server receives the fifth motion track, and obtain the sixth motion track according to the fifth motion track and the third motion track; the first electronic device obtains the sixth motion track from the cloud server; the second electronic device obtains the seventh motion within the first area track, and send the seventh motion track to the first electronic device; the first electronic device, in response to the received seventh motion track, corrects the seventh motion track based on the sixth motion track, and displays the corrected seventh motion track trajectory.
  • the system further includes a third electronic device, and the third electronic device performs data interaction with the cloud server through a cellular network; the method further includes: the third electronic device obtains the second The eighth motion track and the ninth motion track within the area range, the first area range is different from the second area range; the cloud server receives the eighth motion track and the ninth motion track, and according to the eighth motion track and the ninth motion track, obtaining the tenth motion trajectory; the first electronic device obtains the tenth motion trajectory from the cloud server; the first electronic device performs similarity matching on the fourth motion trajectory with the third motion trajectory and the tenth motion trajectory respectively, and determines the fourth motion trajectory The similarity with the third motion trajectory is successfully matched; and, based on the third motion trajectory, the fourth motion trajectory is rectified, and the rectified fourth motion trajectory is displayed.
  • the similarity between the first motion trajectory and the second motion trajectory is greater than or equal to a similarity threshold.
  • the first electronic device receives the user's instruction, and in response to the user's instruction, acquires the third motion trajectory from the cloud server.
  • the cloud server sends indication information to the first electronic device, which is used to indicate that the first electronic device can download the third motion trajectory from the cloud server.
  • the first electronic device is a mobile phone
  • the second electronic device is a smart watch.
  • the first electronic device and the second electronic device are respectively installed with a sports health application.
  • the first electronic device displays the fourth motion trajectory after deviation correction on the application interface of the sports health application.
  • the first electronic device and the second electronic device have the same user account.
  • the second aspect and any implementation manner of the second aspect correspond to the first aspect and any implementation manner of the first aspect, respectively.
  • the technical effects corresponding to the second aspect and any implementation manner of the second aspect reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
  • a computer-readable storage medium includes a computer program that, when the computer program runs on the electronic device or the cloud server, causes the electronic device or the cloud server to execute the second aspect and the trajectory correction method in any one of the second aspect.
  • the electronic device may be the first electronic device or the second electronic device.
  • the third aspect and any implementation manner of the third aspect correspond to the first aspect and any implementation manner of the first aspect, respectively.
  • the technical effects corresponding to the third aspect and any implementation manner of the third aspect reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
  • an embodiment of the present application provides a computer program, where the computer program includes instructions for executing the method in the second aspect or any possible implementation manner of the second aspect.
  • the fourth aspect and any implementation manner of the fourth aspect correspond to the first aspect and any implementation manner of the first aspect, respectively.
  • the technical effects corresponding to the fourth aspect and any implementation manner of the fourth aspect reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
  • an embodiment of the present application provides a chip, where the chip includes a processing circuit and a transceiver pin.
  • the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the second aspect or any possible implementation manner of the second aspect to control the receiving pin to receive a signal to Control the send pin to send the signal.
  • the chip may be a chip of a cloud server or a chip of an electronic device, and the electronic device may be a first electronic device or a second electronic device.
  • the fifth aspect and any implementation manner of the fifth aspect correspond to the first aspect and any implementation manner of the first aspect, respectively.
  • the technical effects corresponding to the fifth aspect and any implementation manner of the fifth aspect reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
  • FIG. 1 is a schematic diagram of an exemplary illustrated communication system
  • FIG. 2 is a schematic structural diagram of an exemplary mobile phone
  • FIG. 3 is a schematic diagram of the software structure of an exemplary mobile phone
  • FIG. 4 is a schematic diagram of the software structure of an exemplary smart watch
  • FIG. 5 is a schematic diagram of an exemplary application scenario
  • Fig. 6 is a schematic diagram of a trajectory correction flow diagram exemplarily shown
  • Fig. 7a is a schematic diagram of the motion trajectory before deviation correction shown in an exemplary manner
  • Fig. 7b is a schematic diagram of the motion trajectory after the deviation correction is exemplarily shown
  • FIG. 8 is a schematic flowchart of a trajectory correction method provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of the standard path training exemplarily shown.
  • FIG. 10 is a schematic flowchart of an exemplary standard path download
  • FIG. 11 is a schematic flowchart of an exemplary trajectory correction
  • FIG. 12 is a schematic diagram of application pairing exemplarily shown
  • FIG. 13 is a schematic flowchart of standard path training exemplarily shown
  • FIG. 14 is a schematic flowchart of an exemplary similarity matching
  • FIG. 15 is a schematic flowchart of standard path training exemplarily shown
  • FIG. 16 is a schematic flowchart of an exemplary trajectory correction
  • FIG. 17 is a schematic flowchart of the standard path training exemplarily shown.
  • FIG. 18 is a schematic flowchart of standard path training exemplarily shown
  • FIG. 19 is a schematic flowchart of an exemplary similarity matching
  • 21 is a schematic flowchart of a trajectory correction method provided by an embodiment of the present application.
  • Figure 22 is a schematic diagram of an exemplary application scenario
  • Figures 23a-23b are schematic diagrams of motion trajectories exemplarily shown
  • FIG. 24 is a schematic diagram of an exemplary display interface
  • FIG. 25 is a schematic diagram of an exemplarily shown display interface.
  • 26 is a schematic flowchart of a trajectory correction method provided by an embodiment of the present application.
  • FIG. 27 is a schematic structural diagram of an apparatus provided by an embodiment of the present application.
  • first and second in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of the objects.
  • first target object, the second target object, etc. are used to distinguish different target objects, rather than to describe a specific order of the target objects.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner.
  • multiple processing units refers to two or more processing units; multiple systems refers to two or more systems.
  • FIG. 1 it is a schematic diagram of a communication system according to an embodiment of the present application.
  • the communication system includes the cloud, mobile phones and smart watches.
  • the smart watch can communicate with the mobile phone, and the mobile phone can communicate with the cloud.
  • data can be exchanged between the smart watch and the mobile phone through a Bluetooth network, and data can be exchanged between the mobile phone and the cloud through a cellular network.
  • the cloud includes one or more network devices for providing services for terminal devices.
  • the number of mobile phones and smart watches is only a schematic example. In practical application scenarios, the number of both mobile phones and smart watches may be one or more.
  • smart watches and mobile phones are used as examples for illustration. In other embodiments, the present application is also applicable to large screens, laptop computers, desktop
  • electronic devices such as smart phones, etc. and smart wearable devices (such as smart bracelets, smart watches, smart glasses, smart rings, etc.).
  • FIG. 2 is a schematic structural diagram of a mobile phone according to an embodiment of the application.
  • FIG. 2 takes the mobile phone in FIG. 1 as an example to illustrate the structure of the electronic device, those skilled in the art will understand that the structure of the mobile phone in FIG. 2 is also applicable to the smart watch in FIG. 1 . As shown in FIG. 1 .
  • the mobile phone 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a USB interface 130 , a charging management module 140 , a power management module 141 , a battery 142 , an antenna 1 , an antenna 2 , and a mobile communication module 150 , the wireless communication module 160, the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, the sensor module 180, the buttons 190, the motor 191, the indicator 192, the camera 193, the display screen 194, and the subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 100 .
  • the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the USB interface 130 is an interface that conforms to the USB standard specification, specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, etc., and can support USB1.0, USB2.0, USB3.0 and USB4.0 or higher standard USB Specifications, including various USB specifications.
  • the USB interface 130 may include one or more USB interfaces.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 100 .
  • the mobile phone 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in handset 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile phone 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves
  • the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the mobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • the mobile phone 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • FIG. 3 is a block diagram of a software structure of a mobile phone 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into five layers, which are, from top to bottom, an application layer, a system framework layer, a system library and runtime layer, and a kernel layer.
  • the application layer can include applications such as camera, gallery, calendar, sports health, WLAN, music, video, etc. It should be noted that, the applications included in the application layer shown in FIG. 3 are only illustrative, and are not limited in this application. It can be understood that the applications included in the application layer do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, compared with the applications included in the application layer shown in FIG. 3 , the mobile phone 100 may include more or less applications, and the mobile phone 100 may also include completely different applications.
  • the system framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer, including various components and services to support developers' Android development.
  • the system framework layer includes some predefined functions.
  • the system framework layer may include a view system, a window manager, a resource manager, a content provider, and the like.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • a window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on. Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, and the like.
  • the system library and runtime layer includes the system library and the Android Runtime.
  • a system library can include multiple functional modules. For example: browser kernel, 3D graphics library (eg: OpenGL ES), font library, etc.
  • the browser kernel is responsible for interpreting the syntax of the web page (such as an application HTML and JavaScript under the standard general markup language) and rendering (displaying) the web page.
  • the 3D graphics library is used to implement 3D graphics drawing, image rendering, compositing and layer processing, etc.
  • the font library is used to implement the input of different fonts.
  • the Android runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • the components included in the system framework layer, system library and runtime layer shown in FIG. 3 do not constitute a specific limitation on the mobile phone 100 .
  • the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • FIG. 4 is a block diagram of a software structure of a smart watch 200 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the software structure in the smart watch is divided into four layers, which are, from top to bottom, an application layer, a system framework layer, a hardware abstraction layer (Hardware Abstraction Layer, HAL), and a driver.
  • HAL hardware abstraction layer
  • the application layer can include applications such as dials and segments. It should be noted that these applications can be understood as sub-functions in the sports health application, that is to say, the sports health application is embedded in the smart watch. , the sports health application is activated by default, and the user can select sub-applications in the sports health application, such as Duan Lian, etc., and select the corresponding mode. It should be noted that, the applications included in the application layer shown in FIG. 4 are only exemplary descriptions, which are not limited in this application. It can be understood that the applications included in the application layer do not constitute a specific limitation on the smart watch 200 . In other embodiments of the present application, compared with the applications included in the application layer shown in FIG. 4 , the smart watch 200 may include more or less applications, and the smart watch 200 may also include completely different applications.
  • the system framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • the system framework layer can include basic platform services, sports services, health services, short-distance services, Audio services, mobile phone collaboration services and other services.
  • basic platform services include device management, communication management, DFM, maintenance and testing camp, file system, secure storage, and upgrade services.
  • Sports services include daily tracking, exercise, fitness, and wear detection.
  • Health services include heart rate, stress, breathing, sleep, atrial fibrillation.
  • Short-range services include Bluetooth, NFC payment, and positioning.
  • Audio services include music playback and audio device management.
  • Mobile phone collaboration services include call management and message management.
  • the HAL layer is used to isolate hardware differences, logically abstract the hardware, and form a unified interface, so that the system framework layer does not depend on specific hardware.
  • This layer includes audio (Audio) HAL and sensor (Sensor) HAL.
  • the components included in the system framework layer and the HAL layer shown in FIG. 4 do not constitute a specific limitation on the smart watch 200 .
  • the smart watch 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • FIG. 5 is an exemplary schematic diagram of an application scenario.
  • the user runs along the path A, and the actual motion trajectory of the user is the motion trajectory A shown in FIG. 5 .
  • the user runs with a mobile phone, because the antenna efficiency of the mobile phone is relatively high (generally around -4.5dB ⁇ -5.5dB), and the number of satellite search channels is large (that is, more satellites can be found and connected, such as satellite search.
  • the number of channels is 100 to 144), among which, the higher the antenna efficiency, the greater the gain of the GPS signal received by the mobile phone, and the more the number of satellites that can be searched and connected when the mobile phone is positioned, the more the mobile phone can obtain
  • the more parameters that can be used for positioning, the more accurate, therefore, the motion trajectory obtained by the mobile phone (that is, the motion trajectory B in FIG. 5 ) is close to the actual motion trajectory A.
  • the user only wears the smart watch for running (does not carry a mobile phone), because the antenna efficiency of the smart watch is low (generally about -11dB), and the number of search channels is small (for example, the number of search channels is 24-64). A), therefore, it may cause a large deviation between the motion track C obtained by the smart watch and the motion track A.
  • FIG. 6 is an exemplary schematic diagram of the trajectory correction process. Referring to FIG. 6 , it specifically includes:
  • step 101 the mobile phone periodically or triggered downloads road network data from the cloud.
  • the road network data is stored in the cloud, and the road network data is manually produced, and the specific production method is not described in this application.
  • the mobile phone may periodically download road network data from the cloud, and optionally, the period may be 7 days, which is not limited in this application.
  • the mobile phone may also download road network data from the cloud after receiving the user's instruction.
  • the road network data described in the embodiments of the present application refers to data including longitude and latitude.
  • the longitude and latitude data in the road network data obtained by the mobile phone can indicate parameters such as street width, location, length, etc.
  • the map picture displayed by the software is usually the result of rendering each parameter of the road network data.
  • Step 102 the smart watch acquires motion track information.
  • the smart watch may collect motion track information according to a sampling period (for example, 1s). For example, the smart watch obtains the current motion information every 1s, and the motion information includes but is not limited to: position, direction, speed, confidence, and altitude (ie altitude). Save, it can be understood that the smart watch obtains the motion information of one track point every 1s.
  • the track points obtained by the smart watch for example, 1,000 track points are obtained constitute the user.
  • the motion trajectory information described in the embodiments of the present application includes the motion information corresponding to each trajectory point that constitutes the motion trajectory, that is, the motion trajectory information includes but is not limited to the position of each trajectory point on the motion trajectory, Direction, speed, confidence and altitude.
  • the smart watch can also obtain the user's health information, such as the user's pulse, body temperature, heart rate and other data.
  • the user's health information such as the user's pulse, body temperature, heart rate and other data.
  • the position of the trajectory point described in the embodiments of the present application is the longitude and latitude information of the trajectory point.
  • the direction of the trajectory point can be obtained by an electronic device (such as a mobile phone or a smart watch) based on the received GPS signal, or it can be based on the distance between the trajectory point and the previous trajectory point and/or the next trajectory point. obtained from the location. It should be noted that the direction of the trajectory point obtained through the position between the trajectory point and the previous trajectory point and/or the next trajectory point may have a certain deviation from the actual direction of the trajectory point, which can be understood as the trajectory The directional trend (or movement trend) corresponding to the point.
  • the velocity of the trajectory point may be directly measured, or it may be calculated based on the displacement from the previous trajectory point and the sampling period.
  • the confidence level may also be called evaluation accuracy, which is used to evaluate the quality of the track points, or the reliability of the track points.
  • evaluation accuracy is used to evaluate the quality of the track points, or the reliability of the track points.
  • the first trajectory point is a credible trajectory point, that is, the confidence degree satisfies the confidence degree range
  • the first trajectory point is low, and the corresponding confidence score will exceed the confidence score range.
  • the confidence score is lower, and the deviation between the position, direction and/or speed of the corresponding trajectory point and the actual trajectory point is larger, and the specific scoring rules can be set according to actual needs. limited.
  • the altitude represents the altitude corresponding to the position to which the current watch belongs.
  • Step 103 the smart watch sends motion track information to the mobile phone.
  • the smart watch after acquiring the motion track information, the smart watch sends the motion track information to the mobile phone.
  • the smart watch also obtains other information in step 102, such as health information, etc., it may be sent to the mobile phone together with the motion track information.
  • other information in step 102 such as health information, etc.
  • Step 104 the mobile phone corrects the motion trajectory based on the road network data.
  • the mobile phone obtains the road network data in advance, and the mobile phone can obtain the road network data within the area to which the motion track belongs based on the received position information of each track point of the motion track.
  • the area is a rectangular area with a range of 5 km*5 km, or a circular area with a radius of 5 km with any trajectory point on the motion trajectory as the center, or the centroid of multiple trajectory points on the motion trajectory, and the centroid It is a circular area with a center and a radius of 5 kilometers.
  • the mobile phone may correct the motion trajectory based on the acquired road network data (also referred to as deviation correction, correction or calibration).
  • the road network data includes but is not limited to data such as the width, position (latitude and longitude) and length of the road.
  • Figure 7a is a schematic diagram of the motion trajectory before the deviation correction displayed by the mobile phone.
  • the motion trajectory displayed by the mobile health application is Based on the road network data obtained by the mobile phone, it is assumed that the mobile phone displays the motion trajectory before deviation correction. As can be seen in Figure 7a, there are multiple trajectory points on the motion trajectory that deviate from the road.
  • the mobile phone can correct the track points that deviate from the road based on the road network data of the road, so that the deviated track points can be restored to the road, so that each track point on the motion track is always kept on the road, as shown in the figure 7b is a schematic diagram of the movement trajectory after the deviation correction displayed by the mobile phone.
  • each trajectory point on the motion trajectory is located on the road, the motion trajectory need not be corrected.
  • Step 106 the mobile phone displays the motion track.
  • the sports health application of the mobile phone displays the corrected motion trajectory.
  • the sports health application can also display health information and the like.
  • the mobile phone Due to the limitation of the antenna performance of the smart watch, there may be a large deviation between the motion track obtained by the smart watch and the actual motion track. For example, the track point is not on the road.
  • the mobile phone obtains the road network data, the mobile phone can realize Correction of motion trajectories sent by smartwatches.
  • the road network data is artificially generated, if the actual road is changed, if the road network data cannot be manually updated in time, the road network data obtained by the mobile phone within the area to which the road belongs will be inaccurate.
  • road network data usually only covers main roads, and cannot cover internal roads such as sports fields and parks.
  • the mobile phone cannot correct the motion trajectory, and can only display the obtained intelligent The movement trajectory sent by the watch, such as the result shown in Figure 7a.
  • the road network data corresponding to the open space A still indicates that the land is an open space.
  • the user wears a smart watch to run on the newly built road in the open space A. Since the mobile phone cannot obtain the road network data of the road, the mobile phone cannot correct the motion trajectory sent by the received smart watch, and can only display the smart watch. Sending motion traces with poor accuracy.
  • the present application provides a trajectory correction method, which can realize the correction of the motion trajectory of the smart watch without relying on road network data, so as to effectively improve the accuracy of the motion trajectory displayed by the application and improve the user experience.
  • FIG. 8 shows a schematic flowchart of a trajectory correction method provided by an embodiment of the present application.
  • the trajectory correction method of the present application may include standard path training, standard path download, standard path
  • standard path There are four parts of matching and track correction, and the above four parts are described in detail below.
  • the cloud can be used to train motion trajectories uploaded by one or more terminals to obtain a standard path.
  • FIG. 9 is an exemplary schematic flowchart of standard path training.
  • mobile phone 1, mobile phone 2, and mobile phone 3 can send motion tracks 1 to 5, motion tracks 6, and motion tracks 7 to the cloud, respectively.
  • the cloud stores the received motion trajectories 1 to 10 in the storage unit.
  • the training unit in the cloud can obtain motion trajectories (for example, motion trajectories 1 to 10) stored within a week from the storage unit every other week (ie, 7 days). Train to get one or more standard paths.
  • the mobile phone 1, the mobile phone 2, and the mobile phone 3 may send the motion trajectory to the cloud in the same or different periods.
  • mobile phone 1 can send motion tracks 1 to 5 to the cloud in the first cycle
  • mobile phone 2 can send motion track 6 to the cloud in the second cycle
  • mobile phone 3 can send motion tracks 7 to 10 to the cloud in the third cycle.
  • mobile phone 1 can send motion tracks 1 to 5 to the cloud in the first cycle
  • mobile phone 2 can send motion track 6 to the cloud in the second cycle
  • mobile phone 3 can send motion tracks 7 to 10 to the cloud in the third cycle.
  • mobile phone 1 can send motion tracks 1 to 5 to the cloud in the first cycle
  • mobile phone 2 can send motion track 6 to the cloud in the second cycle
  • mobile phone 3 can send motion tracks 7 to 10 to the cloud in the third cycle.
  • the training unit may periodically acquire the motion trajectory within the period from the storage unit for training.
  • the cycle duration may be 7 days or 3 days, and the cycle duration described in this application is only an illustrative example, which is not limited in this application.
  • the training unit may also acquire untrained motion trajectories from the storage unit aperiodically. For example, every time the storage unit receives 1000 motion trajectories, the training unit is notified to perform training.
  • FIG. 10 is a schematic flowchart of downloading a standard path.
  • the training unit in the cloud obtains the standard path, it outputs the standard path to the storage unit for storage.
  • Mobile phone 1 to mobile phone 3 (including mobile phone 1, mobile phone 2 and mobile phone 3) can download the standard path on demand.
  • the standard path download rules on the mobile terminal include but are not limited to:
  • the download period of the mobile phone may be 7 days or 3 days, which is not limited in this application.
  • the specified area range may be the area range to which the place where the user often runs (for the concept of the area range, refer to the description in step 104, which will not be repeated here).
  • the specified area range may also be the area range to which the place where the user ran most recently belongs.
  • the number of designated area ranges can be 7 online. For example, the mobile phone only updates the 7 places where the user recently ran every week (assuming that the user runs at a different place each time) belonging to the designated area. geographic range.
  • the standard path download method on the mobile phone terminal may also be that after the user clicks on the sports health application, the mobile phone responds to the user's click operation, obtains the current location of the mobile phone, and updates the standard path within the area where the mobile phone is located.
  • the sports health application can provide a search function. The user can search for a specified location in the search function, such as the XX park, and select a standard path in the XX park to download.
  • the mobile phone detects the user's operation behavior and can request it from the cloud.
  • the standard route in the XX campus, the cloud can send the standard route in the XX campus to the mobile phone.
  • the mobile phone can detect whether the stored standard routes are the standard routes obtained recently (for example, within 7 days), if one or more standard routes are If it is obtained within 7 days, the mobile phone can request the cloud for other standard routes in the XX campus in addition to the one or more standard routes that have been saved.
  • the standard path download method on the mobile phone terminal may also be that the cloud actively pushes the standard path within the specified area to the mobile phone terminal.
  • the cloud can record the specified area range corresponding to the mobile phone, and after detecting that there is an updated standard path within the specified area, push the standard path within the specified range to the mobile phone, or the cloud can also periodically (for example, 7 days) ) pushes the standard path within the specified area to the mobile terminal, and when the user confirms that the download is allowed, the mobile phone obtains the standard path pushed by the cloud.
  • FIG 11 is a schematic flow chart of standard path matching and trajectory correction.
  • a user wears a smart watch to run.
  • the smart watch obtains the user's movement information, including but not limited to the movement information on the movement track 11.
  • Information such as position, direction, velocity, confidence, and altitude of track points.
  • the smart watch can be paired with the mobile phone 1 via Bluetooth.
  • application pairing can be performed.
  • Figure 12 is a schematic diagram of application pairing.
  • the display window of the mobile phone displays the main page, and the main page includes one or more spaces, such as application icons, battery controls, etc.
  • the user can click the sports health application icon, the mobile phone detects the user's click operation, and displays the sports health on the display window.
  • the application interface, the sports health application interface includes one or more plug-ins, the user can click the "device” option, the mobile phone detects the user's click operation, and displays the device interface.
  • the device interface includes one or more prompt boxes, the prompt box may include prompt information, and the prompt information is used to indicate that "multiple devices can be added", and may also include other prompt boxes.
  • another prompt box includes a prompt. The message "helps you easily play with Huawei wearable devices”.
  • the user can click the "Add Device” prompt box, the mobile phone detects the user's click operation, and displays the Add Device Interface (also called the All Device Interface), which includes one or more device options, and the user can click the "Watch” option. .
  • the mobile phone detects the user's click operation and displays the watch interface.
  • the watch interface can provide one or more series options of Huawei watches.
  • the user can click the HUAWEI WATCH GT2 series. It should be noted that the brands shown in the figure and The series are only illustrative examples, and are not limited in this application.
  • the mobile phone detects the user's click operation, and displays the HUAWEI WATCH GT2 series pairing interface.
  • the interface includes one or more controls, such as multiple controls at the bottom (including options such as health, exercise, and equipment), It also includes a "start pairing" option, the user can click the “start pairing” option, the mobile phone detects the user's click operation, and pairs with the model corresponding to the user's smart watch (for example, Huawei Smart Watch 4).
  • controls such as multiple controls at the bottom (including options such as health, exercise, and equipment)
  • start pairing option
  • the mobile phone detects the user's click operation, and pairs with the model corresponding to the user's smart watch (for example, Huawei Smart Watch 4).
  • the mobile phone and the smart watch have the same user account, and the user can log in to the same account on the mobile phone and the smart watch.
  • the smart watch approaches the mobile phone again. If the mobile phone and the smart watch have the same account, the mobile phone and the smart watch can be automatically connected.
  • the smart watch can send the motion track 11 to the mobile phone 1 through the Bluetooth connection.
  • the mobile phone 1 matches the motion track 11 with one or more downloaded standard paths one by one, and obtains a successfully matched standard path.
  • the mobile phone 1 can rectify the motion trajectory 11 based on the standard path.
  • the cloud can perform group motion trajectory training based on the obtained multiple motion trajectories to obtain a standard path.
  • the mobile phone can obtain the standard path matching the motion trajectory from the cloud, so as to correct the motion trajectory based on the standard path, so as to propose a deflection correction method that does not depend on the road network data, and effectively improve the accuracy and reliability of the motion trajectory correction. , so as to improve the user experience.
  • Mobile phone 1 acquires motion track information 1 to 5 in the first cycle, and sends motion track information 1 to 5 to the cloud in the first cycle.
  • the motion trajectories 1 to 5 are generated by user 1 running counterclockwise in the park A at different time periods in the first cycle.
  • the cycle duration is one week (ie, 7 days) as an example for description
  • the first cycle can be understood as the first week
  • the second cycle can be the next cycle adjacent to the first cycle. a week.
  • the second period may also be another week separated from the first period, which is not limited in this application.
  • the mobile phone 2 acquires the motion track information 6-9 in the first cycle, and sends the motion track information 6-9 to the cloud in the first cycle.
  • the motion trajectories 6 to 9 are generated by the user 2 running in the counterclockwise direction in the park B at different time periods in the first cycle.
  • the mobile phone 3 acquires the motion track information 10 in the second cycle, and sends the motion track information 10 to the cloud in the second cycle.
  • the motion trajectory 10 is generated by the user 3 running in the clockwise direction in the park A in the second cycle.
  • Each motion track information includes, but is not limited to: the position, direction, speed, confidence and height of each track point on the motion track, and optionally, also includes identification information of the mobile phone.
  • the identification information of the mobile phone can be information such as the serial number of the mobile phone, and the purpose of sending this information is to enable the cloud to identify whether the generator of the acquired motion trajectory information is a device of a specified type based on the identification information of the mobile phone, For example, mobile phones, etc., it can also be understood that a specified type of device refers to a device whose acquired motion trajectory can be used as the basis for standard path training, while a non-specified type of device refers to a smart watch, smart watch and other motion trajectories that cannot be used as a generation standard.
  • some parameters in the mobile phone serial number can be used to indicate the type of the device. For example, if the mobile phone is a Huawei P30, the cloud can determine that the Huawei P30 mobile phone is the specified type based on the correspondence between the preset serial number parameters and the specified type of device. equipment.
  • the identification information of the mobile phone can also be a special symbol in the specified field.
  • the data field in the data packet sent by the mobile phone to the cloud can include an indication field.
  • the value in the indication field is "1" , indicating that the sender of the data packet is a mobile phone, that is, a device of a specified type.
  • the data field in the data packet sent by the watch to the cloud may include an indication field.
  • the identification data The sender of the packet is a watch, that is, a device of a non-specified type.
  • FIG. 13 shows a schematic flowchart of the standard path training provided in this embodiment of the present application. Referring to FIG. 13 , it specifically includes:
  • Step 201 the cloud determines whether the motion track information 1-9 is generated by a device of a specified type.
  • the cloud (unless otherwise specified, the execution subject hereinafter refers to the training unit in the cloud) extracts the motion trajectory information 1-9 obtained in the first cycle from the storage unit.
  • the cloud may determine, based on the identification information included in each motion track information, whether the generator of the motion track is a device of a specified type (for the concept, refer to the above). Exemplarily, in this embodiment, the cloud determines, based on the identification information, that the generators of the motion trajectories 1 to 9 are all mobile phones, and executes step 202 .
  • the mobile phone may send the received motion track sent by the smart watch to the cloud, so as to instruct the cloud to store the motion track obtained by the smart watch before deviation correction.
  • the mobile phone 1 when the mobile phone 1 sends the motion track of the smart watch, it needs to carry an identifier used to indicate that the motion track is generated by the smart watch, for example, it can be the serial number of the smart watch or carried in the indication field Special identification (refer to the above), the cloud can determine the generation end of the motion track is a smart watch based on the corresponding relationship between the serial number or the special representation and the specified type of equipment, and then store the motion track.
  • an electronic device such as a smart watch or a smart bracelet has a cellular communication function
  • data can be exchanged with the cloud through a cellular network.
  • the track and the serial number of the smart watch are sent to the cloud.
  • the cloud can determine the generation end of the motion track as the smart watch based on the serial number, and store the motion track.
  • the smart watch is a motion track generated by a positioning system based on a mobile phone
  • the motion track information sent to the cloud includes an indication that the motion track is a smart watch.
  • Generated by a mobile phone-based positioning system For example, a user runs with a mobile phone and a smart watch, and the smart watch and the mobile phone always maintain a Bluetooth connection.
  • the mobile phone can obtain the motion track based on the mobile phone's positioning system and transmit it to the smart watch.
  • the smart watch combines the motion track and health information to generate sports health information.
  • the mobile phone can send the motion trajectory information to the cloud, where the information includes an identifier indicating that the motion trajectory is sent by the mobile phone-based positioning system.
  • the cloud can use this type of motion trajectory as a training sample to train the standard path.
  • Step 202 the cloud detects whether there is a standard path matching the motion trajectories 1-9.
  • the cloud extracts one or more standard paths within the area to which the stored motion track belongs to perform similarity matching to determine whether there is a standard path corresponding to the motion track, for example, motion track 1
  • the area to which ⁇ 5 belongs is park A, and the area to which motion tracks 6 to 9 belong is park B.
  • FIG. 14 is an exemplary schematic flowchart of similarity matching.
  • the track points on the motion track stored in the cloud All are stored in the order of the generation time of the trajectory points, that is to say, after the mobile phone obtains the trajectory points according to the sampling period, the motion information of each trajectory point in the trajectory information sent to the cloud is still in accordance with each trajectory point. Generate (or get) sent sequentially.
  • the cloud performs similarity matching on each trajectory point according to the order of the trajectory points, wherein the order of the trajectory points refers to the temporal order of each trajectory point on the motion trajectory.
  • the trajectory point 1 is the starting trajectory point on the motion trajectory A (that is, the trajectory point recorded for the first time), and the cloud is based on the direction 1 of the trajectory point 1, Traverse each track point on the motion track B, and obtain the track point whose included angle with the direction 1 is less than 30°.
  • the traversal process is also in accordance with the order of each track point on the motion track B.
  • the cloud can traverse from the point 1' of the trajectory based on the sequence of each trajectory point on the motion trajectory B, and only traverse 80 (the specific value can be set according to actual needs) trajectory points to reduce the power of the cloud server. consumption.
  • the trajectory points obtained by the cloud whose included angle between the motion trajectory B and the direction 1 of trajectory point 1 is less than or equal to 30° include trajectory point 1', trajectory point 2', trajectory point 1', and trajectory point 1'. 3'.
  • the thresholds described in the embodiments of the present application for example, the angle between directions, and the distance thresholds described below are all illustrative examples, and in other embodiments, other values may also be used
  • the threshold value of the included direction angle may be 40°, etc., which is not limited in this application.
  • the range of the angle between the two directions is [0, 180°].
  • the angle between the direction 1 and the direction 2 is 28°
  • the angle between the direction 1 and the direction 3 is 28°.
  • the angle between direction 1 and direction 4 is 12°.
  • the cloud after direction matching, performs distance matching between the trajectory point 1 and each point in the trajectory point set (including trajectory point 1', trajectory point 2', and trajectory point 3') whose directions are successfully matched, and selects the point corresponding to the trajectory.
  • the trajectory point with the closest distance between points 1 is the projection point corresponding to the trajectory point 1.
  • the cloud matches the trajectory point 1 with the trajectory points in the trajectory point set one by one, and obtains the distances between the trajectory point 1 and the trajectory point 1', the trajectory point 2', and the trajectory point 3' respectively: distance 1, Distance 2, Distance 3.
  • the cloud determines that the distance 1 is the minimum of several distance values, that is, the distance between the trajectory point 1 and the trajectory point 1' is the closest, and the trajectory point 1' is the projection point of the trajectory point 1.
  • the distance value is obtained based on the position of the trajectory point.
  • the cloud determines whether the projection point meets the set condition.
  • the set condition is that the distance is less than or equal to 50 meters. In an example, if the cloud detects that the distance 1 is less than 50 meters, for example, the distance 1 is 10 meters, the cloud determines that the trajectory point 1' is a projection point corresponding to the trajectory point 1 that meets the set conditions.
  • the cloud continues to sequentially match each trajectory point on the motion trajectory A in the above-mentioned manner.
  • the projection point corresponding to the trajectory point 1 is the trajectory point 2', then after the trajectory point 1 is matched
  • it can only be traversed from the trajectory point 3' to select the corresponding projection point.
  • the above-mentioned trajectory point 2 after the trajectory point 1 refers to the time sequence, that is, when the trajectory is generated, the trajectory point 1 is generated first, and then the trajectory point 2 is generated.
  • starting the traversal from the trajectory point 3' means starting the traversal from the adjacent trajectory point (that is, the trajectory point 3') behind the trajectory point 2' that matches the trajectory point 1.
  • the motion track A and the motion track B are successfully matched, which can also be understood as the motion track A.
  • the similarity with the motion trajectory B is greater than or equal to 70%. It should be noted that the similarity matching method described in this application is only a schematic example, and in other embodiments, similarity matching can also be performed in other ways.
  • the point with the smallest corresponding distance is the projection point, and then based on the direction and distance between each projection point and the trajectory point, it is determined whether the projection point meets the conditions, etc., which is not limited in this application.
  • Step 203 is executed for the standard paths matching the motion trajectories 6-9.
  • Step 203 the cloud generates a standard path.
  • Figure 15 is a schematic diagram of generating a standard path based on motion trajectories 1 to 5. It should be noted that, before generating a standard path, the cloud also matches motion trajectories 1 to 5 in pairs to determine the motion trajectories. 1 to 5 are motion trajectories with a similarity greater than or equal to 70%, that is, only multiple motion trajectories with a similarity greater than or equal to 70% can be used as samples for standard path generation training.
  • the cloud uses the hierarchical clustering method to train multiple motion trajectories.
  • the cloud corrects the deviation of the motion trace 1 and the motion trace 2, and obtains the correction result 1; Correction result 2 is obtained; correction of motion trajectory 5 and correction result 2 is performed, correction result 3 is obtained; correction result 1 and correction result 3 are corrected, correction result 4 is obtained, and correction result 4 corresponds to motion trajectory 1 to 5.
  • Standard route which can be marked as standard route A1 in campus A. It should be noted that in the process of correction, the position, direction and speed of each track point are corrected, and the saved information includes the position, direction and speed of each track point on the corrected motion track 4 corresponding to the correction result 4 .
  • FIG. 16 is a schematic diagram of the deviation correction process exemplarily shown.
  • the cloud still follows the above
  • the similarity matching method described in this paper determines the projection points corresponding to the trajectory points of the motion trajectory A on the motion trajectory B, and uses the trajectory point 1 on the motion trajectory A and the projection point on the motion trajectory B corresponding to the trajectory point 1 (
  • the track point 1') is used as an example to illustrate, assuming that the position corresponding to the track point 1 is the position 1, the position corresponding to the track point 1' is the position 2, and the corrected position 1 of the corrected track point 1 is the position 1 and the position 2.
  • the direction, speed, confidence and height of the corrected trajectory point 1 are also obtained based on the direction and speed of the trajectory point 1 ′ and the trajectory point 1 .
  • the centering correction method in the above example is only applicable to the correction between two motion trajectories with the same heat, where the heat refers to the number of training samples that generate a standard path or correction result.
  • the correction result 1 is generated based on the motion track 1 and the motion track 2, and its popularity (that is, the number of training samples) is 2.
  • the popularity of the correction result 3 is 3 (including the motion track 3, the motion track 4 and the motion track 2). track 5).
  • the position of each track point on correction result 4 is closer to correction result 3.
  • the ratio of the heat of the correction result 1 to the heat of the correction result 3 is 2:3, and the deviation is corrected according to this ratio during the correction process.
  • the cloud rectifies the position, direction and speed of each corresponding trajectory point (that is, the correspondence between the trajectory point and the projection point) on the motion trajectory A and the motion trajectory B, so as to obtain the motion corresponding to each corrected trajectory point.
  • information that is, the correction track information corresponding to the correction motion track.
  • FIG. 17 is a schematic diagram of generating standard paths based on motion trajectories 6 to 9.
  • the cloud also trains motion trajectories 6 to 9 based on the hierarchical clustering method to generate the standard path B1 in the park B and the corresponding sports information.
  • the generation of the standard path may also adopt manual intervention.
  • any one of the multiple motion trajectories may be manually selected as the standard path.
  • the cloud records the standard path as manual. generated after intervention.
  • Step 204 the cloud saves the standard path information.
  • the cloud saves the standard path information, that is, including the position, direction, speed, confidence, and height of each trajectory point on the standard path A1, and the position, direction, speed, and confidence of each trajectory point on the standard path B1. and height.
  • the cloud obtains a standard path (assuming a standard path X) that matches the motion trajectories 1 to 5
  • the cloud updates the standard path X based on the motion trajectories 1 to 5 .
  • the cloud still corrects the motion trajectories 1 to 5 two by two according to the method shown in FIG. 15 , and corrects the correction result 4 and the standard path X, and the correction method can still refer to the above.
  • the cloud can also record the popularity of the standard path X and the popularity of the correction result 4 (the concept of popularity is described above).
  • the popularity of the standard path X is 100
  • the popularity of the correction result 4 is 5 ( That is, the motion trajectories 1 to 5)
  • the correction is performed according to the ratio of 100:5, that is, the standard path X' after the correction is closer to the standard path X.
  • the standard path may be generated by manual intervention. For this type of standard path, it does not need to be updated. That is to say, even if a matching motion trajectory is obtained, it will not be based on motion Trajectories update standard paths generated by human intervention.
  • FIG. 13 shows the process of training the motion trajectory obtained in the first cycle.
  • the following describes the process of training the standard path in the second cycle.
  • FIG. 18 is a schematic flowchart of the standard path training provided in this embodiment of the present application. Unless otherwise specified, the relevant content involved in this embodiment is the same or similar to the relevant content in FIG. 13 , and is not repeated here. Repeat. Referring to Figure 18, it specifically includes:
  • Step 301 the cloud determines whether the motion track information 6 is generated by a device of a specified type.
  • Step 302 the cloud detects whether there is a standard path matching the motion track 6 .
  • the cloud extracts the standard path within the area to which the motion track 6 belongs (ie, the park A), that is, the standard path A1 .
  • the cloud matches the similarity between the motion track 6 and the standard path A1, and determines that the similarity between the motion track 6 and the standard path A1 is 0.
  • Step 303 the cloud generates a standard path.
  • the motion trajectory 6 can be used as the standard path B1 in the park A.
  • Step 304 the cloud saves the standard path.
  • the mobile phone 1 downloads the standard path A1 , the standard path A2 , and the standard path A3 from the cloud, and the specific download rules can be referred to above, which will not be repeated here.
  • FIG. 20 is a schematic flowchart of another trajectory deviation correction method provided by an embodiment of the present application. Referring to FIG. 20 , it specifically includes:
  • Step 401 the mobile phone acquires one or more pieces of motion track information.
  • Step 402 the mobile phone generates a standard path based on one or more motion trajectories.
  • the mobile phone can be trained based on one or more motion trajectories to generate a corresponding standard path.
  • the generation method of the standard path please refer to the relevant content of step 203, which will not be repeated here.
  • Step 403 the mobile phone sends the standard path information to the cloud.
  • Step 404 the cloud performs training based on the standard path samples sent by one or more mobile phones to generate a standard path.
  • one or more mobile phones can send one or more standard paths generated by them to the cloud.
  • the standard paths sent by each mobile phone are the standard path training samples, and the cloud can perform training based on the standard path training samples to generate
  • the standard path reference may be made to step 203 for the method of generating the standard path, which will not be repeated here.
  • Step 405 the cloud saves the standard path information.
  • the smart watch After acquiring the motion track 11, after the smart watch and the mobile phone 1 are successfully paired by Bluetooth and the application, the smart watch sends the motion track 11 to the mobile phone 1 through the Bluetooth connection. specific:
  • step 501 the mobile phone 1 determines whether a standard path within the area to which the motion track 11 belongs is stored.
  • the mobile phone 1 extracts a standard path within the area to which the motion track 11 belongs (ie, the park A), including the standard path A1 and the standard path A2, based on the position of each track point of the motion track 11 .
  • the mobile phone 1 determines that the standard path within the area to which the motion track 11 belongs is not stored, the mobile phone 1 downloads the standard path in the park A from the cloud.
  • the cloud does not store the standard path in the park A, the mobile phone 1 directly displays the motion track 11 .
  • Step 502 the mobile phone 1 determines whether the standard path A1 and the standard path A2 are the latest standard paths.
  • the mobile phone 1 will periodically update the saved standard path, and the mobile phone 1 determines whether the standard path A1 and the standard path A2 are the standard paths updated in the latest cycle.
  • A1 and standard route A2 are standard routes updated in the latest cycle, and step 503 is executed.
  • mobile phone 1 downloads the park from the cloud Standard path within A.
  • Step 503 the mobile phone 1 performs similarity matching between the motion track 11 and the standard path A1 and the standard path A2.
  • the mobile phone 1 performs similarity matching between the motion track 11 and the standard path A1, and obtains that the similarity between the motion track 11 and the standard path A1 is greater than 70%, and the mobile phone 1 determines that the motion track 11 matches the standard path A1.
  • the mobile phone 1 displays the motion track 11 .
  • step 504 the mobile phone 1 corrects the motion track 11 based on the standard path A1.
  • the mobile phone can rectify the motion track 11 based on the standard path A1 , and the motion track 11 after the rectification is shown in FIG. 22 .
  • the mobile phone 1 only checks that the distance between the trajectory point on the motion trajectory 11 and the corresponding projection point on the standard path is less than or equal to 50
  • the track points whose direction angle is less than or equal to 30° will be corrected, and the track points that meet the above conditions will be corrected by 75% to the corresponding projection points during the correction process.
  • Make corrections For example, assuming that the distance between the trajectory point on the motion trajectory 11 and the projection point on the standard path A1 is 10 meters, the distance between the corrected trajectory point and the projection point is 2.5 meters, and the correction of the direction and speed is related to the position.
  • the modifications are similar, and will not be repeated here, and other details can still refer to the related description in FIG. 16 , which will not be repeated here.
  • the cloud further determines whether the trajectory point is a jump trajectory point, wherein , the jump trajectory point refers to the large deviation between the position or direction of the trajectory point and the previous trajectory point.
  • the mobile phone 1 does not perform deviation correction. For example, during the running process, the user detours from a certain path to form a trajectory point corresponding to the protruding part in the motion trajectory 11. During the deviation correction process, the mobile phone 1 ignores this part of the trajectory point, that is, the deviation correction is not performed on these trajectory points.
  • the outdoor running interface in Figure 24 can refer to Figure 12.
  • the mobile phone detects that the user clicks the "Motion" option at the bottom to display the outdoor
  • the running interface referring to FIG. 24 , exemplarily, the outdoor running interface includes one or more controls, for example, including a track control (that is, a "track” option). After the user clicks on the "track” option, the mobile phone can respond to the user's click operation, On the outdoor running interface, display the corrected motion trajectory and other sports information, such as kilometers, time (referring to the time when the watch generates the motion trajectory), exercise time (it can also be understood as exercise duration), average pace, heat, etc.
  • the mobile phone can perform corresponding processing on the map and the motion track after the deviation correction, so that the corresponding area on the map can be stored in the mobile phone.
  • the motion track after correction is displayed inside.
  • the mobile phone 1 deletes this type of track point during the deviation correction process, and deletes the previous track point and the next track point of the track point. Click to connect, and the movement track after deviation correction displayed by the mobile phone is shown in Figure 25.
  • Step 505 the mobile phone 1 displays the motion track 11 after the deviation correction.
  • the mobile phone online means that the mobile phone can obtain the standard path from the cloud.
  • the technical solutions in the embodiments of the present application can also be applied to the offline scenario of the mobile phone, that is, the scenario where the mobile phone cannot obtain the standard path from the cloud, as shown in FIG.
  • the mobile phone can include a storage unit and a training unit, the mobile phone can save the motion trajectories 12-15, and the training unit can extract the motion trajectories 12-15 from the storage unit for training to obtain a standard path.
  • the duration of the training cycle on the mobile phone terminal may be one day, that is, the motion trajectory obtained by the storage unit is trained every other day, or the training process may be performed in response to user instructions and based on user instructions.
  • the mobile phone may calculate the confidence level of each motion track based on the confidence level of each track point, and the confidence level of the motion track may be the sum of the confidence levels of each track point.
  • the trajectory is more accurate, that is, the closer it is to the actual trajectory.
  • the mobile phone can select any of the motion trajectories with the highest confidence as the standard path.
  • the mobile phone can also train the motion trajectories 12 to 15 based on the same training method as the cloud (ie, the relevant content of step 203 ) to obtain the standard path.
  • the training unit sends the acquired standard path to the storage unit.
  • the user wears the smart watch to run along the above-mentioned track, and the smart watch obtains the motion track information 16 , including the position, direction, speed, confidence and height of each track point on the motion track 16 .
  • the smart watch sends the motion track information 16 to the mobile phone, and the matching unit in the mobile phone can obtain a standard path matching it based on the motion track 16 , and the deviation correction unit can correct the deviation of the motion track 16 based on the matched standard path.
  • the steps performed by the mobile phone in the offline scenario are similar to the steps performed by the cloud and the mobile phone in the online scenario, and are not repeated here.
  • the electronic device includes corresponding hardware and/or software modules for executing each function.
  • the present application can be implemented in hardware or in the form of a combination of hardware and computer software in conjunction with the algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
  • the electronic device can be divided into functional modules according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that, the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • Fig. 27 shows a schematic block diagram of an apparatus 200 according to an embodiment of the present application.
  • the apparatus 200 may include: a processor 201, a transceiver/transceiver pin 202, and optionally, a memory 203.
  • bus 204 includes a power bus, a control bus and a status signal bus in addition to a data bus.
  • bus 204 includes a power bus, a control bus and a status signal bus in addition to a data bus.
  • the various buses are referred to as bus 204 in the figures.
  • the memory 203 may be used for instructions in the foregoing method embodiments.
  • the processor 201 can be used to execute the instructions in the memory 203, and control the receiving pins to receive signals, and control the sending pins to send signals.
  • the apparatus 200 may be a mobile phone, a smart watch, or a server in the cloud in the foregoing method embodiments.
  • This embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on an electronic device or a network device (such as a cloud server), the electronic device executes the above-mentioned related method steps to achieve the above-mentioned The track deviation correction method in the embodiment.
  • This embodiment also provides a computer program product, which when the computer program product runs on the computer, causes the computer to execute the above-mentioned relevant steps, so as to realize the trajectory deviation correction method in the above-mentioned embodiment.
  • the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the track deviation correction method in each of the foregoing method embodiments.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference can be made to the corresponding provided above. The beneficial effects in the method will not be repeated here.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that make contributions to the prior art, or all or part of the technical solutions, which are stored in a storage medium. , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods of the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

Provided in the embodiments of the present application are a track correction method and system. The method comprises: a first electronic device sends to a cloud server a plurality of obtained motion tracks; and the cloud server can obtain a third motion track on the basis of the received plurality of motion tracks sent by the first electronic device. The first electronic device can correct, on the basis of the third motion track obtained from the cloud server, the deviation of a motion track uploaded by a second electronic device, and display the corrected motion track, thereby providing a way to correct, on the basis of a motion track, the deviation of another motion track, so as to weaken the dependence on road network data in a deviation correction process. Even in the scenario in which there is no road network data in the first electronic device, a motion track that has undergone deviation correction and is displayed by the first electronic device can still have high similarity with an actual motion track, thus improving the accuracy of the motion track that has undergone deviation correction and the usage experience of a user.

Description

轨迹纠偏方法及系统Track deviation correction method and system
本申请要求于2020年9月30日提交中国国家知识产权局、申请号为202011063430.X、申请名称为“轨迹纠偏方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011063430.X and the application name "Track Correction Method and System" submitted to the State Intellectual Property Office of China on September 30, 2020, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请实施例涉及终端领域,尤其涉及一种轨迹纠偏方法及系统。The embodiments of the present application relate to the field of terminals, and in particular, to a trajectory deviation correction method and system.
背景技术Background technique
目前,随着通信技术的发展,智能设备(例如智能手环、智能手表等)功能也越来越强大,其所应用的场景越来越广泛。例如,用户可携带智能手表跑步,并通过智能手表记录用户的运动轨迹,随后,用户可将智能手表与手机进行连接,并将智能手表记录的运动轨迹上传到手机,以通过手机显示用户的运动轨迹。At present, with the development of communication technology, the functions of smart devices (such as smart bracelets, smart watches, etc.) are becoming more and more powerful, and their application scenarios are becoming more and more extensive. For example, a user can run with a smart watch and record the user's movement track through the smart watch. Then, the user can connect the smart watch to the mobile phone and upload the movement track recorded by the smart watch to the mobile phone to display the user's movement through the mobile phone. trajectory.
但是,由于智能手表等智能设备的硬件限制,导致智能手表获取到的运动轨迹与用户的实际运动轨迹之间的偏差较大,因此,手机显示的用户的运动轨迹可能出现偏离实际运动轨迹较多的问题。However, due to the hardware limitations of smart devices such as smart watches, there is a large deviation between the motion trajectory obtained by the smart watch and the user's actual motion trajectory. Therefore, the user's motion trajectory displayed by the mobile phone may deviate more from the actual motion trajectory. The problem.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题,本申请提出了一种轨迹纠偏方法和系统。在该方法中,通过第一电子设备可基于从云服务器获取到的运动轨迹,对第二电子设备上传的运动轨迹进行纠偏,从而通过以标准的运动轨迹对非标准运动轨迹进行纠偏的方式,以实现不依赖于路网数据,即可对运动轨迹进行纠偏的方式,有效提升第一电子设备显示的运动轨迹的准确性。In order to solve the above technical problems, the present application proposes a trajectory correction method and system. In this method, the motion trajectory uploaded by the second electronic device can be corrected by the first electronic device based on the motion trajectory obtained from the cloud server, so as to correct the deviation of the non-standard motion trajectory with the standard motion trajectory, In a way that the motion trajectory can be corrected without relying on the road network data, the accuracy of the motion trajectory displayed by the first electronic device is effectively improved.
第一方面,提供一种轨迹纠偏系统。该系统包括:云服务器、第一电子设备和第二电子设备,第一电子设备通过蓝牙连接到第二电子设备,第一电子设备通过蜂窝网络与云服务器进行数据交互;第一电子设备,用于:获取第一区域范围内的第一运动轨迹和第二运动轨迹,向云服务器发送第一运动轨迹和第二运动轨迹;云服务器,用于:根据接收到的第一运动轨迹和第二运动轨迹,获取第三运动轨迹;第一电子设备,用于:从云服务器获取第三运动轨迹;第二电子设备,用于:获取第一区域范围内的第四运动轨迹;向第一电子设备发送第四运动轨迹;第一电子设备,还用于:响应于接收到的第四运动轨迹,基于第三运动轨迹,对第四运动轨迹进行纠偏,显示纠偏后的第四运动轨迹。这样,第一电子设备可基于从云服务器获取到的运动轨迹,对第二电子设备上传的运动轨迹进行纠偏,以提升显示的运动轨迹与实际运动轨迹的相似度。In a first aspect, a trajectory correction system is provided. The system includes: a cloud server, a first electronic device and a second electronic device, the first electronic device is connected to the second electronic device through Bluetooth, and the first electronic device performs data interaction with the cloud server through a cellular network; the first electronic device uses To: obtain the first motion track and the second motion track within the first area, and send the first motion track and the second motion track to the cloud server; the cloud server is used for: according to the received first motion track and the second motion track a motion trajectory, to obtain a third motion trajectory; a first electronic device, for: acquiring a third motion trajectory from a cloud server; a second electronic device, for: acquiring a fourth motion trajectory within the first area; The device sends a fourth motion trajectory; the first electronic device is further configured to: in response to the received fourth motion trajectory, correct the fourth motion trajectory based on the third motion trajectory, and display the corrected fourth motion trajectory. In this way, the first electronic device can correct the motion trajectory uploaded by the second electronic device based on the motion trajectory obtained from the cloud server, so as to improve the similarity between the displayed motion trajectory and the actual motion trajectory.
示例性的,第一电子设备还可以向云服务器发送第三运动轨迹以及第四运动轨迹等,第一~第四运动轨迹均为第一电子设备在第一区域范围内获取到的,云服务器可基于第一电子设备发送的更多的运动轨迹,得到与实际运动轨迹相似度更高的运动轨迹。第一电 子设备可基于云服务器训练后的运动轨迹,对第二电子设备的运动轨迹进行纠偏,从而使得第一电子设备显示的运动轨迹与实际运动轨迹相似度进一步提高。Exemplarily, the first electronic device may also send a third motion trajectory, a fourth motion trajectory, etc. to the cloud server, and the first to fourth motion trajectories are all acquired by the first electronic device within the first area, and the cloud server Based on more motion trajectories sent by the first electronic device, a motion trajectory with a higher similarity to the actual motion trajectory can be obtained. The first electronic device can correct the motion trajectory of the second electronic device based on the motion trajectory trained by the cloud server, so that the similarity between the motion trajectory displayed by the first electronic device and the actual motion trajectory is further improved.
示例性的,云服务器获取所述第三运动轨迹的方式包括:将所述第一运动轨迹与已存储的多个运动轨迹进行相似度匹配;若存在与所述第一运动轨迹相似度匹配成功的运动轨迹,根据所述相似度匹配成功的运动轨迹、所述第一运动轨迹与所述第二运动轨迹,获取所述第三运动轨迹;若所述多个运动轨迹与所述第一运动轨迹相似度匹配失败,根据所述第一运动轨迹与所述第二运动轨迹,获取所述第三运动轨迹。Exemplarily, the manner in which the cloud server obtains the third motion trajectory includes: performing similarity matching between the first motion trajectory and a plurality of stored motion trajectories; if there is a successful similarity matching with the first motion trajectory , obtain the third motion trajectory according to the motion trajectory successfully matched by the similarity, the first motion trajectory and the second motion trajectory; if the multiple motion trajectories match the first motion trajectory The trajectory similarity matching fails, and the third motion trajectory is acquired according to the first motion trajectory and the second motion trajectory.
示例性的,所述相似度匹配成功的运动轨迹上存在与所述第一运动轨迹上的至少一个轨迹点对应的投影点,其中,所述投影点的数量大于第一阈值,所述投影点与所述第一运动轨迹上对应的轨迹点之间的距离小于第二阈值,所述投影点的方向与所述第一运动轨迹上对应的轨迹点之间的方向差值小于第三阈值。Exemplarily, there is a projection point corresponding to at least one trajectory point on the first movement trajectory on the motion trajectory for which the similarity is successfully matched, wherein the number of the projection points is greater than a first threshold, and the projection point The distance from the corresponding trajectory point on the first motion trajectory is smaller than the second threshold, and the direction difference between the direction of the projection point and the corresponding trajectory point on the first motion trajectory is smaller than the third threshold.
示例性的,所述第三运动轨迹上存在与所述第四运动轨迹上的至少一个轨迹点对应的投影点,其中,所述投影点的数量大于第一阈值,所述投影点与所述第四运动轨迹上对应的轨迹点之间的距离小于第二阈值,所述投影点的方向与所述第四运动轨迹上对应的轨迹点之间的方向差值小于第三阈值。Exemplarily, there is a projection point corresponding to at least one trajectory point on the fourth movement trajectory on the third movement trajectory, wherein the number of the projection points is greater than the first threshold, and the projection point is the same as the projection point. The distance between the corresponding trajectory points on the fourth motion trajectory is smaller than the second threshold, and the direction difference between the direction of the projection point and the corresponding trajectory point on the fourth motion trajectory is smaller than the third threshold.
示例性的,若所述第四运动轨迹上存在跳变轨迹点,所述纠偏后的第四运动轨迹中包括所述跳变轨迹点;所述第四运动轨迹上满足下述任一条件的轨迹点为所述跳变轨迹点:与前一个轨迹点或后一个轨迹点的方向差值大于第四阈值;与前一个轨迹点或后一个轨迹点之间的速度差值大于第五阈值;与前一个轨迹点或后一个轨迹点之间的距离差值大于第六阈值。Exemplarily, if there is a jump track point on the fourth motion track, the fourth motion track after the deviation correction includes the jump track point; the fourth motion track satisfies any of the following conditions: The trajectory point is the jump trajectory point: the direction difference with the previous trajectory point or the next trajectory point is greater than the fourth threshold; the speed difference with the previous trajectory point or the next trajectory point is greater than the fifth threshold; The distance difference from the previous trajectory point or the next trajectory point is greater than the sixth threshold.
根据第一方面,系统还包括第三电子设备,第三电子设备通过蜂窝网络与云服务器进行数据交互;第三电子设备,用于:获取第一区域范围内的第五运动轨迹;云服务器,还用于:接收第五运动轨迹;根据第五运动轨迹与第三运动轨迹,获取第六运动轨迹;第一电子设备,还用于:从云服务器获取第六运动轨迹;第二电子设备,用于:获取第一区域范围内的第七运动轨迹;向第一电子设备发送第七运动轨迹;第一电子设备,还用于:响应于接收到的第七运动轨迹,基于第六运动轨迹,对第七运动轨迹进行纠偏,显示纠偏后的第七运动轨迹。这样,云服务器还可以基于其它一个或多个电子设备,例如第三电子设备,当然,还可以为第四电子设备、第五电子设备等发送的第一区域范围内的运动轨迹,对第三运动轨迹进行训练,以得到更加标准的运动轨迹,从而使得第一电子设备可基于进一步训练后得到的第七运动轨迹,对第二电子设备的运动轨迹进行纠偏,从而提升显示的运动轨迹的准确性。According to the first aspect, the system further includes a third electronic device, and the third electronic device performs data interaction with the cloud server through the cellular network; the third electronic device is used for: acquiring the fifth motion trajectory within the first area; the cloud server, is also used for: receiving the fifth motion trajectory; obtaining the sixth motion trajectory according to the fifth motion trajectory and the third motion trajectory; the first electronic device is also used for: acquiring the sixth motion trajectory from the cloud server; the second electronic device, used for: acquiring the seventh motion trajectory within the range of the first area; sending the seventh motion trajectory to the first electronic device; the first electronic device is further used for: responding to the received seventh motion trajectory, based on the sixth motion trajectory , rectify the seventh motion track, and display the seventh motion track after the rectification. In this way, the cloud server can also be based on one or more other electronic devices, such as a third electronic device, and of course, it can also be the motion trajectory within the first area sent by the fourth electronic device, the fifth electronic device, etc. The motion trajectory is trained to obtain a more standard motion trajectory, so that the first electronic device can correct the motion trajectory of the second electronic device based on the seventh motion trajectory obtained after further training, thereby improving the accuracy of the displayed motion trajectory. sex.
根据第一方面,或者以上第一方面的任意一种实现方式,系统还包括第三电子设备,第三电子设备通过蜂窝网络与云服务器进行数据交互;第三电子设备,用于获取第二区域范围内的第八运动轨迹和第九运动轨迹,第一区域范围与第二区域范围不同;云服务器,还用于:接收第八运动轨迹和第九运动轨迹;根据第八运动轨迹和第九运动轨迹,获取第十运动轨迹;第一电子设备,还用于:从云服务器获取第十运动轨迹;第 一电子设备,还用于:将第四运动轨迹与第三运动轨迹和第十运动轨迹分别进行相似度匹配,并确定第四运动轨迹与第三运动轨迹相似度匹配成功;基于相似度匹配成功的第三运动轨迹,对第四运动轨迹进行纠偏,显示纠偏后的第四运动轨迹。这样,云服务器可基于不同区域范围内的运动轨迹,得到与该区域范围内对应的一个或多个标准运动轨迹(即第一区域范围对应的第三运动轨迹和第二区域范围对应的第十运动轨迹),第一电子设备可从云服务器获取到一个或多个标准运动轨迹(例如第三运动轨迹和第十运动轨迹),随后,第一电子设备可将第二电子设备上传的运动轨迹与获取到的一个或多个标准运动轨迹进行相似度匹配,并基于相似度匹配成功的标准轨迹(例如第三运动轨迹)对第二电子设备上传内的运动轨迹进行纠偏,以提升显示的运动轨迹的准确性。According to the first aspect, or any implementation manner of the above first aspect, the system further includes a third electronic device, the third electronic device performs data interaction with the cloud server through the cellular network; the third electronic device is used to obtain the second area The eighth motion track and the ninth motion track within the range, the first area range is different from the second area range; the cloud server is also used for: receiving the eighth motion track and the ninth motion track; according to the eighth motion track and the ninth motion track The motion track is used to obtain the tenth motion track; the first electronic device is further used for: obtaining the tenth motion track from the cloud server; the first electronic device is also used for: combining the fourth motion track with the third motion track and the tenth motion track The trajectories are respectively matched for similarity, and it is determined that the similarity between the fourth motion trajectory and the third motion trajectory is successfully matched; based on the third motion trajectory whose similarity is successfully matched, the deviation of the fourth motion trajectory is corrected, and the corrected fourth motion trajectory is displayed. . In this way, the cloud server can obtain one or more standard motion trajectories corresponding to the region based on the motion trajectories in the different regions (that is, the third motion track corresponding to the first region and the tenth motion corresponding to the second region). motion trajectory), the first electronic device can obtain one or more standard motion trajectories (such as the third motion trajectory and the tenth motion trajectory) from the cloud server, and then the first electronic device can upload the motion trajectory uploaded by the second electronic device Perform similarity matching with one or more obtained standard motion trajectories, and correct the motion trajectory uploaded by the second electronic device based on the successfully matched standard trajectory (for example, the third motion trajectory), so as to improve the displayed motion accuracy of the trajectory.
根据第一方面,或者以上第一方面的任意一种实现方式,第一运动轨迹与第二运动轨迹的相似度大于或等于相似度阈值。这样,云服务器可基于同一个区域范围内,且相似度大于阈值的多个运动轨迹进行训练,以得到标准的运动轨迹。示例性的,同一个电子设备上传的同一个区域范围内多个运动轨迹,或者,不同的电子设备上传内的同一个区域范围内的多个运动轨迹之间的相似度可能大于或等于相似度阈值,云服务器可基于同一个电子设备或不同电子设备上传的同一个区域范围内的多个运动轨迹,得到标准的运动轨迹。示例性的,同一个电子设备或不同的电子设备上传内的同一个区域范围内的多个运动轨迹之间的相似度可能小于相似度阈值,云服务器可通过对多个运动轨迹进行相似度匹配,以获取相似度大于或等于相似度阈值的两个或两个以上运动轨迹,并对所述两个或两个以上运动轨迹进行训练,以得到标准的运动轨迹,也就是说,同一个区域范围内可以对应一个或多个标注的运动轨迹。According to the first aspect, or any implementation manner of the above first aspect, the similarity between the first motion trajectory and the second motion trajectory is greater than or equal to a similarity threshold. In this way, the cloud server can perform training based on multiple motion trajectories within the same area and whose similarity is greater than a threshold, so as to obtain a standard motion trajectory. Exemplarily, the similarity between multiple motion trajectories in the same area uploaded by the same electronic device, or the similarity between multiple motion trajectories in the same area uploaded by different electronic devices may be greater than or equal to the similarity. Threshold, the cloud server can obtain standard motion trajectories based on multiple motion trajectories within the same area uploaded by the same electronic device or different electronic devices. Exemplarily, the similarity between multiple motion trajectories within the same area uploaded by the same electronic device or different electronic devices may be less than the similarity threshold, and the cloud server may perform similarity matching on the multiple motion trajectories. , to obtain two or more motion trajectories with a similarity greater than or equal to the similarity threshold, and train the two or more motion trajectories to obtain a standard motion trajectory, that is, the same area The range can correspond to one or more marked motion trajectories.
根据第一方面,或者以上第一方面的任意一种实现方式,第一电子设备,用于:接收用户的指令,响应于用户的指令,从云服务器获取第三运动轨迹。这样,第一电子设备可基于用户的指令,主动向云服务器请求第三运动轨迹,并获取第三运动轨迹。示例性的,用户的指令还可以指示第一电子设备从云服务器获取指定区域范围,例如第二区域范围内的运动轨迹,第一电子设备可基于用户的指令,向云服务器请求第二区域范围内的运动轨迹。According to the first aspect, or any implementation manner of the above first aspect, the first electronic device is configured to: receive an instruction from a user, and acquire a third motion trajectory from a cloud server in response to the instruction from the user. In this way, the first electronic device can actively request the cloud server for the third motion trajectory based on the user's instruction, and obtain the third motion trajectory. Exemplarily, the user's instruction may also instruct the first electronic device to obtain a specified area from the cloud server, such as a motion trajectory within the second area, and the first electronic device may request the cloud server for the second area based on the user's instruction. trajectory within.
根据第一方面,或者以上第一方面的任意一种实现方式,云服务器,用于:向第一电子设备发送指示信息,用于指示第一电子设备可从云服务器下载第三运动轨迹。这样,云服务器在获取到第三运动轨迹后,可通过发送指示信息的方式,通知第一电子设备当前存在可下载的第三运动轨迹。示例性的,云服务器可记录第一电子设备对应的区域范围,相应的,当云服务器生成对应于该区域范围内的运动轨迹后,可向第一电子设备发送指示信息。示例性的,第一电子设备可在运动健康应用的应用界面,或者下拉通知栏,或者锁屏时的通知栏显示云服务器存在指定区域范围内的未下载的运动轨迹。第一电子设备可响应于接收到的用户的指令,从云服务器下载该指定区域范围内的运动轨迹。According to the first aspect, or any implementation manner of the above first aspect, the cloud server is configured to: send indication information to the first electronic device, for indicating that the first electronic device can download the third motion trajectory from the cloud server. In this way, after acquiring the third motion trajectory, the cloud server can notify the first electronic device that there is currently a downloadable third motion trajectory by sending indication information. Exemplarily, the cloud server may record an area range corresponding to the first electronic device, and accordingly, after the cloud server generates a motion trajectory corresponding to the area range, the cloud server may send indication information to the first electronic device. Exemplarily, the first electronic device may display the undownloaded motion track that exists in the cloud server within the specified area on the application interface of the sports health application, or pull down the notification bar, or the notification bar when the screen is locked. The first electronic device may download the motion trajectory within the specified area from the cloud server in response to the received user's instruction.
根据第一方面,或者以上第一方面的任意一种实现方式,第一电子设备为手机,第二电子设备为智能手表。这样,通过定位能力较强的第一电子设备(即手机)获取一个或多个运动轨迹,云服务器对手机发送的一个或多个运动轨迹进行训练,可得到与实际运动轨迹相似度较高的标准的运动轨迹。手机可基于云服务器训练后的运动轨迹,对定位能力较弱的智能手表上传的运动轨迹进行纠偏,从而提高纠偏后的运动轨迹与实际运动轨迹的相似度,以有效提升用户的使用体验。According to the first aspect, or any implementation manner of the above first aspect, the first electronic device is a mobile phone, and the second electronic device is a smart watch. In this way, one or more motion trajectories are acquired through the first electronic device (that is, the mobile phone) with relatively strong positioning capability, and the cloud server trains one or more motion trajectories sent by the mobile phone, so as to obtain a high similarity with the actual motion trajectories. Standard motion trajectory. The mobile phone can correct the motion trajectory uploaded by the smart watch with weak positioning ability based on the motion trajectory trained by the cloud server, so as to improve the similarity between the corrected motion trajectory and the actual motion trajectory, so as to effectively improve the user experience.
根据第一方面,或者以上第一方面的任意一种实现方式,第一电子设备与第二电子设备分别安装有运动健康应用。这样,第一电子设备与第二电子设备可通过运动健康应用配对,并进行数据交互,例如第二电子设备可通过运动健康应用向第一电子设备发送获取到的运动轨迹。According to the first aspect, or any implementation manner of the above first aspect, the first electronic device and the second electronic device are respectively installed with a sports health application. In this way, the first electronic device and the second electronic device can be paired through the sports health application and perform data interaction, for example, the second electronic device can send the acquired motion trajectory to the first electronic device through the sports health application.
根据第一方面,或者以上第一方面的任意一种实现方式,第一电子设备,用于:在运动健康应用的应用界面上显示纠偏后的第四运动轨迹。示例性的,运动健康应用还可以调用地图应用的路网数据,以在地图上的相应位置显示纠偏后的第四运动轨迹。According to the first aspect, or any implementation manner of the above first aspect, the first electronic device is configured to: display the fourth motion trajectory after deviation correction on the application interface of the sports health application. Exemplarily, the sports health application may also call the road network data of the map application to display the fourth motion trajectory after deviation correction at the corresponding position on the map.
根据第一方面,或者以上第一方面的任意一种实现方式,第一电子设备与第二电子设备具有同一用户账号。这样,用户可通过用户账号登录第一电子设备与第二电子设备,第一电子设备与第二电子设备可在具有同一用户账号的场景下进行数据交互。According to the first aspect, or any implementation manner of the above first aspect, the first electronic device and the second electronic device have the same user account. In this way, the user can log in to the first electronic device and the second electronic device through the user account, and the first electronic device and the second electronic device can perform data interaction in the scenario of having the same user account.
第二方面,提供一种轨迹纠偏方法。该方法应用于通信系统,系统包括:云服务器、第一电子设备和第二电子设备,第一电子设备通过蓝牙连接到第二电子设备,第一电子设备通过蜂窝网络与云服务器进行数据交互;方法包括:第一电子设备获取第一区域范围内的第一运动轨迹和第二运动轨迹,向云服务器发送第一运动轨迹和第二运动轨迹;云服务器根据接收到的第一运动轨迹和第二运动轨迹,获取第三运动轨迹;第一电子设备从云服务器获取第三运动轨迹;第二电子设备获取第一区域范围内的第四运动轨迹,并向第一电子设备发送第四运动轨迹;第一电子设备响应于接收到的第四运动轨迹,基于第三运动轨迹,对第四运动轨迹进行纠偏,并显示纠偏后的第四运动轨迹。In a second aspect, a trajectory correction method is provided. The method is applied to a communication system, and the system includes: a cloud server, a first electronic device and a second electronic device, the first electronic device is connected to the second electronic device through Bluetooth, and the first electronic device exchanges data with the cloud server through a cellular network; The method includes: the first electronic device acquires the first motion track and the second motion track within the first area, and sends the first motion track and the second motion track to the cloud server; the cloud server obtains the first motion track and the second motion track according to the received The second motion track is to obtain the third motion track; the first electronic device obtains the third motion track from the cloud server; the second electronic device obtains the fourth motion track within the first area, and sends the fourth motion track to the first electronic device ; In response to the received fourth motion trajectory, the first electronic device corrects the fourth motion trajectory based on the third motion trajectory, and displays the corrected fourth motion trajectory.
根据第二方面,系统还包括第三电子设备,第三电子设备通过蜂窝网络与云服务器进行数据交互;方法还包括:第三电子设备获取第一区域范围内的第五运动轨迹;云服务器接收第五运动轨迹,并根据第五运动轨迹与第三运动轨迹,获取第六运动轨迹;第一电子设备从云服务器获取第六运动轨迹;第二电子设备获取第一区域范围内的第七运动轨迹,并向第一电子设备发送第七运动轨迹;第一电子设备响应于接收到的第七运动轨迹,基于第六运动轨迹,对第七运动轨迹进行纠偏,并显示纠偏后的第七运动轨迹。According to the second aspect, the system further includes a third electronic device, and the third electronic device performs data interaction with the cloud server through the cellular network; the method further includes: the third electronic device acquires a fifth motion trajectory within the first area; the cloud server receives the fifth motion track, and obtain the sixth motion track according to the fifth motion track and the third motion track; the first electronic device obtains the sixth motion track from the cloud server; the second electronic device obtains the seventh motion within the first area track, and send the seventh motion track to the first electronic device; the first electronic device, in response to the received seventh motion track, corrects the seventh motion track based on the sixth motion track, and displays the corrected seventh motion track trajectory.
根据第二方面,或者以上第二方面的任意一种实现方式,系统还包括第三电子设备,第三电子设备通过蜂窝网络与云服务器进行数据交互;方法还包括:第三电子设备获取 第二区域范围内的第八运动轨迹和第九运动轨迹,第一区域范围与第二区域范围不同;云服务器接收第八运动轨迹和第九运动轨迹,并根据第八运动轨迹和第九运动轨迹,获取第十运动轨迹;第一电子设备从云服务器获取第十运动轨迹;第一电子设备将第四运动轨迹与第三运动轨迹和第十运动轨迹分别进行相似度匹配,并确定第四运动轨迹与第三运动轨迹相似度匹配成功;以及,基于第三运动轨迹,对第四运动轨迹进行纠偏,显示纠偏后的第四运动轨迹。According to the second aspect, or any implementation manner of the above second aspect, the system further includes a third electronic device, and the third electronic device performs data interaction with the cloud server through a cellular network; the method further includes: the third electronic device obtains the second The eighth motion track and the ninth motion track within the area range, the first area range is different from the second area range; the cloud server receives the eighth motion track and the ninth motion track, and according to the eighth motion track and the ninth motion track, obtaining the tenth motion trajectory; the first electronic device obtains the tenth motion trajectory from the cloud server; the first electronic device performs similarity matching on the fourth motion trajectory with the third motion trajectory and the tenth motion trajectory respectively, and determines the fourth motion trajectory The similarity with the third motion trajectory is successfully matched; and, based on the third motion trajectory, the fourth motion trajectory is rectified, and the rectified fourth motion trajectory is displayed.
根据第二方面,或者以上第二方面的任意一种实现方式,第一运动轨迹与第二运动轨迹的相似度大于或等于相似度阈值。According to the second aspect, or any implementation manner of the above second aspect, the similarity between the first motion trajectory and the second motion trajectory is greater than or equal to a similarity threshold.
根据第二方面,或者以上第二方面的任意一种实现方式,第一电子设备接收用户的指令,并响应于用户的指令,从云服务器获取第三运动轨迹。According to the second aspect, or any implementation manner of the above second aspect, the first electronic device receives the user's instruction, and in response to the user's instruction, acquires the third motion trajectory from the cloud server.
根据第二方面,或者以上第二方面的任意一种实现方式,云服务器向第一电子设备发送指示信息,用于指示第一电子设备可从云服务器下载第三运动轨迹。According to the second aspect, or any implementation manner of the above second aspect, the cloud server sends indication information to the first electronic device, which is used to indicate that the first electronic device can download the third motion trajectory from the cloud server.
根据第二方面,或者以上第二方面的任意一种实现方式,第一电子设备为手机,第二电子设备为智能手表。According to the second aspect, or any implementation manner of the above second aspect, the first electronic device is a mobile phone, and the second electronic device is a smart watch.
根据第二方面,或者以上第二方面的任意一种实现方式,第一电子设备与第二电子设备分别安装有运动健康应用。According to the second aspect, or any implementation manner of the above second aspect, the first electronic device and the second electronic device are respectively installed with a sports health application.
根据第二方面,或者以上第二方面的任意一种实现方式,第一电子设备在运动健康应用的应用界面上显示纠偏后的第四运动轨迹。According to the second aspect, or any implementation manner of the above second aspect, the first electronic device displays the fourth motion trajectory after deviation correction on the application interface of the sports health application.
根据第二方面,或者以上第二方面的任意一种实现方式,第一电子设备与第二电子设备具有同一用户账号。According to the second aspect, or any implementation manner of the above second aspect, the first electronic device and the second electronic device have the same user account.
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The second aspect and any implementation manner of the second aspect correspond to the first aspect and any implementation manner of the first aspect, respectively. For the technical effects corresponding to the second aspect and any implementation manner of the second aspect, reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
第三方面,提供一种计算机可读存储介质。该介质包括计算机程序,当计算机程序在电子设备或云服务器上运行时,使得电子设备或云服务器执行第二方面以及第二方面中任意一项中的轨迹纠偏方法。示例性的,电子设备可以为第一电子设备或第二电子设备。In a third aspect, a computer-readable storage medium is provided. The medium includes a computer program that, when the computer program runs on the electronic device or the cloud server, causes the electronic device or the cloud server to execute the second aspect and the trajectory correction method in any one of the second aspect. Exemplarily, the electronic device may be the first electronic device or the second electronic device.
第三方面以及第三方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第三方面以及第三方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The third aspect and any implementation manner of the third aspect correspond to the first aspect and any implementation manner of the first aspect, respectively. For the technical effects corresponding to the third aspect and any implementation manner of the third aspect, reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
第四方面,本申请实施例提供了一种计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。In a fourth aspect, an embodiment of the present application provides a computer program, where the computer program includes instructions for executing the method in the second aspect or any possible implementation manner of the second aspect.
第四方面以及第四方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第四方面以及第四方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The fourth aspect and any implementation manner of the fourth aspect correspond to the first aspect and any implementation manner of the first aspect, respectively. For the technical effects corresponding to the fourth aspect and any implementation manner of the fourth aspect, reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
第五方面,本申请实施例提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第二方面或第二方面的任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。示例性的,芯片可以为云服务器的芯片或电子设备的芯片,电子设备可以为第一电子设备或第二电子设备。In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processing circuit and a transceiver pin. Wherein, the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the second aspect or any possible implementation manner of the second aspect to control the receiving pin to receive a signal to Control the send pin to send the signal. Exemplarily, the chip may be a chip of a cloud server or a chip of an electronic device, and the electronic device may be a first electronic device or a second electronic device.
第五方面以及第五方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第五方面以及第五方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The fifth aspect and any implementation manner of the fifth aspect correspond to the first aspect and any implementation manner of the first aspect, respectively. For the technical effects corresponding to the fifth aspect and any implementation manner of the fifth aspect, reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be repeated here.
附图说明Description of drawings
图1是示例性示出的通信系统的示意图;FIG. 1 is a schematic diagram of an exemplary illustrated communication system;
图2是示例性示出的手机的结构示意图;2 is a schematic structural diagram of an exemplary mobile phone;
图3是示例性示出的手机的软件结构示意图;3 is a schematic diagram of the software structure of an exemplary mobile phone;
图4是示例性示出的智能手表的软件结构示意图;4 is a schematic diagram of the software structure of an exemplary smart watch;
图5是示例性示出的应用场景示意图;5 is a schematic diagram of an exemplary application scenario;
图6是示例性示出的轨迹纠偏流程示意图;Fig. 6 is a schematic diagram of a trajectory correction flow diagram exemplarily shown;
图7a是示例性示出的纠偏前的运动轨迹示意图;Fig. 7a is a schematic diagram of the motion trajectory before deviation correction shown in an exemplary manner;
图7b是示例性示出的纠偏后的运动轨迹示意图;Fig. 7b is a schematic diagram of the motion trajectory after the deviation correction is exemplarily shown;
图8是本申请实施例提供的一种轨迹纠偏方法的流程示意图;8 is a schematic flowchart of a trajectory correction method provided by an embodiment of the present application;
图9是示例性示出的标准路径训练的流程示意图;FIG. 9 is a schematic flowchart of the standard path training exemplarily shown;
图10是示例性示出的标准路径下载的流程示意图;FIG. 10 is a schematic flowchart of an exemplary standard path download;
图11是示例性示出的轨迹纠偏的流程示意图;FIG. 11 is a schematic flowchart of an exemplary trajectory correction;
图12是示例性示出的应用配对的示意图;FIG. 12 is a schematic diagram of application pairing exemplarily shown;
图13是示例性示出的标准路径训练的流程示意图;FIG. 13 is a schematic flowchart of standard path training exemplarily shown;
图14是示例性示出的相似度匹配的流程示意图;FIG. 14 is a schematic flowchart of an exemplary similarity matching;
图15是示例性示出的标准路径训练的流程示意图;FIG. 15 is a schematic flowchart of standard path training exemplarily shown;
图16是示例性示出的轨迹纠偏的流程示意图;FIG. 16 is a schematic flowchart of an exemplary trajectory correction;
图17是示例性示出的标准路径训练的流程示意图;FIG. 17 is a schematic flowchart of the standard path training exemplarily shown;
图18是示例性示出的标准路径训练的流程示意图;FIG. 18 is a schematic flowchart of standard path training exemplarily shown;
图19是示例性示出的相似度匹配的流程示意图;FIG. 19 is a schematic flowchart of an exemplary similarity matching;
图20是本申请实施例提供的一种轨迹纠偏方法的流程示意图;20 is a schematic flowchart of a trajectory correction method provided by an embodiment of the present application;
图21是本申请实施例提供的一种轨迹纠偏方法的流程示意图;21 is a schematic flowchart of a trajectory correction method provided by an embodiment of the present application;
图22是示例性示出的应用场景示意图;Figure 22 is a schematic diagram of an exemplary application scenario;
图23a~图23b是示例性示出的运动轨迹示意图;Figures 23a-23b are schematic diagrams of motion trajectories exemplarily shown;
图24是示例性示出的显示界面的示意图;FIG. 24 is a schematic diagram of an exemplary display interface;
图25是示例性示出的显示界面的示意图。FIG. 25 is a schematic diagram of an exemplarily shown display interface.
图26是本申请实施例提供的一种轨迹纠偏方法的流程示意图;26 is a schematic flowchart of a trajectory correction method provided by an embodiment of the present application;
图27是本申请实施例提供的一种装置的结构示意图。FIG. 27 is a schematic structural diagram of an apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in 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. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases.
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first target object, the second target object, etc. are used to distinguish different target objects, rather than to describe a specific order of the target objects.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "plurality" refers to two or more. For example, multiple processing units refers to two or more processing units; multiple systems refers to two or more systems.
在对本申请实施例的技术方案说明之前,首先结合附图对本申请实施例的通信系统进行说明。参见图1,为本申请实施例提供的一种通信系统示意图。该通信系统中包括云端、手机和智能手表。如图1所示,智能手表与手机可进行通信连接,手机与云端进行通信连接。示例性的,智能手表与手机之间可通过蓝牙网络交互数据,手机与云端之间可通过蜂窝网络交互数据。需要说明的是,在本申请实施例的描述中,云端包括一个或多个网络设备,用于为终端设备提供服务。手机和智能手表的数量仅为示意性举例,在实际应用场景中,手机和智能手表均的数量均可以是一个或多个。Before describing the technical solutions of the embodiments of the present application, the communication system of the embodiments of the present application is first described with reference to the accompanying drawings. Referring to FIG. 1 , it is a schematic diagram of a communication system according to an embodiment of the present application. The communication system includes the cloud, mobile phones and smart watches. As shown in Figure 1, the smart watch can communicate with the mobile phone, and the mobile phone can communicate with the cloud. Exemplarily, data can be exchanged between the smart watch and the mobile phone through a Bluetooth network, and data can be exchanged between the mobile phone and the cloud through a cellular network. It should be noted that, in the description of the embodiments of the present application, the cloud includes one or more network devices for providing services for terminal devices. The number of mobile phones and smart watches is only a schematic example. In practical application scenarios, the number of both mobile phones and smart watches may be one or more.
本申请实施例的描述中,以智能手表和手机为例进行说明,在其他实施例中,本申请同样适用于大屏、膝上型计算机、桌上型计算机、掌上型计算机(如平板电脑、智能手机等)等电子设备与智能穿戴设备(如智能手环、智能手表、智能眼镜、智能戒指等) 等电子设备的连接场景。In the description of the embodiments of the present application, smart watches and mobile phones are used as examples for illustration. In other embodiments, the present application is also applicable to large screens, laptop computers, desktop The connection scenario between electronic devices such as smart phones, etc. and smart wearable devices (such as smart bracelets, smart watches, smart glasses, smart rings, etc.).
图2为本申请实施例示出的一种手机的结构示意图。图2虽然以图1中的手机为例说明电子设备的结构,但本领域技术人员明了,图2中的手机的结构也适用于图1中的智能手表。如图2所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 2 is a schematic structural diagram of a mobile phone according to an embodiment of the application. Although FIG. 2 takes the mobile phone in FIG. 1 as an example to illustrate the structure of the electronic device, those skilled in the art will understand that the structure of the mobile phone in FIG. 2 is also applicable to the smart watch in FIG. 1 . As shown in FIG. 2 , the mobile phone 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a USB interface 130 , a charging management module 140 , a power management module 141 , a battery 142 , an antenna 1 , an antenna 2 , and a mobile communication module 150 , the wireless communication module 160, the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, the sensor module 180, the buttons 190, the motor 191, the indicator 192, the camera 193, the display screen 194, and the subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等,可支持USB1.0、USB2.0、USB3.0和USB4.0或者更高标准USB规范在内的各种USB规范。示例性的,USB接口130可以包括一个或多个USB接口。The USB interface 130 is an interface that conforms to the USB standard specification, specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, etc., and can support USB1.0, USB2.0, USB3.0 and USB4.0 or higher standard USB Specifications, including various USB specifications. Exemplarily, the USB interface 130 may include one or more USB interfaces.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机100的结构限定。在本申请另一些实施例中,手机100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in handset 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile phone 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
无线通信模块160可以提供应用在手机100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,手机100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
图3为本申请实施例的手机100的软件结构框图。分层架构将软件分成若干层,每 一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为五层,从上至下分别为应用程序层,系统框架层,系统库与运行时层和内核层。FIG. 3 is a block diagram of a software structure of a mobile phone 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, which are, from top to bottom, an application layer, a system framework layer, a system library and runtime layer, and a kernel layer.
应用程序层可以包括相机,图库,日历,运动健康,WLAN,音乐,视频等应用程序。需要说明的是,图3中示出的应用程序层所包括的应用程序仅为示例性说明,本申请对此不作限定。可以理解的是,应用程序层包括的应用并不构成对手机100的具体限定。在本申请另一些实施例中,相较于图3所示应用程序层包含的应用,手机100可包括更多或更少的应用,手机100也可包括完全不同的应用。The application layer can include applications such as camera, gallery, calendar, sports health, WLAN, music, video, etc. It should be noted that, the applications included in the application layer shown in FIG. 3 are only illustrative, and are not limited in this application. It can be understood that the applications included in the application layer do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, compared with the applications included in the application layer shown in FIG. 3 , the mobile phone 100 may include more or less applications, and the mobile phone 100 may also include completely different applications.
系统框架层为应用程序层的应用程序提供应用编程接口(Application Programming Interface,API)和编程框架,包括各种组件和服务来支持开发者的安卓开发。系统框架层包括一些预先定义的函数。如图3所示,系统框架层可包括视图系统、窗口管理器、资源管理器、内容提供器等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可包括视频,图像,音频等。The system framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer, including various components and services to support developers' Android development. The system framework layer includes some predefined functions. As shown in FIG. 3, the system framework layer may include a view system, a window manager, a resource manager, a content provider, and the like. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views. A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc. The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on. Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, and the like.
系统库与运行时层包括系统库和安卓运行时(Android Runtime)。系统库可以包括多个功能模块。例如:浏览器内核,3D图形库(例如:OpenGL ES),字体库等。浏览器内核负责对网页语法的解释(如标准通用标记语言下的一个应用HTML、JavaScript)并渲染(显示)网页。3D图形库用于实现三维图形绘图,图像渲染,合成和图层处理等。字体库用于实现不同字体的输入。安卓运行时包括核心库和虚拟机。安卓运行时负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The system library and runtime layer includes the system library and the Android Runtime. A system library can include multiple functional modules. For example: browser kernel, 3D graphics library (eg: OpenGL ES), font library, etc. The browser kernel is responsible for interpreting the syntax of the web page (such as an application HTML and JavaScript under the standard general markup language) and rendering (displaying) the web page. The 3D graphics library is used to implement 3D graphics drawing, image rendering, compositing and layer processing, etc. The font library is used to implement the input of different fonts. The Android runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android. The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
可以理解的是,图3示出的系统框架层、系统库与运行时层包含的部件,并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。It can be understood that the components included in the system framework layer, system library and runtime layer shown in FIG. 3 do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
图4为本申请实施例的智能手表200的软件结构框图。分层架构将软件分成若干层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,智能手表内的软件结构分为四层,从上至下分别为应用层、系统框架层、硬件抽象层(Hardware Abstraction Layer,HAL)和驱动。FIG. 4 is a block diagram of a software structure of a smart watch 200 according to an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the software structure in the smart watch is divided into four layers, which are, from top to bottom, an application layer, a system framework layer, a hardware abstraction layer (Hardware Abstraction Layer, HAL), and a driver.
应用程序层可以包括表盘、段炼等应用,需要说明的是,这些应用均可以理解为是运动健康应用中的子功能,也可就是说,智能手表中嵌入有运动健康应用,智能手表启动后,默认启动运动健康应用,用户可选择运动健康应用中的子应用,例如段炼等,选择相应的模式。需要说明的是,图4中示出的应用程序层所包括的应用程序仅为示例性 说明,本申请对此不作限定。可以理解的是,应用程序层包括的应用并不构成对智能手表200的具体限定。在本申请另一些实施例中,相较于图4所示应用程序层包含的应用,智能手表200可包括更多或更少的应用,智能手表200也可包括完全不同的应用。The application layer can include applications such as dials and segments. It should be noted that these applications can be understood as sub-functions in the sports health application, that is to say, the sports health application is embedded in the smart watch. , the sports health application is activated by default, and the user can select sub-applications in the sports health application, such as Duan Lian, etc., and select the corresponding mode. It should be noted that, the applications included in the application layer shown in FIG. 4 are only exemplary descriptions, which are not limited in this application. It can be understood that the applications included in the application layer do not constitute a specific limitation on the smart watch 200 . In other embodiments of the present application, compared with the applications included in the application layer shown in FIG. 4 , the smart watch 200 may include more or less applications, and the smart watch 200 may also include completely different applications.
系统框架层为应用程序层的应用程序提供应用编程接口(Application Programming Interface,API)和编程框架,如图4所示,系统框架层可包括基础平台服务、运动服务、健康服务、短距服务、音频服务、手机协同服务等服务。示例性的,基础平台服务包括设备管理、通信管理、DFM、维测营、文件系统、安全存储、升级服务。运动服务包括日常跟踪、锻炼、健身、佩戴检测。健康服务包括心率、压力、呼吸、睡眠、房颤。短距服务包括蓝牙、NFC支付、定位。音频服务包括音乐播放、音频设备管理。手机协同服务包括通话管理、消息管理。The system framework layer provides application programming interface (API) and programming framework for the applications in the application layer. As shown in Figure 4, the system framework layer can include basic platform services, sports services, health services, short-distance services, Audio services, mobile phone collaboration services and other services. Exemplarily, basic platform services include device management, communication management, DFM, maintenance and testing camp, file system, secure storage, and upgrade services. Sports services include daily tracking, exercise, fitness, and wear detection. Health services include heart rate, stress, breathing, sleep, atrial fibrillation. Short-range services include Bluetooth, NFC payment, and positioning. Audio services include music playback and audio device management. Mobile phone collaboration services include call management and message management.
HAL层用于隔离硬件差异,对硬件进行逻辑抽象,并形成统一接口,以使系统框架层不依赖于具体硬件。该层包括音频(Audio)HAL和传感器(Sensor)HAL。The HAL layer is used to isolate hardware differences, logically abstract the hardware, and form a unified interface, so that the system framework layer does not depend on specific hardware. This layer includes audio (Audio) HAL and sensor (Sensor) HAL.
可以理解的是,图4示出的系统框架层和HAL层包含的部件,并不构成对智能手表200的具体限定。在本申请另一些实施例中,智能手表200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。It can be understood that the components included in the system framework layer and the HAL layer shown in FIG. 4 do not constitute a specific limitation on the smart watch 200 . In other embodiments of the present application, the smart watch 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
如图5为示例性示出的一种应用场景示意图。参照图5,用户沿A路径跑步,用户的实际运动轨迹即为图5中所示的运动轨迹A。一个示例中,用户携带手机跑步,由于手机的天线效率较高(一般在-4.5dB~-5.5dB左右),且搜星通道数较多(即能够搜到并连接较多卫星,例如搜星通道数为100~144个),其中,天线效率越高,则手机接收到的GPS信号的增益越大,以及,手机在定位时,能够搜到并连接的卫星数量越多,则手机获取到的可供定位的参数越多且越准确,因此,手机获取到的运动轨迹(即为图5中的运动轨迹B)接近实际的运动轨迹A。另一个示例中,用户仅佩戴智能手表跑步(不携带手机),由于智能手表的天线效率较低(一般为-11dB左右),且搜星通道数较少(例如搜星通道数为24~64个),因此,可能造成智能手表获取到的运动轨迹C与运动轨迹A之间的偏差较大。FIG. 5 is an exemplary schematic diagram of an application scenario. Referring to FIG. 5 , the user runs along the path A, and the actual motion trajectory of the user is the motion trajectory A shown in FIG. 5 . In an example, the user runs with a mobile phone, because the antenna efficiency of the mobile phone is relatively high (generally around -4.5dB ~ -5.5dB), and the number of satellite search channels is large (that is, more satellites can be found and connected, such as satellite search. The number of channels is 100 to 144), among which, the higher the antenna efficiency, the greater the gain of the GPS signal received by the mobile phone, and the more the number of satellites that can be searched and connected when the mobile phone is positioned, the more the mobile phone can obtain The more parameters that can be used for positioning, the more accurate, therefore, the motion trajectory obtained by the mobile phone (that is, the motion trajectory B in FIG. 5 ) is close to the actual motion trajectory A. In another example, the user only wears the smart watch for running (does not carry a mobile phone), because the antenna efficiency of the smart watch is low (generally about -11dB), and the number of search channels is small (for example, the number of search channels is 24-64). A), therefore, it may cause a large deviation between the motion track C obtained by the smart watch and the motion track A.
为解决智能手表获取到的运动轨迹与实际运动轨迹之间的偏差较大的问题,示例性的,手机可对智能手表获取到的运动轨迹进行纠偏。如图6为示例性示出的轨迹纠偏流程示意图,参照图6,具体包括:In order to solve the problem that the deviation between the motion trajectory acquired by the smart watch and the actual motion trajectory is relatively large, for example, the mobile phone can correct the deviation of the motion trajectory acquired by the smart watch. FIG. 6 is an exemplary schematic diagram of the trajectory correction process. Referring to FIG. 6 , it specifically includes:
步骤101,手机周期性或触发性地从云端下载路网数据。In step 101, the mobile phone periodically or triggered downloads road network data from the cloud.
示例性的,在云端存储有路网数据,路网数据均为人工制作而成,具体制作方式本申请不做说明。Exemplarily, the road network data is stored in the cloud, and the road network data is manually produced, and the specific production method is not described in this application.
示例性的,手机可周期性地从云端下载路网数据,可选地,周期时长可以为7天,本申请不做限定。Exemplarily, the mobile phone may periodically download road network data from the cloud, and optionally, the period may be 7 days, which is not limited in this application.
示例性的,手机还可以在接收到用户的指令后,从云端下载路网数据。Exemplarily, the mobile phone may also download road network data from the cloud after receiving the user's instruction.
需要说明的是,本申请实施例中所述的路网数据是指包含经纬度的数据,例如,手机获取到的路网数据中的经纬度数据可以指示街道宽度、位置、长度等参数,而通常地图软件示出的地图画面通常是将路网数据的各参数进行渲染后的结果。It should be noted that the road network data described in the embodiments of the present application refers to data including longitude and latitude. For example, the longitude and latitude data in the road network data obtained by the mobile phone can indicate parameters such as street width, location, length, etc. The map picture displayed by the software is usually the result of rendering each parameter of the road network data.
步骤102,智能手表获取运动轨迹信息。Step 102, the smart watch acquires motion track information.
示例性的,在用户跑步过程中,智能手表可按照采样周期(例如1s)采集运动轨迹信息。举例说明,智能手表每隔1s获取当前运动信息,运动信息包括但不限于:位置、方向、速度、置信度和高度(即海拔),智能手表按照获取顺序,将每个周期获取到的运动信息保存,可以理解为,智能手表每隔1s获取的是一个轨迹点的运动信息,从用户开始跑步到结束跑步的过程中,智能手表获取到的轨迹点(例如获取到1000个轨迹点)构成用户的运动轨迹,因此,本申请实施例中所述的运动轨迹信息包括组成运动轨迹的每个轨迹点对应的运动信息,即,运动轨迹信息包括但不限于运动轨迹上的各轨迹点的位置、方向、速度、置信度和高度。Exemplarily, during the user's running process, the smart watch may collect motion track information according to a sampling period (for example, 1s). For example, the smart watch obtains the current motion information every 1s, and the motion information includes but is not limited to: position, direction, speed, confidence, and altitude (ie altitude). Save, it can be understood that the smart watch obtains the motion information of one track point every 1s. During the process from the user's start to the end of running, the track points obtained by the smart watch (for example, 1,000 track points are obtained) constitute the user. Therefore, the motion trajectory information described in the embodiments of the present application includes the motion information corresponding to each trajectory point that constitutes the motion trajectory, that is, the motion trajectory information includes but is not limited to the position of each trajectory point on the motion trajectory, Direction, speed, confidence and altitude.
可选地,智能手表还可以获取用户的健康信息,例如用户的脉搏、体温、心率等数据。Optionally, the smart watch can also obtain the user's health information, such as the user's pulse, body temperature, heart rate and other data.
示例性的,本申请实施例中所述的轨迹点的位置为该轨迹点的经纬度信息。Exemplarily, the position of the trajectory point described in the embodiments of the present application is the longitude and latitude information of the trajectory point.
示例性的,轨迹点的方向可以是电子设备(例如手机或智能手表)基于接收到的GPS信号获取到的,也可以是基于该轨迹点与前一轨迹点和/或后一个轨迹点之间的位置获取到的。需要说明的是,通过轨迹点与前一轨迹点和/或后一个轨迹点之间的位置获取到的轨迹点的方向可能与该轨迹点的实际方向存在一定的偏差,可以理解为是该轨迹点对应的方向趋势(或运动趋势)。Exemplarily, the direction of the trajectory point can be obtained by an electronic device (such as a mobile phone or a smart watch) based on the received GPS signal, or it can be based on the distance between the trajectory point and the previous trajectory point and/or the next trajectory point. obtained from the location. It should be noted that the direction of the trajectory point obtained through the position between the trajectory point and the previous trajectory point and/or the next trajectory point may have a certain deviation from the actual direction of the trajectory point, which can be understood as the trajectory The directional trend (or movement trend) corresponding to the point.
示例性的,轨迹点的速度可以是直接测得的,也可以是基于与前一轨迹点之间位移和采样周期计算所得。Exemplarily, the velocity of the trajectory point may be directly measured, or it may be calculated based on the displacement from the previous trajectory point and the sampling period.
示例性的,置信度也可以称为评估精度,其用于评估轨迹点的质量,或者说是轨迹点的可信程度。举例说明,如果第一轨迹点的位置与第二轨迹点的位置相差10米,或者是速度相差10m/s,且第一轨迹点为可信轨迹点,即置信度满足置信度范围,则第二轨迹点置信度较低,对应的置信度评分将超出置信度评分范围。可选地,若置信度越低,置信度评分越低,对应的轨迹点与实际轨迹点的位置、方向和/或速度的偏差越大,具体评分规则可根据实际需求设置,本申请不做限定。Exemplarily, the confidence level may also be called evaluation accuracy, which is used to evaluate the quality of the track points, or the reliability of the track points. For example, if the position of the first trajectory point and the position of the second trajectory point differ by 10 meters, or the speed differs by 10 m/s, and the first trajectory point is a credible trajectory point, that is, the confidence degree satisfies the confidence degree range, then the first trajectory point The confidence of the second trajectory point is low, and the corresponding confidence score will exceed the confidence score range. Optionally, if the confidence is lower, the confidence score is lower, and the deviation between the position, direction and/or speed of the corresponding trajectory point and the actual trajectory point is larger, and the specific scoring rules can be set according to actual needs. limited.
示例性的,高度表示当前手表所属位置对应的海拔高度。Exemplarily, the altitude represents the altitude corresponding to the position to which the current watch belongs.
步骤103,智能手表向手机发送运动轨迹信息。Step 103, the smart watch sends motion track information to the mobile phone.
示例性的,智能手表在获取到运动轨迹信息后,向手机发送该运动轨迹信息。Exemplarily, after acquiring the motion track information, the smart watch sends the motion track information to the mobile phone.
可选地,若在步骤102中智能手表还获取到其它信息,例如健康信息等,可与运动轨迹信息一起发送给手机。Optionally, if the smart watch also obtains other information in step 102, such as health information, etc., it may be sent to the mobile phone together with the motion track information.
步骤104,手机基于路网数据,纠正运动轨迹。Step 104, the mobile phone corrects the motion trajectory based on the road network data.
示例性的,如步骤101所述,手机预先获取到路网数据,手机可基于接收到的运动轨迹的各轨迹点的位置信息,获取运动轨迹所属区域范围内的路网数据,示例性的,区域范围为5公里*5公里的矩形区域,或者是以运动轨迹上的任一轨迹点为圆心,半径5公里的圆形区域,或者是将运动轨迹上的多个轨迹点取质心,以质心为圆心,半径5公里的圆形区域。Exemplarily, as described in step 101, the mobile phone obtains the road network data in advance, and the mobile phone can obtain the road network data within the area to which the motion track belongs based on the received position information of each track point of the motion track. Exemplarily, The area is a rectangular area with a range of 5 km*5 km, or a circular area with a radius of 5 km with any trajectory point on the motion trajectory as the center, or the centroid of multiple trajectory points on the motion trajectory, and the centroid It is a circular area with a center and a radius of 5 kilometers.
示例性的,手机可基于获取到的路网数据对运动轨迹进行纠正(也可以称为纠偏、修正或校准)。举例说明,路网数据中包括但不限于道路的宽度、位置(经纬度)和长度等数据,如图7a所示为手机显示的纠偏前的运动轨迹示意图,手机的运动健康应用显示 的运动轨迹是基于手机获取到的路网数据显示的,假设手机显示的是未纠偏前的运动轨迹,如图7a可见,运动轨迹上存在多个轨迹点偏离道路。如上文所述,手机可基于道路的路网数据对偏离道路的轨迹点进行纠偏,以使偏离的轨迹点恢复到道路上,从而使得运动轨迹上的各轨迹点始终保持在道路上,如图7b所示即为手机显示的纠偏后的运动轨迹示意图。Exemplarily, the mobile phone may correct the motion trajectory based on the acquired road network data (also referred to as deviation correction, correction or calibration). For example, the road network data includes but is not limited to data such as the width, position (latitude and longitude) and length of the road. Figure 7a is a schematic diagram of the motion trajectory before the deviation correction displayed by the mobile phone. The motion trajectory displayed by the mobile health application is Based on the road network data obtained by the mobile phone, it is assumed that the mobile phone displays the motion trajectory before deviation correction. As can be seen in Figure 7a, there are multiple trajectory points on the motion trajectory that deviate from the road. As mentioned above, the mobile phone can correct the track points that deviate from the road based on the road network data of the road, so that the deviated track points can be restored to the road, so that each track point on the motion track is always kept on the road, as shown in the figure 7b is a schematic diagram of the movement trajectory after the deviation correction displayed by the mobile phone.
可选地,若运动轨迹上的各轨迹点均位于道路上,则无需对运动轨迹进行纠正。Optionally, if each trajectory point on the motion trajectory is located on the road, the motion trajectory need not be corrected.
步骤106,手机显示运动轨迹。Step 106, the mobile phone displays the motion track.
示例性的,手机的运动健康应用显示纠正后的运动轨迹。可选地,运动健康应用还可以显示健康信息等。Exemplarily, the sports health application of the mobile phone displays the corrected motion trajectory. Optionally, the sports health application can also display health information and the like.
由于智能手表的天线性能限制,智能手表获取到的运动轨迹与实际运动轨迹之间可能出现较大的偏差,例如轨迹点不在道路上,在手机获取到路网数据的情况下,手机可实现对智能手表发送的运动轨迹的纠正。但是,由于路网数据是人工生成的,在实际道路发生变换的情况下,如果人工未能及时更新路网数据,则手机获取到的该道路所属区域范围内的路网数据是不准确的数据。此外,路网数据通常只覆盖主干道路,对于运动场、公园等内部道路是无法覆盖的。因此,在手机未能成功获取到运动轨迹所属区域范围内的路网数据,或者,获取到的路网数据不精确的情况下,则手机无法对运动轨迹进行纠偏,仅能显示获取到的智能手表发送的运动轨迹,例如图7a所示的结果。举例说明,假设空地A上新修了一条道路,而路网数据未能及时更新,则在手机存储的路网数据中,空地A对应的路网数据仍然指示的该地为空地。假设用户佩戴智能手表在空地A新修的道路上跑步,由于手机未能获取到的该道路的路网数据,则手机无法对接收到的智能手表发送的运动轨迹进行纠正,只能显示智能手表发送的精准度较差的运动轨迹。Due to the limitation of the antenna performance of the smart watch, there may be a large deviation between the motion track obtained by the smart watch and the actual motion track. For example, the track point is not on the road. When the mobile phone obtains the road network data, the mobile phone can realize Correction of motion trajectories sent by smartwatches. However, since the road network data is artificially generated, if the actual road is changed, if the road network data cannot be manually updated in time, the road network data obtained by the mobile phone within the area to which the road belongs will be inaccurate. . In addition, road network data usually only covers main roads, and cannot cover internal roads such as sports fields and parks. Therefore, if the mobile phone fails to obtain the road network data within the area to which the motion trajectory belongs, or the obtained road network data is inaccurate, the mobile phone cannot correct the motion trajectory, and can only display the obtained intelligent The movement trajectory sent by the watch, such as the result shown in Figure 7a. For example, assuming that a new road is built on the open space A, but the road network data cannot be updated in time, in the road network data stored in the mobile phone, the road network data corresponding to the open space A still indicates that the land is an open space. Suppose the user wears a smart watch to run on the newly built road in the open space A. Since the mobile phone cannot obtain the road network data of the road, the mobile phone cannot correct the motion trajectory sent by the received smart watch, and can only display the smart watch. Sending motion traces with poor accuracy.
为解决上述问题,本申请提供一种轨迹纠偏方法,可在不依赖路网数据的情况下,实现对智能手表的运动轨迹的纠偏,以有效提高应用显示的运动轨迹的精准度,提升用户体验。In order to solve the above problems, the present application provides a trajectory correction method, which can realize the correction of the motion trajectory of the smart watch without relying on road network data, so as to effectively improve the accuracy of the motion trajectory displayed by the application and improve the user experience. .
场景一scene one
结合图1,如图8所示为本申请实施例提供的一种轨迹纠偏方法的流程示意图,参照图8,具体的,本申请的轨迹纠偏方法可包括标准路径训练、标准路径下载、标准路径匹配以及轨迹纠偏四个部分,下面分别对上述四个部分进行详细说明。With reference to FIG. 1, FIG. 8 shows a schematic flowchart of a trajectory correction method provided by an embodiment of the present application. Referring to FIG. 8, specifically, the trajectory correction method of the present application may include standard path training, standard path download, standard path There are four parts of matching and track correction, and the above four parts are described in detail below.
部分11、标准路径训练。Part 11. Standard Path Training.
具体的,云端可用于对一个或多个终端上传的运动轨迹进行训练,以得到标准路径。如图9为示例性示出的标准路径训练的流程示意图,参照图9,具体的,手机1、手机2和手机3可分别向云端发送运动轨迹1~5、运动轨迹6、运动轨迹7~10。云端将接收到的运动轨迹1~10存储于存储单元。示例性的,云端的训练单元可每隔一周(即7天)从存储单元获取一周内存储的运动轨迹(例如运动轨迹1~10),训练单元根据运动轨迹1~10的位置、方向等信息进行训练,以得到一个或多个标准路径。Specifically, the cloud can be used to train motion trajectories uploaded by one or more terminals to obtain a standard path. FIG. 9 is an exemplary schematic flowchart of standard path training. Referring to FIG. 9 , specifically, mobile phone 1, mobile phone 2, and mobile phone 3 can send motion tracks 1 to 5, motion tracks 6, and motion tracks 7 to the cloud, respectively. 10. The cloud stores the received motion trajectories 1 to 10 in the storage unit. Exemplarily, the training unit in the cloud can obtain motion trajectories (for example, motion trajectories 1 to 10) stored within a week from the storage unit every other week (ie, 7 days). Train to get one or more standard paths.
在一种可能的实现方式中,手机1、手机2和手机3可于相同或不同的周期内向云端发送运动轨迹。例如,手机1可在第一周期向云端发送运动轨迹1~5,手机2可在第二 周期向云端发送运动轨迹6,手机3可在第三周期向云端发送运动轨迹7~10,本申请不做限定。In a possible implementation manner, the mobile phone 1, the mobile phone 2, and the mobile phone 3 may send the motion trajectory to the cloud in the same or different periods. For example, mobile phone 1 can send motion tracks 1 to 5 to the cloud in the first cycle, mobile phone 2 can send motion track 6 to the cloud in the second cycle, and mobile phone 3 can send motion tracks 7 to 10 to the cloud in the third cycle. Not limited.
在一种可能的实现方式中,训练单元可周期性地从存储单元获取周期内的运动轨迹以进行训练。示例性的,周期时长可以为7天或3天,本申请中所述的周期时长仅为示意性举例,本申请不做限定。In a possible implementation manner, the training unit may periodically acquire the motion trajectory within the period from the storage unit for training. Exemplarily, the cycle duration may be 7 days or 3 days, and the cycle duration described in this application is only an illustrative example, which is not limited in this application.
在另一种可能的实现方式中,训练单元还可以非周期性地从存储单元获取未训练过的运动轨迹,例如,存储单元每接收到1000个运动轨迹,即通知训练单元进行训练。In another possible implementation manner, the training unit may also acquire untrained motion trajectories from the storage unit aperiodically. For example, every time the storage unit receives 1000 motion trajectories, the training unit is notified to perform training.
部分12,标准路径下载。Section 12, Standard Path Downloads.
如图10为标准路径下载的流程示意图,参照图10,具体的,云端的训练单元得到标准路径后,将标准路径输出至存储单元进行存储。手机1~手机3(包括手机1、手机2和手机3)可按需下载标准路径。FIG. 10 is a schematic flowchart of downloading a standard path. Referring to FIG. 10 , specifically, after the training unit in the cloud obtains the standard path, it outputs the standard path to the storage unit for storage. Mobile phone 1 to mobile phone 3 (including mobile phone 1, mobile phone 2 and mobile phone 3) can download the standard path on demand.
示例性的,手机端的标准路径下载规则包括但不限于:Exemplarily, the standard path download rules on the mobile terminal include but are not limited to:
1)手机每个周期(7天)下载一次。1) The mobile phone is downloaded once per cycle (7 days).
2)每次下载指定区域范围内的标准路径。2) Download the standard path within the specified area each time.
在一种可能的实现方式中,手机的下载周期可以为7天或3天,本申请不做限定。In a possible implementation manner, the download period of the mobile phone may be 7 days or 3 days, which is not limited in this application.
在一种可能的实现方式中,指定区域范围可以是用户经常跑步的地点所属的区域范围(区域范围的概念可参照步骤104中的描述,此处不再赘述)。示例性的,指定区域范围还可以是用户最近跑步的地点所属的区域范围。可选地,为降低存储的数据量,指定区域范围的数量上线可以为7个,例如,手机每周仅更新用户最近跑步的7个地点(假设用户每次跑步的地点不一样)所属的指定区域范围。In a possible implementation manner, the specified area range may be the area range to which the place where the user often runs (for the concept of the area range, refer to the description in step 104, which will not be repeated here). Exemplarily, the specified area range may also be the area range to which the place where the user ran most recently belongs. Optionally, in order to reduce the amount of stored data, the number of designated area ranges can be 7 online. For example, the mobile phone only updates the 7 places where the user recently ran every week (assuming that the user runs at a different place each time) belonging to the designated area. geographic range.
示例性的,手机端的标准路径下载方式还可以为用户点击运动健康应用后,手机响应于用户的点击操作,获取手机当前所在的位置,并更新手机所在区域范围内的标准路径。示例性的,运动健康应用可提供搜索功能,用户可在搜索功能中搜索指定的地点,例如XX园区,并选择在下载XX园区内的标准路径,手机检测到用户的操作行为,可向云端请求XX园区内的标准路径,云端可将XX园区内的标准路径发送至手机。示例性的,若手机中已存储一个或多个XX园区内的标准路径,手机可检测已存储的标准路径是否为近期(例如7天内)获取到的标准路径,如果一个或多个标准路径是7天内获取到的,手机可向云端请求XX园区内除已保存的一个或多个标准路径之外的其它标准路径。Exemplarily, the standard path download method on the mobile phone terminal may also be that after the user clicks on the sports health application, the mobile phone responds to the user's click operation, obtains the current location of the mobile phone, and updates the standard path within the area where the mobile phone is located. Exemplarily, the sports health application can provide a search function. The user can search for a specified location in the search function, such as the XX park, and select a standard path in the XX park to download. The mobile phone detects the user's operation behavior and can request it from the cloud. The standard route in the XX campus, the cloud can send the standard route in the XX campus to the mobile phone. Exemplarily, if one or more standard routes in the XX park have been stored in the mobile phone, the mobile phone can detect whether the stored standard routes are the standard routes obtained recently (for example, within 7 days), if one or more standard routes are If it is obtained within 7 days, the mobile phone can request the cloud for other standard routes in the XX campus in addition to the one or more standard routes that have been saved.
示例性的,手机端的标准路径下载方式还可以为云端主动向手机端推送指定区域范围内的标准路径。例如,云端可记录手机端对应的指定区域范围,并在检测到指定区域范围内有更新的标准路径后,向手机端推送指定范围内的标准路径,或者,云端还可以周期性(例如7天)地向手机端推送指定区域范围内的标准路径,并在用户确定允许下载的情况下,手机获取云端推送的标准路径。Exemplarily, the standard path download method on the mobile phone terminal may also be that the cloud actively pushes the standard path within the specified area to the mobile phone terminal. For example, the cloud can record the specified area range corresponding to the mobile phone, and after detecting that there is an updated standard path within the specified area, push the standard path within the specified range to the mobile phone, or the cloud can also periodically (for example, 7 days) ) pushes the standard path within the specified area to the mobile terminal, and when the user confirms that the download is allowed, the mobile phone obtains the standard path pushed by the cloud.
部分13,标准路径匹配。Section 13, Standard Path Matching.
如图11为标准路径匹配和轨迹纠偏的流程示意图,参照图11,示例性的,用户佩戴智能手表跑步,跑步过程中,智能手表获取用户的运动信息,包括但不限于运动轨迹11上的各轨迹点的位置、方向、速度、置信度和高度等信息。用户回家后,可将智能手表 与手机1进行蓝牙配对,智能手表与手机1响应于用户的操作建立蓝牙连接之后,可进行应用配对,如图12所示为应用配对的示意图,参照图12,手机的显示窗口显示主页面,主页面上包括一个或多个空间,例如应用图标、电量控件等,用户可点击运动健康应用图标,手机检测到用户的点击操作,在显示窗口上显示运动健康应用界面,运动健康应用界面包括一个或多个插件,用户可点击“设备”选项,手机检测到用户的点击操作,显示设备界面。可选地,设备界面中包括一个或多个提示框,提示框可以包括提示信息,提示信息用于指示“可添加多个设备”,还可以包括其它提示框,例如,另一提示框包括提示信息“帮你轻松玩转华为穿戴设备”。用户可点击“添加设备”提示框,手机检测到用户的点击操作,显示添加设备界面(也可称为全部设备界面),该界面中包括一个或多个设备选项,用户可点击“手表”选项。手机检测到用户的点击操作,显示手表界面,可选地,手表界面可提供一个或多个华为手表的系列选项,用户可点击HUAWEI WATCH GT2系列,需要说明的是,图中所示的品牌和系列仅为示意性举例,本申请不做限定。示例性的,手机检测到用户的点击操作,显示HUAWEI WATCH GT2系列配对界面,示例性的,该界面包括一个或多个控件,例如底端的多个控件(包括健康、运动、设备等选项),还包括“开始配对”选项,用户可点击“开始配对”选项,手机检测到用户的点击操作,与用户的智能手表对应的型号(例如华为智能手表4)进行配对。Figure 11 is a schematic flow chart of standard path matching and trajectory correction. Referring to Figure 11, exemplarily, a user wears a smart watch to run. During the running process, the smart watch obtains the user's movement information, including but not limited to the movement information on the movement track 11. Information such as position, direction, velocity, confidence, and altitude of track points. After the user goes home, the smart watch can be paired with the mobile phone 1 via Bluetooth. After the smart watch and the mobile phone 1 establish a Bluetooth connection in response to the user's operation, application pairing can be performed. Figure 12 is a schematic diagram of application pairing. , the display window of the mobile phone displays the main page, and the main page includes one or more spaces, such as application icons, battery controls, etc., the user can click the sports health application icon, the mobile phone detects the user's click operation, and displays the sports health on the display window. The application interface, the sports health application interface includes one or more plug-ins, the user can click the "device" option, the mobile phone detects the user's click operation, and displays the device interface. Optionally, the device interface includes one or more prompt boxes, the prompt box may include prompt information, and the prompt information is used to indicate that "multiple devices can be added", and may also include other prompt boxes. For example, another prompt box includes a prompt. The message "helps you easily play with Huawei wearable devices". The user can click the "Add Device" prompt box, the mobile phone detects the user's click operation, and displays the Add Device Interface (also called the All Device Interface), which includes one or more device options, and the user can click the "Watch" option. . The mobile phone detects the user's click operation and displays the watch interface. Optionally, the watch interface can provide one or more series options of Huawei watches. The user can click the HUAWEI WATCH GT2 series. It should be noted that the brands shown in the figure and The series are only illustrative examples, and are not limited in this application. Exemplarily, the mobile phone detects the user's click operation, and displays the HUAWEI WATCH GT2 series pairing interface. Exemplarily, the interface includes one or more controls, such as multiple controls at the bottom (including options such as health, exercise, and equipment), It also includes a "start pairing" option, the user can click the "start pairing" option, the mobile phone detects the user's click operation, and pairs with the model corresponding to the user's smart watch (for example, Huawei Smart Watch 4).
可选地,手机和智能手表具有同一个用户账号,用户可在手机和智能手表上登陆同一个账号。可选地,手机与智能手表第一次配对成功后,智能手表再次靠近手机,手机与智能手表具有同一账号的情况下,手机可与智能手表自动连接。Optionally, the mobile phone and the smart watch have the same user account, and the user can log in to the same account on the mobile phone and the smart watch. Optionally, after the mobile phone and the smart watch are successfully paired for the first time, the smart watch approaches the mobile phone again. If the mobile phone and the smart watch have the same account, the mobile phone and the smart watch can be automatically connected.
仍参照图11,智能手表与手机1配对成功(指蓝牙配对和应用配对)后,智能手表可通过蓝牙连接向手机1发送运动轨迹11。手机1获取到运动轨迹11后,将运动轨迹11与已下载的一个或多个标准路径逐一匹配,并获取匹配成功的标准路径。Still referring to FIG. 11 , after the smart watch is successfully paired with the mobile phone 1 (referring to Bluetooth pairing and application pairing), the smart watch can send the motion track 11 to the mobile phone 1 through the Bluetooth connection. After acquiring the motion track 11, the mobile phone 1 matches the motion track 11 with one or more downloaded standard paths one by one, and obtains a successfully matched standard path.
部分14,轨迹纠偏。Part 14, track deviation correction.
具体的,仍参照图11,手机1获取到与运动轨迹11匹配的标准路径后,可基于标准路径对运动轨迹11进行纠偏。Specifically, still referring to FIG. 11 , after the mobile phone 1 obtains the standard path matching the motion trajectory 11 , the mobile phone 1 can rectify the motion trajectory 11 based on the standard path.
综上,相较于已有技术中手机需要依赖路网数据对运动轨迹进行纠偏的方式,本申请中,云端可基于获取到的多个运动轨迹进行群体运动轨迹手的训练,以得到标准路径,手机可从云端获取到与运动轨迹匹配的标准路径,从而基于标准路径对运动轨迹进行纠偏,以提出一种不依赖于路网数据的纠偏方式,有效提升运动轨迹纠偏的精准度和可靠性,从而提升用户体验。To sum up, compared with the prior art in which the mobile phone needs to rely on the road network data to rectify the motion trajectory, in the present application, the cloud can perform group motion trajectory training based on the obtained multiple motion trajectories to obtain a standard path. , the mobile phone can obtain the standard path matching the motion trajectory from the cloud, so as to correct the motion trajectory based on the standard path, so as to propose a deflection correction method that does not depend on the road network data, and effectively improve the accuracy and reliability of the motion trajectory correction. , so as to improve the user experience.
下面采用几个具体的实施例,对上述方法实施例中的各部分进行详细说明。The following uses several specific embodiments to describe in detail each part in the above method embodiment.
场景:手机1在第一周期内获取到运动轨迹信息1~5,并在第一周期内向云端发送运动轨迹信息1~5。其中,运动轨迹1~5为用户1在第一周期内的不同时间段,在园区A内沿逆时针方向跑步生成的。需要说明的是,下面的实施例中,均以周期时长为一周(即7天)为例进行说明,第一周期可以理解为第一周,第二周期可以为与第一周相邻的下一周。在其他实施例中,第二周期还可以是与第一周期相隔的另一周,本申请不做限定。Scenario: Mobile phone 1 acquires motion track information 1 to 5 in the first cycle, and sends motion track information 1 to 5 to the cloud in the first cycle. The motion trajectories 1 to 5 are generated by user 1 running counterclockwise in the park A at different time periods in the first cycle. It should be noted that, in the following embodiments, the cycle duration is one week (ie, 7 days) as an example for description, the first cycle can be understood as the first week, and the second cycle can be the next cycle adjacent to the first cycle. a week. In other embodiments, the second period may also be another week separated from the first period, which is not limited in this application.
手机2在第一周期内获取到运动轨迹信息6~9,并在第一周期内向云端发送运动轨迹信息6~9。其中,运动轨迹6~9为用户2在第一周期内的不同时间段,在园区B内沿逆时针方向跑步生成的。The mobile phone 2 acquires the motion track information 6-9 in the first cycle, and sends the motion track information 6-9 to the cloud in the first cycle. The motion trajectories 6 to 9 are generated by the user 2 running in the counterclockwise direction in the park B at different time periods in the first cycle.
手机3在第二周期内获取到运动轨迹信息10,并在第二周期内向云端发送运动轨迹信息10。其中,运动轨迹10为用户3在第二周期内,在园区A内沿顺时针方向跑步生成的。The mobile phone 3 acquires the motion track information 10 in the second cycle, and sends the motion track information 10 to the cloud in the second cycle. The motion trajectory 10 is generated by the user 3 running in the clockwise direction in the park A in the second cycle.
各运动轨迹信息包括但不限于:运动轨迹上的各轨迹点的位置、方向、速度、置信度和高度,可选地,还包括手机的标识信息。可选地,手机的标识信息可以为手机的序列号等信息,发送该信息的目的是用于使得云端可基于手机的标识信息识别获取到的运动轨迹信息的生成端是否为指定类型的设备,例如手机等,也可以理解为,指定类型的设备是指获取到的运动轨迹可作为标准路径训练基础的设备,而非指定类型的设备则是指智能手表、智能手表等运动轨迹不可作为生成标准路径基础的设备。举例说明,手机序列号中的部分参数可用于指示设备的类型,例如指示手机为华为P30,则云端可基于预先设置的序列号参数与指定类型设备的对应关系,确定华为P30手机即为指定类型设备。Each motion track information includes, but is not limited to: the position, direction, speed, confidence and height of each track point on the motion track, and optionally, also includes identification information of the mobile phone. Optionally, the identification information of the mobile phone can be information such as the serial number of the mobile phone, and the purpose of sending this information is to enable the cloud to identify whether the generator of the acquired motion trajectory information is a device of a specified type based on the identification information of the mobile phone, For example, mobile phones, etc., it can also be understood that a specified type of device refers to a device whose acquired motion trajectory can be used as the basis for standard path training, while a non-specified type of device refers to a smart watch, smart watch and other motion trajectories that cannot be used as a generation standard. Path based device. For example, some parameters in the mobile phone serial number can be used to indicate the type of the device. For example, if the mobile phone is a Huawei P30, the cloud can determine that the Huawei P30 mobile phone is the specified type based on the correspondence between the preset serial number parameters and the specified type of device. equipment.
可选地,所述手机的标识信息也可以是指定字段中的特殊符号,例如,手机向云端发送的数据包中的数据字段中可以包括指示字段,该指示字段中的数值为“1”时,表示该数据包的发送端为手机,即指定类型设备,相应的,手表向云端发送的数据包中的数据字段中可以包括指示字段,该指示字段中的数值为“0”时,标识数据包的发送端为手表,即非指定类型设备。Optionally, the identification information of the mobile phone can also be a special symbol in the specified field. For example, the data field in the data packet sent by the mobile phone to the cloud can include an indication field. When the value in the indication field is "1" , indicating that the sender of the data packet is a mobile phone, that is, a device of a specified type. Correspondingly, the data field in the data packet sent by the watch to the cloud may include an indication field. When the value in the indication field is "0", the identification data The sender of the packet is a watch, that is, a device of a non-specified type.
下面结合上述场景,对云端的训练方式进行详细说明,如图13所示为本申请实施例提供的标准路径训练的流程示意图,参照图13,具体包括:The training method in the cloud will be described in detail below in conjunction with the above scenarios. FIG. 13 shows a schematic flowchart of the standard path training provided in this embodiment of the present application. Referring to FIG. 13 , it specifically includes:
步骤201,云端判断运动轨迹信息1~9是否为指定类型设备生成的。 Step 201, the cloud determines whether the motion track information 1-9 is generated by a device of a specified type.
示例性的,云端(如非特殊说明,下文中的执行主体均是指云端中的训练单元)在第一周期结束时刻,从存储单元提取第一周期内获取到的运动轨迹信息1~9。Exemplarily, at the end of the first cycle, the cloud (unless otherwise specified, the execution subject hereinafter refers to the training unit in the cloud) extracts the motion trajectory information 1-9 obtained in the first cycle from the storage unit.
示例性的,云端可基于各运动轨迹信息中包括的标识信息,确定运动轨迹的生成端是否为指定类型的设备(概念可参照上文)。示例性的,在本实施例中,云端基于标识信息,确定运动轨迹1~9的生成端均为手机,并执行步骤202。Exemplarily, the cloud may determine, based on the identification information included in each motion track information, whether the generator of the motion track is a device of a specified type (for the concept, refer to the above). Exemplarily, in this embodiment, the cloud determines, based on the identification information, that the generators of the motion trajectories 1 to 9 are all mobile phones, and executes step 202 .
在一种可能的实现方式中,手机可将接收到的智能手表发送的运动轨迹发送至云端,以指示云端存储智能手表获取到的纠偏前的运动轨迹。在该示例中,以手机1为例,手机1发送智能手表的运动轨迹时,需携带用于指示该运动轨迹是智能手表生成的标识,例如,可以是智能手表的序列号或者指示字段中携带特殊标识(可参照上文),云端可基于序列号或特殊表示与指定类型设备的对应关系,确定运动轨迹的生成端为智能手表,则将该运动轨迹进行存储。In a possible implementation manner, the mobile phone may send the received motion track sent by the smart watch to the cloud, so as to instruct the cloud to store the motion track obtained by the smart watch before deviation correction. In this example, taking the mobile phone 1 as an example, when the mobile phone 1 sends the motion track of the smart watch, it needs to carry an identifier used to indicate that the motion track is generated by the smart watch, for example, it can be the serial number of the smart watch or carried in the indication field Special identification (refer to the above), the cloud can determine the generation end of the motion track is a smart watch based on the corresponding relationship between the serial number or the special representation and the specified type of equipment, and then store the motion track.
在另一种可能的实现方式中,若智能手表或智能手环等电子设备具有蜂窝通信功能,即,可通过蜂窝网络与云端交互数据,智能手表获取到运动轨迹后,可将纠偏前的运动 轨迹以及智能手表的序列号发送至云端,同样,云端可基于序列号,确定运动轨迹的生成端为智能手表,并存储该运动轨迹。In another possible implementation, if an electronic device such as a smart watch or a smart bracelet has a cellular communication function, that is, data can be exchanged with the cloud through a cellular network. The track and the serial number of the smart watch are sent to the cloud. Similarly, the cloud can determine the generation end of the motion track as the smart watch based on the serial number, and store the motion track.
在又一种可能的实现方式中,若智能手表是基于手机的定位系统生成的运动轨迹,则手机获取智能手表发送的运动轨迹后,向云端发送的运动轨迹信息中包括指示运动轨迹为智能手表基于手机的定位系统生成的。举例说明,用户携带手机和智能手表跑步,智能手表和手机始终保持蓝牙连接,手机可基于手机的定位系统获取运动轨迹,并传输至智能手表,智能手表结合运动轨迹与健康信息,生成运动健康信息(包括运动轨迹信息和健康信息),智能手表将运动健康信息上报给手机后,手机可将运动轨迹信息发送给云端,其中,信息中包括指示运动轨迹为基于手机的定位系统发送的标识。在该示例中,云端可将该类运动轨迹作为训练样本,对标准路径进行训练。In another possible implementation, if the smart watch is a motion track generated by a positioning system based on a mobile phone, after the mobile phone obtains the motion track sent by the smart watch, the motion track information sent to the cloud includes an indication that the motion track is a smart watch. Generated by a mobile phone-based positioning system. For example, a user runs with a mobile phone and a smart watch, and the smart watch and the mobile phone always maintain a Bluetooth connection. The mobile phone can obtain the motion track based on the mobile phone's positioning system and transmit it to the smart watch. The smart watch combines the motion track and health information to generate sports health information. (including motion trajectory information and health information), after the smart watch reports the motion health information to the mobile phone, the mobile phone can send the motion trajectory information to the cloud, where the information includes an identifier indicating that the motion trajectory is sent by the mobile phone-based positioning system. In this example, the cloud can use this type of motion trajectory as a training sample to train the standard path.
步骤202,云端检测是否已存在与运动轨迹1~9匹配的标准路径。 Step 202, the cloud detects whether there is a standard path matching the motion trajectories 1-9.
具体的,云端基于运动轨迹的位置信息,提取已存储的运动轨迹所属区域范围内的一个或多个标准路径进行相似度匹配,以确定是否存在与运动轨迹对应的标准路径,例如,运动轨迹1~5所属的区域范围为园区A,运动轨迹6~9所属区域范围为园区B。Specifically, based on the location information of the motion track, the cloud extracts one or more standard paths within the area to which the stored motion track belongs to perform similarity matching to determine whether there is a standard path corresponding to the motion track, for example, motion track 1 The area to which ~5 belongs is park A, and the area to which motion tracks 6 to 9 belong is park B.
下面对相似度匹配的具体过程进行详细说明:The specific process of similarity matching is described in detail below:
如图14为示例性示出的相似度匹配的流程示意图,参照图14,示例性的,以运动轨迹A和运动轨迹B之间的匹配为例进行说明,云端存储的运动轨迹上的轨迹点均是以轨迹点的生成时间为顺序存储的,也就是说,手机按照采样周期获取到的轨迹点后,向云端发送的运动轨迹信息中的各轨迹点的运动信息仍是按照各轨迹点的生成(或获取)顺序发送的。在相似度匹配的过程中,云端按照轨迹点的顺序,以此对各轨迹点进行相似度匹配,其中,所述轨迹点的顺序是指运动轨迹上的各轨迹点在时间上的顺序。示例性的,以运动轨迹A上的轨迹点1为例,轨迹点1即为运动轨迹A上的起始轨迹点(即第一次记录的轨迹点),云端基于轨迹点1的方向1,遍历运动轨迹B上的各轨迹点,并获取与方向1之间的夹角小于30°的轨迹点。需要说明的是,遍历过程同样是按照运动轨迹B上的各轨迹点的顺序。可选地,云端可基于运动轨迹B上的各轨迹点的顺序,从轨迹1’点开始遍历,且仅遍历80个(具体数值可根据实际需求进行设置)轨迹点,以降低云端服务器的功耗。示例性的,经过逐点匹配后,云端获取到运动轨迹B上与轨迹点1的方向1之间的夹角小于或等于30°的轨迹点包括轨迹点1’、轨迹点2’、轨迹点3’。需要说明的是,本申请实施例中所述的各阈值,例如,方向之间的夹角,以及下文所述的距离阈值等均为示意性举例,在其他实施例中,还可以是其它数值,例如方向夹角的阈值可以为40°等,本申请不做限定。进一步需要说明的是,两个方向之间的夹角范围取[0,180°],举例说明,方向1和方向2之间的夹角为28°,方向1与方向3之间的夹角为10°,方向1与方向4之间的夹角为12°。FIG. 14 is an exemplary schematic flowchart of similarity matching. Referring to FIG. 14 , exemplarily, taking the matching between the motion track A and the motion track B as an example, the track points on the motion track stored in the cloud All are stored in the order of the generation time of the trajectory points, that is to say, after the mobile phone obtains the trajectory points according to the sampling period, the motion information of each trajectory point in the trajectory information sent to the cloud is still in accordance with each trajectory point. Generate (or get) sent sequentially. In the process of similarity matching, the cloud performs similarity matching on each trajectory point according to the order of the trajectory points, wherein the order of the trajectory points refers to the temporal order of each trajectory point on the motion trajectory. Exemplarily, taking the trajectory point 1 on the motion trajectory A as an example, the trajectory point 1 is the starting trajectory point on the motion trajectory A (that is, the trajectory point recorded for the first time), and the cloud is based on the direction 1 of the trajectory point 1, Traverse each track point on the motion track B, and obtain the track point whose included angle with the direction 1 is less than 30°. It should be noted that, the traversal process is also in accordance with the order of each track point on the motion track B. Optionally, the cloud can traverse from the point 1' of the trajectory based on the sequence of each trajectory point on the motion trajectory B, and only traverse 80 (the specific value can be set according to actual needs) trajectory points to reduce the power of the cloud server. consumption. Exemplarily, after point-by-point matching, the trajectory points obtained by the cloud whose included angle between the motion trajectory B and the direction 1 of trajectory point 1 is less than or equal to 30° include trajectory point 1', trajectory point 2', trajectory point 1', and trajectory point 1'. 3'. It should be noted that the thresholds described in the embodiments of the present application, for example, the angle between directions, and the distance thresholds described below are all illustrative examples, and in other embodiments, other values may also be used For example, the threshold value of the included direction angle may be 40°, etc., which is not limited in this application. It should be further noted that the range of the angle between the two directions is [0, 180°]. For example, the angle between the direction 1 and the direction 2 is 28°, and the angle between the direction 1 and the direction 3 is 28°. is 10°, and the angle between direction 1 and direction 4 is 12°.
示例性的,经过方向匹配后,云端将轨迹点1与方向匹配成功的轨迹点集合(包括轨迹点1’、轨迹点2’、轨迹点3’)中的各点进行距离匹配,选取与轨迹点1之间距离最近的轨迹点为轨迹点1对应的投影点。示例性的,云端将轨迹点1与轨迹点集合中的轨迹点逐一匹配,获取到轨迹点1与轨迹点1’、轨迹点2’、轨迹点3’之间的距离分别为:距离1、距离2、距离3。经过比较,云端确定距离1为几个距离值中的最小值,即,轨 迹点1与轨迹点1’的距离最近,轨迹点1’即为轨迹点1的投影点。可选地,距离值是基于轨迹点的位置获取到的。Exemplarily, after direction matching, the cloud performs distance matching between the trajectory point 1 and each point in the trajectory point set (including trajectory point 1', trajectory point 2', and trajectory point 3') whose directions are successfully matched, and selects the point corresponding to the trajectory. The trajectory point with the closest distance between points 1 is the projection point corresponding to the trajectory point 1. Exemplarily, the cloud matches the trajectory point 1 with the trajectory points in the trajectory point set one by one, and obtains the distances between the trajectory point 1 and the trajectory point 1', the trajectory point 2', and the trajectory point 3' respectively: distance 1, Distance 2, Distance 3. After comparison, the cloud determines that the distance 1 is the minimum of several distance values, that is, the distance between the trajectory point 1 and the trajectory point 1' is the closest, and the trajectory point 1' is the projection point of the trajectory point 1. Optionally, the distance value is obtained based on the position of the trajectory point.
示例性的,确定投影点后,云端判断投影点是否符合设定的条件。示例性的,设定的条件为距离小于或等于50米。一个示例中,若云端检测到距离1小于50米,例如,距离1为10米,云端确定轨迹点1’为与轨迹点1对应的符合设定的条件的投影点。Exemplarily, after the projection point is determined, the cloud determines whether the projection point meets the set condition. Exemplarily, the set condition is that the distance is less than or equal to 50 meters. In an example, if the cloud detects that the distance 1 is less than 50 meters, for example, the distance 1 is 10 meters, the cloud determines that the trajectory point 1' is a projection point corresponding to the trajectory point 1 that meets the set conditions.
示例性的,云端按照上述方式,继续按序对运动轨迹A上的各轨迹点进行匹配,需要说明的是,如果轨迹点1对应的投影点为轨迹点2’,则在对轨迹点1后面的轨迹点,例如轨迹点2进行匹配时,只能从轨迹点3’开始遍历,以选取对应的投影点。需要说明的是,上文所述轨迹点1后面的轨迹点2是指时间顺序上的,也就是说,在轨迹生成的时候,先生成轨迹点1,再生成的轨迹点2。进一步需要说明的是,从轨迹点3’开始遍历即是指,从与轨迹点1匹配的轨迹点2’后面的相邻轨迹点(即轨迹点3’)开始遍历。Exemplarily, the cloud continues to sequentially match each trajectory point on the motion trajectory A in the above-mentioned manner. It should be noted that, if the projection point corresponding to the trajectory point 1 is the trajectory point 2', then after the trajectory point 1 is matched For example, when matching the trajectory point 2, it can only be traversed from the trajectory point 3' to select the corresponding projection point. It should be noted that the above-mentioned trajectory point 2 after the trajectory point 1 refers to the time sequence, that is, when the trajectory is generated, the trajectory point 1 is generated first, and then the trajectory point 2 is generated. It should be further noted that starting the traversal from the trajectory point 3' means starting the traversal from the adjacent trajectory point (that is, the trajectory point 3') behind the trajectory point 2' that matches the trajectory point 1.
示例性的,若运动轨迹A上70%的轨迹点均在运动轨迹B上存在符合设定的条件的投影点,则确定运动轨迹A与运动轨迹B匹配成功,也可以理解为,运动轨迹A与运动轨迹B的相似度大于或等于70%。需要说明的是,本申请中所述的相似度匹配方式仅为示意性举例,在其他实施例中,也可以以其他方式进行相似度匹配,例如,可以先确定与运动轨迹上的各轨迹点对应的距离最小的点为投影点,再基于每个投影点与轨迹点的方向和距离,判断投影点是否符合条件等方式,本申请不做限定。Exemplarily, if 70% of the trajectory points on the motion track A all have projection points that meet the set conditions on the motion track B, it is determined that the motion track A and the motion track B are successfully matched, which can also be understood as the motion track A. The similarity with the motion trajectory B is greater than or equal to 70%. It should be noted that the similarity matching method described in this application is only a schematic example, and in other embodiments, similarity matching can also be performed in other ways. The point with the smallest corresponding distance is the projection point, and then based on the direction and distance between each projection point and the trajectory point, it is determined whether the projection point meets the conditions, etc., which is not limited in this application.
仍参照图13,示例性的,云端将运动轨迹1~5与存储单元存储的园区A内的标准路径逐一进行匹配后,确定未存在与运动轨迹1~5匹配的标准路径,同样未检测到与运动轨迹6~9匹配的标准路径,执行步骤203。Still referring to FIG. 13 , exemplarily, after the cloud matches the motion trajectories 1 to 5 with the standard paths in the park A stored in the storage unit one by one, it is determined that there is no standard path matching the motion trajectories 1 to 5, and the same is not detected. Step 203 is executed for the standard paths matching the motion trajectories 6-9.
步骤203,云端生成标准路径。 Step 203, the cloud generates a standard path.
示例性的,如图15所示为基于运动轨迹1~5生成标准路径的示意图,需要说明的是,在生成标准路径之前,云端同样将运动轨迹1~5进行两两匹配,以确定运动轨迹1~5为相似度大于或等于70%的运动轨迹,也就是说,只有相似度大于或等于70%的多个运动轨迹才能作为样本进行标准路径的生成训练。Exemplarily, Figure 15 is a schematic diagram of generating a standard path based on motion trajectories 1 to 5. It should be noted that, before generating a standard path, the cloud also matches motion trajectories 1 to 5 in pairs to determine the motion trajectories. 1 to 5 are motion trajectories with a similarity greater than or equal to 70%, that is, only multiple motion trajectories with a similarity greater than or equal to 70% can be used as samples for standard path generation training.
示例性的,云端采用层次聚类法对多个运动轨迹进行训练,参照图15,云端对运动轨迹1与运动轨迹2进行纠偏,得到修正结果1;对运动轨迹2和运动轨迹3进行纠偏,得到修正结果2;对运动轨迹5和修正结果2进行纠偏,得到修正结果3;对修正结果1和修正结果3进行纠偏,得到修正结果4,修正结果4即为与运动轨迹1~5对应的标准路径,可将其标记为园区A内的标准路径A1。需要说明的是,纠偏过程中是对各轨迹点的位置、方向和速度均进行纠偏,保存的信息包括修正结果4对应的修正运动轨迹4上各轨迹点的位置、方向和速度。Exemplarily, the cloud uses the hierarchical clustering method to train multiple motion trajectories. Referring to FIG. 15 , the cloud corrects the deviation of the motion trace 1 and the motion trace 2, and obtains the correction result 1; Correction result 2 is obtained; correction of motion trajectory 5 and correction result 2 is performed, correction result 3 is obtained; correction result 1 and correction result 3 are corrected, correction result 4 is obtained, and correction result 4 corresponds to motion trajectory 1 to 5. Standard route, which can be marked as standard route A1 in campus A. It should be noted that in the process of correction, the position, direction and speed of each track point are corrected, and the saved information includes the position, direction and speed of each track point on the corrected motion track 4 corresponding to the correction result 4 .
需要说明的是,本申请仅以层次聚类法为例进行说明,在其他实施例中,也可以以其他算法或方式确定标准路径,本申请不做限定。It should be noted that this application only takes the hierarchical clustering method as an example for description, and in other embodiments, other algorithms or methods may also be used to determine the standard path, which is not limited in this application.
下面对纠偏过程进行详细说明,如图16为示例性示出的纠偏过程的示意图,参照图16,示例性的,云端基于运动轨迹A与运动轨迹B进行纠偏的过程中,云端仍按照上文所述的相似度匹配方式,确定运动轨迹B上与运动轨迹A的各轨迹点对应的投影点,以运动轨迹A上的轨迹点1和运动轨迹B上对应于轨迹点1的投影点(轨迹点1’)为例进 行说明,假设轨迹点1对应的位置为位置1、轨迹点1’对应的位置为位置2,修正轨迹点1的修正位置1即为位置1与位置2取中,修正轨迹点1的方向、速度、置信度和高度也同样是基于轨迹点1’和轨迹点1的方向和速度取中所得。需要说明的是,上述举例中的取中纠偏方式仅适用于热度相同的两个运动轨迹之间的纠偏,其中,热度是指生成标准路径或修正结果的训练样本数,举例说明,参照图15,修正结果1是基于运动轨迹1和运动轨迹2生成的,其热度(即训练样本数)即为2,相应的,修正结果3的热度即为3(包括运动轨迹3、运动轨迹4和运动轨迹5)。示例性的,在对修正结果1和修正结果3进行纠偏时,由于修正结果3的热度大于修正结果1,则修正结果4上的各轨迹点的位置离修正结果3更近,示例性的,修正结果1的热度与修正结果3的热度比为2:3,则纠偏过程中按照该比例纠偏。云端将运动轨迹A与运动轨迹B上每个对应的轨迹点(即轨迹点与投影点之间的对应关系)的位置、方向和速度进行纠偏,以得到每个修正后的轨迹点对应的运动信息,即构成修正运动轨迹对应的修正轨迹信息。The deviation correction process will be described in detail below. FIG. 16 is a schematic diagram of the deviation correction process exemplarily shown. Referring to FIG. 16 , exemplarily, in the process that the cloud performs deviation correction based on the motion track A and the motion track B, the cloud still follows the above The similarity matching method described in this paper determines the projection points corresponding to the trajectory points of the motion trajectory A on the motion trajectory B, and uses the trajectory point 1 on the motion trajectory A and the projection point on the motion trajectory B corresponding to the trajectory point 1 ( The track point 1') is used as an example to illustrate, assuming that the position corresponding to the track point 1 is the position 1, the position corresponding to the track point 1' is the position 2, and the corrected position 1 of the corrected track point 1 is the position 1 and the position 2. The direction, speed, confidence and height of the corrected trajectory point 1 are also obtained based on the direction and speed of the trajectory point 1 ′ and the trajectory point 1 . It should be noted that the centering correction method in the above example is only applicable to the correction between two motion trajectories with the same heat, where the heat refers to the number of training samples that generate a standard path or correction result. For an example, see Figure 15 , the correction result 1 is generated based on the motion track 1 and the motion track 2, and its popularity (that is, the number of training samples) is 2. Correspondingly, the popularity of the correction result 3 is 3 (including the motion track 3, the motion track 4 and the motion track 2). track 5). Exemplarily, when correcting correction result 1 and correction result 3, since correction result 3 is hotter than correction result 1, the position of each track point on correction result 4 is closer to correction result 3. Exemplarily, The ratio of the heat of the correction result 1 to the heat of the correction result 3 is 2:3, and the deviation is corrected according to this ratio during the correction process. The cloud rectifies the position, direction and speed of each corresponding trajectory point (that is, the correspondence between the trajectory point and the projection point) on the motion trajectory A and the motion trajectory B, so as to obtain the motion corresponding to each corrected trajectory point. information, that is, the correction track information corresponding to the correction motion track.
示例性的,如图17所示为基于运动轨迹6~9生成标准路径的示意图,云端同样基于层次聚类法,对运动轨迹6~9进行训练,生成园区B内的标准路径B1及对应的运动信息。Exemplarily, as shown in FIG. 17 is a schematic diagram of generating standard paths based on motion trajectories 6 to 9. The cloud also trains motion trajectories 6 to 9 based on the hierarchical clustering method to generate the standard path B1 in the park B and the corresponding sports information.
在一种可能的实现方式中,标准路径的生成还可以采用人工干预的方式,例如,可人工选择多个运动轨迹中的任一轨迹作为标准路径,可选地,云端记录该标准路径为人工干预后生成的。In a possible implementation manner, the generation of the standard path may also adopt manual intervention. For example, any one of the multiple motion trajectories may be manually selected as the standard path. Optionally, the cloud records the standard path as manual. generated after intervention.
步骤204,云端保存标准路径信息。 Step 204, the cloud saves the standard path information.
具体的,云端保存标准路径信息,即包括标准路径A1上的各轨迹点的位置、方向、速度、置信度和高度,以及,标准路径B1上的各轨迹点的位置、方向、速度、置信度和高度。Specifically, the cloud saves the standard path information, that is, including the position, direction, speed, confidence, and height of each trajectory point on the standard path A1, and the position, direction, speed, and confidence of each trajectory point on the standard path B1. and height.
在一种可能的实现方式中,若在步骤202中,云端获取到与运动轨迹1~5匹配的标准路径(假设为标准路径X),则云端基于运动轨迹1~5对标准路径X进行更新。示例性的,云端将运动轨迹1~5仍按照图15所示的方式两两进行修正,并对修正结果4与标准路径X进行纠偏,纠偏方式仍可参照上文。可选地,云端还可记录有标准路径X的热度和修正结果4的热度(热度的概念详见上文),举例说明,标准路径X的热度为100,修正结果4的热度即为5(即运动轨迹1~5),则在对修正结果4与标准路径X进行纠偏时,按照100:5的比例纠偏,即纠偏后的标准路径X’与标准路径X更接近。需要说明的是,如上文所述,标准路径可能是人工干预生成的,对于该类标准路径,则无需对其进行更新,也就是说,即使获取到与其匹配的运动轨迹,也不会基于运动轨迹对人工干预生成的标准路径进行更新。In a possible implementation manner, if in step 202, the cloud obtains a standard path (assuming a standard path X) that matches the motion trajectories 1 to 5, the cloud updates the standard path X based on the motion trajectories 1 to 5 . Exemplarily, the cloud still corrects the motion trajectories 1 to 5 two by two according to the method shown in FIG. 15 , and corrects the correction result 4 and the standard path X, and the correction method can still refer to the above. Optionally, the cloud can also record the popularity of the standard path X and the popularity of the correction result 4 (the concept of popularity is described above). For example, the popularity of the standard path X is 100, and the popularity of the correction result 4 is 5 ( That is, the motion trajectories 1 to 5), when correcting the correction result 4 and the standard path X, the correction is performed according to the ratio of 100:5, that is, the standard path X' after the correction is closer to the standard path X. It should be noted that, as mentioned above, the standard path may be generated by manual intervention. For this type of standard path, it does not need to be updated. That is to say, even if a matching motion trajectory is obtained, it will not be based on motion Trajectories update standard paths generated by human intervention.
图13所示为对第一周期内获取到的运动轨迹进行训练的流程,下面对第二周期内的标准路径训练的流程进行说明。如图18所示为本申请实施例提供的标准路径训练的流程示意图,在无特别说明的情况下,本实施例涉及的相关内容与图13中的相关内容相同或相类似,此处不再赘述。参照图18,具体包括:FIG. 13 shows the process of training the motion trajectory obtained in the first cycle. The following describes the process of training the standard path in the second cycle. FIG. 18 is a schematic flowchart of the standard path training provided in this embodiment of the present application. Unless otherwise specified, the relevant content involved in this embodiment is the same or similar to the relevant content in FIG. 13 , and is not repeated here. Repeat. Referring to Figure 18, it specifically includes:
步骤301,云端判断运动轨迹信息6是否为指定类型设备生成的。Step 301, the cloud determines whether the motion track information 6 is generated by a device of a specified type.
步骤302,云端检测是否已存在与运动轨迹6匹配的标准路径。Step 302 , the cloud detects whether there is a standard path matching the motion track 6 .
示例性的,如图19所示,云端提取与运动轨迹6所属区域范围(即园区A)内的标准路径,即标准路径A1。云端将运动轨迹6与标准路径A1进行相似度匹配,确定运动轨迹6与标准路径A1的相似度为0。具体匹配过程可参照步骤202中的相关内容,此处不赘述。Exemplarily, as shown in FIG. 19 , the cloud extracts the standard path within the area to which the motion track 6 belongs (ie, the park A), that is, the standard path A1 . The cloud matches the similarity between the motion track 6 and the standard path A1, and determines that the similarity between the motion track 6 and the standard path A1 is 0. For the specific matching process, reference may be made to the relevant content in step 202, which is not repeated here.
步骤303,云端生成标准路径。Step 303, the cloud generates a standard path.
示例性的,由于云端未检测到与运动轨迹6匹配的标准路径以及其他运动轨迹,则运动轨迹6可作为园区A内的标准路径B1。Exemplarily, since the cloud does not detect a standard path matching the motion trajectory 6 and other motion trajectories, the motion trajectory 6 can be used as the standard path B1 in the park A.
步骤304,云端保存标准路径。Step 304, the cloud saves the standard path.
示例性的,手机1从云端下载标准路径A1、标准路径A2和标准路径A3,具体下载规则可参照上文,此处不赘述。Exemplarily, the mobile phone 1 downloads the standard path A1 , the standard path A2 , and the standard path A3 from the cloud, and the specific download rules can be referred to above, which will not be repeated here.
如图20所示为本申请实施例提供的另一种轨迹纠偏方法的流程示意图,参照图20,具体包括:FIG. 20 is a schematic flowchart of another trajectory deviation correction method provided by an embodiment of the present application. Referring to FIG. 20 , it specifically includes:
步骤401,手机获取一个或多个运动轨迹信息。Step 401, the mobile phone acquires one or more pieces of motion track information.
步骤402,手机基于一个或多个运动轨迹,生成标准路径。Step 402, the mobile phone generates a standard path based on one or more motion trajectories.
和私立下你给的,手机可基于一个或多个运动轨迹进行训练,生成对应的标准路径,标准路径的生成方式可参照步骤203的相关内容,此处不赘述。As given by you, the mobile phone can be trained based on one or more motion trajectories to generate a corresponding standard path. For the generation method of the standard path, please refer to the relevant content of step 203, which will not be repeated here.
步骤403,手机向云端发送标准路径信息。Step 403, the mobile phone sends the standard path information to the cloud.
步骤404,云端基于一个或多个手机发送的标准路径样本进行训练,生成标准路径。Step 404, the cloud performs training based on the standard path samples sent by one or more mobile phones to generate a standard path.
示例性的,一个或多个手机可向云端发送各自生成的一个或多个标准路径,对于云端,各手机发送的标准路径即为标准路径训练样本,云端可基于标准路径训练样本进行训练,生成标准路径,生成标准路径的方式可参照步骤203,此处不赘述。Exemplarily, one or more mobile phones can send one or more standard paths generated by them to the cloud. For the cloud, the standard paths sent by each mobile phone are the standard path training samples, and the cloud can perform training based on the standard path training samples to generate For the standard path, reference may be made to step 203 for the method of generating the standard path, which will not be repeated here.
步骤405,云端保存标准路径信息。Step 405, the cloud saves the standard path information.
下面结合图21所示的本申请实施例提供的轨迹纠偏方法的流程示意图,对轨迹纠偏方式进行详细说明,在本实施例中,用户佩戴智能手表在园区A1内沿逆时针方向跑步,智能手表获取到运动轨迹11,智能手表与手机1进行蓝牙配对和应用配对成功后,智能手表通过蓝牙连接向手机1发送运动轨迹11,运动轨迹11可参照图22所示的场景示意图,参照图21,具体的:The following is a detailed description of the trajectory correction method with reference to the schematic flowchart of the trajectory correction method provided by the embodiment of the present application shown in FIG. 21 . After acquiring the motion track 11, after the smart watch and the mobile phone 1 are successfully paired by Bluetooth and the application, the smart watch sends the motion track 11 to the mobile phone 1 through the Bluetooth connection. specific:
步骤501,手机1判断是否存储有运动轨迹11所属区域范围内的标准路径。In step 501, the mobile phone 1 determines whether a standard path within the area to which the motion track 11 belongs is stored.
示例性的,手机1基于运动轨迹11的各轨迹点的位置,提取运动轨迹11所属区域范围(即园区A)内的标准路径,包括标准路径A1和标准路径A2。Exemplarily, the mobile phone 1 extracts a standard path within the area to which the motion track 11 belongs (ie, the park A), including the standard path A1 and the standard path A2, based on the position of each track point of the motion track 11 .
在一种可能的实现方式中,若手机1判断未存储运动轨迹11所属区域范围内的标准路径,则手机1从云端下载园区A内的标准路径。示例性的,若云端也未存储有园区A内的标准路径,则手机1直接显示运动轨迹11。In a possible implementation manner, if the mobile phone 1 determines that the standard path within the area to which the motion track 11 belongs is not stored, the mobile phone 1 downloads the standard path in the park A from the cloud. Exemplarily, if the cloud does not store the standard path in the park A, the mobile phone 1 directly displays the motion track 11 .
步骤502,手机1判断标准路径A1和标准路径A2是否为最新的标准路径。Step 502, the mobile phone 1 determines whether the standard path A1 and the standard path A2 are the latest standard paths.
示例性的,如上文所述,手机1会周期性地更新保存的标准路径,手机1判断标准路径A1和标准路径A2是否为最近一个周期内更新过的标准路径,一个示例中,若标准路径A1和标准路径A2为最近一个周期内更新过的标准路径,执行步骤503,另一个示例中,若标准路径A1和标准路径A2非最近一个周期内更新过的标准路径,手机1从云端下载园区A内的标准路径。Exemplarily, as described above, the mobile phone 1 will periodically update the saved standard path, and the mobile phone 1 determines whether the standard path A1 and the standard path A2 are the standard paths updated in the latest cycle. A1 and standard route A2 are standard routes updated in the latest cycle, and step 503 is executed. In another example, if standard route A1 and standard route A2 are not the standard routes updated in the latest cycle, mobile phone 1 downloads the park from the cloud Standard path within A.
步骤503,手机1将运动轨迹11与标准路径A1和标准路径A2进行相似度匹配。Step 503, the mobile phone 1 performs similarity matching between the motion track 11 and the standard path A1 and the standard path A2.
示例性的,手机1对运动轨迹11和标准路径A1进行相似度匹配,得到运动轨迹11和标准路径A1之间的相似度大于70%,手机1确定运动轨迹11与标准路径A1相匹配。Exemplarily, the mobile phone 1 performs similarity matching between the motion track 11 and the standard path A1, and obtains that the similarity between the motion track 11 and the standard path A1 is greater than 70%, and the mobile phone 1 determines that the motion track 11 matches the standard path A1.
在一种可能的实现方式中,若标准路径A1和标准路径A2均与运动轨迹11不匹配,则手机1显示运动轨迹11。In a possible implementation manner, if both the standard path A1 and the standard path A2 do not match the motion track 11 , the mobile phone 1 displays the motion track 11 .
步骤504,手机1基于标准路径A1,对运动轨迹11进行纠偏。In step 504, the mobile phone 1 corrects the motion track 11 based on the standard path A1.
示例性的,参照图22,手机可基于标准路径A1,对运动轨迹11进行纠偏,纠偏后的运动轨迹11如图22所示。Exemplarily, referring to FIG. 22 , the mobile phone can rectify the motion track 11 based on the standard path A1 , and the motion track 11 after the rectification is shown in FIG. 22 .
需要说明的是,与图16中的纠偏不同的是,手机1在步骤504的纠偏过程中,仅对运动轨迹11上的轨迹点与标准路径上对应的投影点之间的距离小于或等于50米,且方向夹角小于或等于30°的轨迹点进行纠偏,并且,符合上述条件的轨迹点在纠偏的过程中,采用将运动轨迹11上的轨迹点向对应的投影点纠正75%的方式进行纠偏。举例说明,假设运动轨迹11上的轨迹点与标准路径A1上的投影点之间的距离为10米,则修正后的轨迹点距离投影点的距离为2.5米,方向和速度的修正与位置的修正类似,此处不赘述,其它细节仍可参照图16的相关描述,此处不赘述。It should be noted that, unlike the deviation correction in FIG. 16 , in the deviation correction process of step 504, the mobile phone 1 only checks that the distance between the trajectory point on the motion trajectory 11 and the corresponding projection point on the standard path is less than or equal to 50 The track points whose direction angle is less than or equal to 30° will be corrected, and the track points that meet the above conditions will be corrected by 75% to the corresponding projection points during the correction process. Make corrections. For example, assuming that the distance between the trajectory point on the motion trajectory 11 and the projection point on the standard path A1 is 10 meters, the distance between the corrected trajectory point and the projection point is 2.5 meters, and the correction of the direction and speed is related to the position. The modifications are similar, and will not be repeated here, and other details can still refer to the related description in FIG. 16 , which will not be repeated here.
示例性的,对于不符合上述条件的轨迹点,即轨迹点与投影点之间的距离大于50米和/或方向夹角大于30°,则云端进一步判断轨迹点是否为跳变轨迹点,其中,跳变轨迹点是指轨迹点的位置或方向与前一个轨迹点之间的偏差较大。Exemplarily, for trajectory points that do not meet the above conditions, that is, the distance between the trajectory point and the projection point is greater than 50 meters and/or the included angle of the direction is greater than 30°, the cloud further determines whether the trajectory point is a jump trajectory point, wherein , the jump trajectory point refers to the large deviation between the position or direction of the trajectory point and the previous trajectory point.
一个示例中,若运动轨迹11上不存在跳变轨迹点,即如图23a所示,部分轨迹点虽然与标准路径A1上的投影点之间的距离大于50米,但是,该类轨迹点是缓慢变换的,即,每个轨迹点与前一个轨迹点之间的位置、方向均未发生突然跳变,因此,对于该类轨迹点,手机1不进行纠偏。举例说明,用户在跑步过程中,从某个小路小路绕道,形成运动轨迹11中的突起部分对应的轨迹点,在纠偏过程中,手机1忽略该部分轨迹点,即不对这些轨迹点进行纠偏,仍保留轨迹点,手机显示纠偏后的运动轨迹11如图24所示,需要说明的是,图24中的户外跑步界面可以参照图12,手机检测到用户点击底端的“运动”选项,显示户外跑步界面,参照图24,示例性的,户外跑步界面包括一个或多个控件,例如包括轨迹控件(即“轨迹”选项),用户点击“轨迹”选项后,手机可响应于用户的点击操作,在户外跑步界面上显示纠偏后的运动轨迹,以及其它运动信息,例如公里数、时间(是指手表生成运动轨迹的时间)、运动时间(也可以理解为运动时长)、平均配速、热量等信息。可选地,若手机中存储有该运动轨迹所属区域内的地图(即上文所述的路网数据),手机可对地图与纠偏后的运动轨迹进行相应处理,以在地图上的相应区域内显示纠偏后的运动轨迹。In an example, if there is no jump track point on the motion track 11, that is, as shown in Figure 23a, although the distance between some track points and the projected point on the standard path A1 is greater than 50 meters, such track points are Slowly changing, that is, there is no sudden jump in the position and direction between each track point and the previous track point. Therefore, for this type of track point, the mobile phone 1 does not perform deviation correction. For example, during the running process, the user detours from a certain path to form a trajectory point corresponding to the protruding part in the motion trajectory 11. During the deviation correction process, the mobile phone 1 ignores this part of the trajectory point, that is, the deviation correction is not performed on these trajectory points. The track points are still retained, and the mobile phone displays the motion track 11 after the deviation correction as shown in Figure 24. It should be noted that the outdoor running interface in Figure 24 can refer to Figure 12. The mobile phone detects that the user clicks the "Motion" option at the bottom to display the outdoor The running interface, referring to FIG. 24 , exemplarily, the outdoor running interface includes one or more controls, for example, including a track control (that is, a "track" option). After the user clicks on the "track" option, the mobile phone can respond to the user's click operation, On the outdoor running interface, display the corrected motion trajectory and other sports information, such as kilometers, time (referring to the time when the watch generates the motion trajectory), exercise time (it can also be understood as exercise duration), average pace, heat, etc. information. Optionally, if the map in the area to which the motion track belongs (that is, the road network data described above) is stored in the mobile phone, the mobile phone can perform corresponding processing on the map and the motion track after the deviation correction, so that the corresponding area on the map can be stored in the mobile phone. The motion track after correction is displayed inside.
另一个示例中,若运动轨迹11上存在跳变轨迹点,如图23b所示,则手机1在纠偏过程中,删除该类轨迹点,并将删除轨迹点的前一个轨迹点和后一个轨迹点连接,手机显示的纠偏后的运动轨迹如图25所示。In another example, if there is a jump track point on the motion track 11, as shown in Figure 23b, the mobile phone 1 deletes this type of track point during the deviation correction process, and deletes the previous track point and the next track point of the track point. Click to connect, and the movement track after deviation correction displayed by the mobile phone is shown in Figure 25.
步骤505,手机1显示纠偏后的运动轨迹11。Step 505, the mobile phone 1 displays the motion track 11 after the deviation correction.
上文中的方法实施例中均是基于手机在线场景说明的,手机在线是指手机可从云端获取到标准路径。本申请实施例中的技术方案还可以应用于手机离线场景,即手机无法从云端获取标准路径的场景,如图26所示为手机离线场景下的轨迹纠偏方法流程示意图,参照图26,示例性的,以草原场景为例,用户携带手机在草原上的一个区域内跑步,假设在一个时间段内,用户沿同一个轨迹跑了4圈,对应的运动轨迹分别为运动轨迹12~运动轨迹15。与云端类似,手机可包括存储单元和训练单元,手机可保存运动轨迹12~15,训练单元可从存储单元中提取运动轨迹12~15进行训练,得到标准路径。The above method embodiments are all described based on the mobile phone online scenario, and the mobile phone online means that the mobile phone can obtain the standard path from the cloud. The technical solutions in the embodiments of the present application can also be applied to the offline scenario of the mobile phone, that is, the scenario where the mobile phone cannot obtain the standard path from the cloud, as shown in FIG. Taking the grassland scene as an example, the user runs in an area on the grassland with a mobile phone. Suppose that the user runs 4 laps along the same trajectory in a period of time, and the corresponding motion trajectories are Motion Track 12 to Motion Track 15. . Similar to the cloud, the mobile phone can include a storage unit and a training unit, the mobile phone can save the motion trajectories 12-15, and the training unit can extract the motion trajectories 12-15 from the storage unit for training to obtain a standard path.
示例性的,手机端的训练周期时长可以是一天,即,每隔一天对存储单元获取到的运动轨迹进行训练,或者也可以是响应于用户指令,基于用户指令,执行训练过程。Exemplarily, the duration of the training cycle on the mobile phone terminal may be one day, that is, the motion trajectory obtained by the storage unit is trained every other day, or the training process may be performed in response to user instructions and based on user instructions.
示例性的,手机可基于各轨迹点的置信度,计算每个运动轨迹的置信度,运动轨迹的置信度可以为各轨迹点的置信度之和,其中,置信度越高,则表示该运动轨迹更精准,即越贴近实际轨迹。手机可选择置信度最高的运动轨迹中的任一轨迹作为标准路径。可选地,手机还可以基于与云端相同的训练方式(即步骤203的相关内容)对运动轨迹12~15进行训练,以得到标准路径。Exemplarily, the mobile phone may calculate the confidence level of each motion track based on the confidence level of each track point, and the confidence level of the motion track may be the sum of the confidence levels of each track point. The trajectory is more accurate, that is, the closer it is to the actual trajectory. The mobile phone can select any of the motion trajectories with the highest confidence as the standard path. Optionally, the mobile phone can also train the motion trajectories 12 to 15 based on the same training method as the cloud (ie, the relevant content of step 203 ) to obtain the standard path.
仍参照图17,,训练单元将获取到的标准路径发送至存储单元。Still referring to FIG. 17 , the training unit sends the acquired standard path to the storage unit.
示例性的,用户佩戴智能手表沿上述轨迹跑步,智能手表获取到运动轨迹信息16,包括运动轨迹16上的各轨迹点的位置、方向、速度、置信度和高度。智能手表向手机发送运动轨迹信息16,手机中的匹配单元可基于运动轨迹16获取与其匹配的标准路径,纠偏单元可基于匹配的标准路径对运动轨迹16进行纠偏。需要说明的是,无特殊说明的情况下,离线场景中的手机执行的各步骤与在线场景中云端和手机执行的各步骤类似,此处不赘述。Exemplarily, the user wears the smart watch to run along the above-mentioned track, and the smart watch obtains the motion track information 16 , including the position, direction, speed, confidence and height of each track point on the motion track 16 . The smart watch sends the motion track information 16 to the mobile phone, and the matching unit in the mobile phone can obtain a standard path matching it based on the motion track 16 , and the deviation correction unit can correct the deviation of the motion track 16 based on the matched standard path. It should be noted that, unless otherwise specified, the steps performed by the mobile phone in the offline scenario are similar to the steps performed by the cloud and the mobile phone in the online scenario, and are not repeated here.
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to realize the above-mentioned functions, the electronic device includes corresponding hardware and/or software modules for executing each function. The present application can be implemented in hardware or in the form of a combination of hardware and computer software in conjunction with the algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the electronic device can be divided into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that, the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
示例性的,图27示出了本申请实施例的一种装置200的示意性框图装置200可 包括:处理器201和收发器/收发管脚202,可选地,还包括存储器203。Exemplarily, Fig. 27 shows a schematic block diagram of an apparatus 200 according to an embodiment of the present application. The apparatus 200 may include: a processor 201, a transceiver/transceiver pin 202, and optionally, a memory 203.
装置200的各个组件通过总线204耦合在一起,其中总线204除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都称为总线204。Various components of the device 200 are coupled together through a bus 204, wherein the bus 204 includes a power bus, a control bus and a status signal bus in addition to a data bus. For clarity, however, the various buses are referred to as bus 204 in the figures.
可选地,存储器203可以用于前述方法实施例中的指令。该处理器201可用于执行存储器203中的指令,并控制接收管脚接收信号,以及控制发送管脚发送信号。Optionally, the memory 203 may be used for instructions in the foregoing method embodiments. The processor 201 can be used to execute the instructions in the memory 203, and control the receiving pins to receive signals, and control the sending pins to send signals.
装置200可以是上述方法实施例中的手机、智能手表或云端中的服务器。The apparatus 200 may be a mobile phone, a smart watch, or a server in the cloud in the foregoing method embodiments.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Wherein, all relevant contents of the steps involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here.
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备或网络设备(例如云服务器)上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的轨迹纠偏方法。This embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on an electronic device or a network device (such as a cloud server), the electronic device executes the above-mentioned related method steps to achieve the above-mentioned The track deviation correction method in the embodiment.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的轨迹纠偏方法。This embodiment also provides a computer program product, which when the computer program product runs on the computer, causes the computer to execute the above-mentioned relevant steps, so as to realize the trajectory deviation correction method in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的轨迹纠偏方法。In addition, the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the track deviation correction method in each of the foregoing method embodiments.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference can be made to the corresponding provided above. The beneficial effects in the method will not be repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by different The function module is completed, that is, the internal structure of the device is divided into different function modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
本申请各个实施例的任意内容,以及同一实施例的任意内容,均可以自由组合。对上述内容的任意组合均在本申请的范围之内。Any content of each embodiment of the present application and any content of the same embodiment can be freely combined. Any combination of the above is within the scope of this application.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that make contributions to the prior art, or all or part of the technical solutions, which are stored in a storage medium. , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (20)

  1. 一种轨迹纠偏系统,其特征在于,包括:云服务器、第一电子设备和第二电子设备,所述第一电子设备通过蓝牙连接到所述第二电子设备,所述第一电子设备通过蜂窝网络与所述云服务器进行数据交互;A trajectory correction system, comprising: a cloud server, a first electronic device and a second electronic device, the first electronic device is connected to the second electronic device through Bluetooth, and the first electronic device is connected to the second electronic device through a cellular The network performs data interaction with the cloud server;
    所述第一电子设备,用于:The first electronic device is used for:
    获取第一区域范围内的第一运动轨迹和第二运动轨迹,向所述云服务器发送所述第一运动轨迹和所述第二运动轨迹;acquiring the first motion track and the second motion track within the first area, and sending the first motion track and the second motion track to the cloud server;
    所述云服务器,用于:The cloud server is used for:
    根据接收到的所述第一运动轨迹和所述第二运动轨迹,获取第三运动轨迹;obtaining a third motion trajectory according to the received first motion trajectory and the second motion trajectory;
    所述第一电子设备,用于:The first electronic device is used for:
    从所述云服务器获取所述第三运动轨迹;obtaining the third motion trajectory from the cloud server;
    所述第二电子设备,用于:The second electronic device is used for:
    获取所述第一区域范围内的第四运动轨迹;acquiring a fourth motion trajectory within the range of the first area;
    向所述第一电子设备发送所述第四运动轨迹;sending the fourth motion trajectory to the first electronic device;
    所述第一电子设备,还用于:The first electronic device is also used for:
    响应于接收到的所述第四运动轨迹,基于所述第三运动轨迹,对所述第四运动轨迹进行纠偏,显示纠偏后的第四运动轨迹。In response to the received fourth motion trajectory, the fourth motion trajectory is corrected based on the third motion trajectory, and the corrected fourth motion trajectory is displayed.
  2. 根据权利要求1所述的系统,其特征在于,所述系统还包括第三电子设备,所述第三电子设备通过蜂窝网络与所述云服务器进行数据交互;The system according to claim 1, wherein the system further comprises a third electronic device, and the third electronic device performs data interaction with the cloud server through a cellular network;
    所述第三电子设备,用于:The third electronic device is used for:
    获取所述第一区域范围内的第五运动轨迹;acquiring a fifth motion trajectory within the range of the first area;
    所述云服务器,还用于:The cloud server is also used for:
    接收所述第五运动轨迹;receiving the fifth motion trajectory;
    根据所述第五运动轨迹与所述第三运动轨迹,获取第六运动轨迹;obtaining a sixth motion trajectory according to the fifth motion trajectory and the third motion trajectory;
    所述第一电子设备,还用于:The first electronic device is also used for:
    从所述云服务器获取所述第六运动轨迹;obtaining the sixth motion trajectory from the cloud server;
    所述第二电子设备,用于:The second electronic device is used for:
    获取所述第一区域范围内的第七运动轨迹;acquiring a seventh motion trajectory within the first area;
    向所述第一电子设备发送所述第七运动轨迹;sending the seventh motion trajectory to the first electronic device;
    所述第一电子设备,还用于:The first electronic device is also used for:
    响应于接收到的所述第七运动轨迹,基于所述第六运动轨迹,对所述第七运动轨迹进行纠偏,显示所述纠偏后的第七运动轨迹。In response to the received seventh motion trajectory, the seventh motion trajectory is corrected based on the sixth motion trajectory, and the corrected seventh motion trajectory is displayed.
  3. 根据权利要求1所述的系统,其特征在于,所述系统还包括第三电子设备,所述第三电子设备通过蜂窝网络与所述云服务器进行数据交互;The system according to claim 1, wherein the system further comprises a third electronic device, and the third electronic device performs data interaction with the cloud server through a cellular network;
    所述第三电子设备,用于:The third electronic device is used for:
    获取第二区域范围内的第八运动轨迹和第九运动轨迹,所述第一区域范围与所述第二区域范围不同;acquiring an eighth motion track and a ninth motion track within a second area range, where the first area range is different from the second area range;
    所述云服务器,还用于:The cloud server is also used for:
    接收所述第八运动轨迹和所述第九运动轨迹;receiving the eighth motion trajectory and the ninth motion trajectory;
    根据所述第八运动轨迹和所述第九运动轨迹,获取第十运动轨迹;According to the eighth motion track and the ninth motion track, obtain a tenth motion track;
    所述第一电子设备,还用于:The first electronic device is also used for:
    从所述云服务器获取所述第十运动轨迹;obtaining the tenth motion trajectory from the cloud server;
    所述第一电子设备,还用于:The first electronic device is also used for:
    将所述第四运动轨迹与所述第三运动轨迹和所述第十运动轨迹分别进行相似度匹配,并确定所述第四运动轨迹与所述第三运动轨迹相似度匹配成功;Perform similarity matching between the fourth motion trajectory and the third motion trajectory and the tenth motion trajectory, respectively, and determine that the fourth motion trajectory and the third motion trajectory are successfully matched for similarity;
    基于相似度匹配成功的所述第三运动轨迹,对所述第四运动轨迹进行纠偏,显示纠偏后的第四运动轨迹。Based on the third motion trajectory whose similarity is successfully matched, the fourth motion trajectory is rectified, and the rectified fourth motion trajectory is displayed.
  4. 根据权利要求1所述的系统,其特征在于,所述第一运动轨迹与所述第二运动轨迹的相似度大于或等于相似度阈值。The system according to claim 1, wherein the similarity between the first motion trajectory and the second motion trajectory is greater than or equal to a similarity threshold.
  5. 根据权利要求1所述的系统,其特征在于,所述第一电子设备,用于:The system of claim 1, wherein the first electronic device is configured to:
    接收用户的指令,receive instructions from users,
    响应于所述用户的指令,从所述云服务器获取所述第三运动轨迹。The third motion trajectory is acquired from the cloud server in response to the user's instruction.
  6. 根据权利要求1所述的系统,其特征在于,所述云服务器,用于:The system according to claim 1, wherein the cloud server is used for:
    向所述第一电子设备发送指示信息,用于指示所述第一电子设备可从所述云服务器下载所述第三运动轨迹。Sending indication information to the first electronic device to indicate that the first electronic device can download the third motion trajectory from the cloud server.
  7. 根据权利要求1所述的系统,其特征在于,所述第一电子设备为手机,所述第二电子设备为智能手表。The system according to claim 1, wherein the first electronic device is a mobile phone, and the second electronic device is a smart watch.
  8. 根据权利要求1所述的系统,其特征在于,所述第一电子设备与所述第二电子设备分别安装有运动健康应用。The system according to claim 1, wherein a sports health application is installed on the first electronic device and the second electronic device respectively.
  9. 根据权利要求8所述的系统,其特征在于,所述第一电子设备,用于:The system according to claim 8, wherein the first electronic device is used for:
    在所述运动健康应用的应用界面上显示所述纠偏后的第四运动轨迹。The fourth motion trajectory after the deviation correction is displayed on the application interface of the sports health application.
  10. 根据权利要求1所述的系统,其特征在于,所述第一电子设备与所述第二电子设备具有同一用户账号。The system of claim 1, wherein the first electronic device and the second electronic device have the same user account.
  11. 一种轨迹纠偏方法,其特征在于,应用于通信系统,所述系统包括:云服务器、第一电子设备和第二电子设备,所述第一电子设备通过蓝牙连接到所述第二电子设备, 所述第一电子设备通过蜂窝网络与所述云服务器进行数据交互;所述方法包括:A method for trajectory correction, characterized in that it is applied to a communication system, the system comprising: a cloud server, a first electronic device and a second electronic device, the first electronic device is connected to the second electronic device through Bluetooth, The first electronic device performs data interaction with the cloud server through a cellular network; the method includes:
    所述第一电子设备获取第一区域范围内的第一运动轨迹和第二运动轨迹,向所述云服务器发送所述第一运动轨迹和所述第二运动轨迹;obtaining, by the first electronic device, a first motion track and a second motion track within the first area, and sending the first motion track and the second motion track to the cloud server;
    所述云服务器根据接收到的所述第一运动轨迹和所述第二运动轨迹,获取第三运动轨迹;obtaining, by the cloud server, a third motion trajectory according to the received first motion trajectory and the second motion trajectory;
    所述第一电子设备从所述云服务器获取所述第三运动轨迹;The first electronic device obtains the third motion trajectory from the cloud server;
    所述第二电子设备获取所述第一区域范围内的第四运动轨迹,并向所述第一电子设备发送所述第四运动轨迹;acquiring, by the second electronic device, a fourth motion trajectory within the first area, and sending the fourth motion trajectory to the first electronic device;
    所述第一电子设备响应于接收到的所述第四运动轨迹,基于所述第三运动轨迹,对所述第四运动轨迹进行纠偏,并显示纠偏后的第四运动轨迹。In response to the received fourth motion trajectory, the first electronic device corrects the fourth motion trajectory based on the third motion trajectory, and displays the corrected fourth motion trajectory.
  12. 根据权利要求11所述的方法,其特征在于,所述系统还包括第三电子设备,所述第三电子设备通过蜂窝网络与所述云服务器进行数据交互;所述方法还包括:The method according to claim 11, wherein the system further comprises a third electronic device, and the third electronic device performs data interaction with the cloud server through a cellular network; the method further comprises:
    所述第三电子设备获取所述第一区域范围内的第五运动轨迹;acquiring, by the third electronic device, a fifth motion trajectory within the first area;
    所述云服务器接收所述第五运动轨迹,并根据所述第五运动轨迹与所述第三运动轨迹,获取第六运动轨迹;The cloud server receives the fifth motion trajectory, and obtains a sixth motion trajectory according to the fifth motion trajectory and the third motion trajectory;
    所述第一电子设备从所述云服务器获取所述第六运动轨迹;The first electronic device obtains the sixth motion trajectory from the cloud server;
    所述第二电子设备获取所述第一区域范围内的第七运动轨迹,并向所述第一电子设备发送所述第七运动轨迹;acquiring, by the second electronic device, a seventh motion track within the first area, and sending the seventh motion track to the first electronic device;
    所述第一电子设备响应于接收到的所述第七运动轨迹,基于所述第六运动轨迹,对所述第七运动轨迹进行纠偏,并显示所述纠偏后的第七运动轨迹。The first electronic device corrects the seventh motion trajectory based on the sixth motion trajectory in response to the received seventh motion trajectory, and displays the corrected seventh motion trajectory.
  13. 根据权利要求11所述的方法,其特征在于,所述系统还包括第三电子设备,所述第三电子设备通过蜂窝网络与所述云服务器进行数据交互;所述方法还包括:The method according to claim 11, wherein the system further comprises a third electronic device, and the third electronic device performs data interaction with the cloud server through a cellular network; the method further comprises:
    所述第三电子设备获取第二区域范围内的第八运动轨迹和第九运动轨迹,所述第一区域范围与所述第二区域范围不同;The third electronic device acquires an eighth motion trajectory and a ninth motion trajectory within a second area, where the first area is different from the second area;
    所述云服务器接收所述第八运动轨迹和所述第九运动轨迹,并根据所述第八运动轨迹和所述第九运动轨迹,获取第十运动轨迹;The cloud server receives the eighth motion track and the ninth motion track, and obtains the tenth motion track according to the eighth motion track and the ninth motion track;
    所述第一电子设备从所述云服务器获取所述第十运动轨迹;The first electronic device acquires the tenth motion trajectory from the cloud server;
    所述第一电子设备将所述第四运动轨迹与所述第三运动轨迹和所述第十运动轨迹分别进行相似度匹配,并确定所述第四运动轨迹与所述第三运动轨迹相似度匹配成功;以及,基于相似度匹配成功的所述第三运动轨迹,对所述第四运动轨迹进行纠偏,显示纠偏后的第四运动轨迹。The first electronic device performs similarity matching on the fourth motion trajectory with the third motion trajectory and the tenth motion trajectory respectively, and determines the similarity between the fourth motion trajectory and the third motion trajectory The matching is successful; and, based on the third motion trajectory whose similarity is successfully matched, correct the fourth motion trajectory, and display the corrected fourth motion trajectory.
  14. 根据权利要求11所述的方法,其特征在于,所述第一运动轨迹与所述第二运动轨迹的相似度大于或等于相似度阈值。The method according to claim 11, wherein the similarity between the first motion trajectory and the second motion trajectory is greater than or equal to a similarity threshold.
  15. 根据权利要求11所述的方法,其特征在于,The method of claim 11, wherein:
    所述第一电子设备接收用户的指令,并响应于所述用户的指令,从所述云服务器获取所述第三运动轨迹。The first electronic device receives a user's instruction, and in response to the user's instruction, acquires the third motion trajectory from the cloud server.
  16. 根据权利要求11所述的方法,其特征在于,The method of claim 11, wherein:
    所述云服务器向所述第一电子设备发送指示信息,用于指示所述第一电子设备可从所述云服务器下载所述第三运动轨迹。The cloud server sends indication information to the first electronic device, which is used to instruct the first electronic device to download the third motion trajectory from the cloud server.
  17. 根据权利要求11所述的方法,其特征在于,所述第一电子设备为手机,所述第二电子设备为智能手表。The method according to claim 11, wherein the first electronic device is a mobile phone, and the second electronic device is a smart watch.
  18. 根据权利要求11所述的方法,其特征在于,所述第一电子设备与所述第二电子设备分别安装有运动健康应用。The method according to claim 11, wherein a sports health application is installed on the first electronic device and the second electronic device respectively.
  19. 根据权利要求18所述的方法,其特征在于,The method of claim 18, wherein:
    所述第一电子设备在所述运动健康应用的应用界面上显示所述纠偏后的第四运动轨迹。The first electronic device displays the fourth motion trajectory after deviation correction on the application interface of the sports health application.
  20. 根据权利要求11所述的方法,其特征在于,所述第一电子设备与所述第二电子设备具有同一用户账号。The method of claim 11, wherein the first electronic device and the second electronic device have the same user account.
PCT/CN2021/119278 2020-09-30 2021-09-18 Track correction method and system WO2022068626A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011063430.XA CN114363821B (en) 2020-09-30 2020-09-30 Track deviation correcting method and system
CN202011063430.X 2020-09-30

Publications (1)

Publication Number Publication Date
WO2022068626A1 true WO2022068626A1 (en) 2022-04-07

Family

ID=80949706

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119278 WO2022068626A1 (en) 2020-09-30 2021-09-18 Track correction method and system

Country Status (2)

Country Link
CN (1) CN114363821B (en)
WO (1) WO2022068626A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117419732A (en) * 2023-10-10 2024-01-19 中国船舶集团有限公司第七〇九研究所 Road network-based perception target positioning deviation rectifying method, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707368A (en) * 2023-08-31 2024-03-15 荣耀终端有限公司 Moving track fitting method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118427A (en) * 2011-11-16 2013-05-22 北京百度网讯科技有限公司 Location method and system based on location prefetching
US20130343606A1 (en) * 2012-06-25 2013-12-26 Imimtek, Inc. Systems and methods for tracking human hands by performing parts based template matching using images from multiple viewpoints
CN106123893A (en) * 2016-06-15 2016-11-16 北京奇虎科技有限公司 Space operation orbit generation method, device
CN107728178A (en) * 2017-09-29 2018-02-23 上海斐讯数据通信技术有限公司 A kind of processing method and processing device of movement locus
US20180089804A1 (en) * 2016-09-23 2018-03-29 Purdue Research Foundation Method of processing an image
CN111220169A (en) * 2019-12-24 2020-06-02 深圳猛犸电动科技有限公司 Trajectory deviation rectifying method and device, terminal equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019161517A1 (en) * 2018-02-26 2019-08-29 深圳前海达闼云端智能科技有限公司 Cloud-based trajectory map generation method, apparatus and device, and application
CN110967027B (en) * 2018-09-30 2021-12-03 北京地平线信息技术有限公司 Map correction method and device and electronic equipment
CN111488414B (en) * 2019-01-29 2023-05-12 阿里巴巴集团控股有限公司 Road task matching method, device and equipment
WO2020255296A1 (en) * 2019-06-19 2020-12-24 三菱電機株式会社 Relative position determining device, relative position determining method, and relative position determining program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118427A (en) * 2011-11-16 2013-05-22 北京百度网讯科技有限公司 Location method and system based on location prefetching
US20130343606A1 (en) * 2012-06-25 2013-12-26 Imimtek, Inc. Systems and methods for tracking human hands by performing parts based template matching using images from multiple viewpoints
CN106123893A (en) * 2016-06-15 2016-11-16 北京奇虎科技有限公司 Space operation orbit generation method, device
US20180089804A1 (en) * 2016-09-23 2018-03-29 Purdue Research Foundation Method of processing an image
CN107728178A (en) * 2017-09-29 2018-02-23 上海斐讯数据通信技术有限公司 A kind of processing method and processing device of movement locus
CN111220169A (en) * 2019-12-24 2020-06-02 深圳猛犸电动科技有限公司 Trajectory deviation rectifying method and device, terminal equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117419732A (en) * 2023-10-10 2024-01-19 中国船舶集团有限公司第七〇九研究所 Road network-based perception target positioning deviation rectifying method, equipment and storage medium

Also Published As

Publication number Publication date
CN114363821B (en) 2023-08-08
CN114363821A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
KR102209523B1 (en) Electronic apparatus and positiong method thereof
CN110505572B (en) Indoor positioning method and electronic equipment
WO2022068626A1 (en) Track correction method and system
CN113329379B (en) Communication method, device and system based on NFC
US10321274B2 (en) Apparatus and method for determining location of electronic device
KR20180005471A (en) Method and apparatus for communicating using multi frequency bands
KR20160046340A (en) Operation Method of communication channel and Electronic device supporting the same
KR20160049759A (en) Method for scanning neighboring devices and electronic apparatus thereof
KR20180098077A (en) Electronic device and method for determining a sutable location of access point device thereof
US20170041856A1 (en) Electronic device and method for providing service in the electronic device
EP3065006B1 (en) Electronic device with wearable part and operation method thereof
CN111132101B (en) Positioning interaction method and device
WO2021244458A1 (en) Network search method and related apparatus
CN114301899B (en) Data transmission method, system, electronic device and storage medium
CN116156417A (en) Equipment positioning method and related equipment thereof
US11716129B2 (en) Method and device for providing differentiated service for each region on basis of beam book information
WO2022068887A1 (en) Method for displaying motion track, and electronic device
US20230379408A1 (en) Positioning Method and Electronic Device
US11171701B2 (en) Electronic device for controlling communications and method for operating same
WO2022228059A1 (en) Positioning method and apparatus
US10057877B2 (en) Location estimation method and electronic device for performing the same
KR101901329B1 (en) Communication system
CN116347550B (en) Network switching method and electronic equipment
CN117128985B (en) Point cloud map updating method and equipment
KR102559665B1 (en) Operating method of game service using mapping

Legal Events

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

Ref document number: 21874287

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21874287

Country of ref document: EP

Kind code of ref document: A1