Search

CN-122024349-A - Method, device, medium, system and vehicle for realizing vehicle track data playback

CN122024349ACN 122024349 ACN122024349 ACN 122024349ACN-122024349-A

Abstract

The invention provides a method, a device, a medium, a system and a vehicle for realizing playback of vehicle track data, wherein the method comprises the steps of receiving a total time range T input by a user and used for playing back the vehicle track data, dividing the total time range T into a preset number of time slices, starting from a first time slice, pulling corresponding vehicle track data from a server by using a second thread in stages according to the sequence of the time slices, and playing the pulled vehicle track data in time sequence by using the first thread, wherein when the vehicle track data of an ith time slice is played to the preset percentage of the time slice, the second thread is used for triggering preloading of the vehicle track data of an ith time slice (i+1) to the server, and i=1. By utilizing the technical scheme, under the condition that a large amount of vehicle track data is required to be loaded in vehicle track playback, the vehicle track playback can be realized while playing and loading, and the high-efficiency and smooth vehicle track playback is realized.

Inventors

  • WU ZHICONG
  • CUI LINGLI
  • FU YULONG

Assignees

  • 厦门雅迅智联科技股份有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (10)

  1. 1. A method for implementing playback of vehicle track data, wherein a client renders a vehicle track using a first thread and loads vehicle track data required for playback from a server using a second thread, the first thread being different from the second thread, the method comprising the steps performed by the client of: Receiving a total time range T input by a user and used for playing back vehicle track data; Dividing the total time range T into a predetermined number of time slices, wherein the predetermined number is N, and N is a positive integer greater than 1; Starting from a first time slice, loading corresponding vehicle track data from a server side by using the second thread in stages according to the sequence of the time slices, and rendering and playing the loaded vehicle track data according to the time sequence by using the first thread, wherein when the vehicle track data of the ith time slice is played to a preset percentage of the time slice, the second thread is used for triggering the preloading of the vehicle track data of the (i+1) th time slice to the server side, wherein i=1..N-1.
  2. 2. The method according to claim 1, wherein dividing the total time range T into a predetermined number of time slices is: the total time range T is equally divided into a predetermined number of time slices, each time slice having the same time length Δt.
  3. 3. The method of claim 1, wherein the predetermined percentage is any one of 30% to 70%.
  4. 4. A method according to claim 3, wherein the predetermined percentage is 50%.
  5. 5. The method of claim 1, further comprising, after triggering the preloading of the vehicle trajectory data for the i+1th time slice to the server: The server side uses a selected clustering algorithm to preprocess the vehicle track data to be preloaded, and the preprocessed vehicle track data is compressed and optimized; And the server transmits the preprocessed vehicle track data to the client.
  6. 6. An apparatus for effecting playback of vehicle track data, comprising a memory and a processor, the memory storing at least one program, the at least one program being executed by the processor to effect the method of any one of claims 1 to 5.
  7. 7. A computer readable storage medium, characterized in that at least one program is stored in the storage medium, the at least one program being executed by a processor to implement the method of any one of claims 1 to 5.
  8. 8. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
  9. 9. A system for implementing playback of vehicle track data, comprising a client for performing the steps performed by the client in the method according to any one of claims 1 to 5 and a server for performing the steps performed by the server in the method according to any one of claims 1 to 5.
  10. 10. A vehicle characterized in that playback of vehicle trajectory data is achieved using a method as claimed in any one of claims 1 to 5.

Description

Method, device, medium, system and vehicle for realizing vehicle track data playback Technical Field The invention relates to the field of internet of vehicles data processing, in particular to a method, a device, a medium, a system and a vehicle for realizing vehicle track data playback. Background With the rapid progress of the internet of vehicles, the data volume of vehicle track data is rapidly expanding. Specifically, for example, in internet of vehicles monitoring, previewing and playing real-time trajectory data of vehicles is critical to monitoring driving routes. The popularization of the 5G communication technology and the upgrading of the hardware of the vehicle-mounted terminal lead the track data acquisition to be more intensive and the data volume to be increased along with the track data acquisition. However, this brings a new problem in that loading a large amount of trajectory data to trace a driving route is liable to occur such as slow loading, time-out, and rendering inefficiency. At present, the traditional track data loading mode, whether one-time or segmented pulling from the background, can lead a front-end user to wait for the complete track to be seen, and the traditional track data loading mode can be operated after the back-end returns all target track data to realize track playback. In short, the conventional method is worry about processing the vehicle track data with large data quantity, and faces the challenges of low processing efficiency, long loading time, poor user experience and the like. Disclosure of Invention The embodiment of the invention provides a method, a device, a medium, a system and a vehicle for realizing vehicle track data playback, which can play and load simultaneously under the condition that a large amount of vehicle track data is required to be loaded in vehicle track playback, so as to solve the problems of low loading speed and one-time pulling of the front end and realize efficient and smooth vehicle track playback. To achieve the above object, in one aspect, a method for implementing playback of vehicle track data is provided, in which a client renders a vehicle track using a first thread and loads vehicle track data required for playback from a server using a second thread, the first thread being different from the second thread, the method including the steps performed by the client: Receiving a total time range T input by a user and used for playing back vehicle track data; Dividing the total time range T into a predetermined number of time slices, wherein the predetermined number is N, and N is a positive integer greater than 1; Starting from a first time slice, loading corresponding vehicle track data from a server side by using the second thread in stages according to the sequence of the time slices, and rendering and playing the loaded vehicle track data according to the time sequence by using the first thread, wherein when the vehicle track data of the ith time slice is played to a preset percentage of the time slice, the second thread is used for triggering the preloading of the vehicle track data of the (i+1) th time slice to the server side, wherein i=1..N-1. Preferably, the method, wherein dividing the total time range T into a predetermined number of time slices is: the total time range T is equally divided into a predetermined number of time slices, each time slice having the same time length Δt. Preferably, the method, wherein the predetermined percentage is any one of 30% to 70%. Preferably, the method, wherein the predetermined percentage is 50%. Preferably, the method further includes, after triggering the pre-loading of the vehicle track data of the (i+1) th time slice to the server, the steps of: The server side uses a selected clustering algorithm to preprocess the vehicle track data to be preloaded, and the preprocessed vehicle track data is compressed and optimized; And the server transmits the preprocessed vehicle track data to the client. In another aspect, an apparatus for enabling playback of vehicle trajectory data is provided, comprising a memory and a processor, the memory storing at least one program, the at least one program being executed by the processor to implement a method as described in any one of the above. In yet another aspect, a computer readable storage medium having stored therein at least one program that is executed by a processor to implement a method as described in any of the above. In a further aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method as described in any of the preceding claims. In yet another aspect, a system for implementing playback of vehicle track data is provided, including a client for performing the steps performed by the client in the method as described in any of the above, and a server for performing the steps performed by the server in the method as described in any of the