A method and device for synchronous playback and display of multi-type data
By adding time stamps to multiple types of data in the vehicle-road collaboration system and performing time calibration, the problem of inconsistent data time labels is solved, synchronization of data playback and system stability are achieved, the processing process is simplified and the smoothness of the display is improved. .
Patent Information
- Application Number
- CN202111190744.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-10-13
AI Technical Summary
In the vehicle-road collaborative system, during the playback process of various historical operating data, due to the clock time difference of different data sources, the data time label is inconsistent with the real time, which affects the accuracy of data synchronization playback and system stability.
By adding upload timestamps to the first type of data stored locally, and regular time calibration for the second type of data stored off-site, the initial moment of playback and the standard frame rate are determined, and the timestamp is used to index the data to achieve synchronous playback of the data. .
It achieves the consistency of synchronous playback of multiple types of data, simplifies the data processing process, and ensures a smooth process of playback display and efficient utilization of system resources.
Smart Images

Figure CN113934883B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of information processing, and relates to a method and device for synchronous playback and display of multiple types of data. Background Art
[0002] In the vehicle-road cooperative system, data analysis and operation evaluation are one of the core capabilities of the digital twin collaborative management platform. When evaluating the operation of the vehicle-road in the historical stage, it is necessary to reproduce the complete process containing a variety of historical operation data. It is required that the various historical data involved in the playback process be synchronized to ensure accurate reproduction of the actual operation of the entire system and provide support for the operation analysis of the vehicle-road cooperative system in the later stage. Playback data usually has many sources, such as vehicle data, roadside data, video data, event data, etc. These data information from multiple sources not only have different data formats, but also different data densities (frame rates or sampling rates). In particular, these data come from different information collection devices, and there is an inevitable time difference between the clocks of different devices, which leads to the inconsistency between the time label of the data and the real time; in particular, as the system continues to run, the time difference will continue to change, resulting in the time difference between the time label of the data and the real time is not constant. Summary of the invention
[0003] The purpose of the present invention is to overcome the defects of the prior art and provide a method and device for synchronous playback and display of multi-type data with simple and easy processing, continuous and accurate playback data and high system operation stability.
[0004] To achieve the above object, the present invention adopts the following technical solutions:
[0005] A method for synchronously replaying and displaying multi-type data, comprising the following steps:
[0006] (1) Data acquisition and storage; for the first type of data stored locally, the upload time is used as the standard time to add a timestamp to the data frame; for the second type of data not stored locally, the remote storage system is regularly time-calibrated to add a timestamp of the initial moment to the data segment;
[0007] (2) Data playback and display, including: determining the initial playback time and standard frame rate; indexing the data by timestamp; data playback and display; wherein, for the first type of data, the data is directly indexed according to the timestamp based on the time of the standard frame; for the second type of data, the data is indexed according to the initial time and frame rate of the second type of data based on the time of the standard frame.
[0008] Furthermore, the first category of data includes one or more of the following data: OBU vehicle trajectory, OBU V2X information, RSU original point cloud data, and RSU identification result data.
[0009] Furthermore, the first type of data is stored as time series data, and its data format includes: timestamp and data content.
[0010] Furthermore, the second category of data includes: video surveillance data.
[0011] Furthermore, the method for the off-site storage system to periodically perform time calibration is: using NTP service updates.
[0012] Furthermore, the standard frame rate is a playback frame rate.
[0013] Furthermore, the method for replaying and displaying indexing the second type of data includes: determining the data segment according to the time of the standard frame; and determining the position of the index frame in the data segment according to the difference between the initial time of the data segment and the time of the standard frame.
[0014] To achieve the above purpose, the present invention also adopts the following technical solutions:
[0015] A multi-type data synchronous playback and display device, based on the above method, includes: a data acquisition and storage module, used to acquire data and add a timestamp to the data; a data playback and display module, used to play back and display data at a standard frame rate.
[0016] To achieve the above purpose, the present invention also adopts the following technical solutions:
[0017] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor; when the processor executes the program, the steps of the method described above are implemented.
[0018] To achieve the above purpose, the present invention also adopts the following technical solutions:
[0019] A non-transitory computer-readable storage medium stores a computer program; when the computer program is executed by a processor, the steps of the method described above are implemented.
[0020] The present invention provides a method and device for synchronous playback and display of multiple types of data. The method and device aim to solve the problems of inconsistent data frame rates and difficulty in synchronizing playback and display in playback and display of multiple types of data. The method achieves consistency of data playback by storing different types of data in a standardized format and indexing them according to the standard frame rate during playback. The method has the advantages of concise data processing, smooth playback and display screen flow without lag, and less system resource occupation. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a schematic diagram of the overall process of a method for synchronous playback and display of multi-type data provided by Embodiment 1 of the present invention;
[0022] Figure 2 It is a schematic diagram of the overall structure of a device for synchronous playback and display of multiple types of data provided by Embodiment 2 of the present invention;
[0023] Figure 3 It is a schematic diagram of the overall structure of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0024] The following is combined with Figures 1 to 3 , further illustrating a specific implementation of a method and device for synchronous playback and display of multiple types of data of the present invention. A method and device for synchronous playback and display of multiple types of data of the present invention is not limited to the description of the following embodiments.
[0025] Example 1
[0026] This embodiment provides a specific process of a method for synchronously replaying and displaying multiple types of data, such as Figure 1 As shown, the following steps are included:
[0027] (1) Data acquisition and storage.
[0028] Among them, for the first type of data stored locally, the upload time is used as the standard time to add a timestamp to the data frame; for the second type of data not stored locally, the off-site storage system is regularly time-calibrated to add a timestamp of the initial moment to the data segment.
[0029] Specifically, the first category of data mainly refers to the data generated by the operation of the vehicle-road cooperative system, and the first category of data includes one or more of the following data: OBU vehicle trajectory, OBU V2X information, RSU original point cloud data, and RSU recognition result data. The first category of data has the characteristics of high data formatting degree and small data volume, and can be uploaded to the main storage system for storage in real time through the data storage middleware. When storing, the first category of data is uploaded The time (the time when the storage system receives the data, calculated based on the storage system time) is used as the benchmark to add a timestamp to each frame of the first category of data. The first category of data is stored as time series data (time series data), and its data format includes: timestamp, data content. The second category of data includes: video surveillance data.
[0030] The second type of data includes: video surveillance data. Since the amount of this type of data is large, it is not suitable to be stored in middleware, but rather in a remote location (for example, a video surveillance system is equipped with a hard disk recorder as a surveillance data storage device). In order to ensure the consistency of time after the system has been running for a long time, it is necessary to ensure that the time of the video surveillance system is consistent with that of the main storage system. Preferably, a regular time calibration mechanism can be established, such as using NTP service updates.
[0031] (2) Data playback and display.
[0032] The evaluation process of the historical stage of vehicle-road operation is to reproduce a variety of historical operation data. In order to ensure data information synchronization and integrated display content, it is necessary to design synchronization in playback to be able to fully and accurately combine multiple types of data for synchronous viewing and analysis. The playback process mainly includes the following steps: determine the initial playback time and standard frame rate; index the data by timestamp; and playback and display the data.
[0033] Since different types of data playback have the characteristics of inconsistent data frame rates and difficult playback synchronization, this embodiment adopts the method of calculating data indexes for all types of data according to a standard frame rate to index the playback data. Specifically, for the first type of data, since the data has been indexed frame by frame in the first step, it can be directly indexed according to the time of the standard frame and the timestamp. For the second type of data, the data segment is determined based on the time of the standard frame; then the position of the index frame in the data segment is determined based on the difference between the initial time of the data segment and the time of the standard frame.
[0034] In this embodiment, by establishing a standard frame rate, each type of data is standardized as time series data with an index calculated based on the standard frame rate and stored (for video data, only the initial moment of the data segment is marked, and the standard frame position needs to be calculated on-site during revisiting). Subsequent playback uses a unified frame number to play data to achieve data synchronization alignment and playback synchronization of multiple types of data. Using the standard frame rate as the synchronization benchmark for multiple types of data has the characteristics of accurate directionality, can quickly locate the data position, and is particularly suitable for rapid response to playback progress adjustment.
[0035] Embodiment 2:
[0036] This embodiment provides a multi-type data synchronous playback display device, such as Figure 2 As shown, the method described in Example 1 is adopted, including:
[0037] A data acquisition and storage module, using the method described in step (1) of data acquisition and storage in Example 1, for acquiring data and adding a timestamp to the data;
[0038] The data playback and display module uses the method described in step (2) of data playback and display in Example 1 to play back and display data at a standard frame rate.
[0039] Example 3
[0040] This embodiment provides an electronic device, such as Figure 3As shown, the electronic device may include: a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302 and the memory 303 communicate with each other through the communication bus 304. The processor 301 may call a computer program stored in the memory 303 and executable on the processor 301 to execute the method provided in Example 1, for example, including: data acquisition and storage, and data playback display.
[0041] In addition, the logic instructions in the above-mentioned memory 303 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0042] Embodiment 4:
[0043] This embodiment provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the method provided in Embodiment 1, for example, including: data acquisition and storage, and data playback display.
[0044] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0045] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0046] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
[0047] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for synchronous playback and display of multi-type data, characterized in that: The following steps are involved: (1) Data acquisition and storage; For the first type of data stored locally, the upload time is used as the standard time to add a timestamp to the data frame; for the second type of data not stored locally, the remote storage system is regularly time-calibrated to add a timestamp of the initial moment to the data segment; (2) Data playback display, including: Determine the initial playback time and standard frame rate; Index data by timestamp; Data playback display; Among them, for the first type of data, the index is directly performed according to the timestamp based on the time of the standard frame; for the second type of data, the index is performed according to the initial time and frame rate of the second type of data based on the time of the standard frame; The first type of data includes one or more of the following data: OBU vehicle trajectory, OBU V2X information, RSU original point cloud data, RSU identification result data; The first type of data is stored as time series data, and its data format includes: timestamp and data content; The second category of data includes: video surveillance data; The method for regularly performing time calibration on the remote storage system is: using NTP service update; The standard frame rate is the playback frame rate; The method for replaying and indexing the second type of data includes: determining the data segment according to the time of the standard frame; and determining the position of the index frame in the data segment according to the difference between the initial time of the data segment and the time of the standard frame.
2. A device for synchronous playback and display of multiple types of data, characterized in that: The method for implementing claim 1 comprises: Data acquisition and storage module, used to acquire data and add timestamps to the data; The data playback and display module is used to play back and display data at a standard frame rate.
3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to claim 1 are implemented.
4. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method as claimed in claim 1 are implemented.
