WO2024131584A1 - Trajectory playback method and apparatus - Google Patents

Trajectory playback method and apparatus Download PDF

Info

Publication number
WO2024131584A1
WO2024131584A1 PCT/CN2023/137969 CN2023137969W WO2024131584A1 WO 2024131584 A1 WO2024131584 A1 WO 2024131584A1 CN 2023137969 W CN2023137969 W CN 2023137969W WO 2024131584 A1 WO2024131584 A1 WO 2024131584A1
Authority
WO
WIPO (PCT)
Prior art keywords
trajectory
track
point
map
motion
Prior art date
Application number
PCT/CN2023/137969
Other languages
French (fr)
Chinese (zh)
Inventor
牟桐
余兵
曹能华
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024131584A1 publication Critical patent/WO2024131584A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation

Definitions

  • the embodiments of the present application relate to the field of smart life technology, and in particular to a trajectory playback method and device.
  • the trajectory playback method usually rotates the screen according to the center point and starting point of the motion trajectory to dynamically display the user's motion trajectory.
  • this method plays the trajectory under the 3D trajectory, the trajectory will overflow the visible area during the drawing process, making it impossible to fully observe the user's trajectory, and thus unable to provide users with a good user experience.
  • the embodiments of the present application provide a trajectory playback method and device, which are used to provide a technical solution for dynamically playing a trajectory on a three-dimensional map, which can reduce or avoid the problem of trajectory line overflow and improve the user's dynamic trajectory experience.
  • the embodiment of the present application provides a trajectory playback method, which is described below with a terminal device that plays a motion trajectory as the execution subject, and the method includes: the terminal device determines the trajectory playback information of the user's motion trajectory according to the user's motion data; wherein the motion data includes the longitude, latitude and altitude of the motion trajectory; the trajectory playback information includes a trajectory point sequence, lens data and a map control coefficient; the lens data is used to determine the playback angle of the motion trajectory, and the map control coefficient is used to characterize the display ratio of the map. Then, the terminal device plays the motion trajectory in the map according to the trajectory playback information.
  • the terminal device determines the trajectory sequence, lens data and map control coefficient of the motion trajectory according to the user's motion data, so that when the motion trajectory is played, it can provide a suitable playback perspective and map display ratio for the motion trajectory, thereby reducing or avoiding the problem of trajectory line overflow, improving the integrity of the motion trajectory playback, and further improving the user's dynamic trajectory experience.
  • the terminal device determines the trajectory attributes of the motion trajectory according to the motion data, wherein the trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length.
  • the terminal device determines the trajectory playback information according to the trajectory attributes.
  • the terminal device determines the trajectory playback information according to the trajectory point position, the altitude of the trajectory point and the trajectory length of the motion trajectory, so that the trajectory playback information can be more consistent with the user's motion trajectory, thereby reducing or avoiding the problem of trajectory line overflow.
  • the terminal device obtains the trajectory point sequence based on the trajectory point position in the trajectory attribute.
  • the terminal device determines a map control coefficient according to at least one trajectory attribute; wherein the map control coefficient includes a zoom ratio and an elevation coefficient, and the elevation coefficient is used to characterize the relative change of elevation in the map.
  • the terminal device obtains a trajectory point sequence according to the trajectory point position, and determines a scaling ratio and an elevation coefficient according to at least one trajectory attribute, thereby providing a data basis for the subsequent playback of the motion trajectory.
  • the terminal device can accurately determine the scaling ratio suitable for the motion trajectory based on the trajectory length; and the terminal device can determine the elevation coefficient suitable for the motion trajectory based on the altitude and motion type of the trajectory point, thereby reducing or avoiding the problem of trajectory line overflow when the motion trajectory is played.
  • the terminal device determines lens data based on the type of movement; the lens data includes the lens angle.
  • the terminal device can determine a lens angle that is more suitable for the motion trajectory according to the type of motion.
  • the terminal device determines lens data according to the position of the trajectory point and the altitude of the trajectory point; the lens data includes a camera path; and the camera path includes a lens angle and a camera position.
  • the terminal device determines the camera path according to the position and altitude of the trajectory point, so that when the trajectory is played, the viewing perspective of the motion trajectory can be transformed into a movie perspective, reducing the occlusion of the motion trajectory and thus improving the user experience.
  • the terminal device obtains the initial track according to the position of the track point; the terminal device extracts multiple track points from the initial track as the camera visual focus according to the set track point distance interval. Then, the terminal device determines the track area corresponding to the initial track in the map, and uses the highest point in the track area as the occlusion point. The terminal device determines the camera path according to the camera visual focus and the occlusion point.
  • the terminal device determines the camera path based on the camera's visual focus and occlusion points, thereby reducing occlusion of the motion trajectory, increasing the visualization of the motion trajectory, and thus improving the user experience.
  • the terminal device determines the viewing angle area of the observation point according to the camera visual focus; wherein the observation point is the position point of the camera when the camera visual focus coincides with the camera visual focus.
  • the terminal device uses the position of the observation point and the lens angle of the observation point as the camera path.
  • the camera path determined by the terminal device can reduce or avoid occlusion of the motion trajectory when the motion trajectory is played, thereby increasing the visualization of the motion trajectory.
  • the terminal device adjusts the map according to the map control coefficient and sets the lens based on the lens data; then, the terminal device plays the motion trajectory drawn according to the trajectory point sequence in the adjusted map based on the lens.
  • the terminal device plays the motion trajectory in the adjusted lens and the adjusted map, thereby ensuring the integrity of the motion trajectory playback and improving the user experience.
  • the terminal device determines the length of the drawn track and the altitude of the drawn track points; determines the zoom ratio of the map according to the length of the drawn track; and determines the elevation coefficient of the map according to the altitude of the drawn track points. Then, the terminal device adjusts the map according to the zoom ratio of the map and the elevation coefficient of the map.
  • the terminal device determines the elevation coefficient and zoom ratio of the map according to the trajectory length of the drawn trajectory and the altitude of the drawn trajectory points to adjust the map so that the display ratio of the map changes as the motion trajectory is drawn, thereby ensuring the integrity of the motion trajectory.
  • an embodiment of the present application further provides a track playback device, the device comprising:
  • a playback unit is used to play the motion trajectory in the map according to the trajectory playback information.
  • trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length;
  • the track playing information is determined according to the track attribute.
  • the trajectory attribute when the motion data includes a motion type, the trajectory attribute also includes the motion type.
  • the map control coefficient is determined according to at least one of the trajectory attributes; the map control coefficient includes a zoom ratio and an elevation coefficient; the elevation coefficient is used to characterize the relative change of the elevation in the map.
  • the elevation coefficient is determined according to the altitude of the trajectory point and the movement type; the elevation coefficient is positively correlated with the altitude difference of the trajectory point.
  • the determining unit is specifically configured to:
  • the determining unit is specifically configured to:
  • the camera path is determined according to the camera visual focus and the occlusion point.
  • the playback unit is specifically used for:
  • a motion trajectory drawn according to the sequence of trajectory points is played in the adjusted map.
  • the map is adjusted according to a zoom ratio of the map and an elevation factor of the map.
  • an embodiment of the present application provides a computer-readable storage medium, which stores a computer program (also referred to as code, or instructions) that, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect described above.
  • a computer program also referred to as code, or instructions
  • an embodiment of the present application provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect described above.
  • a computer program also referred to as code, or instructions
  • FIG1 is a schematic diagram of a possible hardware structure of a terminal device provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of a flow chart of a track playback method provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a trajectory line provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a trajectory line and an occlusion line provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of a scene of an observation point provided in an embodiment of the present application.
  • FIG7 is a schematic diagram of a possible camera path provided in an embodiment of the present application.
  • FIG8 is an example diagram of a possible motion trajectory playback situation provided by an embodiment of the present application.
  • FIG9 is an example diagram of another possible motion track playback situation provided by an embodiment of the present application.
  • FIG10 is a schematic diagram of the architecture of a track playback system provided in an embodiment of the present application.
  • FIG11 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
  • FIG. 12 is a schematic diagram of the structure of a track playback device provided in an embodiment of the present application.
  • the terminal device can draw and play the exercise trajectory based on the exercise data collected by the portable terminal to display the exercise conditions.
  • the terminal device can be a portable terminal device, such as a mobile phone, a bracelet, a watch, etc., or it can be other terminal devices, such as a computer, etc.
  • one implementation method of trajectory playback is to obtain the user's motion data, determine the trajectory point sequence based on the motion data, draw the motion trajectory based on the trajectory point sequence, and rotate the screen according to the correspondence between the midpoint and the starting point in the trajectory point sequence during the drawing of the motion trajectory.
  • this implementation method only displays the motion trajectory by rotating the screen, which makes it impossible to fully display the motion trajectory on the screen and observe the motion trajectory completely.
  • an embodiment of the present application provides a trajectory playback method and device.
  • the trajectory point sequence, the lens data of the trajectory, and the control coefficient of the map can be determined according to the motion trajectory.
  • the terminal device draws the user's trajectory according to the trajectory point sequence, and dynamically plays the motion trajectory according to the lens data and the control coefficient of the map.
  • the terminal device can also determine the camera path based on the motion trajectory and the trajectory area, and play the user's motion trajectory based on the camera path and the motion trajectory. In this way, through the method provided by this application, the playback integrity of the motion trajectory can be guaranteed, and the user experience of the user's dynamic trajectory can be improved.
  • the terminal device of the embodiment of the present application can be a device with display capability such as smart home devices (e.g., smart TVs, smart screens, etc.), mobile phones, tablet computers, wearable devices (e.g., bracelets, watches, etc.), augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc.
  • smart home devices e.g., smart TVs, smart screens, etc.
  • mobile phones e.g., tablet computers, wearable devices (e.g., bracelets, watches, etc.), augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc.
  • UMPCs ultra-mobile personal computers
  • PDAs personal digital assistants
  • the terminal device can communicate with a wearable device on the user's hand or a wearable device on the user's foot to obtain the user's motion data and realize dynamic playback of the user's motion trajectory; wherein, the terminal device can also be a wearable device with a display unit on the user's hand.
  • the terminal device to which the present application can be applied includes but is not limited to a terminal device equipped with Or terminal devices of other operating systems.
  • FIG1 shows a schematic diagram of the hardware structure of a possible terminal device.
  • the terminal device 100 includes: a radio frequency (RF) circuit 110, a power supply 120, a processor 130, a memory 140, an input unit 150, a display unit 160, an audio circuit 170, a communication interface 180, and a wireless fidelity (Wi-Fi) module 190 and other components.
  • RF radio frequency
  • the terminal device 100 provided in the embodiment of the present application may include more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in FIG1 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application-specific integrated circuits.
  • the RF circuit 110 can be used for receiving and sending data during communication or calls. In particular, after receiving downlink data from the base station, the RF circuit 110 sends it to the processor 130 for processing; in addition, the uplink data to be sent is sent to the base station.
  • the RF circuit 110 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
  • LNA low noise amplifier
  • the RF circuit 110 can also communicate with other devices through a wireless communication network.
  • the wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • email short messaging service
  • Wi-Fi technology is a short-range wireless transmission technology.
  • the terminal device 100 can connect to an access point (AP) through the Wi-Fi module 190 to access the data network.
  • the Wi-Fi module 190 can be used for receiving and sending data during the communication process.
  • the terminal device 100 can also be connected to the user's portable device through the Wi-Fi module 190 to achieve information interaction, such as receiving motion data collected by the portable device in the user's hand.
  • the terminal device 100 can be physically connected to other devices through the communication interface 180.
  • the communication interface 180 is connected to the communication interface of the other device through a cable to achieve data transmission between the terminal device 100 and the other device.
  • the terminal device 100 can implement communication services, for example, it can interact with a portable device, so the terminal device 100 needs to have a data transmission function, that is, the terminal device 100 needs to include a communication module.
  • FIG1 shows communication modules such as the RF circuit 110, the Wi-Fi module 190, and the communication interface 180, it is understandable that at least one of the above components or other communication modules (such as a Bluetooth module) for implementing communication exists in the terminal device 100 for data transmission.
  • the terminal device 100 when the terminal device 100 is a mobile phone, the terminal device 100 may include the RF circuit 110, and may also include the Wi-Fi module 190, or may include a Bluetooth module (not shown in FIG. 1 ); when the terminal device 100 is a computer, the terminal device 100 may include the communication interface 180, and may also include the Wi-Fi module 190, or may include a Bluetooth module (not shown in FIG. 1 ); when the terminal device 100 is a tablet computer, the terminal device 100 may include the Wi-Fi module, or may include a Bluetooth module (not shown in FIG. 1 ).
  • the memory 140 can be used to store software programs and modules.
  • the processor 130 executes various functional applications and data processing of the terminal device 100 by running the software programs and modules stored in the memory 140.
  • the memory 140 may mainly include a program storage area and a data storage area.
  • the program storage area can store an operating system (mainly including software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer, etc.).
  • the memory 140 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • a non-volatile memory such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 150 can be used to receive the editing operations of various types of data objects such as digital or character information input by the user, and generate key signal input related to the user settings and function control of the terminal device 100.
  • the input unit 150 may include a touch panel 151 and other input devices 152.
  • the other input devices 152 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
  • function keys such as volume control keys, switch keys, etc.
  • trackball such as a mouse, a joystick, etc.
  • the display unit 160 can be used to display information input by the user or information provided to the user and various menus of the terminal device 100.
  • the display unit 160 is the display system of the terminal device 100, which is used to present an interface and realize human-computer interaction.
  • the display unit 160 may include a display panel 161.
  • the display panel 161 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • the display unit 160 is set on the terminal device, and the motion data uploaded by each portable device can be displayed through the display unit 160, or if the terminal device is some portable devices, the motion data can be displayed through the display unit 160, for example, the user's motion trajectory can be displayed on the mobile phone.
  • the processor 130 is the control center of the terminal device 100, and uses various interfaces and lines to connect various components, and executes various functions and processes data of the terminal device 100 by running or executing software programs and/or modules stored in the memory 140, and calling data stored in the memory 140, thereby realizing various services based on the terminal device 100.
  • the processor 130 is used to implement the method provided in the embodiment of the present application, so as to realize dynamic playback of motion trajectories, etc.
  • the terminal device 100 also includes a power supply 120 (such as a battery) for supplying power to various components.
  • a power supply 120 (such as a battery) for supplying power to various components.
  • the power supply 120 can be logically connected to the processor 130 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
  • the terminal device 100 further includes an audio circuit 170, a microphone 171 and a speaker 172, which can provide an audio interface between the user and the terminal device 100.
  • the audio circuit 170 can be used to convert audio data into a signal that can be recognized by the speaker 172, and transmit the signal to the speaker 172, which is converted into a sound signal for output by the speaker 172.
  • the microphone 171 is used to collect external sound signals (such as the sound of a person speaking, or other sounds, etc.), and convert the collected external sound signals into signals that can be recognized by the audio circuit 170, and send them to the audio circuit 170.
  • the audio circuit 170 can also be used to convert the signal sent by the microphone 171 into audio data, and then output the audio data to the RF circuit 110 to send it to, for example, another terminal device, or output the audio data to the memory 140 for subsequent further processing.
  • the terminal device 100 may also include at least one sensor, camera, etc., which will not be described in detail herein.
  • the at least one sensor may include but is not limited to a pressure sensor, an air pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
  • the operating system (OS) involved in the embodiment of the present application is the most basic system software running on the terminal device 100. Taking a mobile phone as an example, the operating system can be HarmonyOS or Android system or IOS system.
  • the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes an operating system adopting a layered architecture as an example to exemplify the software structure of the terminal device 100.
  • FIG2 is a block diagram of the software structure of a terminal device provided in an embodiment of the present application.
  • the software structure of the terminal device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the operating system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime and system library, the kernel layer, and the hardware layer.
  • the application layer may include a series of application packages. As shown in Figure 2, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, third-party applications may include WLAN, music, calls, Bluetooth, video, etc.
  • UI user interface
  • third-party applications may include WLAN, music, calls, Bluetooth, video, etc.
  • applications can be developed using the Java language by calling the application programming interface (API) provided by the application framework layer.
  • API application programming interface
  • Developers can interact with the underlying layers of the operating system (such as the hardware layer, kernel layer, etc.) through the application framework layer to develop their own applications.
  • the application framework layer is mainly a series of services and management systems for the operating system.
  • the application framework layer provides an application programming interface and a programming framework for the applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in FIG2 , the application framework layer may include a shortcut icon management module, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
  • the shortcut icon management module is used to manage the shortcut icons displayed on the terminal device, such as creating shortcut icons, removing shortcut icons, monitoring whether the shortcut icons meet the display conditions, etc.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • the content provider is used to store and obtain data and make the data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions for terminal devices, such as the management of call status (including answering, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
  • the application framework layer is mainly responsible for calling the service interface for communication with the hardware layer to pass the user's operation request to the hardware layer, and the operation request may include the user playing the motion trajectory through the display unit 160, etc.
  • the runtime includes the core library and the virtual machine.
  • the runtime is responsible for the scheduling and management of the operating system.
  • the core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system.
  • the application layer and the application framework layer run in the virtual machine.
  • 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 object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • functional modules such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • the surface manager is used to manage the display subsystem and provide the 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 static image files, etc.
  • 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.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the three-dimensional graphics processing library may be used to draw a three-dimensional motion trajectory image
  • the 2D graphics engine may be used to draw a two-dimensional motion trajectory image
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the hardware layer can include various types of sensors, such as accelerometers, gyroscopes, touch sensors, etc.
  • the terminal device 100 can run multiple applications at the same time.
  • one application can correspond to one process, and in a more complex way, one application can correspond to multiple processes.
  • Each process has a process number (process ID).
  • At least one refers to one or more
  • plural refers to two or more.
  • “And/or” describes the association relationship of associated objects, indicating that three relationships may exist.
  • a and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
  • the character “/” generally indicates that the objects associated before and after are in an “or” relationship.
  • “At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items.
  • At least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
  • the “multiple” involved in the embodiments of the present application refers to greater than or equal to two.
  • terminal device in the embodiments of the present application, can be used interchangeably, that is, to refer to various devices that can be used to implement the embodiments of the present application.
  • the hardware structure of the terminal device can be as shown in Figure 1, and the software architecture can be as shown in Figure 2, wherein the software programs and/or modules corresponding to the software architecture in the terminal device can be stored in the memory 140, and the processor 130 can run the software programs and applications stored in the memory 140 to execute the process of a trajectory playback method provided in an embodiment of the present application.
  • FIG3 is a flow chart of a track playback method provided by the embodiment of the present application.
  • the flow chart includes:
  • Step 301 The terminal device determines the track playback information of the user's track according to the user's sports data.
  • the terminal device may be a portable terminal device, such as a mobile phone, a sports bracelet, and the like.
  • the motion data includes, but is not limited to, the type of motion, the longitude of the motion track, the latitude of the motion track, the speed, the altitude, and the accuracy of the track points.
  • the track playback information includes, but is not limited to, the track point sequence, the lens data, and the map control coefficient.
  • the lens data is used to determine the playback angle of the motion track
  • the map control coefficient is used to characterize the display ratio of the map.
  • the trajectory points in the trajectory point sequence are sorted according to the acquisition time, and the trajectory points in the trajectory point sequence can form a motion trajectory.
  • the user's motion data recorded by the terminal device may be stored in the memory of the terminal device.
  • the terminal device may obtain the user's motion data from other devices.
  • the terminal device obtains the user's motion data from a sports bracelet.
  • the terminal device may determine the track playback information through the following steps:
  • the terminal device determines the trajectory attributes of the motion trajectory based on the motion data.
  • the track attributes include but are not limited to: the location of the track point, the altitude of the track point, and the track length.
  • the terminal device after preprocessing the motion data, performs feature value recognition on the motion data to obtain trajectory attributes.
  • the terminal device uses the longitude and latitude of the motion track in the motion data as the position of the track point. In addition, the terminal device can also determine the track length according to the longitude and latitude of the motion track.
  • the terminal device may also use the motion type as a trajectory attribute.
  • the trajectory attribute may also include a trajectory point terrain.
  • the terminal device may also obtain terrain data on a map based on the longitude and latitude of the trajectory point in the motion data, and use the obtained terrain data as the trajectory point terrain. For example, when the longitude and latitude of the trajectory point in the motion data correspond to a mountainous terrain on the map, the mountainous terrain is used as the trajectory point terrain.
  • A2 The terminal device determines the track playback information according to the track attributes.
  • the map control coefficients include but are not limited to elevation coefficient and zoom ratio.
  • the terminal device After determining the trajectory attributes, the terminal device determines the trajectory point sequence, lens data and map control coefficient according to the obtained trajectory attributes.
  • the terminal device may obtain a trajectory point sequence based on the trajectory point position. Used to draw motion trajectories.
  • the lens data may include a lens angle or a camera path. Furthermore, the two conditions of the lens data are respectively applicable to different situations. The following describes the process of determining the lens data according to the above two situations.
  • Case 1 The lens data includes the lens angle.
  • the lens when the lens data includes a lens angle, the lens is visually focused on a track point in the track point sequence.
  • the terminal device can determine the lens angle according to the type of movement.
  • the terminal device may determine the lens angle based on a preset correspondence between the sport type and the lens angle. For example, when the terminal device determines that the sport type is running, the lens angle is determined to be 45°.
  • the terminal device may also determine the lens angle according to the correspondence between the track point terrain and the lens angle. For example, when the terminal device determines that the track point terrain is a mountain, the lens angle is determined to be 45°.
  • the lens data includes a camera path, where the camera path includes a camera position and a lens angle.
  • the terminal device may determine the camera path according to the position of the track point and the altitude of the track point. In addition, the terminal device may determine the camera path by the following steps:
  • the terminal device obtains the initial trajectory based on the position of the trajectory point.
  • the initial trajectory may be a trajectory composed of trajectory points in a trajectory point sequence, or may be a trajectory composed of trajectory points corresponding to trajectory point positions.
  • the terminal device extracts multiple trajectory points from the initial trajectory as the camera visual focus according to the set trajectory point distance interval.
  • the terminal device may obtain trajectory points in the initial trajectory every 10 meters, and connect the obtained trajectory points to obtain a trajectory line.
  • the terminal device determines the camera path according to the camera visual focus.
  • the terminal device determines the trajectory area corresponding to the initial trajectory in the map, and uses the highest point in the trajectory area as the occlusion point.
  • the terminal device may determine the track area corresponding to the initial track in the map according to the track point position, and the terminal device obtains the highest point in the track area and uses the highest point in the track area as the blocking point.
  • the terminal device determines the highest point in the trajectory area corresponding to the initial trajectory, it connects the highest points in the altitude with a dotted line to form an occlusion line.
  • the occlusion line There is an overlap between the occlusion line and the trajectory line in Figure 5, indicating that the terrain in the trajectory area will occlude the trajectory point.
  • the terminal device determines the camera path based on the camera visual focus and occlusion points.
  • the terminal device may establish a buffer zone outside the initial trajectory to generate a camera path.
  • the terminal device determines the viewing angle area of the observation point according to the visual focus of the camera, wherein the observation point is the position point of the camera when the visual focus of the camera coincides with the visual focus of the camera.
  • the terminal device may determine the camera path by determining whether there is an occlusion point in the viewing area from the observation point to the camera visual focus.
  • the initial position of the observation point is located on the connecting line between the camera visual focus and the occlusion point.
  • the terminal device determines that there is an occlusion point in the viewing angle area from the observation point to the camera visual focus, the terminal device moves the position of the observation point and changes the lens angle of the observation point until there is no occlusion point in the viewing angle area.
  • the terminal device determines that there is no occlusion point in the viewing angle area from the observation point to the camera visual focus, uses the position and the lens angle of the observation point as the camera path.
  • the terminal device determines multiple camera positions and lens angles according to the visual focal points of multiple cameras, connects the position points of the obtained multiple camera positions to form a camera path, and determines the lens action according to the lens angle corresponding to each position point.
  • the trajectory line formed by the trajectory point there is an overlap between the trajectory line formed by the trajectory point and the occlusion line formed by the occlusion.
  • the triangle in FIG6 represents the observation point of the camera.
  • the terminal device adjusts the position and viewing angle of the observation point so that the viewing angle from the observation point to the trajectory point passes through the occlusion, thereby achieving the purpose that the occlusion cannot block the trajectory point.
  • the terminal device generates a camera path based on the determined camera position and lens angle.
  • the camera path is located outside the trajectory line and the occlusion line.
  • the camera path is located outside the trajectory line and the occlusion line, and the camera's perspective world on the camera path crosses the occlusion line to reach the trajectory line, and does not occlude the trajectory point.
  • the terminal device may determine the map control coefficient according to at least one trajectory attribute.
  • the terminal device may determine the map control coefficient according to the following method:
  • the terminal device may determine the scaling ratio corresponding to the track length according to the corresponding relationship between the track length and the scaling ratio.
  • the scaling ratio includes a maximum value and a minimum value.
  • the terminal device may also adjust the scaling ratio within the scaling ratio range according to the track length.
  • the terminal device determines that the maximum value of the zoom ratio corresponding to L is 13.5 and the minimum value is 11.5 according to the corresponding relationship between the track length and the zoom ratio; that is, the terminal device determines that the zoom value corresponding to L is in the range of [11.5, 13.5].
  • the zoom value will fluctuate in the range of [11.5, 13.5] as the L of the drawn track changes. The larger the L, the smaller the zoom value.
  • the terminal device may also determine the zoom ratio according to the altitude of the track point and the track length. After determining the zoom ratio, the terminal device adjusts the zoom ratio within the range of the zoom ratio according to changes in the track length and the altitude.
  • the terminal device may also determine at least one scaling ratio corresponding to the track length according to the corresponding relationship between the track length and the scaling ratio.
  • the terminal device determines a target scaling ratio corresponding to the track point terrain from at least one scaling ratio according to the corresponding relationship between the track point terrain and the scaling ratio.
  • the terminal device determines that the zoom value corresponding to L is 14 and [12.5, 13.5] according to the correspondence between the trajectory length and the zoom ratio, and selects 14 from 14 and [12.5, 13.5] as the target zoom ratio corresponding to the plain according to the correspondence between the trajectory point terrain and the zoom ratio.
  • the terminal device may also determine the scaling ratio according to the altitude of the track point and the position of the track point. In the embodiment of the present application, the terminal device may also determine the scaling ratio in other ways, which are not limited to the above.
  • the terminal device can determine the elevation coefficient based on the altitude and movement type of the trajectory point.
  • the terminal device determines the altitude difference of the track point according to the altitude of the track point, and determines the elevation coefficient according to the altitude difference and the movement type.
  • the elevation coefficient is positively correlated with the altitude difference of the track point.
  • the elevation coefficient is used to modify the elevation in the map, thereby changing the undulation of the surface in the map.
  • the terminal device may determine at least one elevation coefficient corresponding to the movement type according to the movement type.
  • the terminal device may determine one of the at least one elevation coefficients as the elevation coefficient according to the altitude difference.
  • the corresponding elevation coefficients for mountain climbing are 1.1 and 1.3 respectively; when the altitude difference of the trajectory point is 100 meters, the terminal device determines that the elevation coefficient can be 1.1; when the altitude difference is 200 meters, the elevation coefficient is determined to be 1.3.
  • the terminal device may also determine the elevation coefficient according to the terrain of the track point. In implementation, the terminal device may determine the elevation coefficient according to the correspondence between the terrain of the track point and the elevation coefficient. For example, when the terminal device determines that the terrain of the track point is mountainous, the initial value of the elevation coefficient is determined to be 1.5.
  • the map control coefficient also includes whether to display 3D building blocks.
  • the terminal device determines whether to display 3D building blocks according to the terrain of the track point in the track attribute. For example, when the terrain of the track point in the track attribute is mountainous, it is determined that the 3D building blocks do not need to be displayed.
  • Step 302 The terminal device plays the motion trajectory on the map according to the trajectory playback information.
  • the terminal device adjusts the map according to the map control coefficient and sets the lens based on the lens data. Then, the terminal device plays the motion trajectory drawn according to the trajectory point sequence in the adjusted map based on the lens.
  • the terminal device draws the motion trajectory on the map according to the trajectory point sequence. In addition, the terminal device determines the motion trajectory according to the lens data. The display viewing angle and the display scale of the map are determined according to the map control coefficient.
  • the terminal device when the lens data includes a lens angle, sets the lens according to the lens angle and the position of the track point, wherein the lens angle changes as the motion track is played.
  • the terminal device when the lens data includes a camera path, sets the lens according to the camera path, wherein the viewing angle of the lens changes according to the camera path as the motion trajectory is played.
  • the terminal device may also adjust the elevation coefficient according to the altitude of the trajectory point in the drawn trajectory, and adjust the zoom ratio according to the trajectory length of the drawn trajectory.
  • the terminal device can adjust the zoom ratio of the map based on the determined zoom ratio and the track length. After determining the elevation coefficient based on the altitude and the movement type of the track point, the terminal device can adjust the elevation in the map based on the determined elevation coefficient to change the undulation of the surface in the map.
  • the terminal device modifies the zoom ratio and the elevation coefficient in the map control coefficient according to the initial value.
  • the terminal device plays the motion trajectory based on the lens in the adjusted map.
  • the terminal device will dynamically modify the map control coefficient as the trajectory length and the altitude of the trajectory points change, so that the map can change with the movement trajectory, thereby reducing or avoiding the problem of trajectory line overflow.
  • the terminal device determines the altitude of the drawn trajectory points, and dynamically modifies the altitude coefficient according to the altitude of the drawn trajectory points.
  • the terminal device determines that the initial value of the elevation coefficient is 1.5.
  • the terminal device determines the altitude of the drawn trajectory point. As the altitude of the drawn trajectory point increases, the elevation coefficient is continuously modified; when the altitude difference of the drawn trajectory point increases to 200 meters, the terminal device can increase the elevation coefficient from 1.5 to 1.7.
  • the terminal device determines the trajectory length of the drawn trajectory, and dynamically modifies the zoom ratio according to the trajectory length of the drawn trajectory.
  • the zoom ratio of the map is the largest.
  • the zoom ratio of the map gradually decreases to more completely display the motion trajectory in the display interface.
  • the lens angle of view changes with the motion trajectory.
  • the terminal device dynamically modifies the lens angle and map control coefficient according to the trajectory attributes such as the trajectory point terrain, motion type, trajectory point position, trajectory point length and altitude of the trajectory point, so as to ensure that in the process of drawing the motion trajectory, the occurrence of trajectory line overflow problems is reduced or even avoided, thereby improving the user experience.
  • trajectory attributes such as the trajectory point terrain, motion type, trajectory point position, trajectory point length and altitude of the trajectory point
  • the terminal device when the lens data includes a camera path, the terminal device directly draws the motion trajectory according to the trajectory point sequence.
  • the map control coefficient may be a preset fixed value.
  • the terminal device draws a motion trajectory according to the sequence of trajectory points, and the motion trajectory is the thick black line portion in FIG9 .
  • the terminal device takes the starting point of the motion trajectory as the starting point and plays the motion trajectory according to the camera path until the camera view reaches the starting point of the motion trajectory, and the motion trajectory display ends.
  • the user's gaze perspective changes to a movie perspective to view the motion trajectory.
  • the terminal device sets observation points and occlusion points to establish a camera path, and transforms the viewing perspective of the motion trajectory into a movie perspective. While reducing the occlusion of the trajectory points by obstructions, it also increases the visualization of the motion trajectory and provides a better user experience.
  • the present application also provides a track playback system.
  • the track playback system includes a portal database, a preprocessing unit, a feature value extraction unit, an algorithm unit, a map unit and a sports health unit.
  • the portal database is used to store users' sports data.
  • the preprocessing unit is used to preprocess the motion data obtained from the portal database and eliminate abnormal data.
  • the feature value extraction unit is used to obtain the processed motion data output by the preprocessing unit, and perform feature value recognition on the motion data to obtain trajectory attributes, wherein the trajectory attributes include but are not limited to trajectory length, motion type, altitude of trajectory points, terrain of trajectory points, and location of trajectory points.
  • the algorithm unit is used to determine the trajectory point sequence, lens data and map control coefficient according to the trajectory attributes.
  • the algorithm unit includes Algorithm 1 and Algorithm 2.
  • the algorithm unit responds to the motion trajectory display mode selected by the user and inputs the trajectory attributes into the motion trajectory display mode.
  • the corresponding trajectory point sequence, lens data and map control coefficient are obtained.
  • the explicit mode corresponding to Algorithm 1 is the ordinary display motion trajectory
  • the lens data output by Algorithm 1 includes the lens angle and trajectory point position.
  • the display mode corresponding to Algorithm 2 is the movie perspective display motion trajectory
  • the lens data output by Algorithm 2 includes the camera path.
  • the map unit is used to draw the motion trajectory, determine the lens angle and adjust the map control coefficient according to the trajectory point sequence, lens data and map control coefficient sent by the algorithm unit, and obtain the display screen of the motion trajectory.
  • the map unit sends the obtained display screen to the sports health unit.
  • the sports health unit is used to display the received display image in the display interface to complete the playback of the sports trajectory.
  • the embodiments of the present application also provide an electronic device, which is used to implement the air conditioning control method provided in the embodiments of the present application.
  • the terminal device 1100 may include: a display screen 1101, a memory 1102, one or more processors 1103, and one or more computer programs (not shown in the figure).
  • the above-mentioned devices can be coupled via one or more communication buses 1104.
  • the display screen 1101 is used to display relevant user interfaces such as motion trajectories, images, videos, and application interfaces.
  • the memory 1102 stores one or more computer programs (codes), and the one or more computer programs include computer instructions; one or more processors 1103 call the computer instructions stored in the memory 1102, so that the terminal device 1100 executes the trajectory playback method provided in the embodiment of the present application.
  • the memory 1102 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.
  • the memory 1102 may store an operating system (hereinafter referred to as system), such as ANDROID, IOS, WINDOWS, or embedded operating systems such as LINUX.
  • system an operating system
  • the memory 1102 may be used to store the implementation program of the embodiment of the present application.
  • the memory 1102 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.
  • the one or more processors 1103 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
  • FIG. 11 is only one implementation of the terminal device 1100 provided in an embodiment of the present application. In actual applications, the terminal device 1100 may also include more or fewer components, which is not limited here.
  • the present application embodiment further provides a track playback device, which can be applied to the terminal device shown in Figure 11.
  • the track playback device 1200 may include:
  • the determining unit 1201 is used to determine the track playback information of the user's track according to the user's motion data; wherein the motion data includes the longitude, latitude and altitude of the track; the track playback information includes a track point sequence, lens data and a map control coefficient; the lens data is used to determine the playback angle of the track, and the map control coefficient is used to characterize the display ratio of the map;
  • the playing unit 1202 is used to play the movement trajectory in the map according to the trajectory playing information.
  • the determining unit 1201 is specifically configured to:
  • trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length;
  • the track playing information is determined according to the track attribute.
  • the trajectory attribute when the motion data includes a motion type, the trajectory attribute also includes the motion type.
  • the determining unit 1201 is specifically configured to:
  • the map control coefficient is determined according to at least one of the trajectory attributes; the map control coefficient includes a zoom ratio and an elevation coefficient; the elevation coefficient is used to characterize the relative change of the elevation in the map.
  • the determining unit 1201 is specifically configured to:
  • the elevation coefficient is determined according to the altitude of the trajectory point and the movement type; the elevation coefficient is positively correlated with the altitude difference of the trajectory point.
  • the determining unit 1201 is specifically configured to:
  • the lens data is determined according to the motion type; the lens data includes a lens angle.
  • the determining unit 1201 is specifically configured to:
  • the lens data is determined according to the position of the track point and the altitude of the track point; the lens data includes a camera path; and the camera path includes a lens angle and a camera position.
  • the determining unit 1201 is specifically configured to:
  • the camera path is determined according to the camera visual focus and the occlusion point.
  • the determining unit 1201 is specifically configured to:
  • the observation point is the position point of the camera when the visual focus of the camera coincides with the visual focus of the camera
  • the position of the observation point and the lens angle of the observation point are used as the camera path.
  • the playback unit 1202 is specifically configured to:
  • a motion trajectory drawn according to the sequence of trajectory points is played in the adjusted map.
  • the playback unit 1202 is further configured to:
  • the map is adjusted according to a zoom ratio of the map and an elevation factor of the map.
  • the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which enables a computer to execute the method described in the embodiments of the present application when the computer program is executed.
  • a computer program also referred to as code, or instructions
  • the present application further provides a computer-readable storage medium, in which a computer program is stored.
  • a computer program is stored.
  • the computer program executes the method described in the embodiments of the present application.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
  • a 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 that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The present application relates to the technical field of smart life, and discloses a trajectory playback method and apparatus, used for reducing the out-of-range problem of a trajectory. The method comprises: determining trajectory playback information of a motion trajectory of a user according to motion data of the user, wherein the motion data comprises motion trajectory longitudes, motion trajectory latitudes, and an altitude, the trajectory playback information comprises a trajectory point sequence, lens data, and map control coefficients, and the map control coefficients are used for representing a display proportion of a map; and playing back the motion trajectory in the map according to the trajectory playback information. In embodiments of the present application, the lens data and the map control coefficients corresponding to the motion trajectory are determined according to the motion data, so that when the motion trajectory is played back, the display proportion of the map can adapt to the motion trajectory, so as to achieve the purpose of reducing the out-of-range problem of the trajectory, thereby improving the dynamic trajectory experience of the user.

Description

一种轨迹播放方法和装置A track playback method and device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2022年12月21日提交中国专利局、申请号为202211651358.1、申请名称为“一种轨迹播放方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the Chinese Patent Office on December 21, 2022, with application number 202211651358.1 and application name “A track playback method and device”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请实施例涉及智慧生活技术领域,尤其涉及一种轨迹播放方法和装置。The embodiments of the present application relate to the field of smart life technology, and in particular to a trajectory playback method and device.
背景技术Background technique
随着人们物质生活的日渐丰富,在日常生活中,运动是人们必不可少的一部分。人们在运动时,通常会携带便携的智能终端设备来记录运动轨迹;在运动结束后,人们还可以通过与运动相关的应用程序动态播放运动轨迹,了解自己的运动过程。As people's material life becomes more and more abundant, exercise is an indispensable part of their daily life. When exercising, people usually carry portable smart terminal devices to record their exercise tracks; after exercise, people can also dynamically play their exercise tracks through sports-related applications to understand their exercise process.
目前,轨迹播放方法通常是根据运动轨迹的中心点和起点来旋转屏幕,来动态展示用户的运动轨迹。但是,该方法在3D轨迹下播放轨迹时,轨迹会在绘制过程中溢出可视区域,使得无法完整观测用户的轨迹,进而无法给用户很好的用户体验。At present, the trajectory playback method usually rotates the screen according to the center point and starting point of the motion trajectory to dynamically display the user's motion trajectory. However, when this method plays the trajectory under the 3D trajectory, the trajectory will overflow the visible area during the drawing process, making it impossible to fully observe the user's trajectory, and thus unable to provide users with a good user experience.
发明内容Summary of the invention
本申请实施例提供一种轨迹播放方法和装置,用以提供一种在三维地图上动态播放轨迹的技术方案,可以减少或避免轨迹线外溢的问题,能够提高用户动态轨迹体验。The embodiments of the present application provide a trajectory playback method and device, which are used to provide a technical solution for dynamically playing a trajectory on a three-dimensional map, which can reduce or avoid the problem of trajectory line overflow and improve the user's dynamic trajectory experience.
第一方面,本申请实施例提供了一种轨迹播放方法,下面以对运动轨迹进行播放的终端设备为执行主体进行说明,所述方法包括:终端设备根据用户的运动数据,确定用户的运动轨迹的轨迹播放信息;其中,运动数据包括运动轨迹经度、运动轨迹纬度和海拔高度;轨迹播放信息包括轨迹点序列、镜头数据和地图控制系数;镜头数据用于确定运动轨迹的播放视角,地图控制系数用于表征地图的显示比例。然后,终端设备根据轨迹播放信息,在地图中播放运动轨迹。In the first aspect, the embodiment of the present application provides a trajectory playback method, which is described below with a terminal device that plays a motion trajectory as the execution subject, and the method includes: the terminal device determines the trajectory playback information of the user's motion trajectory according to the user's motion data; wherein the motion data includes the longitude, latitude and altitude of the motion trajectory; the trajectory playback information includes a trajectory point sequence, lens data and a map control coefficient; the lens data is used to determine the playback angle of the motion trajectory, and the map control coefficient is used to characterize the display ratio of the map. Then, the terminal device plays the motion trajectory in the map according to the trajectory playback information.
在该方法中,终端设备根据用户的运动数据,确定该运动轨迹的轨迹序列、镜头数据和地图控制系数,从而在运动轨迹播放时,能够为运动轨迹提供合适的播放视角以及地图的显示比例,从而可以减少或避免轨迹线外溢的问题的发生,提高运动轨迹播放的完整性,进而可以提高用户的动态轨迹体验。In this method, the terminal device determines the trajectory sequence, lens data and map control coefficient of the motion trajectory according to the user's motion data, so that when the motion trajectory is played, it can provide a suitable playback perspective and map display ratio for the motion trajectory, thereby reducing or avoiding the problem of trajectory line overflow, improving the integrity of the motion trajectory playback, and further improving the user's dynamic trajectory experience.
在一种可能的设计中,终端设备根据运动数据,确定运动轨迹的轨迹属性;其中,轨迹属性包括轨迹点位置、轨迹点的海拔高度和轨迹长度。终端设备根据轨迹属性,确定轨迹播放信息。In a possible design, the terminal device determines the trajectory attributes of the motion trajectory according to the motion data, wherein the trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length. The terminal device determines the trajectory playback information according to the trajectory attributes.
在该设计中,终端设备根据运动轨迹的轨迹点位置、轨迹点的海拔高度和轨迹长度,确定轨迹播放信息,使得轨迹播放信息能够更加贴合用户的运动轨迹,进而可以减小或避免轨迹线外溢的问题发生。In this design, the terminal device determines the trajectory playback information according to the trajectory point position, the altitude of the trajectory point and the trajectory length of the motion trajectory, so that the trajectory playback information can be more consistent with the user's motion trajectory, thereby reducing or avoiding the problem of trajectory line overflow.
在一种可能的设计中,当运动数据包括运动类型时,轨迹属性还包括运动类型。In a possible design, when the motion data includes the motion type, the trajectory attribute also includes the motion type.
在一种可能的设计中,终端设备基于轨迹属性中的轨迹点位置,获得所述轨迹点序列。并且,终端设备根据至少一个轨迹属性,确定地图控制系数;其中,地图控制系数包括缩放比例和高程系数,高程系数用于表征地图中高程的相对变化情况。In a possible design, the terminal device obtains the trajectory point sequence based on the trajectory point position in the trajectory attribute. In addition, the terminal device determines a map control coefficient according to at least one trajectory attribute; wherein the map control coefficient includes a zoom ratio and an elevation coefficient, and the elevation coefficient is used to characterize the relative change of elevation in the map.
在该设计中,终端设备根据轨迹点位置得到轨迹点序列,以及根据至少一个轨迹属性,确定缩放比例和高程系数,为后续播放运动轨迹提供数据基础。In this design, the terminal device obtains a trajectory point sequence according to the trajectory point position, and determines a scaling ratio and an elevation coefficient according to at least one trajectory attribute, thereby providing a data basis for the subsequent playback of the motion trajectory.
在一种可能的设计中,终端设备根据所述轨迹长度,确定缩放比例。以及,终端设备根据轨迹点的海拔高度和运动类型,确定高程系数;其中,高程系数与轨迹点的海拔高度差呈正相关。In a possible design, the terminal device determines the scaling ratio according to the track length, and determines the elevation coefficient according to the altitude and movement type of the track point, wherein the elevation coefficient is positively correlated with the altitude difference of the track point.
在该设计中,终端设备根据轨迹长度,能够准确地确定出适合该运动轨迹的缩放比例;并且,终端设备根据轨迹点的海拔高度和运动类型,能够确定出适合该运动轨迹的高程系数,从而能够在运动轨迹播放时,减小或避免轨迹线外溢的问题发生。In this design, the terminal device can accurately determine the scaling ratio suitable for the motion trajectory based on the trajectory length; and the terminal device can determine the elevation coefficient suitable for the motion trajectory based on the altitude and motion type of the trajectory point, thereby reducing or avoiding the problem of trajectory line overflow when the motion trajectory is played.
在一种可能的设计中,终端设备根据运动类型,确定镜头数据;镜头数据包括镜头角度。In one possible design, the terminal device determines lens data based on the type of movement; the lens data includes the lens angle.
在该设计中,终端设备可以根据运动类型,确定出更加适配于运动轨迹的镜头角度。In this design, the terminal device can determine a lens angle that is more suitable for the motion trajectory according to the type of motion.
在一种可能的设计中,终端设备根据轨迹点的位置和轨迹点的海拔高度,确定镜头数据;镜头数据包括相机路径;相机路径包括镜头角度和相机位置。 In a possible design, the terminal device determines lens data according to the position of the trajectory point and the altitude of the trajectory point; the lens data includes a camera path; and the camera path includes a lens angle and a camera position.
在该设计中,终端设备根据轨迹点的位置和海拔高度确定出相机路径,从而可以在轨迹播放时,将运动轨迹的注视视角转变为电影视角,减小对运动轨迹的遮挡,进而可以提高用户体验。In this design, the terminal device determines the camera path according to the position and altitude of the trajectory point, so that when the trajectory is played, the viewing perspective of the motion trajectory can be transformed into a movie perspective, reducing the occlusion of the motion trajectory and thus improving the user experience.
在一种可能的设计中,终端设备根据轨迹点的位置,获得初始轨迹;终端设备按照设定的轨迹点距离间隔从初始轨迹中提取多个轨迹点作为相机视觉焦点。然后,终端设备在地图中,确定初始轨迹对应的轨迹区域,并将轨迹区域内的海拔最高点作为遮挡点。终端设备根据相机视觉焦点和遮挡点,确定相机路径。In a possible design, the terminal device obtains the initial track according to the position of the track point; the terminal device extracts multiple track points from the initial track as the camera visual focus according to the set track point distance interval. Then, the terminal device determines the track area corresponding to the initial track in the map, and uses the highest point in the track area as the occlusion point. The terminal device determines the camera path according to the camera visual focus and the occlusion point.
在该设计中,终端设备根据相机视觉焦点和遮挡点,确定相机路径,从而可以减小对运动轨迹的遮挡,增加运动轨迹的可视化,进而可以提高用户体验。In this design, the terminal device determines the camera path based on the camera's visual focus and occlusion points, thereby reducing occlusion of the motion trajectory, increasing the visualization of the motion trajectory, and thus improving the user experience.
在一种可能的设计中,终端设备根据相机视觉焦点,确定观察点的视角区域;其中,观察点为相机的视觉焦点与相机视觉焦点重合时相机的位置点。当视角区域不包含遮挡点时,终端设备将观察点的位置以及观察点的镜头角度作为相机路径。In a possible design, the terminal device determines the viewing angle area of the observation point according to the camera visual focus; wherein the observation point is the position point of the camera when the camera visual focus coincides with the camera visual focus. When the viewing angle area does not contain the occlusion point, the terminal device uses the position of the observation point and the lens angle of the observation point as the camera path.
在该设计中,终端设备确定出的相机路径,可以使运动轨迹播放时,减少或避免对运动轨迹的遮挡,增加了运动轨迹的可视化。In this design, the camera path determined by the terminal device can reduce or avoid occlusion of the motion trajectory when the motion trajectory is played, thereby increasing the visualization of the motion trajectory.
在一种可能的设计中,终端设备根据地图控制系数调整地图,并基于镜头数据设置镜头;然后,终端设备基于镜头,在调整后的地图中播放根据轨迹点序列绘制的运动轨迹。In one possible design, the terminal device adjusts the map according to the map control coefficient and sets the lens based on the lens data; then, the terminal device plays the motion trajectory drawn according to the trajectory point sequence in the adjusted map based on the lens.
在该设计中,终端设备在调整后的镜头,以及调整后的地图中播放运动轨迹,从而可以保证运动轨迹播放的完整性,提高用户的体验。In this design, the terminal device plays the motion trajectory in the adjusted lens and the adjusted map, thereby ensuring the integrity of the motion trajectory playback and improving the user experience.
在一种可能的设计中,在运动轨迹播放过程中,终端设备确定已绘制的轨迹长度和已绘制轨迹点的海拔高度;根据已绘制轨迹的轨迹长度,确定地图的缩放比例;以及根据已绘制轨迹点的海拔高度,确定地图的高程系数。然后,终端设备根据地图的缩放比例和地图的高程系数,调整所述地图。In a possible design, during the motion track playback process, the terminal device determines the length of the drawn track and the altitude of the drawn track points; determines the zoom ratio of the map according to the length of the drawn track; and determines the elevation coefficient of the map according to the altitude of the drawn track points. Then, the terminal device adjusts the map according to the zoom ratio of the map and the elevation coefficient of the map.
在该设计中,终端设备在运动轨迹播放过程中,根据已绘制轨迹的轨迹长度和已绘制轨迹点的海拔高度,确定地图的高程系数和缩放比例,来调整地图,使得地图的显示比例随着运动轨迹的绘制而变化,从而可以保证运动轨迹的完整性。In this design, during the motion trajectory playback process, the terminal device determines the elevation coefficient and zoom ratio of the map according to the trajectory length of the drawn trajectory and the altitude of the drawn trajectory points to adjust the map so that the display ratio of the map changes as the motion trajectory is drawn, thereby ensuring the integrity of the motion trajectory.
第二方面,本申请实施例还提供了一种轨迹播放装置,所述装置包括:In a second aspect, an embodiment of the present application further provides a track playback device, the device comprising:
确定单元,用于根据用户的运动数据,确定所述用户的运动轨迹的轨迹播放信息;其中,所述运动数据包括运动轨迹经度、运动轨迹纬度和海拔高度;所述轨迹播放信息包括轨迹点序列、镜头数据和地图控制系数;所述镜头数据用于确定所述运动轨迹的播放视角,所述地图控制系数用于表征地图的显示比例;A determination unit, configured to determine the track playback information of the user's track according to the user's motion data; wherein the motion data includes the longitude, latitude and altitude of the track; the track playback information includes a track point sequence, lens data and a map control coefficient; the lens data is used to determine the playback viewing angle of the track, and the map control coefficient is used to characterize the display ratio of the map;
播放单元,用于根据所述轨迹播放信息,在所述地图中播放所述运动轨迹。A playback unit is used to play the motion trajectory in the map according to the trajectory playback information.
在一种可能的设计中,所述确定单元具体用于:In a possible design, the determining unit is specifically configured to:
根据所述运动数据,确定所述运动轨迹的轨迹属性;其中,轨迹属性包括轨迹点位置、轨迹点的海拔高度和轨迹长度;Determining the trajectory attributes of the motion trajectory according to the motion data; wherein the trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length;
根据所述轨迹属性,确定所述轨迹播放信息。The track playing information is determined according to the track attribute.
在一种可能的设计中,当所述运动数据包括运动类型时,所述轨迹属性还包括所述运动类型。In a possible design, when the motion data includes a motion type, the trajectory attribute also includes the motion type.
在一种可能的设计中,所述确定单元具体用于:In a possible design, the determining unit is specifically configured to:
基于所述轨迹属性中的所述轨迹点位置,获得所述轨迹点序列;Based on the trajectory point positions in the trajectory attributes, obtaining the trajectory point sequence;
根据至少一个所述轨迹属性,确定所述地图控制系数;所述地图控制系数包括缩放比例和高程系数;所述高程系数用于表征所述地图中高程的相对变化情况。The map control coefficient is determined according to at least one of the trajectory attributes; the map control coefficient includes a zoom ratio and an elevation coefficient; the elevation coefficient is used to characterize the relative change of the elevation in the map.
在一种可能的设计中,所述确定单元具体用于:In a possible design, the determining unit is specifically configured to:
根据所述轨迹长度,确定所述缩放比例;Determining the scaling ratio according to the trajectory length;
根据所述轨迹点的海拔高度和所述运动类型,确定所述高程系数;所述高程系数与所述轨迹点的海拔高度差呈正相关。The elevation coefficient is determined according to the altitude of the trajectory point and the movement type; the elevation coefficient is positively correlated with the altitude difference of the trajectory point.
在一种可能的设计中,所述确定单元具体用于:In a possible design, the determining unit is specifically configured to:
根据所述运动类型,确定所述镜头数据;所述镜头数据包括镜头角度。The lens data is determined according to the motion type; the lens data includes a lens angle.
在一种可能的设计中,所述确定单元具体用于:In a possible design, the determining unit is specifically configured to:
根据所述轨迹点位置和所述轨迹点的海拔高度,确定所述镜头数据;所述镜头数据包括相机路径;所述相机路径包括镜头角度和相机位置。 The lens data is determined according to the position of the track point and the altitude of the track point; the lens data includes a camera path; and the camera path includes a lens angle and a camera position.
在一种可能的设计中,所述确定单元具体用于:In a possible design, the determining unit is specifically configured to:
根据所述轨迹点位置,获得初始轨迹;According to the positions of the trajectory points, an initial trajectory is obtained;
按照设定的轨迹点距离间隔从所述初始轨迹中提取多个轨迹点作为相机视觉焦点;Extracting a plurality of trajectory points from the initial trajectory as camera visual focus according to a set trajectory point distance interval;
在所述地图中,确定所述初始轨迹对应的轨迹区域,并将所述轨迹区域内的海拔最高点作为遮挡点;In the map, determining a track area corresponding to the initial track, and taking the highest point in the track area as an occlusion point;
根据所述相机视觉焦点和所述遮挡点,确定所述相机路径。The camera path is determined according to the camera visual focus and the occlusion point.
在一种可能的设计中,所述确定单元具体用于:In a possible design, the determining unit is specifically configured to:
根据所述相机视觉焦点,确定观察点的视角区域;所述观察点为所述相机的视觉焦点与所述相机视觉焦点重合时所述相机的位置点;Determine the viewing angle area of the observation point according to the visual focus of the camera; the observation point is the position point of the camera when the visual focus of the camera coincides with the visual focus of the camera;
当所述视角区域不包含所述遮挡点时,将所述观察点的位置以及所述观察点的镜头角度作为所述相机路径。When the viewing angle area does not include the occlusion point, the position of the observation point and the lens angle of the observation point are used as the camera path.
在一种可能的设计中,所述播放单元具体用于:In a possible design, the playback unit is specifically used for:
根据所述地图控制系数调整所述地图;adjusting the map according to the map control coefficient;
基于所述镜头数据设置所述镜头;Setting the lens based on the lens data;
基于所述镜头,在调整后的地图中播放根据所述轨迹点序列绘制的运动轨迹。Based on the lens, a motion trajectory drawn according to the sequence of trajectory points is played in the adjusted map.
在一种可能的设计中,在所述运动轨迹播放过程中,所述播放单元还用于:In a possible design, during the motion trajectory playback process, the playback unit is further configured to:
确定已绘制轨迹的轨迹长度和已绘制轨迹点的海拔高度;determining the track length of the drawn track and the altitude of the drawn track points;
根据所述已绘制轨迹的轨迹长度,确定所述地图的缩放比例;Determining a zoom ratio of the map according to the track length of the drawn track;
根据所述已绘制轨迹点的海拔高度,确定所述地图的高程系数;Determining the elevation coefficient of the map according to the altitude of the drawn trajectory points;
根据所述地图的缩放比例和所述地图的高程系数,调整所述地图。The map is adjusted according to a zoom ratio of the map and an elevation factor of the map.
第三方面,本申请实施例还提供了一种终端设备,包括:一个或多个处理器;一个或多个存储器;所述一个或多个存储器,用于存储一个或多个计算机程序以及数据信息;其中所述一个或多个计算机程序包括指令;当所述指令被所述一个或多个处理器执行时,使得所述终端设备执行如上述第一方面中任一项可能的设计中所述的方法。In the third aspect, an embodiment of the present application also provides a terminal device, comprising: one or more processors; one or more memories; the one or more memories are used to store one or more computer programs and data information; wherein the one or more computer programs include instructions; when the instructions are executed by the one or more processors, the terminal device executes the method described in any possible design of the first aspect above.
第四方面,本申请实施例提供了一种计算机可读存储介质,计算机可读介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program (also referred to as code, or instructions) that, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect described above.
第五方面,本申请实施例提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a fifth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect described above.
上述第二方面至第五方面中任一方面的有益效果请具体参阅上述第一方面中各种可能的设计的有益效果,在此不再赘述。For the beneficial effects of any of the second to fifth aspects, please refer to the beneficial effects of various possible designs in the first aspect, which will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种可能的终端设备的硬件结构示意图;FIG1 is a schematic diagram of a possible hardware structure of a terminal device provided in an embodiment of the present application;
图2为本申请实施例提供的一种终端设备的软件结构框图;FIG2 is a software structure block diagram of a terminal device provided in an embodiment of the present application;
图3为本申请实施例提供的一种轨迹播放方法的流程示意图;FIG3 is a schematic diagram of a flow chart of a track playback method provided in an embodiment of the present application;
图4为本申请实施例提供的一种轨迹线的示意图;FIG4 is a schematic diagram of a trajectory line provided in an embodiment of the present application;
图5为本申请实施例提供的一种轨迹线和遮挡线的示意图;FIG5 is a schematic diagram of a trajectory line and an occlusion line provided in an embodiment of the present application;
图6为本申请实施例提供的一种观察点的场景示意图;FIG6 is a schematic diagram of a scene of an observation point provided in an embodiment of the present application;
图7为本申请实施例提供的一种可能的相机路径的示意图;FIG7 is a schematic diagram of a possible camera path provided in an embodiment of the present application;
图8为本申请实施例提供的一种可能的运动轨迹播放情况的示例图;FIG8 is an example diagram of a possible motion trajectory playback situation provided by an embodiment of the present application;
图9为本申请实施例提供的另一种可能的运动轨迹播放情况的示例图;FIG9 is an example diagram of another possible motion track playback situation provided by an embodiment of the present application;
图10为本申请实施例提供的一种轨迹播放系统的架构示意图;FIG10 is a schematic diagram of the architecture of a track playback system provided in an embodiment of the present application;
图11为本申请实施例提供的一种终端设备的结构示意图;FIG11 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
图12为本申请实施例提供的一种轨迹播放装置的结构示意图。 FIG. 12 is a schematic diagram of the structure of a track playback device provided in an embodiment of the present application.
具体实施方式Detailed ways
随着生活和科技的发展,人们越来越重视运动健康。并且,随着电子设备的发展,人们通常会在运动时携带便携式终端设备来对运动过程中的运动情况进行监控,来了解当时的运动情况。目前,终端设备可以根据便携式终端采集到的运动数据,绘制并播放运动轨迹,来展示运动情况。其中,终端设备可以为便携式终端设备,例如手机、手环、手表等,也可以为其他终端设备,例如电脑等。With the development of life and technology, people pay more and more attention to sports and health. In addition, with the development of electronic devices, people usually carry portable terminal devices when exercising to monitor the exercise conditions during exercise and understand the exercise conditions at that time. At present, the terminal device can draw and play the exercise trajectory based on the exercise data collected by the portable terminal to display the exercise conditions. Among them, the terminal device can be a portable terminal device, such as a mobile phone, a bracelet, a watch, etc., or it can be other terminal devices, such as a computer, etc.
目前,轨迹播放的一种实现方式为,获取用户的运动数据,根据运动数据,确定轨迹点序列;根据轨迹点序列,绘制运动轨迹;在运动轨迹的绘制过程中,根据轨迹点序列中的中点和起点的对应关系,旋转屏幕。然而,该实现方式仅通过旋转屏幕的方法来展示运动轨迹,会使得运动轨迹无法完整的在屏幕中显示,无法完整观测运动轨迹。At present, one implementation method of trajectory playback is to obtain the user's motion data, determine the trajectory point sequence based on the motion data, draw the motion trajectory based on the trajectory point sequence, and rotate the screen according to the correspondence between the midpoint and the starting point in the trajectory point sequence during the drawing of the motion trajectory. However, this implementation method only displays the motion trajectory by rotating the screen, which makes it impossible to fully display the motion trajectory on the screen and observe the motion trajectory completely.
有鉴于此,本申请实施例提供一种轨迹播放方法和装置,一方面可以根据运动轨迹确定轨迹点序列、轨迹的镜头数据、以及地图的控制系数,终端设备根据轨迹点序列绘制用户的轨迹,并根据镜头数据和地图的控制系数,动态播放运动轨迹。另一方面,终端设备还可以结合根据运动轨迹以及轨迹区域,确定相机路径,根据相机路径以及运动轨迹播放用户的运动轨迹。这样,通过本申请提供的方法,可以保证运动轨迹的播放完整性,提高用户动态轨迹的用户体验。In view of this, an embodiment of the present application provides a trajectory playback method and device. On the one hand, the trajectory point sequence, the lens data of the trajectory, and the control coefficient of the map can be determined according to the motion trajectory. The terminal device draws the user's trajectory according to the trajectory point sequence, and dynamically plays the motion trajectory according to the lens data and the control coefficient of the map. On the other hand, the terminal device can also determine the camera path based on the motion trajectory and the trajectory area, and play the user's motion trajectory based on the camera path and the motion trajectory. In this way, through the method provided by this application, the playback integrity of the motion trajectory can be guaranteed, and the user experience of the user's dynamic trajectory can be improved.
下面将结合附图,对本申请实施例进行详细描述。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
可以理解的是,本申请实施例的终端设备可以是诸如智能家居设备(例如,智能电视,智慧屏等)、手机、平板电脑、可穿戴设备(例如,手环、手表等)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等具有显示能力的设备。可以理解的是,本申请实施例对终端设备的具体类型不作任何限制。本申请实施例中,终端设备可以与用户手部的可穿戴设备、或用户脚部的可穿戴设备进行通信,以获取用户的运动数据,实现对用户运动轨迹的动态播放;其中,终端设备也可为所述用户手部的具备显示单元的可穿戴设备。It is understandable that the terminal device of the embodiment of the present application can be a device with display capability such as smart home devices (e.g., smart TVs, smart screens, etc.), mobile phones, tablet computers, wearable devices (e.g., bracelets, watches, etc.), augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. It is understandable that the embodiment of the present application does not impose any restrictions on the specific type of terminal devices. In the embodiment of the present application, the terminal device can communicate with a wearable device on the user's hand or a wearable device on the user's foot to obtain the user's motion data and realize dynamic playback of the user's motion trajectory; wherein, the terminal device can also be a wearable device with a display unit on the user's hand.
本申请实施例可以应用到的终端设备,示例性实施例包括但不限于搭载 或者其它操作系统的终端设备。The terminal device to which the present application can be applied includes but is not limited to a terminal device equipped with Or terminal devices of other operating systems.
图1示出了一种可能的终端设备的硬件结构示意图。其中,所述终端设备100包括:射频(radio frequency,RF)电路110、电源120、处理器130、存储器140、输入单元150、显示单元160、音频电路170、通信接口180、以及无线保真(wireless-fidelity,Wi-Fi)模块190等部件。本领域技术人员可以理解,图1中示出的终端设备100的硬件结构并不构成对终端设备100的限定,本申请实施例提供的终端设备100可以包括比图示更多或更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。FIG1 shows a schematic diagram of the hardware structure of a possible terminal device. The terminal device 100 includes: a radio frequency (RF) circuit 110, a power supply 120, a processor 130, a memory 140, an input unit 150, a display unit 160, an audio circuit 170, a communication interface 180, and a wireless fidelity (Wi-Fi) module 190 and other components. Those skilled in the art will understand that the hardware structure of the terminal device 100 shown in FIG1 does not constitute a limitation on the terminal device 100. The terminal device 100 provided in the embodiment of the present application may include more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in FIG1 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application-specific integrated circuits.
下面结合图1对所述终端设备100的各个构成部件进行具体的介绍:The following is a detailed introduction to the various components of the terminal device 100 in conjunction with FIG. 1 :
所述RF电路110可用于通信或通话过程中,数据的接收和发送。特别地,所述RF电路110在接收到基站的下行数据后,发送给所述处理器130处理;另外,将待发送的上行数据发送给基站。通常,所述RF电路110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。The RF circuit 110 can be used for receiving and sending data during communication or calls. In particular, after receiving downlink data from the base station, the RF circuit 110 sends it to the processor 130 for processing; in addition, the uplink data to be sent is sent to the base station. Generally, the RF circuit 110 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
此外,RF电路110还可以通过无线通信网络和其他设备进行通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。In addition, the RF circuit 110 can also communicate with other devices through a wireless communication network. The wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
Wi-Fi技术属于短距离无线传输技术,所述终端设备100通过Wi-Fi模块190可以连接访问接入点(access point,AP),从而实现数据网络的访问。所述Wi-Fi模块190可用于通信过程中,数据的接收和发送。在本申请实施例中,所述终端设备100还可以通过Wi-Fi模块190与用户的便携式设备进行连接,从而实现信息交互,例如接收用户手部的便携式设备采集的运动数据。Wi-Fi technology is a short-range wireless transmission technology. The terminal device 100 can connect to an access point (AP) through the Wi-Fi module 190 to access the data network. The Wi-Fi module 190 can be used for receiving and sending data during the communication process. In the embodiment of the present application, the terminal device 100 can also be connected to the user's portable device through the Wi-Fi module 190 to achieve information interaction, such as receiving motion data collected by the portable device in the user's hand.
所述终端设备100可以通过所述通信接口180与其他设备实现物理连接。可选的,所述通信接口180与所述其他设备的通信接口通过电缆连接,实现所述终端设备100和其他设备之间的数据传输。 The terminal device 100 can be physically connected to other devices through the communication interface 180. Optionally, the communication interface 180 is connected to the communication interface of the other device through a cable to achieve data transmission between the terminal device 100 and the other device.
由于在本申请实施例中,所述终端设备100能够实现通信业务,例如可以与便携式设备实现交互,因此所述终端设备100需要具有数据传输功能,即所述终端设备100内部需要包含通信模块。虽然图1示出了所述RF电路110、所述Wi-Fi模块190、和所述通信接口180等通信模块,但是可以理解的是,所述终端设备100中存在上述部件中的至少一个或者其他用于实现通信的通信模块(如蓝牙模块),以进行数据传输。Since in the embodiment of the present application, the terminal device 100 can implement communication services, for example, it can interact with a portable device, so the terminal device 100 needs to have a data transmission function, that is, the terminal device 100 needs to include a communication module. Although FIG1 shows communication modules such as the RF circuit 110, the Wi-Fi module 190, and the communication interface 180, it is understandable that at least one of the above components or other communication modules (such as a Bluetooth module) for implementing communication exists in the terminal device 100 for data transmission.
例如,当所述终端设备100为手机时,所述终端设备100可以包含所述RF电路110,还可以包含所述Wi-Fi模块190,或可以包含蓝牙模块(图1中未示出);当所述终端设备100为计算机时,所述终端设备100可以包含所述通信接口180,还可以包含所述Wi-Fi模块190,或可以包含蓝牙模块(图1中未示出);当所述终端设备100为平板电脑时,所述终端设备100可以包含所述Wi-Fi模块,或可以包含蓝牙模块(图1中未示出)。For example, when the terminal device 100 is a mobile phone, the terminal device 100 may include the RF circuit 110, and may also include the Wi-Fi module 190, or may include a Bluetooth module (not shown in FIG. 1 ); when the terminal device 100 is a computer, the terminal device 100 may include the communication interface 180, and may also include the Wi-Fi module 190, or may include a Bluetooth module (not shown in FIG. 1 ); when the terminal device 100 is a tablet computer, the terminal device 100 may include the Wi-Fi module, or may include a Bluetooth module (not shown in FIG. 1 ).
所述存储器140可用于存储软件程序以及模块。所述处理器130通过运行存储在所述存储器140的软件程序以及模块,从而执行所述终端设备100的各种功能应用以及数据处理。可选的,所述存储器140可以主要包括存储程序区和存储数据区。其中,存储程序区可存储操作系统(主要包括内核层、系统层、应用程序框架层和应用程序层等各自对应的软件程序或模块)。The memory 140 can be used to store software programs and modules. The processor 130 executes various functional applications and data processing of the terminal device 100 by running the software programs and modules stored in the memory 140. Optionally, the memory 140 may mainly include a program storage area and a data storage area. Among them, the program storage area can store an operating system (mainly including software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer, etc.).
此外,所述存储器140可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。In addition, the memory 140 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
所述输入单元150可用于接收用户输入的数字或字符信息等多种不同类型的数据对象的编辑操作,以及产生与所述终端设备100的用户设置以及功能控制有关的键信号输入。可选的,输入单元150可包括触控面板151以及其他输入设备152。The input unit 150 can be used to receive the editing operations of various types of data objects such as digital or character information input by the user, and generate key signal input related to the user settings and function control of the terminal device 100. Optionally, the input unit 150 may include a touch panel 151 and other input devices 152.
其中,所述触控面板151,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触控面板151上或在所述触控面板151附近的操作),并根据预先设定的程序驱动相应的连接装置。Among them, the touch panel 151, also known as a touch screen, can collect user touch operations on or near it (for example, operations performed by the user using fingers, stylus, or any other suitable object or accessory on or near the touch panel 151), and drive the corresponding connection device according to a pre-set program.
可选的,所述其他输入设备152可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Optionally, the other input devices 152 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
所述显示单元160可用于显示由用户输入的信息或提供给用户的信息以及所述终端设备100的各种菜单。所述显示单元160即为所述终端设备100的显示系统,用于呈现界面,实现人机交互。所述显示单元160可以包括显示面板161。可选的,所述显示面板161可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置。本申请实施例中,在终端设备上设置显示单元160,可以通过显示单元160显示各便携式设备上传的运动数据,或者若终端设备为一些便携式设备时,可以通过显示单元160显示运动数据等,例如在手机上显示用户的运动轨迹。The display unit 160 can be used to display information input by the user or information provided to the user and various menus of the terminal device 100. The display unit 160 is the display system of the terminal device 100, which is used to present an interface and realize human-computer interaction. The display unit 160 may include a display panel 161. Optionally, the display panel 161 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In the embodiment of the present application, the display unit 160 is set on the terminal device, and the motion data uploaded by each portable device can be displayed through the display unit 160, or if the terminal device is some portable devices, the motion data can be displayed through the display unit 160, for example, the user's motion trajectory can be displayed on the mobile phone.
所述处理器130是所述终端设备100的控制中心,利用各种接口和线路连接各个部件,通过运行或执行存储在所述存储器140内的软件程序和/或模块,以及调用存储在所述存储器140内的数据,执行所述终端设备100的各种功能和处理数据,从而实现基于所述终端设备100的多种业务。本申请实施例中,处理器130用来实现本申请实施例提供的方法,从而可以实现对运动轨迹的动态播放等。The processor 130 is the control center of the terminal device 100, and uses various interfaces and lines to connect various components, and executes various functions and processes data of the terminal device 100 by running or executing software programs and/or modules stored in the memory 140, and calling data stored in the memory 140, thereby realizing various services based on the terminal device 100. In the embodiment of the present application, the processor 130 is used to implement the method provided in the embodiment of the present application, so as to realize dynamic playback of motion trajectories, etc.
所述终端设备100还包括用于给各个部件供电的电源120(比如电池)。可选的,所述电源120可以通过电源管理系统与所述处理器130逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The terminal device 100 also includes a power supply 120 (such as a battery) for supplying power to various components. Optionally, the power supply 120 can be logically connected to the processor 130 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
如图1所示,终端设备100还包括音频电路170、麦克风171和扬声器172,可提供用户与终端设备100之间的音频接口。音频电路170可用于将音频数据转换为扬声器172能够识别的信号,并将信号传输到扬声器172,由扬声器172转换为声音信号输出。麦克风171用于收集外部的声音信号(如人说话的声音、或者其它声音等),并将收集的外部的声音信号转换为音频电路170能够识别的信号,发送给音频电路170。音频电路170还可用于将麦克风171发送的信号转换为音频数据,再将音频数据输出至RF电路110以发送给比如另一终端设备,或者将音频数据输出至存储器140以便后续进一步处理。As shown in FIG1 , the terminal device 100 further includes an audio circuit 170, a microphone 171 and a speaker 172, which can provide an audio interface between the user and the terminal device 100. The audio circuit 170 can be used to convert audio data into a signal that can be recognized by the speaker 172, and transmit the signal to the speaker 172, which is converted into a sound signal for output by the speaker 172. The microphone 171 is used to collect external sound signals (such as the sound of a person speaking, or other sounds, etc.), and convert the collected external sound signals into signals that can be recognized by the audio circuit 170, and send them to the audio circuit 170. The audio circuit 170 can also be used to convert the signal sent by the microphone 171 into audio data, and then output the audio data to the RF circuit 110 to send it to, for example, another terminal device, or output the audio data to the memory 140 for subsequent further processing.
尽管未示出,所述终端设备100还可以包括至少一种传感器、摄像头等,在此不再赘述。至少一种传感器可以包含但不限于压力传感器、气压传感器、加速度传感器、距离传感器、指纹传感器、触摸传感器、温度传感器等。Although not shown, the terminal device 100 may also include at least one sensor, camera, etc., which will not be described in detail herein. The at least one sensor may include but is not limited to a pressure sensor, an air pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
本申请实施例涉及的操作系统(operating system,OS),是运行在终端设备100上的最基本的系统软件。以手机为例,操作系统可以是鸿蒙系统(HarmonyOS)或安卓(android)系统或IOS系统。终 端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以采用分层架构的操作系统为例,示例性说明终端设备100的软件结构。The operating system (OS) involved in the embodiment of the present application is the most basic system software running on the terminal device 100. Taking a mobile phone as an example, the operating system can be HarmonyOS or Android system or IOS system. The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an operating system adopting a layered architecture as an example to exemplify the software structure of the terminal device 100.
图2为本申请实施例提供的一种终端设备的软件结构框图。如图2所示,终端设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为五层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),运行时和系统库,内核层,以及硬件层。FIG2 is a block diagram of the software structure of a terminal device provided in an embodiment of the present application. As shown in FIG2, the software structure of the terminal device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime and system library, the kernel layer, and the hardware layer.
应用程序层可以包括一系列应用程序包。如图2所示,应用程序层可以包括相机、设置、皮肤模块、用户界面(user interface,UI)、三方应用程序等。其中,三方应用程序可以包括WLAN、音乐、通话、蓝牙、视频等。The application layer may include a series of application packages. As shown in Figure 2, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, third-party applications may include WLAN, music, calls, Bluetooth, video, etc.
一种可能的实现方式中,应用程序可以使用java语言开发,通过调用应用程序框架层所提供的应用程序编程接口(application programming interface,API)来完成,开发者可以通过应用程序框架层来与操作系统的底层(例如硬件层、内核层等)进行交互,开发自己的应用程序。该应用程序框架层主要是操作系统的一系列的服务和管理系统。In one possible implementation, applications can be developed using the Java language by calling the application programming interface (API) provided by the application framework layer. Developers can interact with the underlying layers of the operating system (such as the hardware layer, kernel layer, etc.) through the application framework layer to develop their own applications. The application framework layer is mainly a series of services and management systems for the operating system.
应用程序框架层为应用程序层的应用程序提供应用编程接口和编程框架。应用程序框架层包括一些预定义函数。如图2所示,应用程序框架层可以包括快捷图标管理模块,窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides an application programming interface and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. As shown in FIG2 , the application framework layer may include a shortcut icon management module, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
快捷图标管理模块用于对终端设备上显示的快捷图标进行管理,例如创建快捷图标、移除快捷图标、监控快捷图标是否满足显示条件等。The shortcut icon management module is used to manage the shortcut icons displayed on the terminal device, such as creating shortcut icons, removing shortcut icons, monitoring whether the shortcut icons meet the display conditions, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
电话管理器用于提供终端设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions for terminal devices, such as the management of call status (including answering, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
在本申请一些实施例中,该应用程序框架层主要负责调用与硬件层之间通信的服务接口,以将用户进行操作的操作请求传递到硬件层,所述操作请求可以包含用户通过显示单元160播放运动轨迹等。In some embodiments of the present application, the application framework layer is mainly responsible for calling the service interface for communication with the hardware layer to pass the user's operation request to the hardware layer, and the operation request may include the user playing the motion trajectory through the display unit 160, etc.
运行时包括核心库和虚拟机。运行时负责操作系统的调度和管理。The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是操作系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. 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 object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. 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图形引擎是2D绘图的绘图引擎。A 2D graphics engine is a drawing engine for 2D drawings.
在一些实施例中,三维图形处理库可以用于绘制三维的运动轨迹图像,2D图形引擎可以用于绘制二维的运动轨迹图像。In some embodiments, the three-dimensional graphics processing library may be used to draw a three-dimensional motion trajectory image, and the 2D graphics engine may be used to draw a two-dimensional motion trajectory image.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。 The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
硬件层可以包括各类传感器,例如加速度传感器、陀螺仪传感器、触摸传感器等。The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, touch sensors, etc.
通常终端设备100可以同时运行多个应用程序。较为简单的,一个应用程序可以对应一个进程,较为复杂的,一个应用程序可以对应多个进程。每个进程具备一个进程号(进程ID)。Usually, the terminal device 100 can run multiple applications at the same time. In a simpler way, one application can correspond to one process, and in a more complex way, one application can correspond to multiple processes. Each process has a process number (process ID).
结合上述图1中对终端设备的硬件结构的介绍,以及图2中对终端设备的软件框架的介绍,下面结合多个实施例和附图,示例性说明终端设备执行本申请实施例中提出的一种目标场景的识别方法的软件以及硬件的工作原理。In combination with the introduction to the hardware structure of the terminal device in Figure 1 and the introduction to the software framework of the terminal device in Figure 2, the following, in combination with multiple embodiments and drawings, exemplifies the working principles of the software and hardware of the terminal device for executing a target scene recognition method proposed in an embodiment of the present application.
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
本申请实施例涉及的多个,是指大于或等于两个。The "multiple" involved in the embodiments of the present application refers to greater than or equal to two.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.
此外,本申请实施例中,“终端设备”、“设备”等可以混用,即指可以用于实现本申请实施例的各种设备。In addition, in the embodiments of the present application, "terminal device", "device", etc. can be used interchangeably, that is, to refer to various devices that can be used to implement the embodiments of the present application.
应理解,终端设备的硬件结构可以如图1所示,软件架构可以如图2所示,其中,终端设备中的软件架构对应的软件程序和/或模块可以存储在存储器140中,处理器130可以运行存储器140中存储的软件程序和应用以执行本申请实施例提供的一种轨迹播放方法的流程。It should be understood that the hardware structure of the terminal device can be as shown in Figure 1, and the software architecture can be as shown in Figure 2, wherein the software programs and/or modules corresponding to the software architecture in the terminal device can be stored in the memory 140, and the processor 130 can run the software programs and applications stored in the memory 140 to execute the process of a trajectory playback method provided in an embodiment of the present application.
为了便于理解本申请提供的一种轨迹播放方法,以下结合图3至图10中所示的内容,对采用本申请提供的方法的实现过程进行介绍。In order to facilitate understanding of a track playback method provided by the present application, the implementation process of the method provided by the present application is introduced below in combination with the contents shown in Figures 3 to 10.
首先介绍本申请实施例适用的一种可能的轨迹播放方法。图3为本申请实施例提供的一种轨迹播放方法的流程示意图。该流程包括:First, a possible track playback method applicable to the embodiment of the present application is introduced. FIG3 is a flow chart of a track playback method provided by the embodiment of the present application. The flow chart includes:
步骤301:终端设备根据用户的运动数据,确定用户的运动轨迹的轨迹播放信息。示例性的,终端设备通常可以为便携式的终端设备,例如,手机、运动手环等。Step 301: The terminal device determines the track playback information of the user's track according to the user's sports data. Exemplarily, the terminal device may be a portable terminal device, such as a mobile phone, a sports bracelet, and the like.
其中,运动数据包括但不限于:运动类型、运动轨迹经度、运动轨迹纬度、速度、海拔高度、轨迹点精度。轨迹播放信息包括但不限于:轨迹点序列、镜头数据和地图控制系数。镜头数据用于确定运动轨迹的播放视角,地图控制系数用于表征地图的显示比例。The motion data includes, but is not limited to, the type of motion, the longitude of the motion track, the latitude of the motion track, the speed, the altitude, and the accuracy of the track points. The track playback information includes, but is not limited to, the track point sequence, the lens data, and the map control coefficient. The lens data is used to determine the playback angle of the motion track, and the map control coefficient is used to characterize the display ratio of the map.
在一些实施例中,轨迹点序列中的轨迹点是按照采集时间排序的,轨迹点序列中的轨迹点可以组成运动轨迹。In some embodiments, the trajectory points in the trajectory point sequence are sorted according to the acquisition time, and the trajectory points in the trajectory point sequence can form a motion trajectory.
本申请实施时,在终端设备的存储器中,可以存储有终端设备记录的用户的运动数据。又或者,终端设备可以在其他设备中获取用户的运动数据。例如,终端设备从运动手环中获取用户的运动数据。When the present application is implemented, the user's motion data recorded by the terminal device may be stored in the memory of the terminal device. Alternatively, the terminal device may obtain the user's motion data from other devices. For example, the terminal device obtains the user's motion data from a sports bracelet.
在一些实施例中,终端设备在获取到运动数据后,可通过下列步骤确定轨迹播放信息:In some embodiments, after acquiring the motion data, the terminal device may determine the track playback information through the following steps:
A1:终端设备根据运动数据,确定运动轨迹的轨迹属性。A1: The terminal device determines the trajectory attributes of the motion trajectory based on the motion data.
其中,轨迹属性包括但不限于:轨迹点位置、轨迹点的海拔高度和轨迹长度。The track attributes include but are not limited to: the location of the track point, the altitude of the track point, and the track length.
在一些实施例中,终端设备对运动数据进行预处理后,对运动数据进行特征值识别,获得轨迹属性。In some embodiments, after preprocessing the motion data, the terminal device performs feature value recognition on the motion data to obtain trajectory attributes.
终端设备将运动数据中运动轨迹经度和运动轨迹纬度,作为轨迹点位置。并且,终端设备还可以根据运动轨迹的经纬度,确定轨迹长度。The terminal device uses the longitude and latitude of the motion track in the motion data as the position of the track point. In addition, the terminal device can also determine the track length according to the longitude and latitude of the motion track.
在一些实施例中,当运动数据包括运动类型时,终端设备还可以将运动类型作为轨迹属性。另外,轨迹属性还可以包括轨迹点地形。实施中,终端设备还可以根据运动数据中轨迹点的经纬度,在地图上获取地形数据,并将获取到的地形数据作为轨迹点地形。例如,运动数据中轨迹点的经纬度,在地图上对应的地形数据为山地时,将山地作为轨迹点地形。In some embodiments, when the motion data includes a motion type, the terminal device may also use the motion type as a trajectory attribute. In addition, the trajectory attribute may also include a trajectory point terrain. In implementation, the terminal device may also obtain terrain data on a map based on the longitude and latitude of the trajectory point in the motion data, and use the obtained terrain data as the trajectory point terrain. For example, when the longitude and latitude of the trajectory point in the motion data correspond to a mountainous terrain on the map, the mountainous terrain is used as the trajectory point terrain.
A2:终端设备根据轨迹属性,确定轨迹播放信息。A2: The terminal device determines the track playback information according to the track attributes.
其中,地图控制系数包括但不限于高程系数、缩放比例。The map control coefficients include but are not limited to elevation coefficient and zoom ratio.
终端设备在确定出轨迹属性后,根据得到的轨迹属性,确定轨迹点序列、镜头数据和地图控制系数。After determining the trajectory attributes, the terminal device determines the trajectory point sequence, lens data and map control coefficient according to the obtained trajectory attributes.
在一些实施例中,终端设备可以基于轨迹点位置,获得轨迹点序列。其中,轨迹点序列中的轨迹点 用于绘制运动轨迹。In some embodiments, the terminal device may obtain a trajectory point sequence based on the trajectory point position. Used to draw motion trajectories.
在一些实施例中,镜头数据可以包括镜头角度,也可以包括相机路径。并且,镜头数据的两种状况分别适用于不同的情况。下面根据上述两种情况分别对镜头数据的确定过程进行说明。In some embodiments, the lens data may include a lens angle or a camera path. Furthermore, the two conditions of the lens data are respectively applicable to different situations. The following describes the process of determining the lens data according to the above two situations.
情况1、镜头数据包括镜头角度。Case 1: The lens data includes the lens angle.
在一些实施例中,当镜头数据包括镜头角度时,镜头是以轨迹点序列中的轨迹点为视觉焦点的。In some embodiments, when the lens data includes a lens angle, the lens is visually focused on a track point in the track point sequence.
本申请实施时,终端设备可以根据运动类型,确定镜头角度。When the present application is implemented, the terminal device can determine the lens angle according to the type of movement.
在一些实施例中,终端设备可以基于预设的运动类型与镜头角度的对应关系,确定镜头角度。例如,终端设备确定运动类型为跑步时,确定镜头角度为45°。In some embodiments, the terminal device may determine the lens angle based on a preset correspondence between the sport type and the lens angle. For example, when the terminal device determines that the sport type is running, the lens angle is determined to be 45°.
在一些实施例中,终端设备还可以根据轨迹点地形与镜头角度的对应关系,确定镜头角度。例如,终端设备确定轨迹点地形为山地时,确定镜头角度为45°。In some embodiments, the terminal device may also determine the lens angle according to the correspondence between the track point terrain and the lens angle. For example, when the terminal device determines that the track point terrain is a mountain, the lens angle is determined to be 45°.
情况2、镜头数据包括相机路径。其中,相机路径包括相机位置和镜头角度。Case 2: The lens data includes a camera path, where the camera path includes a camera position and a lens angle.
在一些实施例中,终端设备可以根据轨迹点位置和轨迹点的海拔高度,确定相机路径。并且,终端设备可通过下列步骤确定相机路径:In some embodiments, the terminal device may determine the camera path according to the position of the track point and the altitude of the track point. In addition, the terminal device may determine the camera path by the following steps:
B1:终端设备根据轨迹点位置,获得初始轨迹。B1: The terminal device obtains the initial trajectory based on the position of the trajectory point.
在一些实施例中,初始轨迹可以是轨迹点序列中的轨迹点组成的轨迹,也可以是根据轨迹点位置对应的轨迹点组成的轨迹。In some embodiments, the initial trajectory may be a trajectory composed of trajectory points in a trajectory point sequence, or may be a trajectory composed of trajectory points corresponding to trajectory point positions.
B2:终端设备按照设定的轨迹点距离间隔从初始轨迹中提取多个轨迹点作为相机视觉焦点。B2: The terminal device extracts multiple trajectory points from the initial trajectory as the camera visual focus according to the set trajectory point distance interval.
例如,如图4所示,终端设备可以每隔10米在初始轨迹中获取轨迹点,并将获取到的轨迹点连接起来,得到轨迹线。For example, as shown in FIG. 4 , the terminal device may obtain trajectory points in the initial trajectory every 10 meters, and connect the obtained trajectory points to obtain a trajectory line.
在一种实施例中,终端设备在得到相机视觉焦点后,根据相机视觉焦点确定相机路径。In one embodiment, after obtaining the camera visual focus, the terminal device determines the camera path according to the camera visual focus.
B3:终端设备在地图中,确定初始轨迹对应的轨迹区域,并将轨迹区域内的海拔最高点作为遮挡点。B3: The terminal device determines the trajectory area corresponding to the initial trajectory in the map, and uses the highest point in the trajectory area as the occlusion point.
在一些实施例中,终端设备可以根据轨迹点位置,在地图中确定初始轨迹对应的轨迹区域。并且,终端设备获取轨迹区域内的海拔最高点,并将海拔最高点作为遮挡点。In some embodiments, the terminal device may determine the track area corresponding to the initial track in the map according to the track point position, and the terminal device obtains the highest point in the track area and uses the highest point in the track area as the blocking point.
例如,如图5所示,终端设备在初始轨迹对应的轨迹区域中,确定出海拔最高点后,将海拔最高点用虚线连接起来形成遮挡线。图5中的遮挡线和轨迹线之间有重合部分,表示轨迹区域内的地形会对轨迹点产生遮挡。For example, as shown in Figure 5, after the terminal device determines the highest point in the trajectory area corresponding to the initial trajectory, it connects the highest points in the altitude with a dotted line to form an occlusion line. There is an overlap between the occlusion line and the trajectory line in Figure 5, indicating that the terrain in the trajectory area will occlude the trajectory point.
B4:终端设备根据相机视觉焦点和遮挡点,确定相机路径。B4: The terminal device determines the camera path based on the camera visual focus and occlusion points.
在一些实施例中,终端设备可以在初始轨迹外侧建立缓冲区生成相机路径。In some embodiments, the terminal device may establish a buffer zone outside the initial trajectory to generate a camera path.
实施中,终端设备根据相机视觉焦点,确定观察点的视角区域。其中,观察点为相机的视觉焦点与相机视觉焦点重合时相机的位置点。In implementation, the terminal device determines the viewing angle area of the observation point according to the visual focus of the camera, wherein the observation point is the position point of the camera when the visual focus of the camera coincides with the visual focus of the camera.
在一些实施例中,终端设备可以通过确定观察点到相机视觉焦点的视角区域中是否存在遮挡点,确定相机路径。其中,在确定相机路径时,观察点的初始位置位于相机视觉焦点和遮挡点的连接线上。In some embodiments, the terminal device may determine the camera path by determining whether there is an occlusion point in the viewing area from the observation point to the camera visual focus. When determining the camera path, the initial position of the observation point is located on the connecting line between the camera visual focus and the occlusion point.
当终端设备确定观察点到相机视觉焦点的视角区域中存在遮挡点时,终端设备移动观察点的位置,以及改变观察点的镜头角度,直至视角区域中不存在遮挡点。When the terminal device determines that there is an occlusion point in the viewing angle area from the observation point to the camera visual focus, the terminal device moves the position of the observation point and changes the lens angle of the observation point until there is no occlusion point in the viewing angle area.
当终端设备确定观察点到相机视觉焦点的视角区域中不存在遮挡点时,终端设备将该位置以及将该观察点的镜头角度作为相机路径。When the terminal device determines that there is no occlusion point in the viewing angle area from the observation point to the camera visual focus, the terminal device uses the position and the lens angle of the observation point as the camera path.
在一种实施例中,终端设备分别根据多个相机视觉焦点,确定出多个相机位置和镜头角度。终端设备将得到的多个相机位置的位置点连接起来,形成相机路径,并根据每个位置点对应的镜头角度,确定镜头动作。In one embodiment, the terminal device determines multiple camera positions and lens angles according to the visual focal points of multiple cameras, connects the position points of the obtained multiple camera positions to form a camera path, and determines the lens action according to the lens angle corresponding to each position point.
在一种实施例中,终端设备还可以根据视角属性,确定相机路径。例如,终端设备可根据下列代码确定相机路径:In one embodiment, the terminal device may also determine the camera path according to the viewing angle attribute. For example, the terminal device may determine the camera path according to the following code:
Camera.position=mapboxgl.MercatorCoordinate.fromLngLat(Camera.position=mapboxgl.MercatorCoordinate.fromLngLat(
{{
lng:alongCamera[0],lng:alongCamera[0],
lat:alongCamera[1]lat:alongCamera[1]
},},
camerAltitude camerAltitude
););
Camera.lookAtPoint({Camera.lookAtPoint({
lng:alongRoute[0],lng:alongRoute[0],
lat:alongRoute[1]lat:alongRoute[1]
});});
例如,如图6所示,轨迹点形成的轨迹线与遮挡物形成的遮挡线之间有重合部分。图6中的三角形表示相机的观察点。终端设备通过调整观察点的位置和视角,使观察点到轨迹点的视角越过遮挡物,达到遮挡物无法遮挡轨迹点的目的。For example, as shown in FIG6 , there is an overlap between the trajectory line formed by the trajectory point and the occlusion line formed by the occlusion. The triangle in FIG6 represents the observation point of the camera. The terminal device adjusts the position and viewing angle of the observation point so that the viewing angle from the observation point to the trajectory point passes through the occlusion, thereby achieving the purpose that the occlusion cannot block the trajectory point.
终端设备根据确定出的相机位置和镜头角度,生成相机路径。其中,相机路径位于轨迹线和遮挡线的外侧。例如,如图7所示,相机路径位于轨迹线和遮挡线的外侧,相机在相机路径上的视角世界越过遮挡线到达轨迹线,不会对轨迹点产生遮挡。The terminal device generates a camera path based on the determined camera position and lens angle. The camera path is located outside the trajectory line and the occlusion line. For example, as shown in FIG7 , the camera path is located outside the trajectory line and the occlusion line, and the camera's perspective world on the camera path crosses the occlusion line to reach the trajectory line, and does not occlude the trajectory point.
在本申请实施例中,终端设备可以根据至少一个轨迹属性,确定地图控制系数。实施中,终端设备可以根据下列方式确定地图控制系数:In an embodiment of the present application, the terminal device may determine the map control coefficient according to at least one trajectory attribute. In implementation, the terminal device may determine the map control coefficient according to the following method:
终端设备根据轨迹长度,确定缩放比例。The terminal device determines the scaling ratio based on the trajectory length.
在一些实施例中,终端设备可以根据轨迹长度与缩放比例的对应关系,确定所述轨迹长度对应的缩放比例。其中,缩放比例包括最大值和最小值。并且,终端设备还可以根据轨迹长度,在缩放比例的范围内调整缩放比例。In some embodiments, the terminal device may determine the scaling ratio corresponding to the track length according to the corresponding relationship between the track length and the scaling ratio. The scaling ratio includes a maximum value and a minimum value. In addition, the terminal device may also adjust the scaling ratio within the scaling ratio range according to the track length.
例如,轨迹长度L为1000米时,终端设备根据轨迹长度与缩放比例的对应关系,确定L对应的缩放比例zoom的最大值为13.5,最小值为11.5;即终端设备确定L对应的zoom值处于[11.5,13.5]的范围内。其中,在轨迹播放过程中,zoom值会随着已绘制轨迹的L的变化在[11.5,13.5]范围内进行波动,L越大,zoom值越小。For example, when the track length L is 1000 meters, the terminal device determines that the maximum value of the zoom ratio corresponding to L is 13.5 and the minimum value is 11.5 according to the corresponding relationship between the track length and the zoom ratio; that is, the terminal device determines that the zoom value corresponding to L is in the range of [11.5, 13.5]. During the track playback process, the zoom value will fluctuate in the range of [11.5, 13.5] as the L of the drawn track changes. The larger the L, the smaller the zoom value.
在一些实施例中,终端设备还可以根据轨迹点的海拔高度和轨迹长度,确定缩放比例。终端设备在确定出缩放比例后,根据轨迹长度和海拔高度的变化,在该缩放比例的范围内调整缩放比例。In some embodiments, the terminal device may also determine the zoom ratio according to the altitude of the track point and the track length. After determining the zoom ratio, the terminal device adjusts the zoom ratio within the range of the zoom ratio according to changes in the track length and the altitude.
在一些实施例中,终端设备还可以根据轨迹长度与缩放比例的对应关系,确定所述轨迹长度对应的至少一个缩放比例。终端设备根据轨迹点地形与缩放比例的对应关系,从至少一个缩放比例中确定轨迹点地形对应的目标缩放比例。In some embodiments, the terminal device may also determine at least one scaling ratio corresponding to the track length according to the corresponding relationship between the track length and the scaling ratio. The terminal device determines a target scaling ratio corresponding to the track point terrain from at least one scaling ratio according to the corresponding relationship between the track point terrain and the scaling ratio.
例如,轨迹长度L为5米时,终端设备根据轨迹长度与缩放比例的对应关系,确定L对应的zoom值为14和[12.5,13.5],并根据轨迹点地形与缩放比例的对应关系,从14和[12.5,13.5]选取14作为平原对应的目标缩放比例。For example, when the trajectory length L is 5 meters, the terminal device determines that the zoom value corresponding to L is 14 and [12.5, 13.5] according to the correspondence between the trajectory length and the zoom ratio, and selects 14 from 14 and [12.5, 13.5] as the target zoom ratio corresponding to the plain according to the correspondence between the trajectory point terrain and the zoom ratio.
在一些实施例中,终端设备还可以根据轨迹点的海拔高度和轨迹点位置,确定缩放比例。在本申请实施例中,终端设备还可以通过其他方式确定缩放比例,在比并不作限。In some embodiments, the terminal device may also determine the scaling ratio according to the altitude of the track point and the position of the track point. In the embodiment of the present application, the terminal device may also determine the scaling ratio in other ways, which are not limited to the above.
在本申请实施例中,终端设备可以根据轨迹点的海拔高度和运动类型,确定高程系数。In an embodiment of the present application, the terminal device can determine the elevation coefficient based on the altitude and movement type of the trajectory point.
终端设备根据轨迹点的海拔高度,确定轨迹点的海拔高度差,并根据海拔高度差和运动类型,确定高程系数。其中,高程系数与轨迹点的海拔高度差呈正相关。The terminal device determines the altitude difference of the track point according to the altitude of the track point, and determines the elevation coefficient according to the altitude difference and the movement type. The elevation coefficient is positively correlated with the altitude difference of the track point.
在一些实施例中,高程系数用于修改地图中的高程,进而来改变地图中地表的起伏程度。In some embodiments, the elevation coefficient is used to modify the elevation in the map, thereby changing the undulation of the surface in the map.
终端设备可以根据运动类型,确定运动类型对应的至少一个高程系数。终端设备可以根据海拔高度差,从至少一个高程系数中确定出一个作为高程系数。The terminal device may determine at least one elevation coefficient corresponding to the movement type according to the movement type. The terminal device may determine one of the at least one elevation coefficients as the elevation coefficient according to the altitude difference.
例如,运动类型为爬山时,爬山对应的高程系数分别为1.1、1.3;其中,当轨迹点的海拔高度差100米时,终端设备确定高程系数可以为1.1;当海拔高度差为200米时,确定高程系数为1.3。For example, when the sport type is mountain climbing, the corresponding elevation coefficients for mountain climbing are 1.1 and 1.3 respectively; when the altitude difference of the trajectory point is 100 meters, the terminal device determines that the elevation coefficient can be 1.1; when the altitude difference is 200 meters, the elevation coefficient is determined to be 1.3.
在一些实施例中,终端设备还可以根据轨迹点地形确定高程系数。实施中,终端设备可以根据轨迹点地形与高程系数的对应关系,确定高程系数。例如,终端设备确定轨迹点地形为山地时,确定高程系数的初始值为1.5。In some embodiments, the terminal device may also determine the elevation coefficient according to the terrain of the track point. In implementation, the terminal device may determine the elevation coefficient according to the correspondence between the terrain of the track point and the elevation coefficient. For example, when the terminal device determines that the terrain of the track point is mountainous, the initial value of the elevation coefficient is determined to be 1.5.
在一些实施例中,地图控制系数还包括是否展示3D楼块。终端设备根据轨迹属性中的轨迹点地形,确定是否需要展示3D楼块。例如,轨迹属性中的轨迹点地形为山地时,确定不需要展示3D楼块。In some embodiments, the map control coefficient also includes whether to display 3D building blocks. The terminal device determines whether to display 3D building blocks according to the terrain of the track point in the track attribute. For example, when the terrain of the track point in the track attribute is mountainous, it is determined that the 3D building blocks do not need to be displayed.
步骤302:终端设备根据轨迹播放信息,在地图中播放运动轨迹。Step 302: The terminal device plays the motion trajectory on the map according to the trajectory playback information.
本申请实施中,终端设备根据地图控制系数调整地图,并基于镜头数据设置镜头。然后,终端设备基于所述镜头,在调整后的地图中播放根据轨迹点序列绘制的运动轨迹。In the implementation of the present application, the terminal device adjusts the map according to the map control coefficient and sets the lens based on the lens data. Then, the terminal device plays the motion trajectory drawn according to the trajectory point sequence in the adjusted map based on the lens.
终端设备根据轨迹点序列,在地图上绘制运动轨迹。并且,终端设备在根据镜头数据确定运动轨迹 的显示视角,以及根据地图控制系数,确定地图的显示比例。The terminal device draws the motion trajectory on the map according to the trajectory point sequence. In addition, the terminal device determines the motion trajectory according to the lens data. The display viewing angle and the display scale of the map are determined according to the map control coefficient.
在一些实施例中,当镜头数据包括镜头角度时,终端设备根据镜头角度和轨迹点位置,设置镜头。其中,镜头的视角会随着运动轨迹的播放而进行变化。In some embodiments, when the lens data includes a lens angle, the terminal device sets the lens according to the lens angle and the position of the track point, wherein the lens angle changes as the motion track is played.
在另一些实施例中,当镜头数据包括相机路径时,终端设备根据相机路径设置镜头。其中,镜头的视角会随着运动轨迹的播放,按照相机路径变化。In other embodiments, when the lens data includes a camera path, the terminal device sets the lens according to the camera path, wherein the viewing angle of the lens changes according to the camera path as the motion trajectory is played.
并且,在运动轨迹播放过程中,终端设备还可以根据已绘制轨迹中轨迹点的海拔高度,调整高程系数,以及根据已绘制轨迹的轨迹长度,调整缩放比例。Furthermore, during the motion trajectory playback process, the terminal device may also adjust the elevation coefficient according to the altitude of the trajectory point in the drawn trajectory, and adjust the zoom ratio according to the trajectory length of the drawn trajectory.
在一种实施例中,终端设备可以根据确定出的缩放比例,基于轨迹长度调整地图的缩放比例。终端设备可以根据轨迹点的海拔高度和运动类型确定出高程系数后,根据确定出的高程系数调整地图中的高程,来改变地图中地表的起伏程度。In one embodiment, the terminal device can adjust the zoom ratio of the map based on the determined zoom ratio and the track length. After determining the elevation coefficient based on the altitude and the movement type of the track point, the terminal device can adjust the elevation in the map based on the determined elevation coefficient to change the undulation of the surface in the map.
实施中,终端设备在确定出缩放比例的初始值和高程系数的初始值后,根据初始值修改地图控制系数中的缩放比例和高程系数。并且,终端设备在调整后的地图中,基于镜头播放运动轨迹。In implementation, after determining the initial value of the zoom ratio and the initial value of the elevation coefficient, the terminal device modifies the zoom ratio and the elevation coefficient in the map control coefficient according to the initial value. In addition, the terminal device plays the motion trajectory based on the lens in the adjusted map.
在一些实施例中,终端设备在轨迹播放过程中,随着轨迹长度和轨迹点的海拔高度的变化,会对地图控制系数进行动态修改,以使地图能够随着运动轨迹的变化而变化,从而减小或避免轨迹线外溢的问题发生。In some embodiments, during the trajectory playback process, the terminal device will dynamically modify the map control coefficient as the trajectory length and the altitude of the trajectory points change, so that the map can change with the movement trajectory, thereby reducing or avoiding the problem of trajectory line overflow.
实施中,终端设备在轨迹播放过程中,确定已绘制轨迹点的海拔高度,并根据已绘制轨迹点的海拔高度,动态修改所述高程系数。In implementation, during the trajectory playback process, the terminal device determines the altitude of the drawn trajectory points, and dynamically modifies the altitude coefficient according to the altitude of the drawn trajectory points.
例如,终端设备确定高程系数的初始值为1.5。终端设备在轨迹绘制过程中,确定已绘制轨迹点的海拔高度。随着已绘制轨迹点的海拔高度的增加,不断修改高程系数;当已绘制轨迹点的海拔高度差增加到200米时,终端设备可以将高程系数从1.5调高至1.7。For example, the terminal device determines that the initial value of the elevation coefficient is 1.5. During the trajectory drawing process, the terminal device determines the altitude of the drawn trajectory point. As the altitude of the drawn trajectory point increases, the elevation coefficient is continuously modified; when the altitude difference of the drawn trajectory point increases to 200 meters, the terminal device can increase the elevation coefficient from 1.5 to 1.7.
终端设备在轨迹播放过程中,确定已绘制轨迹的轨迹长度,并根据已绘制轨迹的轨迹长度,动态修改缩放比例。During the trajectory playback process, the terminal device determines the trajectory length of the drawn trajectory, and dynamically modifies the zoom ratio according to the trajectory length of the drawn trajectory.
例如,如图8所示,终端设备在刚开始绘制运动轨迹时,已绘制轨迹的轨迹长度最小,此时,地图的缩放比例最大。在终端设备绘制运动轨迹的过程中,随着已绘制轨迹的轨迹长度的增加,地图的缩放比例逐渐减小,来较为完整地在显示界面中显示运动轨迹。并且,在终端设备绘制运动轨迹的过程中,镜头视角一直随着运动轨迹变化而变化。当运动轨迹绘制完成时,地图的缩放比例最小。For example, as shown in FIG8 , when the terminal device just starts to draw the motion trajectory, the length of the drawn trajectory is the smallest, and at this time, the zoom ratio of the map is the largest. In the process of the terminal device drawing the motion trajectory, as the length of the drawn trajectory increases, the zoom ratio of the map gradually decreases to more completely display the motion trajectory in the display interface. In addition, in the process of the terminal device drawing the motion trajectory, the lens angle of view changes with the motion trajectory. When the motion trajectory is drawn, the zoom ratio of the map is the smallest.
在本申请中,终端设备根据轨迹点地形、运动类型、轨迹点位置、轨迹点长度以及轨迹点的海拔高度等轨迹属性,动态修改镜头角度以及地图控制系数,从而可以保证在运动轨迹的绘制过程中,减少甚至避免轨迹线外溢问题的发生,进而可以提高用户的体验。In this application, the terminal device dynamically modifies the lens angle and map control coefficient according to the trajectory attributes such as the trajectory point terrain, motion type, trajectory point position, trajectory point length and altitude of the trajectory point, so as to ensure that in the process of drawing the motion trajectory, the occurrence of trajectory line overflow problems is reduced or even avoided, thereby improving the user experience.
在一种实施例中,当镜头数据包括相机路径时,终端设备直接根据轨迹点序列将运动轨迹绘制完成。其中,地图控制系数可以为预先设定的固定值。终端设备播放运动轨迹时,根据相机路径确定运动轨迹的注视视角,以注视视角来播放运动轨迹。In one embodiment, when the lens data includes a camera path, the terminal device directly draws the motion trajectory according to the trajectory point sequence. The map control coefficient may be a preset fixed value. When the terminal device plays the motion trajectory, the gaze angle of the motion trajectory is determined according to the camera path, and the motion trajectory is played with the gaze angle.
例如,如图9所示,终端设备根据轨迹点序列绘制运动轨迹,运动轨迹为图9中的粗黑线部分。终端设备以运动轨迹的起始点为起点,按照相机路径来播放运动轨迹,直至相机视角到达运动轨迹的起始点,运动轨迹显示结束。在终端设备播放运动轨迹的过程中,用户的注视视角变为电影视角,查看运动轨迹。For example, as shown in FIG9 , the terminal device draws a motion trajectory according to the sequence of trajectory points, and the motion trajectory is the thick black line portion in FIG9 . The terminal device takes the starting point of the motion trajectory as the starting point and plays the motion trajectory according to the camera path until the camera view reaches the starting point of the motion trajectory, and the motion trajectory display ends. During the process of the terminal device playing the motion trajectory, the user's gaze perspective changes to a movie perspective to view the motion trajectory.
在本申请中,终端设备通过设置观察点和遮挡点,建立相机路径,将运动轨迹的注视视角转变为电影视角,在减小了遮挡物对轨迹点的遮挡的同时,还增加了运动轨迹的可视化,提供了用户体验。In this application, the terminal device sets observation points and occlusion points to establish a camera path, and transforms the viewing perspective of the motion trajectory into a movie perspective. While reducing the occlusion of the trajectory points by obstructions, it also increases the visualization of the motion trajectory and provides a better user experience.
基于上述实施例,本申请实施例还提供一种轨迹播放系统。如图10所示,该轨迹播放系统包括门户数据库,预处理单元,特征值提取单元,算法单元,地图单元和运动健康单元。Based on the above embodiments, the present application also provides a track playback system. As shown in FIG10 , the track playback system includes a portal database, a preprocessing unit, a feature value extraction unit, an algorithm unit, a map unit and a sports health unit.
其中,门户数据库用于存储用户的运动数据。Among them, the portal database is used to store users' sports data.
预处理单元用于对从门户数据库中获取到的运动数据进行预处理,剔除异常数据。The preprocessing unit is used to preprocess the motion data obtained from the portal database and eliminate abnormal data.
特征值提取单元,用于获取预处理单元输出的处理后的运动数据,并对运动数据进行特征值识别,获取轨迹属性。其中,轨迹属性包括但不限于轨迹长度、运动类型、轨迹点的海拔高度、轨迹点地形、轨迹点位置。The feature value extraction unit is used to obtain the processed motion data output by the preprocessing unit, and perform feature value recognition on the motion data to obtain trajectory attributes, wherein the trajectory attributes include but are not limited to trajectory length, motion type, altitude of trajectory points, terrain of trajectory points, and location of trajectory points.
算法单元用于根据轨迹属性,确定轨迹点序列、镜头数据和地图控制系数。其中,算法单元包括算法1和算法2。算法单元响应于用户选取的运动轨迹显示方式,将轨迹属性输入到运动轨迹显示方式对 应的算法中,得到相应的轨迹点序列、镜头数据和地图控制系数。例如,算法1对应的显式方式为普通显示运动轨迹,算法1输出的镜头数据包括镜头角度和轨迹点位置。算法2对应的显示方式为电影视角显示运动轨迹,算法2输出的镜头数据包括相机路径。The algorithm unit is used to determine the trajectory point sequence, lens data and map control coefficient according to the trajectory attributes. The algorithm unit includes Algorithm 1 and Algorithm 2. The algorithm unit responds to the motion trajectory display mode selected by the user and inputs the trajectory attributes into the motion trajectory display mode. In the corresponding algorithm, the corresponding trajectory point sequence, lens data and map control coefficient are obtained. For example, the explicit mode corresponding to Algorithm 1 is the ordinary display motion trajectory, and the lens data output by Algorithm 1 includes the lens angle and trajectory point position. The display mode corresponding to Algorithm 2 is the movie perspective display motion trajectory, and the lens data output by Algorithm 2 includes the camera path.
地图单元用于根据接收到的算法单元发送的轨迹点序列、镜头数据和地图控制系数,绘制运动轨迹,确定镜头视角并调整地图的控制系数,得到运动轨迹的显示画面。地图单元将得到的显示画面发送给运动健康单元。The map unit is used to draw the motion trajectory, determine the lens angle and adjust the map control coefficient according to the trajectory point sequence, lens data and map control coefficient sent by the algorithm unit, and obtain the display screen of the motion trajectory. The map unit sends the obtained display screen to the sports health unit.
运动健康单元用于将接收到的显示画面在显示界面中进行显示,完成运动轨迹的播放。The sports health unit is used to display the received display image in the display interface to complete the playback of the sports trajectory.
基于以上实施例及相同构思,本申请实施例还提供一种电子设备,所述电子设备用于实现本申请实施例提供的空调控制方法。如图11中所示,所述终端设备1100可以包括:显示屏1101,存储器1102,一个或多个处理器1103,以及一个或多个计算机程序(图中未示出)。上述各器件可以通过一个或多个通信总线1104耦合。Based on the above embodiments and the same concept, the embodiments of the present application also provide an electronic device, which is used to implement the air conditioning control method provided in the embodiments of the present application. As shown in FIG. 11 , the terminal device 1100 may include: a display screen 1101, a memory 1102, one or more processors 1103, and one or more computer programs (not shown in the figure). The above-mentioned devices can be coupled via one or more communication buses 1104.
其中,显示屏1101用于显示运动轨迹、图像、视频、应用界面等相关用户界面。存储器1102中存储有一个或多个计算机程序(代码),所述一个或多个计算机程序包括计算机指令;一个或多个处理器1103调用存储器1102中存储的所述计算机指令,使得终端设备1100执行本申请实施例提供的轨迹播放方法。The display screen 1101 is used to display relevant user interfaces such as motion trajectories, images, videos, and application interfaces. The memory 1102 stores one or more computer programs (codes), and the one or more computer programs include computer instructions; one or more processors 1103 call the computer instructions stored in the memory 1102, so that the terminal device 1100 executes the trajectory playback method provided in the embodiment of the present application.
具体实现中,所述存储器1102可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。所述存储器1102可以存储操作系统(下述简称系统),例如ANDROID,IOS,WINDOWS,或者LINUX等嵌入式操作系统。所述存储器1102可用于存储本申请实施例的实现程序。所述存储器1102还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个用户设备,一个或多个网络设备进行通信。所述一个或多个处理器1103可以是一个通用中央处理器(Central Processing Unit,CPU),微处理器,特定应用集成电路(Application-Specific Integrated Circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。In a specific implementation, the memory 1102 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 1102 may store an operating system (hereinafter referred to as system), such as ANDROID, IOS, WINDOWS, or embedded operating systems such as LINUX. The memory 1102 may be used to store the implementation program of the embodiment of the present application. The memory 1102 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more user devices, and one or more network devices. The one or more processors 1103 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
需要说明的,图11仅仅是本申请实施例提供的终端设备1100的一种实现方式,实际应用中,终端设备1100还可以包括更多或更少的部件,这里不作限制。It should be noted that FIG. 11 is only one implementation of the terminal device 1100 provided in an embodiment of the present application. In actual applications, the terminal device 1100 may also include more or fewer components, which is not limited here.
基于以上实施例及相同构思,本申请实施例还提供一种轨迹播放装置,该装置可以应用于图11所示的终端设备中。如图12中所示,所述轨迹播放装置1200可以包括:Based on the above embodiments and the same concept, the present application embodiment further provides a track playback device, which can be applied to the terminal device shown in Figure 11. As shown in Figure 12, the track playback device 1200 may include:
确定单元1201,用于根据用户的运动数据,确定所述用户的运动轨迹的轨迹播放信息;其中,所述运动数据包括运动轨迹经度、运动轨迹纬度和海拔高度;所述轨迹播放信息包括轨迹点序列、镜头数据和地图控制系数;所述镜头数据用于确定所述运动轨迹的播放视角,所述地图控制系数用于表征地图的显示比例;The determining unit 1201 is used to determine the track playback information of the user's track according to the user's motion data; wherein the motion data includes the longitude, latitude and altitude of the track; the track playback information includes a track point sequence, lens data and a map control coefficient; the lens data is used to determine the playback angle of the track, and the map control coefficient is used to characterize the display ratio of the map;
播放单元1202,用于根据所述轨迹播放信息,在所述地图中播放所述运动轨迹。The playing unit 1202 is used to play the movement trajectory in the map according to the trajectory playing information.
在一种可能的实施方式中,所述确定单元1201具体用于:In a possible implementation manner, the determining unit 1201 is specifically configured to:
根据所述运动数据,确定所述运动轨迹的轨迹属性;其中,轨迹属性包括轨迹点位置、轨迹点的海拔高度和轨迹长度;Determining the trajectory attributes of the motion trajectory according to the motion data; wherein the trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length;
根据所述轨迹属性,确定所述轨迹播放信息。The track playing information is determined according to the track attribute.
在一种可能的实施方式中,当所述运动数据包括运动类型时,所述轨迹属性还包括所述运动类型。In a possible implementation, when the motion data includes a motion type, the trajectory attribute also includes the motion type.
在一种可能的实施方式中,所述确定单元1201具体用于:In a possible implementation manner, the determining unit 1201 is specifically configured to:
基于所述轨迹属性中的所述轨迹点位置,获得所述轨迹点序列;Based on the trajectory point positions in the trajectory attributes, obtaining the trajectory point sequence;
根据至少一个所述轨迹属性,确定所述地图控制系数;所述地图控制系数包括缩放比例和高程系数;所述高程系数用于表征所述地图中高程的相对变化情况。The map control coefficient is determined according to at least one of the trajectory attributes; the map control coefficient includes a zoom ratio and an elevation coefficient; the elevation coefficient is used to characterize the relative change of the elevation in the map.
在一种可能的实施方式中,所述确定单元1201具体用于:In a possible implementation manner, the determining unit 1201 is specifically configured to:
根据所述轨迹长度,确定所述缩放比例;Determining the scaling ratio according to the trajectory length;
根据所述轨迹点的海拔高度和所述运动类型,确定所述高程系数;所述高程系数与所述轨迹点的海拔高度差呈正相关。The elevation coefficient is determined according to the altitude of the trajectory point and the movement type; the elevation coefficient is positively correlated with the altitude difference of the trajectory point.
在一种可能的实施方式中,所述确定单元1201具体用于: In a possible implementation manner, the determining unit 1201 is specifically configured to:
根据所述运动类型,确定所述镜头数据;所述镜头数据包括镜头角度。The lens data is determined according to the motion type; the lens data includes a lens angle.
在一种可能的实施方式中,所述确定单元1201具体用于:In a possible implementation manner, the determining unit 1201 is specifically configured to:
根据所述轨迹点位置和所述轨迹点的海拔高度,确定所述镜头数据;所述镜头数据包括相机路径;所述相机路径包括镜头角度和相机位置。The lens data is determined according to the position of the track point and the altitude of the track point; the lens data includes a camera path; and the camera path includes a lens angle and a camera position.
在一种可能的实施方式中,所述确定单元1201具体用于:In a possible implementation manner, the determining unit 1201 is specifically configured to:
根据所述轨迹点位置,获得初始轨迹;According to the positions of the trajectory points, an initial trajectory is obtained;
按照设定的轨迹点距离间隔从所述初始轨迹中提取多个轨迹点作为相机视觉焦点;Extracting a plurality of trajectory points from the initial trajectory as camera visual focus according to a set trajectory point distance interval;
在所述地图中,确定所述初始轨迹对应的轨迹区域,并将所述轨迹区域内的海拔最高点作为遮挡点;In the map, determining a track area corresponding to the initial track, and taking the highest point in the track area as an occlusion point;
根据所述相机视觉焦点和所述遮挡点,确定所述相机路径。The camera path is determined according to the camera visual focus and the occlusion point.
在一种可能的实施方式中,所述确定单元1201具体用于:In a possible implementation manner, the determining unit 1201 is specifically configured to:
根据所述相机视觉焦点,确定观察点的视角区域;所述观察点为所述相机的视觉焦点与所述相机视觉焦点重合时所述相机的位置点;Determine the viewing angle area of the observation point according to the visual focus of the camera; the observation point is the position point of the camera when the visual focus of the camera coincides with the visual focus of the camera;
当所述视角区域不包含所述遮挡点时,将所述观察点的位置以及所述观察点的镜头角度作为所述相机路径。When the viewing angle area does not include the occlusion point, the position of the observation point and the lens angle of the observation point are used as the camera path.
在一种可能的实施方式中,所述播放单元1202具体用于:In a possible implementation, the playback unit 1202 is specifically configured to:
根据所述地图控制系数调整所述地图;adjusting the map according to the map control coefficient;
基于所述镜头数据设置所述镜头;Setting the lens based on the lens data;
基于所述镜头,在调整后的地图中播放根据所述轨迹点序列绘制的运动轨迹。Based on the lens, a motion trajectory drawn according to the sequence of trajectory points is played in the adjusted map.
在一种可能的实施方式中,在所述运动轨迹播放过程中,所述播放单元1202还用于:In a possible implementation, during the motion trajectory playback process, the playback unit 1202 is further configured to:
确定已绘制轨迹的轨迹长度和已绘制轨迹点的海拔高度;determining the track length of the drawn track and the altitude of the drawn track points;
根据所述已绘制轨迹的轨迹长度,确定所述地图的缩放比例;Determining a zoom ratio of the map according to the track length of the drawn track;
根据所述已绘制轨迹点的海拔高度,确定所述地图的高程系数;Determining the elevation coefficient of the map according to the altitude of the drawn trajectory points;
根据所述地图的缩放比例和所述地图的高程系数,调整所述地图。The map is adjusted according to a zoom ratio of the map and an elevation factor of the map.
基于以上实施例,本申请还提供一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行本申请实施例所描述的方法。Based on the above embodiments, the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which enables a computer to execute the method described in the embodiments of the present application when the computer program is executed.
基于以上实施例,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行本申请实施例所描述的方法。Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method described in the embodiments of the present application.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system), and computer program product according to the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (25)

  1. 一种轨迹播放方法,其特征在于,包括:A trajectory playing method, characterized by comprising:
    根据用户的运动数据,确定所述用户的运动轨迹的轨迹播放信息;其中,所述运动数据包括运动轨迹经度、运动轨迹纬度和海拔高度;所述轨迹播放信息包括轨迹点序列、镜头数据和地图控制系数;所述镜头数据用于确定所述运动轨迹的播放视角,所述地图控制系数用于表征地图的显示比例;Determine the track playback information of the user's track according to the user's motion data; wherein the motion data includes the longitude, latitude and altitude of the track; the track playback information includes a track point sequence, lens data and a map control coefficient; the lens data is used to determine the playback viewing angle of the track, and the map control coefficient is used to characterize the display ratio of the map;
    根据所述轨迹播放信息,在所述地图中播放所述运动轨迹。The motion trajectory is played in the map according to the trajectory playing information.
  2. 根据权利要求1所述的方法,其特征在于,所述根据用户的运动数据,确定轨迹播放信息,包括:The method according to claim 1, characterized in that determining the track playback information according to the user's motion data comprises:
    根据所述运动数据,确定所述运动轨迹的轨迹属性;其中,轨迹属性包括轨迹点位置、轨迹点的海拔高度和轨迹长度;Determining the trajectory attributes of the motion trajectory according to the motion data; wherein the trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length;
    根据所述轨迹属性,确定所述轨迹播放信息。The track playing information is determined according to the track attribute.
  3. 根据权利要求2所述的方法,其特征在于,当所述运动数据包括运动类型时,所述轨迹属性还包括所述运动类型。The method according to claim 2 is characterized in that, when the motion data includes a motion type, the trajectory attribute also includes the motion type.
  4. 根据权利要求2-3任一项所述的方法,其特征在于,所述根据所述轨迹属性,确定所述轨迹播放信息,包括:The method according to any one of claims 2 to 3, characterized in that determining the track playback information according to the track attribute comprises:
    基于所述轨迹属性中的所述轨迹点位置,获得所述轨迹点序列;Based on the trajectory point positions in the trajectory attributes, obtaining the trajectory point sequence;
    根据至少一个所述轨迹属性,确定所述地图控制系数;所述地图控制系数包括缩放比例和高程系数;所述高程系数用于表征所述地图中高程的相对变化情况。The map control coefficient is determined according to at least one of the trajectory attributes; the map control coefficient includes a zoom ratio and an elevation coefficient; the elevation coefficient is used to characterize the relative change of the elevation in the map.
  5. 根据权利要求4所述的方法,其特征在于,所述根据至少一个所述轨迹属性,确定所述地图控制系数,包括:The method according to claim 4, characterized in that the determining the map control coefficient according to at least one of the trajectory attributes comprises:
    根据所述轨迹长度,确定所述缩放比例;Determining the scaling ratio according to the trajectory length;
    根据所述轨迹点的海拔高度和所述运动类型,确定所述高程系数;所述高程系数与所述轨迹点的海拔高度差呈正相关。The elevation coefficient is determined according to the altitude of the trajectory point and the movement type; the elevation coefficient is positively correlated with the altitude difference of the trajectory point.
  6. 根据权利要求2-3任一项所述的方法,其特征在于,所述根据所述轨迹属性,确定所述轨迹播放信息,包括:The method according to any one of claims 2 to 3, characterized in that determining the track playback information according to the track attribute comprises:
    根据所述运动类型,确定所述镜头数据;所述镜头数据包括镜头角度。The lens data is determined according to the motion type; the lens data includes a lens angle.
  7. 根据权利要求2-3任一项所述的方法,其特征在于,所述根据所述轨迹属性,确定所述轨迹播放信息,包括:The method according to any one of claims 2 to 3, characterized in that determining the track playback information according to the track attribute comprises:
    根据所述轨迹点位置和所述轨迹点的海拔高度,确定所述镜头数据;所述镜头数据包括相机路径;所述相机路径包括镜头角度和相机位置。The lens data is determined according to the position of the track point and the altitude of the track point; the lens data includes a camera path; and the camera path includes a lens angle and a camera position.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述轨迹点位置和所述轨迹点的海拔高度,确定所述镜头数据,包括:The method according to claim 7, characterized in that the step of determining the lens data according to the position of the trajectory point and the altitude of the trajectory point comprises:
    根据所述轨迹点位置,获得初始轨迹;According to the positions of the trajectory points, an initial trajectory is obtained;
    按照设定的轨迹点距离间隔从所述初始轨迹中提取多个轨迹点作为相机视觉焦点;Extracting a plurality of trajectory points from the initial trajectory as camera visual focus according to a set trajectory point distance interval;
    在所述地图中,确定所述初始轨迹对应的轨迹区域,并将所述轨迹区域内的海拔最高点作为遮挡点;In the map, determining a track area corresponding to the initial track, and taking the highest point in the track area as an occlusion point;
    根据所述相机视觉焦点和所述遮挡点,确定所述相机路径。The camera path is determined according to the camera visual focus and the occlusion point.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述相机视觉焦点和所述遮挡点,确定所述相机路径,包括:The method according to claim 8, characterized in that the step of determining the camera path according to the camera visual focus and the occlusion point comprises:
    根据所述相机视觉焦点,确定观察点的视角区域;其中,所述观察点为所述相机的视觉焦点与所述相机视觉焦点重合时所述相机的位置点;Determine the viewing angle area of the observation point according to the camera visual focus; wherein the observation point is the position point of the camera when the camera visual focus coincides with the camera visual focus;
    当所述视角区域不包含所述遮挡点时,将所述观察点的位置以及所述观察点的镜头角度作为所述相 机路径。When the viewing angle area does not contain the occlusion point, the position of the viewing point and the lens angle of the viewing point are used as the relative Machine path.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述根据所述轨迹播放信息,在所述地图中播放所述运动轨迹,包括:The method according to any one of claims 1 to 9, characterized in that playing the motion trajectory in the map according to the trajectory playing information comprises:
    根据所述地图控制系数调整所述地图;adjusting the map according to the map control coefficient;
    基于所述镜头数据设置所述镜头;Setting the lens based on the lens data;
    基于所述镜头,在调整后的地图中播放根据所述轨迹点序列绘制的运动轨迹。Based on the lens, a motion trajectory drawn according to the sequence of trajectory points is played in the adjusted map.
  11. 根据权利要求10所述的方法,其特征在于,在所述运动轨迹播放过程中,所述方法还包括:The method according to claim 10, characterized in that, during the motion trajectory playback process, the method further comprises:
    确定已绘制轨迹的轨迹长度和已绘制轨迹点的海拔高度;determining the track length of the drawn track and the altitude of the drawn track points;
    根据所述已绘制轨迹的轨迹长度,确定所述地图的缩放比例;Determining a zoom ratio of the map according to the track length of the drawn track;
    根据所述已绘制轨迹点的海拔高度,确定所述地图的高程系数;Determining the elevation coefficient of the map according to the altitude of the drawn trajectory points;
    根据所述地图的缩放比例和所述地图的高程系数,调整所述地图。The map is adjusted according to a zoom ratio of the map and an elevation factor of the map.
  12. 一种轨迹播放装置,其特征在于,包括:A track playback device, characterized by comprising:
    确定单元,用于根据用户的运动数据,确定所述用户的运动轨迹的轨迹播放信息;其中,所述运动数据包括运动轨迹经度、运动轨迹纬度和海拔高度;所述轨迹播放信息包括轨迹点序列、镜头数据和地图控制系数;所述镜头数据用于确定所述运动轨迹的播放视角,所述地图控制系数用于表征地图的显示比例;A determination unit, configured to determine the track playback information of the user's track according to the user's motion data; wherein the motion data includes the longitude, latitude and altitude of the track; the track playback information includes a track point sequence, lens data and a map control coefficient; the lens data is used to determine the playback viewing angle of the track, and the map control coefficient is used to characterize the display ratio of the map;
    播放单元,用于根据所述轨迹播放信息,在所述地图中播放所述运动轨迹。A playback unit is used to play the motion trajectory in the map according to the trajectory playback information.
  13. 根据权利要求12所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 12, characterized in that the determining unit is specifically used to:
    根据所述运动数据,确定所述运动轨迹的轨迹属性;其中,轨迹属性包括轨迹点位置、轨迹点的海拔高度和轨迹长度;Determining the trajectory attributes of the motion trajectory according to the motion data; wherein the trajectory attributes include the position of the trajectory point, the altitude of the trajectory point, and the trajectory length;
    根据所述轨迹属性,确定所述轨迹播放信息。The track playing information is determined according to the track attribute.
  14. 根据权利要求13所述的装置,其特征在于,当所述运动数据包括运动类型时,所述轨迹属性还包括所述运动类型。The device according to claim 13 is characterized in that when the motion data includes a motion type, the trajectory attribute also includes the motion type.
  15. 根据权利要求14所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 14, characterized in that the determining unit is specifically used to:
    基于所述轨迹属性中的所述轨迹点位置,获得所述轨迹点序列;Based on the trajectory point positions in the trajectory attributes, obtaining the trajectory point sequence;
    根据至少一个所述轨迹属性,确定所述地图控制系数;所述地图控制系数包括缩放比例和高程系数;所述高程系数用于表征所述地图中高程的相对变化情况。The map control coefficient is determined according to at least one of the trajectory attributes; the map control coefficient includes a zoom ratio and an elevation coefficient; the elevation coefficient is used to characterize the relative change of the elevation in the map.
  16. 根据权利要求15所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 15, characterized in that the determining unit is specifically used to:
    根据所述轨迹长度,确定所述缩放比例;Determining the scaling ratio according to the trajectory length;
    根据所述轨迹点的海拔高度和所述运动类型,确定所述高程系数;所述高程系数与所述轨迹点的海拔高度差呈正相关。The elevation coefficient is determined according to the altitude of the trajectory point and the movement type; the elevation coefficient is positively correlated with the altitude difference of the trajectory point.
  17. 根据权利要求13-14任一项所述的装置,其特征在于,所述确定单元具体用于:The device according to any one of claims 13-14, characterized in that the determining unit is specifically used to:
    根据所述运动类型,确定所述镜头数据;所述镜头数据包括镜头角度。The lens data is determined according to the motion type; the lens data includes a lens angle.
  18. 根据权利要求13-14任一项所述的装置,其特征在于,所述确定单元具体用于:The device according to any one of claims 13-14, characterized in that the determining unit is specifically used to:
    根据所述轨迹点位置和所述轨迹点的海拔高度,确定所述镜头数据;所述镜头数据包括相机路径;所述相机路径包括镜头角度和相机位置。The lens data is determined according to the position of the track point and the altitude of the track point; the lens data includes a camera path; and the camera path includes a lens angle and a camera position.
  19. 根据权利要求18所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 18, wherein the determining unit is specifically configured to:
    根据所述轨迹点位置,获得初始轨迹; According to the positions of the trajectory points, an initial trajectory is obtained;
    按照设定的轨迹点距离间隔从所述初始轨迹中提取多个轨迹点作为相机视觉焦点;Extracting a plurality of trajectory points from the initial trajectory as camera visual focus according to a set trajectory point distance interval;
    在所述地图中,确定所述初始轨迹对应的轨迹区域,并将所述轨迹区域内的海拔最高点作为遮挡点;In the map, determining a track area corresponding to the initial track, and taking the highest point in the track area as an occlusion point;
    根据所述相机视觉焦点和所述遮挡点,确定所述相机路径。The camera path is determined according to the camera visual focus and the occlusion point.
  20. 根据权利要求19所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 19, wherein the determining unit is specifically configured to:
    根据所述相机视觉焦点,确定观察点的视角区域;所述观察点为所述相机的视觉焦点与所述相机视觉焦点重合时所述相机的位置点;Determine the viewing angle area of the observation point according to the visual focus of the camera; the observation point is the position point of the camera when the visual focus of the camera coincides with the visual focus of the camera;
    当所述视角区域不包含所述遮挡点时,将所述观察点的位置以及所述观察点的镜头角度作为所述相机路径。When the viewing angle area does not include the occlusion point, the position of the observation point and the lens angle of the observation point are used as the camera path.
  21. 根据权利要求12-20任一项所述的装置,其特征在于,所述播放单元具体用于:The device according to any one of claims 12 to 20, wherein the playback unit is specifically used for:
    根据所述地图控制系数调整所述地图;adjusting the map according to the map control coefficient;
    基于所述镜头数据设置所述镜头;Setting the lens based on the lens data;
    基于所述镜头,在调整后的地图中播放根据所述轨迹点序列绘制的运动轨迹。Based on the lens, a motion trajectory drawn according to the sequence of trajectory points is played in the adjusted map.
  22. 根据权利要求21所述的装置,其特征在于,在所述运动轨迹播放过程中,所述播放单元还用于:The device according to claim 21, characterized in that, during the motion trajectory playback process, the playback unit is further used to:
    确定已绘制轨迹的轨迹长度和已绘制轨迹点的海拔高度;determining the track length of the drawn track and the altitude of the drawn track points;
    根据所述已绘制轨迹的轨迹长度,确定所述地图的缩放比例;Determining a zoom ratio of the map according to the track length of the drawn track;
    根据所述已绘制轨迹点的海拔高度,确定所述地图的高程系数;Determining the elevation coefficient of the map according to the altitude of the drawn trajectory points;
    根据所述地图的缩放比例和所述地图的高程系数,调整所述地图。The map is adjusted according to a zoom ratio of the map and an elevation factor of the map.
  23. 一种终端设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;A terminal device, characterized in that it comprises: one or more processors; one or more memories;
    所述一个或多个存储器,用于存储一个或多个计算机程序以及数据信息;其中所述一个或多个计算机程序包括指令;The one or more memories are used to store one or more computer programs and data information; wherein the one or more computer programs include instructions;
    当所述指令被所述一个或多个处理器执行时,使得所述终端设备执行如权利要求1~11中任一项所述的方法。When the instructions are executed by the one or more processors, the terminal device executes the method according to any one of claims 1 to 11.
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1~11中任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.
  25. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述权利要求1~11中任意一项所述的方法。 A computer program product, characterized in that it comprises a computer program, and when the computer program is run on a computer, the computer is caused to execute the method as described in any one of claims 1 to 11 above.
PCT/CN2023/137969 2022-12-21 2023-12-11 Trajectory playback method and apparatus WO2024131584A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211651358.1A CN118227718A (en) 2022-12-21 2022-12-21 Track playing method and track playing device
CN202211651358.1 2022-12-21

Publications (1)

Publication Number Publication Date
WO2024131584A1 true WO2024131584A1 (en) 2024-06-27

Family

ID=91508973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/137969 WO2024131584A1 (en) 2022-12-21 2023-12-11 Trajectory playback method and apparatus

Country Status (2)

Country Link
CN (1) CN118227718A (en)
WO (1) WO2024131584A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180322197A1 (en) * 2017-05-03 2018-11-08 Survae Inc. Video data creation and management system
CN111510553A (en) * 2020-03-25 2020-08-07 华为技术有限公司 Motion trail display method and device and readable storage medium
CN113554932A (en) * 2020-04-23 2021-10-26 华为技术有限公司 Track playback method and related device
WO2022068887A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Method for displaying motion track, and electronic device
CN114339428A (en) * 2020-09-30 2022-04-12 华为技术有限公司 Method for dynamically replaying track and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180322197A1 (en) * 2017-05-03 2018-11-08 Survae Inc. Video data creation and management system
CN111510553A (en) * 2020-03-25 2020-08-07 华为技术有限公司 Motion trail display method and device and readable storage medium
CN113554932A (en) * 2020-04-23 2021-10-26 华为技术有限公司 Track playback method and related device
WO2022068887A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Method for displaying motion track, and electronic device
CN114339428A (en) * 2020-09-30 2022-04-12 华为技术有限公司 Method for dynamically replaying track and electronic equipment

Also Published As

Publication number Publication date
CN118227718A (en) 2024-06-21

Similar Documents

Publication Publication Date Title
US11831937B2 (en) Video generation system to render frames on demand using a fleet of GPUS
US11651022B2 (en) Video generation system to render frames on demand using a fleet of servers
US20240187702A1 (en) Selecting avatars to be included in the video being generated on demand
US9881353B2 (en) Buffers for display acceleration
CN113409427B (en) Animation playing method and device, electronic equipment and computer readable storage medium
CN111459363A (en) Information display method, device, equipment and storage medium
KR20230011349A (en) Trackpad on the back part of the device
WO2021254113A1 (en) Control method for three-dimensional interface and terminal
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
CN111031377B (en) Mobile terminal and video production method
US20230351665A1 (en) Animation Processing Method and Related Apparatus
WO2024131584A1 (en) Trajectory playback method and apparatus
CN113157092B (en) Visualization method, terminal device and storage medium
US11405341B1 (en) Audience-based content optimization in a messaging system
CN114238859A (en) Data processing system, method, electronic device, and storage medium
CN113760164A (en) Display device and response method of control operation thereof
CN111324255A (en) Application processing method based on double-screen terminal and communication terminal
WO2024140589A1 (en) Image processing methods and electronic device
CN113064537B (en) Media resource playing method, device, equipment, medium and product
WO2024099206A1 (en) Graphical interface processing method and apparatus
CN115291789B (en) Handwriting fitting method, handwriting fitting device, terminal equipment and medium
WO2024088130A1 (en) Display method and electronic device
EP4210308A1 (en) Message prompting method and electronic device
CN110458289B (en) Multimedia classification model construction method, multimedia classification method and device
CN117112087A (en) Ordering method of desktop cards, electronic equipment and medium

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: 23905750

Country of ref document: EP

Kind code of ref document: A1