WO2022222743A1 - 一种数据处理方法、***及装置 - Google Patents
一种数据处理方法、***及装置 Download PDFInfo
- Publication number
- WO2022222743A1 WO2022222743A1 PCT/CN2022/085064 CN2022085064W WO2022222743A1 WO 2022222743 A1 WO2022222743 A1 WO 2022222743A1 CN 2022085064 W CN2022085064 W CN 2022085064W WO 2022222743 A1 WO2022222743 A1 WO 2022222743A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- geographic location
- terminal device
- data
- target
- user
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 56
- 230000033001 locomotion Effects 0.000 claims abstract description 327
- 238000005070 sampling Methods 0.000 claims abstract description 84
- 238000000034 method Methods 0.000 claims abstract description 61
- 238000012545 processing Methods 0.000 claims description 56
- 238000005265 energy consumption Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 15
- 238000006073 displacement reaction Methods 0.000 claims description 11
- 238000004458 analytical method Methods 0.000 claims description 8
- 230000009194 climbing Effects 0.000 claims description 7
- 230000001351 cycling effect Effects 0.000 claims description 6
- 238000007405 data analysis Methods 0.000 claims description 3
- 238000013461 design Methods 0.000 description 32
- 238000010586 diagram Methods 0.000 description 24
- 230000006870 function Effects 0.000 description 21
- 238000004891 communication Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 14
- 238000007726 management method Methods 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 238000013475 authorization Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000000717 retained effect Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000037081 physical activity Effects 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 235000019577 caloric intake Nutrition 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 101100264195 Caenorhabditis elegans app-1 gene Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000586 desensitisation Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/26—Visual data mining; Browsing structured data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
Definitions
- the present application relates to the field of data processing, and in particular, to a data processing method, system and device.
- the positioning function of the terminal equipment is widely used in daily life.
- a terminal device is used to record the geographic location of the exercise process, thereby obtaining the user's movement trajectory, and calculating the user's speed, cadence and other information during the exercise process.
- the terminal device can record the movement track of the child, thereby helping the guardian to check the child's dynamics.
- a terminal device is preconfigured with some sports applications before leaving the factory. After the user opens the permissions, the terminal device or the terminal device collects and records the user's sports data through these sports applications.
- the motion data of the user may include information such as time and geographic location. After collecting the motion data, the motion application may also display the user's movement trajectory on the display screen of the terminal device after calculating the acquired motion data.
- the terminal device or an application client installed on the terminal device collects the user's exercise data
- other terminal devices or other application clients want to obtain the user's exercise data
- the motion data collected by the application client since the exercise data includes the user's real geographic location, directly sharing the user's exercise data may easily leak user privacy and cause security risks.
- the present application provides a data processing method, system and device for improving the security of sports data sharing.
- an embodiment of the present application provides a data processing method.
- the method includes:
- the initial motion data of the user includes at least one first geographic location, any one first geographic location is the geographic location where the target terminal device is located at a sampling moment, and the at least one first geographic location is used for forming a first motion track; sending target data, the target data includes at least one second geographic location, the at least one second geographic location is generated according to the at least one first geographic location, the at least one first geographic location There is a one-to-one correspondence between the geographic location and the at least one second geographic location, the at least one second geographic location is used to form a second movement track, and the first movement track and the second movement track are the same or approximately the same The trajectory of the shape.
- At least one first geographic location representing the real geographic location of the user can be converted into at least one second geographic location, and the at least one second geographic location can constitute a second movement track, the second movement track and the first movement track It is a motion trajectory with the same or approximately the same shape, so that the real geographic location of the user is removed from the motion data, but the relative positional relationship of at least one first geographic location is retained, which ensures data sharing without affecting data integrity. safety.
- the at least one second geographic location is obtained by converting the at least one first geographic location based on the same transformation rule.
- At least one first geographic location is converted based on the same transformation rule to obtain at least one second geographic location, thereby ensuring that the at least one second geographic location obtained by transformation can represent the relative positional relationship of at least one first geographic location, Further, the accuracy of the at least one second geographic location is guaranteed.
- the at least one second geographic location is generated according to the at least one first geographic location and a reference geographic location, and any second geographic location is used to indicate the first geographic location corresponding to the second geographic location.
- At least one first geographic location is converted into a relative geographic location relative to the reference geographic location, and then at least one second geographic location is obtained. Since each second geographic location corresponds to a first geographic location, the realization of While removing the real geographic location information of the first geographic location, the relative position relationship of at least one first geographic location is retained.
- each of the at least one first geographic location includes at least one of longitude, latitude, and altitude.
- At least one first geographic location can use at least one of longitude, latitude, and altitude to represent the user's real geographic location, and the data processing method provided in this embodiment of the present application is applicable to any of the above first geographic location representation methods.
- the first motion trajectory and the second motion trajectory are motion trajectories having the same or approximately the same shape and satisfying a scaling relationship.
- the first motion trajectory and the second motion trajectory can have the same or approximately the same shape, and the first motion trajectory and the second motion trajectory can satisfy the scaling relationship, that is, the display effect of the second motion trajectory can be the first A reduced or enlarged movement trajectory of the movement trajectory, thereby ensuring that the second movement trajectory formed by at least one second geographic location obtained after the data processing method in the embodiment of the present application can still represent the user's movement trajectory.
- the initial exercise data further includes at least one item of time information, speed information, energy consumption information and personalized suggestion information; wherein the time information is used to indicate the at least one first At least one sampling moment corresponding to the geographic location and/or the motion duration of the user; the speed information is used to indicate the average speed of the user during exercise and/or the motion speed at the at least one sampling moment; the The energy consumption information is used to indicate the energy consumed by the user during exercise; the personalized suggestion information is used to indicate the exercise analysis result of the user.
- the target data further includes at least one of time information, speed information, energy consumption information and personalized suggestion information;
- the time information is used to indicate at least one sampling moment corresponding to the at least one first geographic location and/or the exercise duration of the user;
- the speed information is used to indicate the average speed of the user during exercise and/or the movement speed at the at least one sampling moment;
- the energy consumption information is used to indicate the energy consumed by the user during the movement;
- the personalized suggestion information is used to indicate the movement analysis result of the user .
- the initial exercise data or target data may also include at least one of time information, speed information, energy consumption information, and personalized suggestion information to enrich the content of exercise data sharing.
- the at least one first geographic location is obtained by collecting the geographic location of the target terminal device at at least one sampling moment when the user moves the target terminal device.
- the at least one first geographic location included in the initial motion data can be obtained by sampling the geographic location of the target terminal device when the user sends displacement with the target terminal device, so that the geographic location of the target terminal device can be used to represent the user In the geographic location during the displacement process, at least one first geographic location of the user is recorded.
- the displacement that occurs when the user carries the target terminal device includes displacement that occurs when the user carries the target terminal device for running, walking, cycling, mountain climbing, or driving.
- At least one first geographic location of the user can be recorded.
- the method further includes:
- the reference geographic location is determined according to the following methods: determining a central geographic location in the at least one first geographic location, and using the central geographic location as the reference geographic location; or selecting from the at least one first geographic location Referring to the first geographic location corresponding to the sampling moment, and using the selected first geographic location as the reference geographic location; or determining a marked geographic location in a geographic area corresponding to the at least one first geographic location, and using the determined marked geographic location location as the reference geographic location.
- the embodiments of the present application provide various methods for determining the reference geographic location, such as using the central geographic location in at least one first geographic location as the reference geographic location, or using the first geographic location corresponding to the reference sampling time as the reference geographic location location, or use the marked geographic location as the reference geographic location, and then the reference geographic location can be flexibly selected during implementation.
- the method further includes:
- the at least one second geographic location is generated according to the following manner: calculating a distance between each of the at least one first geographic location and the reference geographic location; The distance between each first geographic location and the reference geographic location and a setting parameter determine a second geographic location corresponding to each first geographic location; wherein the setting parameter is used to The distance between each of the first geographic locations and the reference geographic location is scaled.
- each of the at least one first geographic location and the reference geographic location is calculated, and each of the first geographic locations and the reference geographic location is calculated according to the set parameter and the distance between each first geographic location and the reference geographic location.
- the second geographic location corresponding to the first geographic location ensures that the at least one second geographic location obtained by conversion can accurately represent the relative positional relationship of the at least one first geographic location.
- the target data includes the speed information
- the method further includes:
- the speed of the target terminal device can be calculated according to at least one first geographic location and the sampling time of each first geographic location, and the speed of the target terminal device can be converted into a speed grade, and the speed grade of the target terminal device can be used as
- the speed information included in the target data further enriches the content of the target data.
- the data processing method is applied to a terminal device or a server.
- the data processing method provided by the present application can be executed by a terminal device or a server, which is not limited.
- the device for executing the data processing method can be flexibly adjusted according to different usage scenarios, so as to improve the data processing provided by the embodiments of the present application. Method flexibility.
- the method before the acquiring the initial motion data of the user, the method further includes:
- a data request message from another terminal device is received, where the data request message is used to request to acquire the target data; or it is detected that the initial motion data is newly added in the set storage space.
- the data processing method provided by the embodiment of the present application can be executed after receiving a data request message from another terminal device, or after detecting that the initial motion data is newly added in the set storage space, so that the present application can implement the method.
- the data processing method provided in the example can process the initial motion data when other terminal devices request to obtain the initial motion data; or actively process the initial motion data when new initial motion data is detected.
- the manner of triggering the start of the data processing method provided by the embodiments of the present application may be flexibly set based on the foregoing manner during implementation.
- an embodiment of the present application provides a data processing system, where the data processing system includes a sending end and a receiving end;
- the sending end is used to obtain the initial motion data of the user, the initial motion data includes at least one first geographic location, and any first geographic location is the geographic location where the target terminal device is located at a sampling moment, and the at least one first geographic location is the geographic location where the target terminal device is located at a sampling moment.
- a first geographic location is used to form a first motion track; target data is sent, the target data includes at least one second geographic location, and the at least one second geographic location is generated according to the at least one first geographic location , the at least one first geographic location and the at least one second geographic location have a one-to-one correspondence, the at least one second geographic location is used to form a second motion track, and the first motion track and the second motion track
- the trajectories are of the same or approximately the same shape
- the receiving end is configured to receive the target data; generate the second motion trajectory according to the target data, and/or perform data analysis processing on the target data.
- each of the at least one first geographic location includes at least one of longitude, latitude, and altitude.
- the first motion trajectory and the second motion trajectory are motion trajectories having the same or approximately the same shape and satisfying a scaling relationship.
- the sending end and the receiving end are the same terminal device; or the sending end and the receiving end are different terminal devices; or the sending end and the receiving end are different server.
- an embodiment of the present application provides a data processing apparatus, including a unit for performing each step in any of the foregoing aspects.
- an embodiment of the present application provides a data processing apparatus, including a processor and a memory, where computer program instructions are stored in the memory, and when the data processing apparatus runs, the processor executes the method provided in any of the above aspects .
- the embodiments of the present application further provide a computer program, which, when the computer program runs on a computer, causes the computer to execute the method provided in any of the foregoing aspects.
- embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer is made to perform any of the above aspects provided method.
- an embodiment of the present application further provides a chip, where the chip is configured to read a computer program stored in a memory and execute the method provided in any of the foregoing aspects.
- an embodiment of the present application further provides a chip system, where the chip system includes a processor for supporting a computer device to implement the method provided in any one of the foregoing aspects.
- the chip system further includes a memory for storing necessary programs and data of the computer device.
- the chip system can be composed of chips, and can also include chips and other discrete devices.
- FIG. 1 is a schematic diagram of a user's motion track display page
- FIG. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
- FIG. 3 is a block diagram of a software structure of a terminal device provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of an application scenario to which the first data processing method provided by the embodiment of the present application is applicable;
- FIG. 5 is a schematic diagram of an application scenario to which the second data processing method provided by the embodiment of the present application is applicable;
- FIG. 6 is a flowchart of a data processing method provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of a first geographic location according to an embodiment of the present application.
- FIG. 8 is a schematic diagram of a second motion trajectory according to an embodiment of the present application.
- FIG. 9 is a schematic diagram of another second motion trajectory according to an embodiment of the present application.
- FIG. 10 is a flowchart of a data processing method provided by an embodiment of the present application.
- FIG. 11 is a flowchart of an example of a data processing method provided by an embodiment of the application.
- FIG. 12 is a schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
- FIG. 13 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
- Geographical location which is used to indicate the location of the object, and the geographic location can include absolute geographic location and relative geographic location.
- Absolute geographic location is the position obtained by taking the whole earth as the reference system and the latitude and longitude as the measurement standard. Every place on the earth has its own unique latitude and longitude, therefore, the geographic location can be represented by latitude and longitude coordinates.
- geographic location can also include altitude.
- the latitude and longitude coordinates and altitude can be positioned through global positioning system (GPS) signals, global navigation satellite system (GLONASS) signals, Beidou navigation satellite system (BDS) signals, etc.
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- Relative geographic location is the representation of the location of an object by its distance from a reference geographic location.
- the first geographic location may be an absolute geographic location
- the second geographic location may be a relative geographic location
- the client device refers to the terminal device that interacts with the server to provide local services for the user.
- the client device can provide users with local services such as communication services and entertainment services.
- Motion data refers to data such as geographic location, speed information, time information and other data collected by the terminal device during the user's movement when the user moves with the terminal device.
- the motion data may be the data collected by the terminal equipment when the user is running, walking, etc.
- the motion data may also be the data collected by the terminal equipment when the guardians such as children or the elderly carry the terminal equipment and move.
- terminal equipment With the popularization of terminal equipment, the positioning function of terminal equipment has been widely used in daily life. For example, when a user is exercising, a terminal equipment is used to record the geographic location of the exercise process, and then the user's movement trajectory is obtained, and the user's movement process is calculated. speed, cadence, etc. For another example, the terminal device can record the movement track of the child, thereby helping the guardian to check the child's dynamics.
- a terminal device is preconfigured with some sports applications before leaving the factory. After the user opens the permissions, the terminal device or the terminal device collects and records the user's sports data through these sports applications.
- the user's exercise data may include start time, end time, total duration, pace information, cadence information, geographic location, and the like.
- the motion application in the terminal device can obtain the user's motion trajectory after calculating the acquired motion data, and then display the motion trajectory on the display screen of the terminal device.
- FIG. 1 is a schematic diagram of a user's motion trajectory display page.
- a sports application in a terminal device can calculate the user's motion trajectory according to the user's motion data, and display the user's motion trajectory on the display interface of the application.
- the sports application in the terminal device can also calculate the user's movement speed according to the user's movement data and mark it on the display page.
- the user clicks on a line segment between any two positions the user can view the user's speed, cadence, energy consumption and other information when acting on the route corresponding to the line segment.
- a current data processing method to prevent leakage of the user's geographic location is: before the terminal device shares the exercise data, remove the geographic location in the exercise data, and only share the exercise duration, energy consumption, Speed information, etc.
- this data processing method will result in the loss of some content in the motion data.
- other devices or application clients After obtaining the motion data shared by the terminal device, other devices or application clients cannot display the user's movement trajectory according to the acquired motion data, which affects the display effect.
- the embodiments of the present application provide a data processing method, so as to improve the security of sports data sharing.
- the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices (for example, watches, bracelets, helmets, headphones, etc.), in-vehicle devices, augmented reality (AR)/virtual reality ( virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart home devices (eg, smart TVs, smart speakers, smart camera, etc.) and other terminal equipment.
- the embodiments of the present application do not limit any specific types of terminal devices.
- the terminal device has a positioning function.
- at least one first geographic location may be a geographic location collected by the terminal device.
- the terminal device when the terminal device is a mobile phone or a wearable device, the mobile phone or wearable The device may collect at least one first geographic location at at least one sampling instant.
- the at least one first geographic location may also be a geographic location received by the terminal device and collected by other devices bound to the terminal device.
- the terminal device is a mobile phone
- the at least one first geographic location may be The geographic location collected by the wearable device bound to the mobile phone is received for the mobile phone.
- FIG. 2 is a schematic structural diagram of a terminal device 100 according to an embodiment of the present application.
- the terminal device 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charging management module 140 , a power management module 141 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
- SIM subscriber identification module
- 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, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- the controller may be the nerve center and command center of the terminal device 100 . 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, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices.
- 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 power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the wireless communication function of the terminal device 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 terminal device 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 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal device 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 terminal device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared technology
- 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 .
- the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 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 terminal device 100 may also use wireless fidelity (WiFi) positioning or radio frequency identification (Radio Frequency Identification, RFID) positioning to determine the position of the terminal device.
- WiFi wireless fidelity
- RFID Radio Frequency Identification
- the terminal device 100 may collect the user's geographic location at multiple sampling times based on the above positioning method during the user's movement, so as to obtain the movement data of the user's entire movement process.
- the display screen 194 is used to display the display interface of the application, for example, a display page of the action track determined according to the user's movement data collected by the terminal device 100 , and the like.
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- the terminal device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
- the camera 193 is used to capture still images or video.
- the object is projected through the lens to generate an optical image onto the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- the terminal device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the processor 110 executes various functional applications and data processing of the terminal device 100 by executing the instructions stored in the internal memory 121 .
- the internal memory 121 may include a storage program area and a storage data area.
- the program storage area may store the operating system, the software code of at least one application program, and the like.
- the storage data area may store data (eg, captured images, recorded videos, etc.) generated during the use of the terminal device 100, and the like.
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- 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 terminal device.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. Such as saving pictures, videos and other files in an external memory card.
- the terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
- the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, a height sensor 180D, and the like.
- the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194 .
- the touch sensor 180C is also called “touch panel”.
- the touch sensor 180C may be disposed on the display screen 194 , and the touch sensor 180C and the display screen 194 form a touch screen, also referred to as a "touch screen”.
- the touch sensor 180C is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations may be provided through display screen 194 .
- the touch sensor 180C may also be disposed on the surface of the terminal device 100 , which is different from the position where the display screen 194 is located.
- the altitude sensor 180D is used to collect altitude air pressure data, and send the collected altitude pressure data to the processor 110 , so that the processor 110 calculates the altitude pressure data to obtain altitude information of the terminal device 100 .
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the terminal device 100 by being inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 .
- the components shown in FIG. 2 do not constitute a specific limitation on the terminal device 100, and the terminal device may also include more or less components than those shown in the figure, or combine some components, or split some components , or a different component arrangement.
- the combination/connection relationship between the components in FIG. 2 can also be adjusted and modified.
- FIG. 3 is a software structural block diagram of a terminal device according to an embodiment of the present application.
- the software structure of the terminal device may be a layered architecture, for example, the software may be divided 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 four layers, which are, from top to bottom, an application layer, an application framework layer (framework, FWK), an Android runtime (Android runtime) and system libraries, and a kernel layer.
- the application layer can include a series of application packages (Android application package, APK). As shown in FIG. 3, the application layer may include cameras, settings, skin modules, user interface (UI), third-party applications, and the like. Among them, the three-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS and so on.
- APK application package
- the three-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS and so on.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer can include some predefined functions. As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
- 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.
- Content providers are used to store and retrieve data and make these data accessible to applications.
- the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
- 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.
- the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
- the telephony manager is used to provide the communication function of the terminal device. For example, the management of call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
- the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the terminal device vibrates, and the indicator light flashes.
- the Android runtime includes core libraries and a virtual machine. Android runtime is responsible for 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.
- a system library can include multiple functional modules. For example: surface manager (surface manager), media library (media library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- surface manager surface manager
- media library media library
- 3D graphics processing library eg: OpenGL ES
- 2D graphics engine eg: SGL
- the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
- 2D graphics engine is a drawing engine for 2D drawing.
- the 3D graphics processing library can be used to draw three-dimensional motion trajectory images.
- the 3D graphics processing library can draw motion trajectory images containing three-dimensional information of longitude, latitude, and height; 2D graphics engine can be used to draw two-dimensional motion trajectory images.
- Motion track images such as a 2D graphics engine, can draw motion track images containing two-dimensional information of longitude and latitude.
- 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.
- the hardware layer may include various types of sensors, such as acceleration sensors, gyroscope sensors, touch sensors, and so on.
- the data processing method provided by the embodiment of the present application can be applied to a terminal device or a server.
- the terminal device may have the hardware structure shown in FIG. 2 and the software structure shown in FIG. 3 .
- the terminal device may be, for example, a mobile phone, a tablet computer, a wearable device (for example, a watch, a wristband, a helmet, a headset, etc.), a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) Devices, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart home devices (eg, smart TVs, smart speakers, smart cameras, etc.), etc.
- AR augmented reality
- VR virtual reality
- the server may be a server corresponding to the terminal device, and the terminal device may also be referred to as a client device corresponding to the server.
- the server corresponding to the terminal device may be the server of the developer of the terminal device, and the terminal device may The collected data is sent to the server for data maintenance.
- an application may be installed on the terminal device, and the application installed on the terminal device may be an application or a preset function of the operating system of the terminal device, or may be an embedded application developed by a third-party manufacturer.
- An application installed on a terminal device can interact with a server corresponding to the application, thereby providing local services to users.
- the data processing method provided in the embodiment of the present application may also be applied to a server corresponding to an application installed on a terminal device.
- FIG. 4 is a scenario to which the first data processing method provided by this embodiment of the application is applicable.
- the scenario includes a terminal device 1, a terminal device 2, and a server 1, and the terminal device 1 may have the hardware structure shown in FIG. 2 .
- the terminal device 1 is shown as an example of a wearable device, the terminal device 2 is installed with an application 1 , and the server 1 is a server corresponding to the application 1 .
- the initial motion data of the user is stored in the terminal device 1 , and the initial motion data may be motion data obtained by the terminal device 1 by collecting the geographic location of the terminal device 1 when the user moves with the terminal device 1 .
- the application 1 can send a data request message to the terminal device 1 through the terminal device 2, and the terminal device 1 obtains the initial motion data of the user, and the initial motion data includes at least one first geographic location, and the at least one first geographic location can constitute the first geographic location of the user. a trajectory of motion.
- the terminal device 1 converts at least one geographic location into at least one second geographic location, and the at least one second geographic location may constitute a second motion trajectory.
- the terminal device 1 sends the target data including at least one second geographic location to the terminal device 2, and the terminal device 2 uploads the target data to the application 1; or the terminal device 1 can send the target data to the server 1, and the server 1 uploads the target data Sent to app 1.
- application 1 After application 1 receives the target data, it can analyze the user's movement situation according to the target data. For example, application 1 can draw a second movement trajectory according to at least one second geographic location included in the target data, and display it on the display interface of application 1. displayed to the user.
- FIG. 5 is a scene to which the second data processing method provided by this embodiment of the present application is applicable.
- the scene includes a terminal device 1 , a server 1 , and a server 2 .
- the terminal device 1 may have the hardware structure shown in FIG. 2 and the software structure shown in FIG. 3 , an application 1 and an application 2 are installed on the terminal device 1 , and the server 1 is a server corresponding to the application 1 .
- Server 1 is the server corresponding to application 2.
- the application 1 can obtain the user's motion data by collecting the geographic location of the terminal device 1 through the positioning function of the terminal device 1 when the user moves with the terminal device 1; 1) and move, other terminal devices can send the collected motion data to application 1.
- the application 1 is an application or function preset by the manufacturer of the terminal device 1
- the application 2 is a third-party application downloaded and installed by the user.
- application 2 may send a data request message to application 1, and after application 1 receives the data request message sent by application 2, it obtains the initial motion data of the user saved by terminal device 1, and the initial motion data includes at least one first geographic location, and the at least one first geographic location may constitute a first movement track of the user.
- the application 1 converts at least one geographic location into at least one second geographic location, and the at least one second geographic location may constitute a second motion track.
- the application 1 may send the target data including at least one second geographic location to the application 2 through the data transmission interface of the terminal device 1 .
- the application 1 after the application 1 obtains the user's initial motion data, it can report the user's initial motion data to the server 1 corresponding to the application 1, and the server 1 maintains the motion data.
- Application 2 can send a data request message to application 1.
- application 1 After receiving the data request message sent by application 2, application 1 sends a data processing request message to server 1, and server 1 obtains the saved initial motion data of the user.
- At least one first geographic location is included, and the at least one first geographic location may constitute a first movement track of the user.
- the server 1 converts at least one geographic location into at least one second geographic location, and the at least one second geographic location may constitute a second motion trajectory.
- Server 1 can send target data including at least one second geographic location to application 1, and application 1 sends the target data to application 2; or, server 1 sends the target data to server 2 corresponding to application 2, and server 2 sends the target data to application 2.
- the target data is sent to the application 2; or, when the application 1 can establish a data interaction protocol with the application 2, the server 1 can directly send the target data to the application 2.
- the application 2 After the application 2 receives the target data, it can analyze the user's movement situation according to the target data. For example, the application 2 can calculate the user's second movement trajectory according to at least one second geographic location included in the target data, and calculate the calculated first movement trajectory. The second motion trajectory is displayed on the display interface of application 2.
- application 1 and application 2 may also be installed on different terminal devices, for example, application 1 is installed on terminal device 1 and application 2 is installed on terminal device 2 .
- the server 1 may also be a server corresponding to the terminal device 1
- the server 2 may also be a server corresponding to the terminal device 2 .
- this embodiment of the present application does not limit the device that executes the data processing method.
- the data processing method provided by the embodiment of the present application may be executed by a terminal device.
- the data processing method may be executed by a terminal device processor, or After the application is installed on the terminal device, the data processing method is executed by the application layer of the terminal device.
- the data processing method provided by the embodiment of the present application may be executed by a server, and the server may be a server corresponding to a terminal device or a server corresponding to an application installed on the terminal device.
- the server may be a server corresponding to a terminal device or a server corresponding to an application installed on the terminal device.
- the terminal device is a mobile phone or a wearable device as an example, but the terminal device in this embodiment of the present application is not limited thereto.
- FIG. 6 is a flowchart of the method.
- the first terminal device may be the terminal device 1 in the scenario shown in FIG. 4 or FIG. 5 .
- the data processing method provided by the embodiment of the present application includes the following steps:
- S601 The first terminal device acquires initial motion data of the user.
- the initial motion data may include at least one geographic location, any first geographic location may be the geographic location of the target terminal device at a sampling moment, and each first geographic location may include the target terminal device at a sampling moment.
- At least one first geographic location can be used to form a first motion trajectory, and the first motion trajectory is the real trajectory of the user during the displacement process.
- the first motion trajectory can be the user's running, walking, cycling, mountain climbing, or driving, etc.
- the movement trajectory in the scene, or the first movement trajectory may also be the movement trajectory of a warded person such as a child or an elderly person.
- the target terminal device may be the first terminal device that executes the data processing method.
- the target terminal device may be the terminal device 1 in the scenario shown in FIG. 4 or FIG. 5 .
- the initial motion data obtained by the terminal device 1 includes:
- the at least one first geographic location may be at least one geographic location of the terminal device collected by the terminal device 1 at at least one sampling moment when the user carries the terminal device 1 and moves.
- the target terminal device may also be a terminal device different from the first terminal device that executes the data processing method.
- the first terminal device that executes the data processing method may be the terminal device 1 in the scenario shown in FIG.
- the target terminal device of the geographic location may be a terminal device bound to application 1.
- the target terminal device collects at least one first geographic location of the target terminal device at at least one sampling time, and Send the collected at least one first geographic location to the terminal device 1 .
- the initial motion data may also include motion parameter information, such as time information, speed information, energy consumption information and other information.
- the time information may include information such as the start time, end time of the user's movement, the total duration of the movement, the sampling time corresponding to each first geographic location during the movement, and the time information may be collected by the target terminal device.
- the speed information is used to indicate the average speed of the user during the movement and/or the movement speed at at least one sampling moment.
- the speed information may include information such as the user's pace, cadence, etc. during the movement.
- the information and the at least one first geographic location are used to calculate the pace and cadence during the user's movement.
- the energy consumption information may be the calorie consumption information of the user during the movement, and the first terminal device may also calculate the calorie consumption information of the user during the movement according to the time information and at least one first geographic location.
- the initial exercise data may also include personalized suggestion information such as user training effect, suggested next exercise recovery time, exercise improvement suggestion, etc.
- personalized suggestion information such as user training effect, suggested next exercise recovery time, exercise improvement suggestion, etc.
- the above information may be provided by the first terminal device according to the time information, at least one first geographic location, and energy consumption and other information are calculated and generated.
- the first terminal device may trigger the first terminal device to start and execute the data processing method provided by the embodiment of the present application to acquire the initial motion data of the user.
- the data request message may be sent by the second terminal device, for example, the second terminal device may be the terminal device 2 in the scenario shown in FIG. 4; or the data request message may also be triggered by an application on the first terminal device, for example , in the scenario shown in FIG. 5 , application 2 can send a data request message to application 1 .
- the first terminal device may display a page for obtaining user authorization on the display interface, and after the user clicks to agree to the authorization, the first terminal device may obtain the user's initial motion data.
- the first terminal device may trigger the first terminal device to start and execute the data processing method provided by the embodiment of the present application when detecting that the new motion data is added in the set storage space, and obtain the newly added motion data.
- the exercise data is used as the user's initial exercise data.
- the terminal device 2 may register with the terminal device 1, and when applying for new exercise data acquired by the terminal device 1, the terminal device 1 sends the modified exercise data to the terminal device 2.
- the terminal device 1 acquires the initial movement data as the user's initial movement data when detecting the change of the user's movement data, and executes the data processing provided by the embodiments of this application. method.
- S602 The first terminal device determines target data according to the acquired initial motion data.
- the first terminal device in order to prevent the user's privacy from being leaked by directly sharing the motion data containing the geographic location, after acquiring the user's initial motion data, the first terminal device needs to The geographic location is desensitized, and at least one first geographic location is converted into at least one second geographic location, and any second geographic location can represent the relative relationship between the first geographic location corresponding to the second geographic location and the reference geographic location. location relationship, so that the real location information in the geographic location is removed without destroying the relative location relationship of the multiple first geographic locations.
- a second geographic location corresponding to the first geographic location can be calculated and determined by referring to the geographic location.
- the reference geographic location needs to be determined.
- the first geographic location may include longitude, latitude, and altitude, and the reference geographic location may be determined in the following manner:
- Manner 1 Determine a central geographic location in at least one first geographic location, and use the central geographic location as a reference geographic location.
- the average longitude, average latitude, and average height of all the first geographic locations are calculated, and the calculated average average longitude, average latitude, and average height are used as a reference geographic location.
- the i-th first geographic location is represented by ( xi , yi , z i ), where 1 ⁇ i ⁇ N, and N is a positive integer.
- xi is the longitude of the ith first geographic location
- yi is the latitude of the ith first geographic location
- zi is the height of the ith first geographic location.
- FIG. 7 is a schematic diagram of a first geographic location according to an embodiment of the present application, (x 1 , y 1 , z 1 ) is the first first geographic location, and (x N , y N , z N ) is the Nth The first geographic location, and the Nth first geographic location is the last first geographic location.
- the first terminal device may calculate the reference geographic location (x c , y c , z c ) according to the following formula:
- Manner 2 Select a first geographic location corresponding to the reference sampling time from at least one first geographic location, and use the selected first geographic location as the reference geographic location.
- the reference sampling time may be the earliest sampling time, the latest sampling time, the middle sampling time, or a randomly selected sampling time among the sampling time of at least one first geographic location, which is not limited in this embodiment of the present application.
- Manner 3 Determine a marked geographic location in a geographic area corresponding to at least one first geographic location, and use the determined marked geographic location as a reference geographic location.
- the first terminal device may use the location corresponding to the landmark building in the geographic area corresponding to the at least one first geographic location as the marked geographic location, or the first geographic location closest to the landmark building as the marked geographic location, The determined geographic location of the sign is taken as the reference geographic location.
- the first terminal device may generate at least one second geographic location according to the at least one first geographic location and the reference geographic location.
- any second geographic location is used to indicate the relative positional relationship between the first geographic location corresponding to the second geographic location and the reference geographic location
- at least A second geographic location is used to form the second motion trajectory.
- the first motion trajectory and the second motion trajectory may be motion trajectories that satisfy the scaling relationship, that is, the shape presented by the second motion trajectory and the first motion trajectory is the same, but since the second motion trajectory is removed from the Therefore, the second motion trajectory can be understood as the scaled motion trajectory of the first motion trajectory.
- the scaling relationship may be a scaling ratio.
- the second motion trajectory and the first motion trajectory are the same motion trajectory, but the second motion trajectory does not contain real geographic location information.
- the second motion trajectory and the first motion trajectory can also present approximately the same shape; not exactly the same shape within the bounds or as permitted by some convention-transformed display.
- These second motion trajectories with substantially the same or not identical shapes may also be considered to have a scaling relationship with the first motion trajectories.
- the first motion trajectory and the second motion trajectory have a degree of similarity that can be judged intuitively.
- the degree of shape similarity between the first motion trajectory and the second motion trajectory can be quantified in some way. For example, when the shape similarity is greater than the threshold value, it can be understood that the first motion trajectory and the second motion trajectory are motion trajectories with the same or approximately the same shape, wherein a numerical value less than or equal to 1 indicates the shape similarity, and the numerical value The larger the value is, the greater the shape similarity is.
- the shape similarity between the first motion trajectory and the second motion trajectory is 1, it means that the first motion trajectory and the second motion trajectory are motion trajectories with the same shape; when the first motion trajectory and the second motion trajectory have the same shape.
- the shape similarity with the second motion trajectory is greater than the set threshold and less than 1, it indicates that the first motion trajectory and the second motion trajectory are motion trajectories having substantially the same shape.
- the first terminal device determines the relative location of each first geographic location relative to the reference geographic location, and uses the determined relative location as the second geographic location corresponding to the first geographic location. Location.
- the ith second geographic location (x' i , y' i , z' i ) can be determined according to the following formula:
- I[] is used to calculate the sign of the second geographic location.
- distance() is used to calculate the actual distance between two geographic locations, round() is used for rounding calculations, and D scale is a setting parameter.
- the second geographic location corresponding to the first geographic location is (80 ,50,2).
- D scale 0.1m
- D scale can amplify the distance between the first geographic location and the reference geographic location .
- the longitude distance between a first geographic location and the reference geographic location is 0.8m
- the latitude distance is 0.5m
- the height distance is 2m
- the second geographic location corresponding to the first geographic location is (8,5,20).
- the first geographic location may also include longitude and latitude, that is, the first geographic location may not include altitude.
- the first geographic location includes three-dimensional information (longitude, latitude, and altitude) or two-dimensional information (longitude, latitude), which can be flexibly set according to different scenarios. For example, when the user carries the target terminal device for mountain climbing, the longitude of the target terminal device can be collected. , latitude, and altitude to obtain at least one first geographic location, and a three-dimensional first motion trajectory can be calculated according to the at least one first geographic location.
- the height change can be ignored, then the longitude and latitude of the target terminal device can be collected to obtain at least one first geographic location, and a two-dimensional calculation can be performed according to the at least one first geographic location. the first trajectory of motion.
- the method of converting at least one first geographic location to at least one second geographic location can still be implemented with reference to the above conversion method, and the repetition will not be repeated.
- the second geographic location no longer includes longitude, latitude and altitude information
- the shape of the second movement track calculated according to at least one second geographic location will also be lost. It may be obvious, and the real geographic location may be identified directly according to the trajectory.
- the first terminal device may not perform data processing on all the first geographic location information, but randomly. A set percentage of the first geographic location is extracted and converted into the second geographic location, so as to prevent the obtained second movement track formed by at least one second geographic location from matching with the movement area with obvious features, thereby indirectly revealing the user's real geographic location.
- the first terminal device determines target data, and the target data includes at least one second geographic location.
- the initial motion data includes time information, speed information, energy consumption information, and personalized suggestion information in addition to at least one first geographic location
- the first terminal device can At least one first geographic location in the initial motion data is replaced with at least one second geographic location, and other information is retained to obtain target data.
- the target data may also include information such as time information, speed information, energy consumption information, and personalized suggestion information, to further enrich the content of the shared data.
- the first terminal device may also use the speed information between any two adjacent first geographic locations as one of the two adjacent first geographic locations.
- the speed information of the second geographic location corresponding to any first geographic location for example, the speed information can be used as the speed information of the second geographic location corresponding to the first geographic location that is later in the sampling time.
- the speed information may be a speed calculated by the first terminal device according to a sampling time interval between two adjacent first geographic locations and a distance between two adjacent first geographic locations.
- multiple speed intervals can be pre-divided, each speed interval corresponds to a speed level, and the first terminal device calculates the speed at which the user moves on a route corresponding to any two adjacent first geographic locations. , determine the speed level corresponding to the speed, and use the speed level as the speed information.
- the velocity v i of the second geographic location corresponding to the first geographic location can be calculated according to the following formula. It can be understood that the speed corresponding to the second geographic location is actually the speed of the user moving on the route between the first geographic location corresponding to the second geographic location and the previous first geographic location.
- distance() is used to calculate the actual distance between two geographic locations, (x i-1 , y i-1 , z i-1 ) is the i-1th first geographic location, (x i , y ) i , z i ) is the i-th first geographic location, t i is the sampling time of the i-th first geographic location, and t i-1 is the sampling time of the i-1-th first geographic location.
- the information corresponding to the i-th first geographic location in the initial motion data is (i, x i , y i , z i , t i ), perform desensitization processing on the initial motion data
- the information corresponding to the i-th second geographic location in the obtained target data may be (i, x' i , y' i , z' i , s i ), where s i is the speed level corresponding to the i-th second geographic location.
- S603 The first terminal device sends target data.
- the first terminal device may send the target data to a second terminal device that requests the first terminal device to obtain exercise data, or send the target data to a second terminal device that requests to obtain exercise data. application of data.
- the second terminal device may be the terminal device 2 in the scenario shown in FIG. 4
- the terminal device 1 The determined target data is sent to the terminal device 2 by means of wireless fidelity, WiFi) network, Bluetooth network, etc.
- the terminal device 1 can send the determined target data to the application 2 by invoking the data transmission interface of the terminal device 1 .
- the second terminal device may draw a second movement trajectory of the user according to at least one second geographic location included in the target data, and display the second movement trajectory on the display interface .
- the first motion trajectory drawn according to the user's initial motion data in the first terminal device is Fig. 1
- the second terminal device can draw the second motion trajectory diagram shown in Fig. 8 according to the target data.
- Fig. 8 Only the second movement trajectory of the user is displayed, but the second terminal device does not know the real geographic location of the user.
- the second terminal device can analyze and process the user's exercise information according to the display method of the second terminal device, which not only ensures the security of the exercise data sharing, but also does not affect the second terminal device.
- the display effect of the second terminal device is not only ensures the security of the exercise data sharing, but also does not affect the second terminal device.
- the second terminal device may set a display effect and display style for the second motion trajectory.
- the target data includes a speed level
- different colors may be used in the second motion trajectory.
- the line segments represent different speed levels, or when the user operates the cursor to stay on a certain segment of the second motion track, the speed level corresponding to the segment track is displayed.
- FIG. 9 is a schematic diagram of a second motion trajectory. When the user operates the cursor to stay on a segment of the trajectory, the speed level corresponding to the segment of the trajectory is displayed.
- the second terminal device may send the target data to an application installed on the second terminal device, such as application 1 in the scenario shown in FIG. 4 .
- the target data is analyzed and processed by the application installed on the second terminal device, for example, the second motion trajectory is displayed on the display interface of the application; for example, the target data is used as the user's motion data to participate in activities such as ranking the user's physical activity in the application , such as ranking the user's sports kilometers or speed; another example, analyze the target data, and recommend sports items to the user in the application.
- the application on the first terminal device requests to obtain the user's motion data, and after receiving the target data, the application on the first terminal device can perform processing such as displaying the second motion trajectory according to the target data.
- the data processing method will not be repeated here.
- the first terminal device obtains the initial motion data of the user, the initial motion data includes at least one first geographic location, and the at least one first geographic location is used to form the first motion trajectory; the first terminal The device sends target data, the target data includes at least one second geographic location, the at least one second geographic location is generated according to the at least one first geographic location, and the at least one first geographic location corresponds to the at least one second geographic location one-to-one, Furthermore, the relative positional relationship of the at least one first geographic location can be represented by the at least one second geographic location.
- the first terminal device can convert at least one first geographic location representing the real geographic location of the user into at least one second geographic location, and the at least one second geographic location can constitute a second motion trajectory, but the second motion trajectory and The first motion trajectory is a motion trajectory with the same or approximately the same shape, so that the real geographic location of the user is removed from the motion data, but the relative positional relationship of at least one first geographic location is retained, and the data integrity is not affected while Ensure the security of data sharing.
- the data processing method provided in the embodiment of the present application may also be executed by the first server, and the first server may be a server corresponding to the terminal device, or the first server may also It can be the server corresponding to the application installed on the terminal device.
- the first server may be server 1 in the scenario shown in FIG. 5 .
- FIG. 10 is a flowchart of a data processing method provided by the embodiment of the present application, and the method includes the following steps:
- S1001 The first server acquires initial motion data of the user.
- the initial motion data may include at least one geographic location, any first geographic location may be the geographic location of the target terminal device at a sampling moment, and each first geographic location may include the target terminal device at a sampling moment.
- the initial motion data may also include motion parameter information and/or personalized suggestion information.
- S601 For a specific introduction, please refer to S601, and repeated details will not be repeated.
- the initial motion data acquired by the first server may be reported to the first server by a terminal device or an application, and the first server performs data maintenance.
- the first server is a server corresponding to the terminal device
- the terminal device reports the collected initial movement data to the first server.
- the application installed on the terminal device sends the acquired initial motion data to the first server through the terminal device.
- the first server when receiving the data processing request message sent by the terminal device, the first server may trigger and start executing the data processing method provided by the embodiment of the present application, obtain initial motion data, and execute the embodiment of the present application. Provided data processing methods.
- the first server may determine that the user's motion data is changed, trigger and start executing the data processing method provided by the embodiment of the present application, and obtain the initial motion data. .
- S1002 The first server determines target data according to the acquired initial motion data.
- S1002 can be implemented by referring to S602 for details, and repeated details will not be repeated.
- S1003 The first server sends target data.
- server 1 can send target data to application 1, and application 1 can send the target data to application 2; or server 1 can send target data to Server 2, the server 2 sends the target data to the application 2; or, the application 1 and the application 2 can establish a data interaction protocol, and the server 1 can directly send the target data to the application 2.
- FIG. 11 is a flowchart of an example of a data processing method provided by the embodiment of the present application, and the example includes the following steps:
- the wearable device records initial motion data when the user runs with the wearable device, and the initial motion data includes at least one first geographic location.
- the wearable device synchronizes the initial motion data to the first application through Bluetooth.
- the first application may be an application of a wearable device manufacturer, and the first application may be installed on the wearable device or other terminal devices of the user.
- the first application can generate the user training effect, recommend the next exercise recovery time, exercise according to the initial exercise data.
- improve the personalized suggestion information such as suggestions, and add the obtained personalized suggestion information to the initial motion data.
- the first application calculates the first motion trajectory of the user according to the initial motion data, and displays the first motion trajectory on the display interface of the first application.
- S1104 The first application synchronizes the initial motion data to the server of the first application.
- S1105 The server of the first application acquires at least one first geographic location in the initial motion data, determines a reference geographic location, and generates at least one second geographic location according to the at least one first geographic location and the reference geographic location.
- S1106 The server of the first application replaces at least one first geographic location in the initial motion data with at least one second geographic location to obtain target data.
- S1107 The server of the first application sends the target data to the server of the second application.
- S1108 The server of the second application saves the target data, and analyzes and processes the target data.
- the server of the second application may determine the user's physical activity ranking according to the received target data.
- the server of the second application may analyze the received target data to determine the sports items that can be recommended for the user.
- S1109 The second application detects a viewing request triggered by the user.
- S1110 The second application acquires target data from the server of the second application.
- the second application calculates the second motion trajectory of the user according to the target data, and displays the second motion trajectory on the display interface of the second application.
- the present application also provides a data processing apparatus 1200.
- the data processing apparatus 1200 can be applied to the terminal device 1 in the scenario shown in FIG. 4, and can also be applied to the terminal device 1 or the server 1 in the scenario illustrated in FIG. 5,
- FIG. 12 is a schematic structural diagram of the data processing apparatus 1200 .
- the data processing apparatus 1200 includes an acquisition unit 1201 and a transceiver unit 1202 . The functions of each unit in the data processing apparatus 1200 will be introduced below.
- the acquiring unit 1201 is configured to acquire initial motion data of the user, the initial motion data includes at least one first geographic location, and any first geographic location is the geographic location where the target terminal device is located at a sampling moment, and the at least one first geographic location is used to form a first motion trajectory;
- the transceiver unit 1202 is configured to send target data, where the target data includes at least one second geographic location, the at least one second geographic location is generated according to the at least one first geographic location, and the at least one second geographic location is generated according to the at least one first geographic location.
- the first geographic location and the at least one second geographic location is used to form a second motion track, and the first motion track and the second motion track are the same or Motion trajectories of roughly the same shape.
- the at least one second geographic location is generated according to the at least one first geographic location and a reference geographic location, and any second geographic location is used to indicate the first geographic location corresponding to the second geographic location.
- each of the at least one first geographic location includes at least one of longitude, latitude, and altitude.
- the first motion trajectory and the second motion trajectory are motion trajectories having the same or substantially the same shape and satisfying a scaling relationship.
- the initial motion data further includes at least one of time information, speed information, energy consumption information, and personalized suggestion information;
- the time information is used to indicate at least one sampling moment corresponding to the at least one first geographic location and/or the exercise duration of the user;
- the speed information is used to indicate the average speed of the user during exercise and/or the movement speed at the at least one sampling moment;
- the energy consumption information is used to indicate the energy consumed by the user during exercise;
- the personalized suggestion information is used to indicate the movement analysis result of the user .
- the target data further includes at least one of time information, speed information, energy consumption information, and personalized suggestion information;
- the time information is used to indicate at least one sampling moment corresponding to the at least one first geographic location and/or the exercise duration of the user;
- the speed information is used to indicate the average speed of the user during exercise and/or the movement speed at the at least one sampling moment;
- the energy consumption information is used to indicate the energy consumed by the user during the movement;
- the personalized suggestion information is used to indicate the movement analysis result of the user .
- the at least one first geographic location is obtained by collecting the geographic location of the target terminal device at at least one sampling moment when the user carries the target terminal device and moves.
- the displacement occurring when the user carries the target terminal device includes displacement occurring when the user carries the target terminal device for running, walking, cycling, mountain climbing, or driving.
- the data processing apparatus 1200 further includes a processing unit 1203, and the processing unit 1203 is configured to determine the reference geographic location according to the following manner:
- processing unit 1203 is further configured to:
- the at least one second geographic location is generated according to:
- the target data includes the speed information
- the processing unit 1203 is further configured to:
- the data processing method is applied to a terminal device or a server.
- the transceiving unit 1202 is further configured to:
- a data request message from another terminal device is received, where the data request message is used to request to acquire the target data; or it is detected that the initial motion data is newly added in the set storage space.
- FIG. 13 is a schematic structural diagram of a data processing apparatus 1300 provided by an embodiment of the present application.
- the data processing apparatus 1300 may be applied to the terminal device 1 in the scenario shown in FIG. 4 . , can also be applied to the terminal device 1 or the server 1 in the scenario shown in FIG. 5 .
- the data processing apparatus 1300 includes: a processor 1301 , a memory 1302 and a bus 1303 . Among them, the processor 1301 and the memory 1302 communicate through the bus 1303, and the communication can also be realized through other means such as wireless transmission.
- the memory 1302 is used for storing instructions, and the processor 1301 is used for executing the instructions stored in the memory 1302 .
- the memory 1302 stores program codes, and the processor 1301 can call the program codes stored in the memory 1302 to perform the following operations:
- the initial motion data of the user includes at least one first geographic location, any one first geographic location is the geographic location where the target terminal device is located at a sampling moment, and the at least one first geographic location is used for forming a first motion track; sending target data, the target data includes at least one second geographic location, the at least one second geographic location is generated according to the at least one first geographic location, the at least one first geographic location There is a one-to-one correspondence between the geographic location and the at least one second geographic location, the at least one second geographic location is used to form a second movement track, and the first movement track and the second movement track are the same or approximately the same The trajectory of the shape.
- the at least one second geographic location is generated according to the at least one first geographic location and a reference geographic location, and any second geographic location is used to indicate the first geographic location corresponding to the second geographic location.
- each of the at least one first geographic location includes at least one of longitude, latitude, and altitude.
- the first motion trajectory and the second motion trajectory are motion trajectories having the same or substantially the same shape and satisfying a scaling relationship.
- the initial motion data further includes at least one of time information, speed information, energy consumption information, and personalized suggestion information;
- the time information is used to indicate at least one sampling moment corresponding to the at least one first geographic location and/or the exercise duration of the user;
- the speed information is used to indicate the average speed of the user during exercise and/or the movement speed at the at least one sampling moment;
- the energy consumption information is used to indicate the energy consumed by the user during the movement;
- the personalized suggestion information is used to indicate the movement analysis result of the user .
- the target data further includes at least one of time information, speed information, energy consumption information, and personalized suggestion information;
- the time information is used to indicate at least one sampling moment corresponding to the at least one first geographic location and/or the exercise duration of the user;
- the speed information is used to indicate the average speed of the user during exercise and/or the movement speed at the at least one sampling moment;
- the energy consumption information is used to indicate the energy consumed by the user during exercise;
- the personalized suggestion information is used to indicate the movement analysis result of the user .
- the at least one first geographic location is obtained by collecting the geographic location of the target terminal device at at least one sampling moment when the user carries the target terminal device and moves.
- the displacement occurring when the user carries the target terminal device includes displacement occurring when the user carries the target terminal device for running, walking, cycling, mountain climbing, or driving.
- the processor 1301 is further configured to determine the reference geographic location according to the following manner:
- the processor 1301 is further configured to:
- the at least one second geographic location is generated according to:
- the target data includes the speed information
- the processor 1301 is further configured to:
- the data processing method is applied to a terminal device or a server.
- the processor 1301 before acquiring the user's initial motion data, is further configured to:
- a data request message from another terminal device is received, where the data request message is used to request to acquire the target data; or it is detected that the initial motion data is newly added in the set storage space.
- the memory 1302 in FIG. 13 of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
- the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically programmable read-only memory (Erasable PROM, EPROM). Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
- Volatile memory may be Random Access Memory (RAM), which acts as an external cache.
- RAM Static RAM
- DRAM Dynamic RAM
- SDRAM Synchronous DRAM
- SDRAM double data rate synchronous dynamic random access memory
- Double Data Rate SDRAM DDR SDRAM
- enhanced SDRAM ESDRAM
- synchronous link dynamic random access memory Synchlink DRAM, SLDRAM
- Direct Rambus RAM Direct Rambus RAM
- the embodiments of the present application further provide a data processing system, where the data processing system includes a sending end and a receiving end;
- the sending end is used to obtain the initial motion data of the user, the initial motion data includes at least one first geographic location, and any first geographic location is the geographic location where the target terminal device is located at a sampling moment, and the at least one first geographic location is the geographic location where the target terminal device is located at a sampling moment.
- a first geographic location is used to form a first motion track; target data is sent, the target data includes at least one second geographic location, and the at least one second geographic location is generated according to the at least one first geographic location , the at least one first geographic location and the at least one second geographic location have a one-to-one correspondence, the at least one second geographic location is used to form a second motion track, and the first motion track and the second motion track
- the trajectories are of the same or approximately the same shape
- the receiving end is configured to receive the target data; generate the second motion trajectory according to the target data, and/or perform data analysis processing on the target data.
- each of the at least one first geographic location includes at least one of longitude, latitude, and altitude.
- the first motion trajectory and the second motion trajectory are motion trajectories having the same or substantially the same shape and satisfying a certain scaling relationship.
- the sending end and the receiving end are the same terminal device; or the sending end and the receiving end are different terminal devices; or the sending end and the receiving end are different server.
- an embodiment of the present application further provides a chip, which is used to read a computer program stored in a memory and implement the data processing method provided by the embodiment shown in FIG. 6 or FIG. 10 .
- an embodiment of the present application provides a chip system, where the chip system includes a processor for supporting a computer device to implement the data processing method provided by the embodiment shown in FIG. 6 or FIG. 10 .
- the chip system further includes a memory for storing necessary programs and data of the computer device.
- the chip system may be composed of chips, or may include chips and other discrete devices.
- the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
- computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
- the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Remote Sensing (AREA)
- Medical Informatics (AREA)
- Navigation (AREA)
Abstract
本申请提供一种数据处理方法、***及装置。在该方法中,获取用户的初始运动数据,初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,至少一个第一地理位置用于构成第一运动轨迹;发送目标数据,目标数据中包括至少一个第二地理位置,至少一个第二地理位置是根据至少一个第一地理位置生成的,至少一个第二地理位置构成的第二运动轨迹与第一运动轨迹为具有相同或大致相同形状的运动轨迹。通过本方案,可以将至少一个第一地理位置转换为至少一个第二地理位置,从而去除了用户的真实地理位置,但保留了至少一个第一地理位置的相对位置关系,在不影响数据完整性的同时保证数据分享的安全性。
Description
相关申请的交叉引用
本申请要求在2021年04月20日提交中国专利局、申请号为202110426400.9、申请名称为“一种数据处理方法、***及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及数据处理领域,尤其涉及一种数据处理方法、***及装置。
随着终端设备的普及,终端设备的定位功能在日常生活中得到广泛应用。例如,用户在运动时使用终端设备记录运动过程中的地理位置,进而得到用户的运动轨迹,并计算用户在运动过程中的速度、步频等信息。又例如,终端设备可以记录儿童的行动轨迹,进而帮助监护人查看儿童动态。
一般终端设备在出厂前会预先配置一些运动应用,在用户开放权限后,终端设备或者终端设备通过这些运动应用对用户的运动数据进行采集和记录。其中,用户的运动数据可以包括时间、地理位置等信息。在采集运动数据之后,运动应用还可以对获取到的运动数据进行计算后,在终端设备的显示屏上显示用户的移动轨迹。
在终端设备或终端设备上安装的某个应用客户端采集用户的运动数据后,若其它终端设备或其它应用客户端想要获取用户的运动数据时,可以在用户授权同意后,获取该终端设备或该应用客户端采集到的运动数据。但由于运动数据中包括用户的真实的地理位置,直接分享用户的运动数据容易泄露用户隐私,造成安全隐患。
发明内容
本申请提供一种数据处理方法、***及装置,用以提高运动数据分享的安全性。
第一方面,本申请实施例提供一种数据处理方法。该方法包括:
获取用户的初始运动数据,所述初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,所述至少一个第一地理位置用于构成第一运动轨迹;发送目标数据,所述目标数据中包括至少一个第二地理位置,所述至少一个第二地理位置是根据所述至少一个第一地理位置生成的,所述至少一个第一地理位置和所述至少一个第二地理位置一一对应,所述至少一个第二地理位置用于构成第二运动轨迹,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状的运动轨迹。
在以上方法中,可以将表示用户真实地理位置的至少一个第一地理位置转换为至少一个第二地理位置,至少一个第二地理位置可以构成第二运动轨迹,第二运动轨迹和第一运动轨迹为具有相同或大致相同形状的运动轨迹,从而在运动数据中去除了用户的真实地理位置,但保留了至少一个第一地理位置的相对位置关系,在不影响数据完整性的同时保证 数据分享的安全性。
在一个可能的设计中,所述至少一个第二地理位置是基于相同转换规则,对所述至少一个第一地理位置转换得到的。
通过该设计,基于相同的转换规则对至少一个第一地理位置进行转换得到至少一个第二地理位置,从而保证转换得到的至少一个第二地理位置能够表示至少一个第一地理位置的相对位置关系,进而保证至少一个第二地理位置的准确性。
在一个可能的设计中,所述至少一个第二地理位置是根据所述至少一个第一地理位置和参考地理位置生成的,任一个第二地理位置用于指示所述第二地理位置对应的第一地理位置与所述参考地理位置之间的相对位置关系。
通过该设计,将至少一个第一地理位置转换为相对于参考地理位置的相对地理位置,进而得到至少一个第二地理位置,由于每个第二地理位置都分别对应一个第一地理位置,实现了去除第一地理位置的真实地理位置信息同时,保留至少一个第一地理位置的相对位置关系。
在一个可能的设计中,所述至少一个第一地理位置中的每一个包括经度、纬度、高度中的至少一项。
通过该设计,至少一个第一地理位置可以采用经度、纬度、高度的至少一项表示用户的真实地理位置,本申请实施例提供的数据处理方法对以上任意第一地理位置表示方式均适用。
在一个可能的设计中,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状且满足缩放关系的运动轨迹。
通过该设计,第一运动轨迹与第二运动轨迹可以具有相同或大致相同的形状,且第一运动轨迹与第二运动轨迹可以满足缩放关系,也即,第二运动轨迹的显示效果可以为第一运动轨迹缩小或放大后的运动轨迹,从而保证本申请实施例进行数据处理方法后得到的至少一个第二地理位置构成的第二运动轨迹仍然可以表示用户的移动轨迹。
在一个可能的设计中,所述初始运动数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
在一个可能的设计中,所述目标数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;
其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
通过以上设计,初始运动数据或目标数据中还可以包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项,丰富运动数据分享的内容。
在一个可能的设计中,所述至少一个第一地理位置为用户携带所述目标终端设备发生位移时,在至少一个采样时刻采集所述目标终端设备的地理位置得到的。
通过该设计,初始运动数据中包括的至少一个第一地理位置可以为用户在携带目标终端设备发送位移时,对目标终端设备的地理位置采样得到的,从而可以使用目标终端设备的地理位置表示用户在发生位移过程中的地理位置,记录得到用户的至少一个第一地理位置。
在一个可能的设计中,所述用户携带所述目标终端设备发生位移包括所述用户携带所述目标终端设备跑步、步行、骑行、登山或驾驶时发生的位移。
通过该设计,对于用户携带目标终端设备跑步、步行、骑行、登山或驾驶时发生的位移的场景,均可以记录用户的至少一个第一地理位置。
在一个可能的设计中,所述方法还包括:
根据以下方式确定所述参考地理位置:确定所述至少一个第一地理位置中的中心地理位置,将所述中心地理位置作为所述参考地理位置;或者在所述至少一个第一地理位置中选择参考采样时刻对应的第一地理位置,将选择的第一地理位置作为所述参考地理位置;或者确定所述至少一个第一地理位置对应的地理区域中的标志地理位置,将确定出的标志地理位置作为所述参考地理位置。
通过该设计,本申请实施例提供多种参考地理位置的确定方式,如将至少一个第一地理位置中的中心地理位置作为参考地理位置,或将参考采样时刻对应的第一地理位置作为参考地理位置,或将标志地理位置作为参考地理位置,进而在实施中可以灵活选择参考地理位置。
在一个可能的设计中,所述方法还包括:
根据以下方式生成所述至少一个第二地理位置:计算所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离;根据所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离以及设定参数确定每个第一地理位置对应的第二地理位置;其中,所述设定参数用于对所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离进行缩放。
通过该设计,计算至少一个第一地理位置中每个第一地理位置与参考地理位置之间的距离,并根据设定参数和每个第一地理位置与参考地理位置之间的距离计算每个第一地理位置对应的第二地理位置,保证转换得到的至少一个第二地理位置能够准确表示至少一个第一地理位置的相对位置关系。
在一个可能的设计中,所述目标数据中包括所述速度信息,所述方法还包括:
对所述至少一个第一地理位置中的目标地理位置执行以下步骤,所述目标地理位置为所述至少一个第一地理位置中的每一个地理位置:确定所述目标地理位置与相邻地理位置之间的距离,以及所述目标地理位置与所述相邻地理位置之间的采样时间间隔;其中,所述相邻地理位置为在所述目标地理位置对应的目标采样时刻之前最后采样得到的第一地理位置或在所述目标采样时刻之后最先采样得到的第一地理位置;根据所述目标地理位置以及所述相邻地理位置之间的距离,以及所述采样时间间隔,计算所述目标终端设备的速度;根据所述目标终端设备的速度,确定所述目标终端设备的速度等级,并将所述目标终端设备的速度等级作为所述速度信息。
通过该设计,可以根据至少一个第一地理位置以及每个第一地理位置的采样时刻,计算目标终端设备的速度,并将目标终端设备的速度转换为速度等级,将目标终端设备的速度等级作为目标数据中包括的速度信息,进一步丰富目标数据的内容。
在一个可能的设计中,所述数据处理方法应用于终端设备或服务器。
通过该设计,本申请提供的数据处理方法可以由终端设备或服务器执行,对此不作限定,具体实现中可以根据不同使用场景灵活调整执行数据处理方法的设备,提升本申请实施例提供的数据处理方法的灵活性。
在一个可能的设计中,在所述获取用户的初始运动数据之前,还包括:
接收到来自其它终端设备的数据请求消息,所述数据请求消息用于请求获取所述目标数据;或者检测到设定存储空间中新增所述初始运动数据。
通过该设计,本申请实施例提供的数据处理方法可以在接收到其它终端设备的数据请求消息后执行,或在检测到设定存储空间中新增所述初始运动数据后执行,从而本申请实施例提供的数据处理方法可以在其它终端设备请求获取初始运动数据时,对初始运动数据进行处理;或在检测到新增初始运动数据时,主动对初始运动数据进行处理。实施中触发本申请实施例提供的数据处理方法启动的方式可以基于上述方式灵活设置。
第二方面,本申请实施例提供了一种数据处理***,所述数据处理***包括发送端和接收端;
所述发送端,用于获取用户的初始运动数据,所述初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,所述至少一个第一地理位置用于构成第一运动轨迹;发送目标数据,所述目标数据中包括至少一个第二地理位置,所述至少一个第二地理位置是根据所述至少一个第一地理位置生成的,所述至少一个第一地理位置和所述至少一个第二地理位置一一对应,所述至少一个第二地理位置用于构成第二运动轨迹,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状;
所述接收端,用于接收所述目标数据;根据所述目标数据生成所述第二运动轨迹,和/或对所述目标数据进行数据分析处理。
在一个可能的设计中,所述至少一个第一地理位置中的每一个包括经度、纬度、高度中的至少一项。
在一个可能的设计中,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状且满足缩放关系的运动轨迹。
在一个可能的设计中,所述发送端与所述接收端为相同的终端设备;或者所述发送端与所述接收端为不同的终端设备;或者所述发送端与所述接收端为不同的服务器。
第三方面,本申请实施例提供了一种数据处理装置,包括用于执行上述任一方面中各个步骤的单元。
第四方面,本申请实施例提供一种数据处理装置,包括处理器和存储器,所述存储器中存储计算机程序指令,所述数据处理装置运行时,所述处理器执行上述任一方面提供的方法。
第五方面,本申请实施例还提供一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一方面提供的方法。
第六方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述任一方面提供的方法。
第七方面,本申请实施例还提供一种芯片,所述芯片用于读取存储器中存储的计算机 程序,执行上述任一方面提供的方法。
第八方面,本申请实施例还提供一种芯片***,该芯片***包括处理器,用于支持计算机装置实现上述任一方面提供的方法。在一种可能的设计中,所述芯片***还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片***可以由芯片构成,也可以包含芯片和其他分立器件。
图1为一种用户的运动轨迹显示页面示意图;
图2为本申请实施例提供的一种终端设备的结构示意图;
图3为本申请实施例提供的一种终端设备的软件结构框图;
图4为本申请实施例提供的第一种数据处理方法适用的应用场景示意图;
图5为本申请实施例提供的第二种数据处理方法适用的应用场景示意图;
图6为本申请实施例提供的数据处理方法的流程图;
图7为本申请实施例一种第一地理位置示意图;
图8为本申请实施例一种第二运动轨迹示意图;
图9为本申请实施例又一种第二运动轨迹示意图;
图10为本申请实施例提供的一种数据处理方法的流程图;
图11为本申请实施例提供的一种数据处理方法实例的流程图;
图12为本申请实施例提供的一种数据处理装置的结构示意图;
图13为本申请实施例提供的一种数据处理装置的结构示意图。
为了方便理解本申请实施例,下面介绍与本申请实施例相关的术语:
(1)地理位置,用以表示物体所在的位置,地理位置可以包括绝对地理位置和相对地理位置。绝对地理位置是以整个地球为参考系,以经纬度为度量标准得到的位置。地球上每一个地方都有自身唯一的经纬度,因此,可以通过经纬度坐标来表示地理位置。此外,地理位置还可以包括高度。其中,经纬度坐标与高度可以通过全球卫星定位***(global positioning system,GPS)信号、全球导航卫星***(global navigation satellite system,GLONASS)信号、北斗卫星导航***(beidou navigation satellite system,BDS)信号等定位信号计算得到,高度还可以通过终端设备对高度传感器采集的高度气压数据计算得到。
相对地理位置是通过物体相对于参考地理位置的距离表示物体的位置。
例如本申请实施例中第一地理位置可以为绝对地理位置,而第二地理位置可以为相对地理位置。
(2)客户端设备,是指与服务器交互为用户提供本地服务的终端设备。客户端设备可以为用户提供通信服务、娱乐服务等本地服务。
(3)运动数据,是指用户在携带终端设备移动时,终端设备采集的用户移动过程中的地理位置、速度信息、时间信息等数据。例如运动数据可以为用户在跑步、步行等移动状态下终端设备采集到的数据,又例如运动数据还可以为儿童或老人等被监护人在携带终端设备并移动时,终端设备采集到的数据。
下面将结合附图对本申请实施例作进一步地描述说明。
随着终端设备的普及,终端设备的定位功能在日常生活中得到广泛应用,例如,用户在运动时使用终端设备记录运动过程中的地理位置,进而得到用户的运动轨迹,并计算用户在运动过程中的速度、步频等信息。又例如,终端设备可以记录儿童的行动轨迹,进而帮助监护人查看儿童动态。
一般终端设备在出厂前会预先配置一些运动应用,在用户开放权限后,终端设备或者终端设备通过这些运动应用对用户的运动数据进行采集和记录。其中,用户的运动数据可以包括开始时间、结束时间、总时长、配速信息、步频信息、地理位置等。终端设备中的运动应用对获取到的运动数据进行计算后可以得到用户的运动轨迹,然后在终端设备的显示屏中显示该运动轨迹。例如,图1为一种用户的运动轨迹显示页面示意图,终端设备中的运动应用可以根据用户的运动数据计算用户的运动轨迹,并在应用的显示界面上显示用户的运动轨迹。参考图1,终端设备中的运动应用还可以根据用户的运动数据计算用户的行动速度并在该显示页面上标注,例如图1中标注出运动轨迹上的多个位置(见图1中的多个数字标注),用户在点击任意两个位置之间的线段时,可以查看用户在该线段对应的路线上行动时的速度、步频、消耗能量等信息。
目前应用市场上有大量的运动应用或地图导航应用均支持采集用户的运动数据并显示用户的运动轨迹,在终端设备或终端设备上安装的某个应用客户端采集用户的运动数据后,若其它设备或其它应用想要获取用户的运动数据时,可以在用户授权同意后,获取终端设备或应用客户端采集到的运动数据,但由于运动数据中包括用户的真实的地理位置,直接分享用户的运动数据容易泄露用户隐私,造成安全隐患。
以终端设备分享采集到的运动数据为例,目前一种防止泄漏用户地理位置的数据处理方式为:终端设备在分享运动数据之前,去除运动数据中的地理位置,只分享运动时长、消耗能量、配速等信息。但这种数据处理方式会导致运动数据中的部分内容缺失,其它设备或应用客户端在获取到终端设备分享的运动数据后,不能根据获取到的运动数据显示用户的移动轨迹,影响显示效果。
基于上述问题,本申请实施例提供一种数据处理方法,用以提高运动数据分享的安全性。
可以理解的是,本申请实施例可以应用于诸如手机、平板电脑、可穿戴设备(例如,手表、手环、头盔、耳机等)、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能家居设备(例如,智能电视,智能音箱,智能摄像头等)等终端设备。本申请实施例对终端设备的具体类型不作任何限制。在一些实施例中,终端设备具备定位功能,例如,本申请实施例中至少一个第一地理位置可以为终端设备采集到的地理位置,例如终端设备为手机或可穿戴设备时,手机或可穿戴设备可以在至少一个采样时刻采集至少一个第一地理位置。在另一些实施例中,至少一个第一地理位置还可以为终端设备接收到的与该终端设备绑定的其它设备采集到的地理位置,例如终端设备为手机,则至少一个第一地理位置可以为手机接收到与手机绑定的可穿戴设备采集到的地理位置。
图2为本申请实施例提供的一种终端设备100的结构示意图。如图2所示,终端设备 100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,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等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是终端设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与***设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器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转为电磁波辐射出去。
在一些实施例中,终端设备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)。
在一些实施例中,除了上述的GNSS,终端设备100还可以采用无线保真(wireless fidelity,WiFi)定位或射频识别(Radio Frequency Identification,RFID)定位确定终端设备位置。
可选地,终端设备100可以在用户运动过程中,基于上述定位方式,在多个采样时刻采集用户的地理位置,从而得到用户整个运动过程中的运动数据。
显示屏194用于显示应用的显示界面,例如显示根据终端设备100采集到的用户的运动数据确定的行动轨迹的显示页面等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,以及至少一个应用程序的软件代码等。存储数据区可存储终端设备100使用过程中所产生的数据(例如拍摄的图像、录制的视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
其中,传感器模块180可以包括压力传感器180A,加速度传感器180B,触摸传感器180C,高度传感器180D等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
触摸传感器180C,也称“触控面板”。触摸传感器180C可以设置于显示屏194,由触摸传感器180C与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180C用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180C也可以设置于终端设备100的表面,与显示屏194所处的位置不同。
高度传感器180D用于采集高度气压数据,并将采集到的高度气压数据发送给处理器110,以使处理器110对高度气压数据进行计算得到终端设备100的高度信息。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过***SIM卡接口195,或从SIM卡接口195拔出,实现与终端设备100的接触和分离。
可以理解的是,图2所示的部件并不构成对终端设备100的具体限定,终端设备还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。此外,图2中的部件之间的组合/连接关系也是可以调整修改的。
图3为本申请实施例提供的一种终端设备的软件结构框图。如图3所示,终端设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),安卓运行时(Android runtime)和***库,以及内核层。
应用程序层可以包括一系列应用程序包(Android application package,APK)。如图3所示,应用程序层可以包括相机、设置、皮肤模块、用户界面(user interface,UI)、三方应用程序等。其中,三方应用程序可以包括图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器, 通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供终端设备的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。
Android runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
在一些实施例中,三维图形处理库可以用于绘制三维的运动轨迹图像,如三维图形处理库可以绘制包含经度、纬度、高度三维信息的运动轨迹图像;2D图形引擎可以用于绘制二维的运动轨迹图像,如2D图形引擎可以绘制包含经度和纬度二维信息的运动轨迹图像。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
硬件层可以包括各类传感器,例如加速度传感器、陀螺仪传感器、触摸传感器等。
本申请实施例提供的一种数据处理方法可以应用于终端设备或服务器。其中,终端设备可以具有图2示出的硬件结构和图3示出的软件结构。具体的,终端设备可以为诸如手机、平板电脑、可穿戴设备(例如,手表、手环、头盔、耳机等)、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能家居设备(例如,智能电视,智能音箱,智能摄像头等)等。
本申请实施例中服务器可以为终端设备对应的服务器,此时终端设备又可以称为该服务器对应的客户端设备,例如终端设备对应的服务器可以为终端设备的开发厂商的服务器,终端设备可以将采集到的数据发送给服务器,由服务器进行数据维护。
进一步地,终端设备上可以安装应用,终端设备上安装的应用可以为终端设备的操作***自带的应用或预置的功能,或者可以为第三方厂商开发的嵌入式应用。安装在终端设备上的应用可以与该应用对应的服务器进行交互,从而为用户提供本地服务。当然,本申请实施例提供的数据处理方法也可以应用于终端设备上安装的应用对应的服务器。
下面结合附图对本申请实施例提供的数据处理方法适用的几种场景进行进一步介绍:
图4为本申请实施例提供的第一种数据处理方法适用的场景,参考图4,该场景中包括终端设备1、终端设备2和服务器1,终端设备1可以具有图2示出的硬件结构和图3示出的软件结构,图4中以终端设备1为可穿戴设备为例示出,终端设备2上安装有应用1,服务器1为应用1对应的服务器。终端设备1中存储有用户的初始运动数据,该初始运动数据可以为终端设备1在用户携带终端设备1进行移动时,通过采集终端设备1的地理位置获取到的运动数据。应用1可以通过终端设备2向终端设备1发送数据请求消息,终端设备1获取用户的初始运动数据,该初始运动数据中包括至少一个第一地理位置,至少一个第一地理位置可以构成用户的第一运动轨迹。终端设备1将至少一个地理位置转换为至少一个第二地理位置,至少一个第二地理位置可以构成第二运动轨迹。终端设备1将包括至少一个第二地理位置的目标数据发送给终端设备2,终端设备2将目标数据上传到应用1;或者终端设备1可以将目标数据发送给服务器1,由服务器1将目标数据发送给应用1。应用1接收到目标数据后,可以根据目标数据对用户的运动情况进行分析,例如应用1可以根据目标数据中包含的至少一个第二地理位置绘制第二运动轨迹,并在应用1的显示界面中展示给用户。
图5为本申请实施例提供的第二种数据处理方法适用的场景,参考图5,该场景中包括终端设备1、服务器1以及服务器2。终端设备1可以具有图2示出的硬件结构和图3示出的软件结构,终端设备1上安装有应用1和应用2,服务器1为应用1对应的服务器。服务器1为应用2对应的服务器。可选地,应用1可以通过终端设备1的定位功能,在用户携带终端设备1进行移动时,通过采集终端设备1的地理位置获取用户的运动数据;或者,用户携带其它终端设备(如与应用1绑定的可穿戴设备)并发生移动,则其它终端设备可以将采集到的运动数据发送给应用1。可以理解的是,由于终端设备1中存储的用户的运动数据为应用1通过终端设备1的定位功能采集得到的,应用2在需要使用用户的运动数据时,需要向应用1请求获取用户的运动数据。例如,该应用1为终端设备1的制造商预置的应用或功能,该应用2为用户下载安装的第三方应用。
一种可选的实施方式中,应用2可以向应用1发送数据请求消息,应用1在接收到应用2发送的数据请求消息后,获取终端设备1保存的用户的初始运动数据,该初始运动数据中包括至少一个第一地理位置,至少一个第一地理位置可以构成用户的第一运动轨迹。应用1将至少一个地理位置转换为至少一个第二地理位置,至少一个第二地理位置可以构成第二运动轨迹。应用1可以将包括至少一个第二地理位置的目标数据,通过终端设备1的数据传输接口发送给应用2。
另一种可选的实施方式中,应用1在获取到用户的初始运动数据后,可以将用户的初 始运动数据上报到应用1对应的服务器1,由服务器1进行运动数据的维护。应用2可以向应用1发送数据请求消息,应用1在接收到应用2发送的数据请求消息后,向服务器1发送数据处理请求消息,服务器1获取保存的用户的初始运动数据,该初始运动数据中包括至少一个第一地理位置,至少一个第一地理位置可以构成用户的第一运动轨迹。服务器1将至少一个地理位置转换为至少一个第二地理位置,至少一个第二地理位置可以构成第二运动轨迹。服务器1可以将包括至少一个第二地理位置的目标数据发送给应用1,由应用1将目标数据发送给应用2;或者,服务器1将目标数据发送给应用2对应的服务器2,由服务器2将目标数据发送给应用2;或者,当应用1可以与应用2建立数据交互协议时,可以由服务器1将目标数据直接发送给应用2。
应用2接收到目标数据后,可以根据目标数据对用户的运动情况进行分析,例如应用2可以根据目标数据中包括的至少一个第二地理位置计算用户的第二运动轨迹,并将计算得到的第二运动轨迹在应用2的显示界面上显示。
可以理解的是,图5所示场景中,应用1和应用2还可以分别安装在不同的终端设备上,例如应用1安装于终端设备1,应用2安装于终端设备2。图5所示场景中服务器1还可以为终端设备1对应的服务器,服务器2还可以为终端设备2对应的服务器。也就是说,本申请实施例对执行数据处理方法的设备不做限定,例如本申请实施例提供的数据处理方法可以由终端设备执行,具体可以为终端设备处理器执行所述数据处理方法,或终端设备上安装应用后,由终端设备的应用层执行所述数据处理方法。又例如本申请实施例提供的数据处理方法可以由服务器执行,该服务器可以为终端设备对应的服务器,还可以为终端设备上安装的应用对应的服务器。具体实施可以参见图4或图5所示场景的数据处理方法,重复之处不再赘述。
需要说明的是,图4和图5所示的应用场景中都以终端设备是手机或可穿戴设备为例,但本申请实施例的终端设备不限于此。
接下来结合附图介绍本申请实施例提供的技术方案。
本申请实施例提供一种数据处理方法,图6为该方法的流程图。以第一终端设备执行该方法为例,第一终端设备可以为图4或图5所示场景中的终端设备1。参见图6,本申请实施例提供的数据处理方法包括以下步骤:
S601:第一终端设备获取用户的初始运动数据。
可选地,初始运动数据中可以包括至少一个地理位置,任一个第一地理位置可以为目标终端设备在一个采样时刻所在的地理位置,每个第一地理位置可以包括目标终端设备在一个采样时刻所在位置的经度、纬度以及高度。至少一个第一地理位置可以用于构成第一运动轨迹,第一运动轨迹为用户在发生位移过程中的真实轨迹,例如第一运动轨迹可以为用户在跑步、步行、骑行、登山或驾驶等场景中的运动轨迹,或者第一运动轨迹还可以为儿童、老人等被监护人的行动轨迹。
可选地,目标终端设备可以为执行数据处理方法的第一终端设备,如目标终端设备可以为图4或图5所示场景中的终端设备1,终端设备1获取到的初始运动数据中包括的至少一个第一地理位置可以为用户携带终端设备1并发生移动时,终端设备1在至少一个采样时刻采集到的终端设备的至少一个地理位置。目标终端设备还可以为与执行数据处理方法的第一终端设备不同的终端设备,例如执行数据处理方法的第一终端设备可以为图5所示场景中的终端设备1,而采集至少一个第一地理位置的目标终端设备可以为与应用1绑 定的终端设备,目标终端设备在用户携带目标终端设备并发生移动时,在至少一个采样时刻采集到目标终端设备的至少一个第一地理位置,并将采集到的至少一个第一地理位置发送给终端设备1。
可选地,初始运动数据中还可以包括运动参数信息,比如时间信息、速度信息、消耗能量信息等信息。其中,时间信息可以包括用户发生移动开始时间、结束时间、发生移动的总时长、移动过程中每个第一地理位置对应的采样时刻等信息,时间信息可以由目标终端设备进行采集。速度信息用于指示用户在运动过程中的平均速度和/或在至少一个采样时刻的运动速度,例如速度信息可以包括用户移动过程中的配速、步频等信息,第一终端设备可以根据时间信息以及至少一个第一地理位置对用户移动过程中的配速、步频进行计算。消耗能量信息可以为用户在移动过程中消耗卡路里信息,第一终端设备也可以根据时间信息以及至少一个第一地理位置计算用户在移动过程中的消耗卡路里信息。
另外,初始运动数据中还可以包括用户训练效果、建议下一次运动恢复时间、运动改进建议等个性化建议信息,以上信息可以由第一终端设备根据时间信息、至少一个第一地理位置以及消耗能量等信息计算生成。
一种可选的实施方式中,第一终端设备可以在接收到数据请求消息后,触发第一终端设备启动执行本申请实施例提供的数据处理方法,获取用户的初始运动数据。其中,数据请求消息可以为第二终端设备发送的,例如第二终端设备可以为图4所示场景中的终端设备2;或者数据请求消息还可以为第一终端设备上的应用触发的,例如,图5所示场景中应用2可以向应用1发送数据请求消息。第一终端设备在接收到数据请求消息后,可以在显示界面上显示获取用户授权的页面,在用户点击同意授权后,第一终端设备可以获取用户的初始运动数据。
另一种可选的实施方式中,第一终端设备可以在检测到设定存储空间中新增运动数据时,触发第一终端设备启动执行本申请实施例提供的数据处理方法,获取新增的运动数据作为用户的初始运动数据。例如,图4所示场景中,终端设备2可以向终端设备1注册,申请终端设备1获取到的新的运动数据时,终端设备1向终端设备2发送变更后的运动数据。在用户授权同意且终端设备2向终端设备1注册成功后,终端设备1在检测到用户的运动数据变更时,获取初始运动数据作为用户的初始运动数据,并执行本申请实施例提供的数据处理方法。
S602:第一终端设备根据获取到的初始运动数据确定目标数据。
一种可选的实施方式中,为防止直接分享含有地理位置的运动数据导致用户隐私泄露,第一终端设备在获取到用户的初始运动数据后,需要对初始运动数据中包含的至少一个第一地理位置进行脱敏处理,将至少一个第一地理位置转换为至少一个第二地理位置,任一个第二地理位置可以表示该第二地理位置对应的第一地理位置与参考地理位置之间的相对位置关系,从而在不破坏多个第一地理位置的相对位置关系的情况下,去除地理位置中的真实位置信息。
根据该至少一个第一地理位置确定对应的至少一个第二地理位置的方式可以有多种,例如,预先建立热度地理位置的转换对应关系,或者根据特定转换算法计算确定等。作为一种可能的实现,例如可以通过参考地理位置计算并确定与第一地理位置对应的第二地理位置。
首先,需要确定参考地理位置。根据前述对地理位置的介绍可知,第一地理位置可以包括经度、纬度以及高度,则实施中可以根据以下方式确定参考地理位置:
方式一、确定至少一个第一地理位置中的中心地理位置,将中心地理位置作为参考地理位置。
一种可选的实施方式中,计算所有第一地理位置的经度平均值、纬度平均值以及高度平均值,将计算得到的经度平均值、纬度平均值以及高度平均值作为参考地理位置。
举例来说,以(x
i,y
i,z
i)表示第i个第一地理位置,其中,1≤i≤N,N为正整数。x
i为第i个第一地理位置的经度,y
i为第i个第一地理位置的纬度,z
i为第i个第一地理位置的高度。例如,图7为本申请实施例一种第一地理位置示意图,(x
1,y
1,z
1)为第1个第一地理位置,(x
N,y
N,z
N)为第N个第一地理位置,第N个第一地理位置为最后一个第一地理位置。本申请实施例中第一终端设备可以根据下列公式计算参考地理位置(x
c,y
c,z
c):
方式二、在至少一个第一地理位置中选择参考采样时刻对应的第一地理位置,将选择的第一地理位置为参考地理位置。
可选地,参考采样时刻可以为至少一个第一地理位置的采样时刻中最早的采样时刻、最晚的采样时刻、中间采样时刻或随机选择的采样时刻,本申请实施例对此不作限定。
方式三、确定至少一个第一地理位置对应的地理区域中的标志地理位置,将确定出的标志地理位置作为参考地理位置。
可选地,第一终端设备可以将至少一个第一地理位置对应的地理区域中的标志物建筑对应的位置作为标志地理位置,或将距离标志物建筑最近的第一地理位置作为标志地理位置,并将确定出的标志地理位置作为参考地理位置。
在确定出参考地理位置之后,第一终端设备可以根据至少一个第一地理位置和参考地理位置,生成至少一个第二地理位置。
其中,至少一个第一地理位置和至少一个第二地理位置一一对应,任一个第二地理位置用于指示第二地理位置对应的第一地理位置与参考地理位置之间的相对位置关系,至少一个第二地理位置用于构成第二运动轨迹。需要说明的是,第一运动轨迹与第二运动轨迹可以为满足缩放关系的运动轨迹,也就是说,第二运动轨迹与第一运动轨迹所呈现的形状相同,但由于第二运动轨迹中去除了真实地理位置的相关信息,因此第二运动轨迹可以理解为第一运动轨迹进行缩放后的运动轨迹。其中,缩放关系可以为缩放比例,如当缩放比例为1:1时,第二运动轨迹与第一运动轨迹为相同的运动轨迹,但第二运动轨迹中不包含真实地理位置信息。可选地,由于某些转换算法的设计规则、某些可能的设计呈现方式要求、或容许的计算误差,第二运动轨迹与第一运动轨迹也可以呈现大致相同的形状;或在用户可接受范围内或在某些约定转换后的显示方式所允许范围内而呈现并不完全相同的形状。这些具有大致相同或并不完全相同形状的第二运动轨迹与第一运动轨迹之间也可以认为是具有缩放关系的。
作为一种可能的评估方式,第一运动轨迹和第二运动轨迹具有直观可判的相似程度。作为另一种可能的评估方式,第一运动轨迹与第二运动轨迹之间的形状相似程度可以通过某种方式量化。例如,当形状相似度大于阈值时,可以理解为第一运动轨迹与第二运动轨迹为具有相同或大致相同形状的运动轨迹,其中,若使用为小于等于1的数值表示形状相似度,且数值越大表示形状相似度越大,则当第一运动轨迹与第二运动轨迹形状相似度为1时,表示第一运动轨迹与第二运动轨迹为具有相同形状的运动轨迹;当第一运动轨迹与第二运动轨迹形状相似度大于设定阈值且小于1时,表示第一运动轨迹与第二运动轨迹为具有大致相同形状的运动轨迹。
可选地,在确定出参考地理位置之后,第一终端设备确定每个第一地理位置相对于参考地理位置的相对位置,并将确定出的相对位置作为该第一地理位置对应的第二地理位置。
一种可选的实施方式中,可以根据下列公式确定第i个第二地理位置(x’
i,y’
i,z’
i):
需要说明的是,D
scale用于对至少一个第一地理位置中每个第一地理位置与参考地理位置之间的距离进行缩放,D
scale的取值可以根据多个第一地理位置组成的移动轨迹的长度、多个第一地理位置之间任意两个相邻第一地理位置的采样时间间隔进行调整,例如当D
scale=10m,表示对第一地理位置转换得到的第二地理位置的坐标轴精度为10m,则D
scale可以对第一地理位置与参考地理位置之间的距离进行缩小。以一个例子说明,假设一个第一地理位置与参考地理位置之间的经度距离为800m,纬度距离为500m,高度距离为20m,则可以确定该第一地理位置对应的第二地理位置为(80,50,2)。又例如,当D
scale=0.1m,表示对第一地理位置转换得到的第二地理位置的坐标轴精度为0.1m,则D
scale可以对第一地理位置与参考地理位置之间的距离进行放大。以一个例子说明,假设一个第一地理位置与参考地理位置之间的经度距离为0.8m,纬度距离为0.5m,高度距离为2m,则可以确定该第一地理位置对应的第二地理位置为(8,5,20)。
可以理解的是,第一地理位置也可以包括经度和纬度,也就是说第一地理位置可以不包括高度。第一地理位置包括三维信息(经度、纬度以及高度)或二维信息(经度、纬度)可以根据不同的场景灵活设置,例如,当用户携带目标终端设备进行登山时,可以采集目标终端设备的经度、纬度以及高度以得到至少一个第一地理位置,并且可以根据至少一个第一地理位置计算三维的第一运动轨迹。又例如,当用户携带目标终端设备在运动场跑步时,高度变化可以忽略,则可以采集目标终端设备的经度和纬度以得到至少一个第一地理位置,并且可以根据至少一个第一地理位置计算二维的第一运动轨迹。当第一地理位置包 括经度和纬度时,将至少一个的第一地理位置转换为至少一个第二地理位置的方式依然可以参考以上转换方式实施,重复之处不再赘述。
另外,现实中许多地形较为特殊,用户在特征明显的区域运动时,即使第二地理位置中不再包括经度、纬度和高度信息,根据至少一个第二地理位置计算得到第二运动轨迹的形状也可能较为明显,而可能出现直接根据轨迹被识别出真实地理位置的情况,则第一终端设备在对至少一个第一地理位置进行转换之前,可以不对全部第一地理位置信息进行数据处理,而随机抽取设定百分比的第一地理位置转换为第二地理位置,防止得到的至少一个第二地理位置构成的第二运动轨迹与特征明显的运动区域匹配,间接泄露用户的真实地理位置。
本申请一种可选的实施例中,第一终端设备确定目标数据,目标数据中包括至少一个第二地理位置。可选地,根据前述对初始运动数据的介绍可知,初始运动数据中除至少一个第一地理位置以外,还包括时间信息、速度信息、消耗能量信息以及个性化建议信息,则第一终端设备可以将初始运动数据中的至少一个第一地理位置替换为至少一个第二地理位置,并保留其它信息,得到目标数据。也就是说,目标数据中还可以包括时间信息、速度信息、消耗能量信息以及个性化建议信息等信息,进一步丰富分享数据内容。
一种可选的实施方式中,当初始运动数据包含速度信息时,第一终端设备还可以将任意两个相邻第一地理位置之间的速度信息,作为两个相邻第一地理位置中任一个第一地理位置对应的第二地理位置的速度信息,例如,可以将该速度信息作为采样时刻靠后的第一地理位置对应的第二地理位置的速度信息。其中,速度信息可以为第一终端设备根据两个相邻第一地理位置之间的采样时间间隔以及相邻两个第一地理位置之间的距离计算得到的速度。或者为了简化目标数据内容,可以预先划分多个速度区间,每个速度区间对应一个速度等级,第一终端设备计算得到用户在任意两个相邻第一地理位置之间对应的路线上移动的速度,确定该速度对应的速度等级,并将该速度等级作为速度信息。
举例来说,假设预先划分9个速度等级以及每个等级对应的速度区间如表1所示。
表1速度等级与速度区间对应表
速度等级 | 速度区间(m/s) |
S1 | [0,1.5) |
S2 | [1.5,2.5) |
S3 | [2.5,3.5) |
S4 | [3.5,4.5) |
S5 | [4.5,5.5) |
S6 | [5.5,6.5) |
S7 | [6.5,7.5) |
S8 | [7.5,8.5) |
S9 | [8.5,∞) |
假设第一地理位置(x
i,y
i,z
i)对应的采集时间为t
i,则可以根据以下公式计算该第一地理位置对应的第二地理位置的速度v
i。可以理解的是,该第二地理位置的对应的速度实际为该第二地理位置对应的第一地理位置与前一个第一地理位置之间的路线上用户移动的速度。
其中,distance()用于计算两个地理位置之间的实际距离,(x
i-1,y
i-1,z
i-1)为第i-1个第一地理位置,(x
i,y
i,z
i)为第i个第一地理位置,t
i为第i个第一地理位置的采样时刻,t
i-1为第i-1个第一地理位置的采样时刻。
第一终端设备可以根据计算得到的第i个第二地理位置对应的速度v
i,从表1中查找v
i对应的速度等级s
i,例如,计算得到的v
i=6m/s,则可以确定v
i对应的速度等级为S6。第一终端设备可以将确定出的速度等级作为第i个第二地理位置的速度信息,例如,假设初始运动数据中第i个第一地理位置对应的信息为(i,x
i,y
i,z
i,t
i)时,对初始运动数据进行脱敏处理,得到的目标数据中第i个第二地理位置对应的信息可以为(i,x’
i,y’
i,z’
i,s
i),其中,s
i为第i个第二地理位置对应的速度等级。
S603:第一终端设备发送目标数据。
一种可选的实施方式中,第一终端设备在确定出目标数据后,可以将目标数据发送给向第一终端设备请求获取运动数据的第二终端设备,或将目标数据发送给请求获取运动数据的应用。
例如,当第一终端设备为图4所示场景中的终端设备1时,第二终端设备可以为图4所示场景中的终端设备2,终端设备1可以通过蜂窝移动网络、无线保真(wireless fidelity,WiFi)网络、蓝牙网络等方式将确定出的目标数据发送给终端设备2。当第一终端设备为图5所示场景中的终端设备1时,终端设备1可以通过调用终端设备1的数据传输接口将确定出的目标数据发送至应用2。
第二终端设备在接收到第一终端设备发送的目标数据后,可以根据目标数据中包括的至少一个第二地理位置绘制用户的第二运动轨迹,并将第二运动轨迹在显示界面中进行显示。例如,假设第一终端设备中根据用户的初始运动数据绘制得到的第一运动轨迹为图1,则第二终端设备可以根据目标数据绘制如图8所示的第二运动轨迹图,图8中仅显示用户的第二运动轨迹,但第二终端设备不会获知用户真实的地理位置。从而在***露敏感的用户真实地理位置的情况下,第二终端设备可以按照第二终端设备的展示方式对用户的运动信息进行分析处理,既保证了运动数据分享的安全性,同时不影响第二终端设备的显示效果。
可选地,第二终端设备在显示第二运动轨迹时,可以为第二运动轨迹设置显示效果和显示样式,例如当目标数据中包括速度等级时,可以在第二运动轨迹中使用不同颜色的线段表示不同的速度等级,或者当用户操作光标停留在第二运动轨迹的某一段时,显示该段轨迹对应的速度等级。例如,图9为一种第二运动轨迹示意图,当用户操作光标停留在一段轨迹上时,显示该段轨迹对应的速度等级。
可以理解的是,第二终端设备在接收到目标数据后,可以将目标数据发送至第二终端设备上安装的应用,例如图4所示场景中的应用1。由第二终端设备上安装的应用对目标数据进行分析处理,例如在该应用的显示界面上显示第二运动轨迹;又例如将目标数据作为用户的运动数据参与该应用中对用户运动量排名等活动,如对用户的运动公里数或速度排名;再例如对目标数据进行分析,在该应用中向用户推荐运动项目等。
第一终端设备上的应用请求获取用户的运动数据,并接收到目标数据后,第一终端设 备上应用可根据目标数据进行显示第二运动轨迹等处理,具体可参见上述第二终端设备对目标数据的处理方式,重复之处不再赘述。
本申请实施例提供的数据处理方法,第一终端设备获取用户的初始运动数据,初始运动数据中包括至少一个第一地理位置,至少一个第一地理位置用于构成第一运动轨迹;第一终端设备发送目标数据,目标数据中包括至少一个第二地理位置,至少一个第二地理位置是根据至少一个第一地理位置生成的,至少一个第一地理位置和至少一个第二地理位置一一对应,进而可以通过至少一个第二地理位置表示至少一个第一地理位置的相对位置关系。通过该方案,第一终端设备可以将表示用户真实地理位置的至少一个第一地理位置转换为至少一个第二地理位置,至少一个第二地理位置可以构成第二运动轨迹,但第二运动轨迹和第一运动轨迹为具有相同或大致相同形状的运动轨迹,从而在运动数据中去除了用户的真实地理位置,但保留了至少一个第一地理位置的相对位置关系,在不影响数据完整性的同时保证数据分享的安全性。
通过上述对图5示出的应用场景介绍可知,本申请实施例还可以由第一服务器执行本申请实施例提供的数据处理方法,第一服务器可以为终端设备对应的服务器,或第一服务器还可以为终端设备上安装的应用对应的服务器。例如该第一服务器可以为图5所示场景中的服务器1。当第一服务器执行本申请实施例提供的数据处理方法时,可以参考图10,图10为本申请实施例提供的一种数据处理方法的流程图,该方法包括以下步骤:
S1001:第一服务器获取用户的初始运动数据。
可选地,初始运动数据中可以包括至少一个地理位置,任一个第一地理位置可以为目标终端设备在一个采样时刻所在的地理位置,每个第一地理位置可以包括目标终端设备在一个采样时刻所在位置的经度、纬度以及高度。初始运动数据中还可以包括运动参数信息和/或个性化建议信息,具体介绍可以参见S601,重复之处不再赘述。
一种可选的实施方式中,第一服务器获取到的初始运动数据可以为终端设备或应用上报给第一服务器的,第一服务器进行数据维护。例如,第一服务器为终端设备对应的服务器时,终端设备在采集到用户的初始运动数据后,将采集到的初始运动数据上报到第一服务器。又例如,终端设备上安装的应用在获取到用户的初始运动数据后,通过终端设备将获取到的初始运动数据发送给第一服务器。
一种可选的实施方式中,第一服务器可以在接收到终端设备发送的数据处理请求消息时,触发启动执行本申请实施例提供的数据处理方法,获取初始运动数据,并执行本申请实施例提供的数据处理方法。
又一种可选的实施方式中,第一服务器可以在接收到终端设备上报的初始运动数据后,确定用户的运动数据变更,触发启动执行本申请实施例提供的数据处理方法,获取初始运动数据。
S1002:第一服务器根据获取到的初始运动数据确定目标数据。
需要说明的是,S1002具体可以参见S602实施,重复之处不再赘述。
S1003:第一服务器发送目标数据。
举例来说,第一服务器为图5所示场景中的服务器1时,服务器1可以将目标数据发送给应用1,由应用1将目标数据发送给应用2;或者服务器1可以将目标数据发送给服务器2,由服务器2将目标数据发送给应用2;或者,应用1和应用2可以建立数据交互 协议,则服务器1可以将目标数据直接发送给应用2。
下面以一个具体实例对本申请实施例提供的数据处理方法进行进一步介绍,图11为本申请实施例提供的一种数据处理方法实例的流程图,该实例包括以下步骤:
S1101:可穿戴设备记录用户携带可穿戴设备跑步时的初始运动数据,初始运动数据中包含至少一个第一地理位置。
S1102:可穿戴设备通过蓝牙将初始运动数据同步到第一应用。
例如,第一应用可以为可穿戴设备厂家的应用,该第一应用可安装在可穿戴设备或用户的其它终端设备上。
可选地,由于可穿戴设备的存储空间和计算能力有限,第一应用在接收到可穿戴设备同步的初始运动数据后,可以根据初始运动数据生成用户训练效果、建议下一次运动恢复时间、运动改进建议等个性化建议信息,并将得到的以上个性化建议信息也增加到初始运动数据中。
S1103:第一应用根据初始运动数据计算用户的第一运动轨迹,并在第一应用的显示界面展示第一运动轨迹。
S1104:第一应用将初始运动数据同步到第一应用的服务器。
S1105:第一应用的服务器获取初始运动数据中至少一个第一地理位置,确定参考地理位置,并根据至少一个第一地理位置和参考地理位置,生成至少一个第二地理位置。
S1106:第一应用的服务器将初始运动数据中的至少一个第一地理位置替换为至少一个第二地理位置,得到目标数据。
S1107:第一应用的服务器将目标数据发送给第二应用的服务器。
S1108:第二应用的服务器保存目标数据,并对目标数据进行分析处理。
例如,第二应用支持用户运动量排名时,第二应用的服务器可以根据接收到的目标数据确定用户的运动量排名。
又例如,第二应用支持运动项目推荐,则第二应用的服务器可以对接收到的目标数据进行分析,确定可以为用户推荐的运动项目。
S1109:第二应用检测到用户触发的查看请求。
S1110:第二应用从第二应用的服务器获取目标数据。
S1111:第二应用根据目标数据计算用户的第二运动轨迹,并在第二应用的显示界面展示第二运动轨迹。
本申请还提供了一种数据处理装置1200,所述数据处理装置1200可以应用于图4所示场景中的终端设备1,还可以应用于图5所示场景中的终端设备1或服务器1,图12为所述数据处理装置1200的结构示意图,所述数据处理装置1200包括获取单元1201和收发单元1202。下面对数据处理装置1200中的各个单元的功能进行介绍。
所述获取单元1201,用于获取用户的初始运动数据,所述初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,所述至少一个第一地理位置用于构成第一运动轨迹;
所述收发单元1202,用于发送目标数据,所述目标数据中包括至少一个第二地理位置,所述至少一个第二地理位置是根据所述至少一个第一地理位置生成的,所述至少一个第一 地理位置和所述至少一个第二地理位置一一对应,所述至少一个第二地理位置用于构成第二运动轨迹,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状的运动轨迹。
在一种实施方式中,所述至少一个第二地理位置是根据所述至少一个第一地理位置和参考地理位置生成的,任一个第二地理位置用于指示所述第二地理位置对应的第一地理位置与所述参考地理位置之间的相对位置关系。
在一种实施方式中,所述至少一个第一地理位置中的每一个包括经度、纬度、高度中的至少一项。
在一种实施方式中,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状且满足缩放关系的运动轨迹。
在一种实施方式中,所述初始运动数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;
其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
在一种实施方式中,所述目标数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;
其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
在一种实施方式中,所述至少一个第一地理位置为用户携带所述目标终端设备发生位移时,在至少一个采样时刻采集所述目标终端设备的地理位置得到的。
在一种实施方式中,所述用户携带所述目标终端设备发生位移包括所述用户携带所述目标终端设备跑步、步行、骑行、登山或驾驶时发生的位移。
在一种实施方式中,所述数据处理装置1200还包括处理单元1203,所述处理单元1203用于根据以下方式确定所述参考地理位置:
确定所述至少一个第一地理位置中的中心地理位置,将所述中心地理位置作为所述参考地理位置;或者在所述至少一个第一地理位置中选择参考采样时刻对应的第一地理位置,将选择的第一地理位置作为所述参考地理位置;或者确定所述至少一个第一地理位置对应的地理区域中的标志地理位置,将确定出的标志地理位置作为所述参考地理位置。
在一种实施方式中,所述处理单元1203还用于:
根据以下方式生成所述至少一个第二地理位置:
计算所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离;根据所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离以及设定参数确定每个第一地理位置对应的第二地理位置;其中,所述设定参数用于对所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离进行缩放。
在一种实施方式中,所述目标数据中包括所述速度信息,所述处理单元1203还用于:
对所述至少一个第一地理位置中的目标地理位置执行以下步骤,所述目标地理位置为 所述至少一个第一地理位置中的每一个地理位置:确定所述目标地理位置与相邻地理位置之间的距离,以及所述目标地理位置与所述相邻地理位置之间的采样时间间隔;其中,所述相邻地理位置为在所述目标地理位置对应的目标采样时刻之前最后采样得到的第一地理位置或在所述目标采样时刻之后最先采样得到的第一地理位置;根据所述目标地理位置以及所述相邻地理位置之间的距离,以及所述采样时间间隔,计算所述目标终端设备的速度;根据所述目标终端设备的速度,确定所述目标终端设备的速度等级,并将所述目标终端设备的速度等级作为所述速度信息。
在一种实施方式中,所述数据处理方法应用于终端设备或服务器。
在一种实施方式中,在所述获取单元1201获取用户的初始运动数据之前,所述收发单元1202还用于:
接收到来自其它终端设备的数据请求消息,所述数据请求消息用于请求获取所述目标数据;或者检测到设定存储空间中新增所述初始运动数据。
本申请还提供了一种数据处理装置1300,图13为本申请实施例提供的一种数据处理装置1300的结构示意图,所述数据处理装置1300可以应用于图4所示场景中的终端设备1,还可以应用于图5所示场景中的终端设备1或服务器1。参阅图13所示,所述数据处理装置1300包括:处理器1301、存储器1302和总线1303。其中,处理器1301和存储器1302通过总线1303进行通信,也可以通过无线传输等其他手段实现通信。该存储器1302用于存储指令,该处理器1301用于执行该存储器1302存储的指令。该存储器1302存储程序代码,且处理器1301可以调用存储器1302中存储的程序代码执行以下操作:
获取用户的初始运动数据,所述初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,所述至少一个第一地理位置用于构成第一运动轨迹;发送目标数据,所述目标数据中包括至少一个第二地理位置,所述至少一个第二地理位置是根据所述至少一个第一地理位置生成的,所述至少一个第一地理位置和所述至少一个第二地理位置一一对应,所述至少一个第二地理位置用于构成第二运动轨迹,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状的运动轨迹。
在一种实施方式中,所述至少一个第二地理位置是根据所述至少一个第一地理位置和参考地理位置生成的,任一个第二地理位置用于指示所述第二地理位置对应的第一地理位置与所述参考地理位置之间的相对位置关系。
在一种实施方式中,所述至少一个第一地理位置中的每一个包括经度、纬度、高度中的至少一项。
在一种实施方式中,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状且满足缩放关系的运动轨迹。
在一种实施方式中,所述初始运动数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;
其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
在一种实施方式中,所述目标数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;
其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
在一种实施方式中,所述至少一个第一地理位置为用户携带所述目标终端设备发生位移时,在至少一个采样时刻采集所述目标终端设备的地理位置得到的。
在一种实施方式中,所述用户携带所述目标终端设备发生位移包括所述用户携带所述目标终端设备跑步、步行、骑行、登山或驾驶时发生的位移。
在一种实施方式中,所述处理器1301还用于根据以下方式确定所述参考地理位置:
确定所述至少一个第一地理位置中的中心地理位置,将所述中心地理位置作为所述参考地理位置;或者在所述至少一个第一地理位置中选择参考采样时刻对应的第一地理位置,将选择的第一地理位置作为所述参考地理位置;或者确定所述至少一个第一地理位置对应的地理区域中的标志地理位置,将确定出的标志地理位置作为所述参考地理位置。
在一种实施方式中,所述处理器1301还用于:
根据以下方式生成所述至少一个第二地理位置:
计算所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离;根据所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离以及设定参数确定每个第一地理位置对应的第二地理位置;其中,所述设定参数用于对所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离进行缩放。
在一种实施方式中,所述目标数据中包括所述速度信息,所述处理器1301还用于:
对所述至少一个第一地理位置中的目标地理位置执行以下步骤,所述目标地理位置为所述至少一个第一地理位置中的每一个地理位置:确定所述目标地理位置与相邻地理位置之间的距离,以及所述目标地理位置与所述相邻地理位置之间的采样时间间隔;其中,所述相邻地理位置为在所述目标地理位置对应的目标采样时刻之前最后采样得到的第一地理位置或在所述目标采样时刻之后最先采样得到的第一地理位置;根据所述目标地理位置以及所述相邻地理位置之间的距离,以及所述采样时间间隔,计算所述目标终端设备的速度;根据所述目标终端设备的速度,确定所述目标终端设备的速度等级,并将所述目标终端设备的速度等级作为所述速度信息。
在一种实施方式中,所述数据处理方法应用于终端设备或服务器。
在一种实施方式中,在获取用户的初始运动数据之前,所述处理器1301还用于:
接收到来自其它终端设备的数据请求消息,所述数据请求消息用于请求获取所述目标数据;或者检测到设定存储空间中新增所述初始运动数据。
可以理解,本申请图13中的存储器1302可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态 随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的***和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
基于以上实施例,本申请实施例还提供了一种数据处理***,所述数据处理***包括发送端和接收端;
所述发送端,用于获取用户的初始运动数据,所述初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,所述至少一个第一地理位置用于构成第一运动轨迹;发送目标数据,所述目标数据中包括至少一个第二地理位置,所述至少一个第二地理位置是根据所述至少一个第一地理位置生成的,所述至少一个第一地理位置和所述至少一个第二地理位置一一对应,所述至少一个第二地理位置用于构成第二运动轨迹,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状;
所述接收端,用于接收所述目标数据;根据所述目标数据生成所述第二运动轨迹,和/或对所述目标数据进行数据分析处理。
在一种实施方式中,所述至少一个第一地理位置中的每一个包括经度、纬度、高度中的至少一项。
在一种实施方式中,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状且满足一定缩放关系的运动轨迹。
在一种实施方式中,所述发送端与所述接收端为相同的终端设备;或者所述发送端与所述接收端为不同的终端设备;或者所述发送端与所述接收端为不同的服务器。
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现图6或图10所示的实施例提供的数据处理方法。
基于以上实施例,本申请实施例提供了一种芯片***,该芯片***包括处理器,用于支持计算机装置实现图6或图10所示的实施例提供的数据处理方法。在一种可能的设计中,所述芯片***还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片***,可以由芯片构成,也可以包含芯片和其他分立器件。
本领域内的技术人员应明白,本申请的实施例可提供为方法、***、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (18)
- 一种数据处理方法,其特征在于,所述方法包括:获取用户的初始运动数据,所述初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,所述至少一个第一地理位置用于构成第一运动轨迹;发送目标数据,所述目标数据中包括至少一个第二地理位置,所述至少一个第二地理位置是根据所述至少一个第一地理位置生成的,所述至少一个第一地理位置和所述至少一个第二地理位置一一对应,所述至少一个第二地理位置用于构成第二运动轨迹,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状的运动轨迹。
- 如权利要求1所述的方法,其特征在于,所述至少一个第二地理位置是根据所述至少一个第一地理位置和参考地理位置生成的,任一个第二地理位置用于指示所述第二地理位置对应的第一地理位置与所述参考地理位置之间的相对位置关系。
- 如权利要求1或2所述的方法,其特征在于,所述至少一个第一地理位置中的每一个包括经度、纬度、高度中的至少一项。
- 如权利要求1至3任一项所述的方法,其特征在于,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状且满足缩放关系的运动轨迹。
- 如权利要求1至4任一项所述的方法,其特征在于,所述初始运动数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
- 如权利要求1至5任一项所述的方法,其特征在于,所述目标数据中还包括时间信息、速度信息、消耗能量信息以及个性化建议信息中的至少一项;其中,所述时间信息用于指示所述至少一个第一地理位置对应的至少一个采样时刻和/或所述用户的运动时长;所述速度信息用于指示所述用户在运动过程中的平均速度和/或在所述至少一个采样时刻的运动速度;所述消耗能量信息用于指示所述用户在运动过程中消耗的能量;所述个性化建议信息用于指示对所述用户的运动分析结果。
- 如权利要求1至6任一项所述的方法,其特征在于,所述至少一个第一地理位置为所述用户携带所述目标终端设备发生位移时,在至少一个采样时刻采集所述目标终端设备的地理位置得到的。
- 如权利要求7所述的方法,其特征在于,所述用户携带所述目标终端设备发生位移包括所述用户携带所述目标终端设备跑步、步行、骑行、登山或驾驶时发生的位移。
- 如权利要求2所述的方法,其特征在于,所述方法还包括:根据以下方式确定所述参考地理位置:确定所述至少一个第一地理位置中的中心地理位置,将所述中心地理位置作为所述参考地理位置;或者在所述至少一个第一地理位置中选择参考采样时刻对应的第一地理位置,将选择的第一地理位置作为所述参考地理位置;或者确定所述至少一个第一地理位置对应的地理区域中的标志地理位置,将确定出的标志地理位置作为所述参考地理位置。
- 如权利要求2或9所述的方法,其特征在于,所述方法还包括:根据以下方式生成所述至少一个第二地理位置:计算所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离;根据所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离以及设定参数确定每个第一地理位置对应的第二地理位置;其中,所述设定参数用于对所述至少一个第一地理位置中每个第一地理位置与所述参考地理位置之间的距离进行缩放。
- 如权利要求6所述的方法,其特征在于,所述目标数据中包括所述速度信息,所述方法还包括:对所述至少一个第一地理位置中的目标地理位置执行以下步骤,所述目标地理位置为所述至少一个第一地理位置中的每一个地理位置:确定所述目标地理位置与相邻地理位置之间的距离,以及所述目标地理位置与所述相邻地理位置之间的采样时间间隔;其中,所述相邻地理位置为在所述目标地理位置对应的目标采样时刻之前最后采样得到的第一地理位置或在所述目标采样时刻之后最先采样得到的第一地理位置;根据所述目标地理位置以及所述相邻地理位置之间的距离,以及所述采样时间间隔,计算所述目标终端设备的速度;根据所述目标终端设备的速度,确定所述目标终端设备的速度等级,并将所述目标终端设备的速度等级作为所述速度信息。
- 如权利要求1至11任一项所述的方法,其特征在于,所述数据处理方法应用于终端设备或服务器。
- 如权利要求1至12任一项所述的方法,其特征在于,在所述获取用户的初始运动数据之前,还包括:接收到来自其它终端设备的数据请求消息,所述数据请求消息用于请求获取所述目标数据;或者检测到设定存储空间中新增所述初始运动数据。
- 一种数据处理***,其特征在于,所述数据处理***包括发送端和接收端;所述发送端,用于获取用户的初始运动数据,所述初始运动数据中包括至少一个第一地理位置,任一个第一地理位置为目标终端设备在一个采样时刻所在的地理位置,所述至少一个第一地理位置用于构成第一运动轨迹;发送目标数据,所述目标数据中包括至少一个第二地理位置,所述至少一个第二地理位置是根据所述至少一个第一地理位置生成的,所述至少一个第一地理位置和所述至少一个第二地理位置一一对应,所述至少一个第二地理位置用于构成第二运动轨迹,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状;所述接收端,用于接收所述目标数据;根据所述目标数据生成所述第二运动轨迹,和/或对所述目标数据进行数据分析处理。
- 如权利要求14所述的数据处理***,其特征在于,所述至少一个第一地理位置中 的每一个包括经度、纬度、高度中的至少一项。
- 如权利要求14或15所述的数据处理***,其特征在于,所述第一运动轨迹与所述第二运动轨迹为具有相同或大致相同形状且满足缩放关系的运动轨迹。
- 如权利要求14所述的数据处理***,其特征在于,所述发送端与所述接收端为相同的终端设备;或者所述发送端与所述接收端为不同的终端设备;或者所述发送端与所述接收端为不同的服务器。
- 一种数据处理装置,其特征在于,包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合,所述至少一个处理器用于读取所述至少一个存储器所存储的计算机程序,以执行如权利要求1-13中任意一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110426400.9A CN115221256A (zh) | 2021-04-20 | 2021-04-20 | 一种数据处理方法、***及装置 |
CN202110426400.9 | 2021-04-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022222743A1 true WO2022222743A1 (zh) | 2022-10-27 |
Family
ID=83605582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/085064 WO2022222743A1 (zh) | 2021-04-20 | 2022-04-02 | 一种数据处理方法、***及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115221256A (zh) |
WO (1) | WO2022222743A1 (zh) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012089911A1 (en) * | 2010-12-29 | 2012-07-05 | Nokia Corporation | Method and apparatus for context based on spatial trails |
CN104142992A (zh) * | 2014-07-29 | 2014-11-12 | 联想(北京)有限公司 | 信息处理方法和装置 |
CN104199936A (zh) * | 2014-09-09 | 2014-12-10 | 联想(北京)有限公司 | 一种信息的处理方法和装置 |
CN104581636A (zh) * | 2015-01-16 | 2015-04-29 | 广东欧珀移动通信有限公司 | 移动终端的智能求救方法及*** |
CN105554704A (zh) * | 2015-12-21 | 2016-05-04 | 西安电子科技大学 | 推荐***中基于假轨迹的位置隐私保护方法 |
CN109085625A (zh) * | 2018-07-11 | 2018-12-25 | 深圳市沃特沃德股份有限公司 | 基于智能穿戴设备的运动轨迹显示方法和*** |
-
2021
- 2021-04-20 CN CN202110426400.9A patent/CN115221256A/zh active Pending
-
2022
- 2022-04-02 WO PCT/CN2022/085064 patent/WO2022222743A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012089911A1 (en) * | 2010-12-29 | 2012-07-05 | Nokia Corporation | Method and apparatus for context based on spatial trails |
CN104142992A (zh) * | 2014-07-29 | 2014-11-12 | 联想(北京)有限公司 | 信息处理方法和装置 |
CN104199936A (zh) * | 2014-09-09 | 2014-12-10 | 联想(北京)有限公司 | 一种信息的处理方法和装置 |
CN104581636A (zh) * | 2015-01-16 | 2015-04-29 | 广东欧珀移动通信有限公司 | 移动终端的智能求救方法及*** |
CN105554704A (zh) * | 2015-12-21 | 2016-05-04 | 西安电子科技大学 | 推荐***中基于假轨迹的位置隐私保护方法 |
CN109085625A (zh) * | 2018-07-11 | 2018-12-25 | 深圳市沃特沃德股份有限公司 | 基于智能穿戴设备的运动轨迹显示方法和*** |
Also Published As
Publication number | Publication date |
---|---|
CN115221256A (zh) | 2022-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11892299B2 (en) | Information prompt method and electronic device | |
US20170180489A1 (en) | Electronic device and server for providing service related to internet of things device | |
WO2022089207A1 (zh) | 一种跨设备应用交互方法、电子设备与服务器 | |
CN114466102B (zh) | 显示应用界面的方法、相关装置以及交通信息显示*** | |
WO2022068887A1 (zh) | 运动轨迹的显示方法及电子设备 | |
US11763023B2 (en) | Information acquisition method and device, and storage medium | |
WO2022166435A1 (zh) | 分享图片的方法和电子设备 | |
WO2022121445A1 (zh) | 添加widget的方法、装置及计算机可读存储介质 | |
US11019598B1 (en) | Paging indication method and device | |
CN114741256A (zh) | 传感器监听方法、装置及终端设备 | |
WO2022222743A1 (zh) | 一种数据处理方法、***及装置 | |
CN113790732B (zh) | 位置信息的生成方法及装置 | |
CN116204254A (zh) | 一种批注页面生成方法、电子设备及存储介质 | |
CN117009005A (zh) | 一种显示方法、汽车和电子设备 | |
CN112014866B (zh) | 运动轨迹记录方法及相关设备 | |
CN113790731B (zh) | 速度信息的生成方法及装置 | |
US12056412B2 (en) | Image display method and electronic device | |
CN116095230B (zh) | 应用程序推荐方法和终端设备、可读存储介质 | |
CN116095791B (zh) | 搜索网络的方法和终端设备 | |
CN116738033B (zh) | 用于推荐服务的方法和装置 | |
CN117149321B (zh) | 基于多设备协同的游戏交互方法、装置以及存储介质 | |
WO2022267786A1 (zh) | 一种快捷图标展示方法与终端设备 | |
KR20150039634A (ko) | 전자 장치 및 전자 장치의 컨텐츠 제공 방법 | |
CN118170966A (zh) | 一种推荐方法、电子设备及服务器 | |
CN114979949A (zh) | 飞行状态识别方法和飞行状态识别装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22790852 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: 22790852 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.04.2024) |