CN112770190A - Automobile data recorder timestamp generation method and device - Google Patents

Automobile data recorder timestamp generation method and device Download PDF

Info

Publication number
CN112770190A
CN112770190A CN202110192269.4A CN202110192269A CN112770190A CN 112770190 A CN112770190 A CN 112770190A CN 202110192269 A CN202110192269 A CN 202110192269A CN 112770190 A CN112770190 A CN 112770190A
Authority
CN
China
Prior art keywords
time
frame
image data
data
cpu
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110192269.4A
Other languages
Chinese (zh)
Other versions
CN112770190B (en
Inventor
王红铅
贾双成
朱磊
孟鹏飞
温闻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhidao Network Technology Beijing Co Ltd
Original Assignee
Zhidao Network Technology Beijing Co Ltd
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 Zhidao Network Technology Beijing Co Ltd filed Critical Zhidao Network Technology Beijing Co Ltd
Priority to CN202110192269.4A priority Critical patent/CN112770190B/en
Publication of CN112770190A publication Critical patent/CN112770190A/en
Application granted granted Critical
Publication of CN112770190B publication Critical patent/CN112770190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • G07C5/0866Registering performance data using electronic data carriers the electronic data carrier being a digital video recorder in combination with video camera
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/0875Registering performance data using magnetic data carriers
    • G07C5/0891Video recorder in combination with video camera

Abstract

The embodiment of the invention provides a method and a device for generating a time stamp of a vehicle event data recorder, wherein the method comprises the following steps: the CPU equipment acquires image data of each frame captured by the automobile data recorder in real time and records CPU kernel time corresponding to the image data of each frame; performing time synchronization on the CPU core time and the GPS time to obtain standard time corresponding to each frame of image data, wherein the GPS time is obtained after GPS real-time positioning data is analyzed, and the time difference between the CPU core time and the GPS time is fixed; generating a timestamp according to the standard time; and adding the time stamp corresponding to each frame of image data into the corresponding frame of image data to obtain an image with the time stamp. By utilizing the scheme of the invention, the accuracy of the timestamp of the video frame image recorded by the automobile data recorder can be effectively improved.

Description

Automobile data recorder timestamp generation method and device
Technical Field
The invention relates to the technical field of timestamp generation, in particular to a method and a device for generating a timestamp of an automobile data recorder.
Background
With the development of computer image technology, video monitoring products (such as automobile data recorder) are widely applied. In practical applications, the video frame images in the recorded video are usually obtained by using time stamps of the video frame images. In general, the time stamp of a video frame image may be generated as follows: firstly, local time (such as automobile data recorder time) carried by a video frame image is used as a time stamp; secondly, the time stamp of each subsequent video frame image is calculated by using the time stamp of the first frame image.
Although the above method can generate the time stamp of the video frame image, the accuracy of the time stamp generated by the first method is low because the accuracy of the local time is not high enough; the second method also has certain disadvantages, for example, a video may lose frames during transmission, and in this case, the calculated time stamp of the subsequent video frame image is easily inaccurate.
The automobile data recorder can provide relevant audio and video evidences for traffic accidents, so that the legal rights and interests of drivers are maintained. Therefore, how to make the time stamp of the generated video frame image of the automobile data recorder more accurate has become an urgent problem to be solved in the industry.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a time stamp of an automobile data recorder, which are used for improving the accuracy of the time stamp of a video frame image recorded by the automobile data recorder.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a method of event recorder timestamp generation, the method comprising:
the CPU equipment acquires image data of each frame captured by the automobile data recorder in real time and records CPU kernel time corresponding to the image data of each frame;
performing time synchronization on the CPU core time and the GPS time to obtain standard time corresponding to each frame of image data, wherein the GPS time is obtained after GPS real-time positioning data is analyzed, and the time difference between the CPU core time and the GPS time is fixed;
generating a timestamp according to the standard time;
and adding the time stamp corresponding to each frame of image data into the corresponding frame of image data to obtain an image with the time stamp.
Optionally, the acquiring, by the CPU device, each frame of image data captured by the automobile data recorder in real time includes:
and the CPU equipment acquires the image data of each frame captured by the automobile data recorder in real time by calling an API (application program interface) function of the automobile data recorder.
Optionally, the time synchronizing the CPU core time and the GPS time to obtain the standard time corresponding to each frame of image data includes:
respectively carrying out time synchronization on CPU core time corresponding to each frame of image data and GPS time to obtain standard time corresponding to each frame of image data; or
Carrying out time synchronization on CPU (Central processing Unit) kernel time corresponding to a first frame of image data and GPS (global positioning system) time to obtain standard time corresponding to the first frame of image data, and calculating a time difference value between the CPU kernel time corresponding to the first frame of image data and the GPS time;
and obtaining standard time corresponding to each subsequent frame of image data according to the CPU core time corresponding to each subsequent frame of image data and the time difference.
Optionally, the generating the timestamp according to the standard time comprises:
and generating the watermark picture according to the standard time according to the set font style.
Optionally, the adding the timestamp corresponding to each frame of image data to each corresponding frame of image data to obtain an image with a timestamp includes:
adding a watermark picture corresponding to each frame of image data to a set position of the frame of image data;
and coding each frame of image data added with the watermark picture to obtain an image with a time stamp.
Optionally, the method further comprises:
the CPU device collects vehicle data in real time and extracts the vehicle data which is synchronous with the CPU kernel time corresponding to each frame of image data;
adding vehicle data corresponding to each frame of image data into a data structure of the frame of image data; or generating an information frame corresponding to each frame of image data according to the vehicle data corresponding to each frame of image data, and adding the time stamp corresponding to the frame of image data to the information frame corresponding to the frame of image data.
An event recorder timestamp generation apparatus, the apparatus comprising: CPU equipment and a vehicle event data recorder; the CPU device includes:
the data acquisition module is used for acquiring each frame of image data captured by the automobile data recorder in real time and recording CPU kernel time corresponding to each frame of image data;
the time synchronization module is used for carrying out time synchronization on the CPU kernel and the GPS time to obtain standard time corresponding to each frame of image data, wherein the GPS time is obtained after GPS real-time positioning data is analyzed, and the time difference value between the CPU kernel time and the GPS time is fixed;
the time stamp generating module is used for generating a time stamp according to the standard time;
and the time stamp adding module is used for adding the time stamp corresponding to each frame of image data into the corresponding frame of image data to obtain the image with the time stamp.
Optionally, the data obtaining module obtains each frame of image data captured by the automobile data recorder in real time by calling an API interface function of the automobile data recorder.
Optionally, the time synchronization module is specifically configured to perform time synchronization on the CPU core time corresponding to each frame of image data and the GPS time, respectively, to obtain a standard time corresponding to each frame of image data; or
The time synchronization module includes:
the reference time determining unit is used for carrying out time synchronization on CPU (Central processing Unit) kernel time corresponding to the first frame of image data and GPS (global position System) time to obtain standard time corresponding to the first frame of image data and calculating a time difference value between the CPU kernel time corresponding to the first frame of image data and the GPS time;
and the time calculation unit is used for obtaining the standard time corresponding to each subsequent frame of image data according to the CPU core time corresponding to each subsequent frame of image data and the time difference value.
Optionally, the timestamp generating module is specifically configured to generate the watermark picture from the standard time according to a set font style.
Optionally, the timestamp adding module includes:
the information adding unit is used for adding the watermark picture corresponding to each frame of image data to the set position of the frame of image data;
and the coding unit is used for coding each frame of image data added with the watermark picture to obtain an image with a time stamp.
Optionally, the CPU device further includes:
the information acquisition module is used for acquiring vehicle data in real time and extracting the vehicle data which is time-synchronized with the CPU kernel corresponding to each frame of image data;
the information processing module is used for adding the vehicle data corresponding to each frame of image data into a data structure of the frame of image data; or generating an information frame corresponding to each frame of image data according to the vehicle data corresponding to each frame of image data, and adding the time stamp corresponding to the frame of image data to the information frame corresponding to the frame of image data.
The embodiment of the invention discloses a non-transitory machine-readable storage medium, wherein executable codes are stored on the non-transitory machine-readable storage medium, and when the executable codes are executed by a processor of an electronic device, the processor is enabled to execute the automobile data recorder time stamp generating method.
The embodiment of the invention discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the tachograph time stamp generation method as described above.
The method and the device for generating the time stamp of the automobile data recorder provided by the embodiment of the invention utilize CPU equipment to acquire each frame of image data captured by the automobile data recorder in real time and record the CPU core time corresponding to each frame of image data, carry out time synchronization on the CPU core time and the GPS time to obtain the standard time corresponding to each frame of image data, generate the corresponding time stamp according to the standard time, and then add the time stamp corresponding to each frame of image data into each corresponding frame of image data to obtain the image with the time stamp. In the scheme of the invention, each frame of image data captured by the automobile data recorder corresponds to the CPU kernel time, so that even if the frame loss occurs, the CPU kernel time corresponding to each frame of image data is relatively accurate; in addition, the CPU core time and the GPS time are synchronized to obtain the standard time corresponding to each frame of image data, so that the time stamp of each frame of image data is generated, and the accuracy of the time stamp in the video image is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for generating a time stamp of an automobile data recorder according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for generating a time stamp of a car event data recorder according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a schematic flow chart of a method for generating a time stamp of a driving recorder according to an embodiment of the present invention is provided, where the method includes the following steps:
step 101, acquiring each frame of image data captured by the automobile data recorder in real time by the CPU device and recording CPU kernel time corresponding to each frame of image data.
It should be noted that the CPU device is a device independent of the car event data recorder on the target car, such as a server, a notebook, a mobile phone, etc., rather than the single chip microcomputer of the car event data recorder itself. The CPU device and the automobile data recorder may be connected by wire or wirelessly, which is not limited in this embodiment.
Specifically, the CPU device may obtain each frame of image data captured by the automobile data recorder by calling an API interface function of the automobile data recorder.
The CPU core time is the time since the CPU device was powered on, which indicates how many 100ns (nanoseconds) of CPU time a thread has elapsed to execute operating system code, which the CPU device may obtain through a system API.
In practical applications, the CPU device may specifically record, in a description data structure of a frame, a CPU core time when the frame image data is acquired.
And 102, carrying out time synchronization on the CPU kernel time and the GPS time to obtain standard time corresponding to each frame of image data.
The GPS time can be obtained after being analyzed through GPS real-time positioning data, and the time difference between the CPU core time and the GPS time is fixed.
The GPS time is based on the time of the GPS system, and a clock source on a GPS time server acquires a standard time signal from a GPS satellite and transmits the standard time signal to equipment needing time information in the system through various interface types.
The GPS time may be obtained after the GPS real-time positioning data is analyzed, for example, the CPU device may be provided with a GPS module to obtain the GPS time, or the CPU device may obtain the GPS time through an interface provided by another device having the GPS module, which is not limited in the embodiment of the present invention.
In practical application, the CPU core time corresponding to each frame of image data may be time-synchronized with the GPS time to obtain the standard time corresponding to each frame of image data.
In addition, in consideration of the stability of the time difference between the CPU core time and the GPS time, in another implementation, only the CPU core time corresponding to the first frame of image data may be time-synchronized with the GPS time to obtain the standard time corresponding to the first frame of image data, and the time difference between the CPU core time corresponding to the first frame of image data and the GPS time may be calculated; and then obtaining standard time corresponding to each subsequent frame of image data according to the CPU core time corresponding to each subsequent frame of image data and the time difference value. That is, as for the kernel time of the first frame of image data, the kernel time is synchronously converted to obtain the corresponding standard time; and starting from the second frame of image data, the corresponding CPU core time is not required to be synchronously converted, but the corresponding CPU core time is added or subtracted with the time difference value to obtain the corresponding standard time, so that the method is more favorable for saving CPU resources.
And 103, generating a time stamp according to the standard time.
Specifically, the watermark picture may be generated according to the set font style from the standard time.
And 104, adding the time stamp corresponding to each frame of image data to each corresponding frame of image data to obtain an image with the time stamp.
Specifically, a watermark picture corresponding to each frame of image data is added to a set position of the frame of image data; and then coding each frame of image data added with the watermark picture to obtain an image with a time stamp.
Further, in another embodiment of the method of the present invention, the image with the timestamp may also be stored, specifically, may be stored on a CPU device, or may be transmitted to the automobile data recorder by the CPU device, and is stored by the automobile data recorder, which is not limited in this embodiment of the present invention.
The method for generating the time stamp of the automobile data recorder provided by the embodiment of the invention comprises the steps of acquiring each frame of image data captured by the automobile data recorder in real time by utilizing a CPU (central processing unit) device, recording the CPU core time corresponding to each frame of image data, carrying out time synchronization on the CPU core time and GPS (global positioning system) time to obtain the standard time corresponding to each frame of image data, generating the corresponding time stamp according to the standard time, and adding the time stamp corresponding to each frame of image data into the corresponding each frame of image data to obtain the image with the time stamp. In the scheme of the invention, each frame of image data captured by the automobile data recorder corresponds to the CPU kernel time, so that even if the frame loss occurs, the CPU kernel time corresponding to each frame of image data is relatively accurate; in addition, the CPU core time and the GPS time are synchronized to obtain the standard time corresponding to each frame of image data, so that the time stamp of each frame of image data is generated, and the accuracy of the time stamp in the video image is ensured.
Further, considering some situations, such as accidents in driving, it is difficult to correctly restore the real situation if only there are video frames recorded by the driving recorder. To this end, in another embodiment of the method of the present invention, the method may further include the steps of:
the CPU device collects vehicle data in real time and extracts the vehicle data which is synchronous with the CPU kernel time corresponding to each frame of image data; adding vehicle data corresponding to each frame of image data into a data structure of the frame of image data; or generating an information frame corresponding to each frame of image data according to the vehicle data corresponding to each frame of image data, and adding the time stamp corresponding to the frame of image data to the information frame corresponding to the frame of image data.
Wherein the vehicle data may include, but is not limited to, any one or more of: vehicle location, speed, attitude, event (such as a violation event, collision event, etc.). It should be noted that, in practical applications, the CPU device may acquire the vehicle data from relevant devices such as corresponding sensors and positioning devices.
In addition, the structure and content of the data frame are not limited in the embodiments of the present invention, and may be set according to the actual application requirements.
Correspondingly, an embodiment of the present invention further provides an apparatus for generating a time stamp of a car event data recorder, as shown in fig. 2, the apparatus includes: a CPU device 201, and a tachograph 202. The CPU device 201 includes the following modules:
the data acquisition module 211 is configured to acquire each frame of image data captured by the automobile data recorder in real time and record CPU core time corresponding to each frame of image data;
a time synchronization module 212, configured to perform time synchronization on the CPU core time and the GPS time to obtain a standard time corresponding to each frame of image data, where the GPS time is obtained after being analyzed by GPS real-time positioning data, and a time difference between the CPU core time and the GPS time is fixed
A timestamp generating module 213, configured to generate a timestamp according to the standard time;
and the timestamp adding module 214 is configured to add a timestamp corresponding to each frame of image data to each corresponding frame of image data to obtain an image with a timestamp.
The data obtaining module 211 may specifically obtain, in real time, each frame of image data captured by the automobile data recorder by calling an API interface function of the automobile data recorder, and obtain the CPU kernel time through a system API.
In the embodiment of the present invention, the time synchronization module 212 may synchronize the CPU core time to a standard time in various ways.
For example, one specific implementation is: respectively carrying out time synchronization on CPU core time corresponding to each frame of image data and GPS time to obtain standard time corresponding to each frame of image data;
for another example, another specific implementation manner is: and synchronizing the kernel time corresponding to each frame of image data to standard time according to the time difference between the CPU kernel time and the GPS time. Accordingly, the time synchronization module may include the following units:
the reference time determining unit is used for carrying out time synchronization on CPU (Central processing Unit) kernel time corresponding to the first frame of image data and GPS (global position System) time to obtain standard time corresponding to the first frame of image data and calculating a time difference value between the CPU kernel time corresponding to the first frame of image data and the GPS time;
and the time calculation unit is used for obtaining the standard time corresponding to each subsequent frame of image data according to the CPU core time corresponding to each subsequent frame of image data and the time difference value.
In practical applications, the timestamp generating module 213 may specifically generate the watermark image according to the set font style from the standard time.
Correspondingly, the timestamp adding module 214 may specifically include the following units:
the information adding unit is used for adding the watermark picture corresponding to each frame of image data to the set position of the frame of image data;
and the coding unit is used for coding each frame of image data added with the watermark picture to obtain an image with a time stamp.
Further, in another embodiment of the apparatus of the present invention, the CPU device may further include a storage unit for storing the time-stamped image.
Further, in another embodiment of the apparatus of the present invention, the CPU device may further include a data transmission module, configured to transmit the time-stamped image to the automobile data recorder. Accordingly, the automobile data recorder saves the image with the time stamp.
The device for generating the time stamp of the automobile data recorder provided by the embodiment of the invention utilizes the CPU equipment to acquire each frame of image data captured by the automobile data recorder in real time and record the CPU core time corresponding to each frame of image data, carries out time synchronization on the CPU core time and the GPS time to obtain the standard time corresponding to each frame of image data, generates the corresponding time stamp according to the standard time, and then adds the time stamp corresponding to each frame of image data into each corresponding frame of image data to obtain the image with the time stamp. In the scheme of the invention, each frame of image data captured by the automobile data recorder corresponds to the CPU kernel time, so that even if the frame loss occurs, the CPU kernel time corresponding to each frame of image data is relatively accurate; in addition, the CPU core time and the GPS time are synchronized to obtain the standard time corresponding to each frame of image data, so that the time stamp of each frame of image data is generated, and the accuracy of the time stamp in the video image is ensured.
By utilizing the scheme provided by the embodiment of the invention, the accurate time stamp can be added to the video image captured by the automobile data recorder, and further, when the frame image needs to be extracted from the video, the frame image accurately corresponding to the corresponding time can be obtained.
Further, considering some situations, such as accidents in driving, it is difficult to correctly restore the real situation if only there are video frames recorded by the driving recorder. For this reason, in another embodiment of the apparatus of the present invention, the CPU device may further include:
the information acquisition module is used for acquiring vehicle data in real time and extracting the vehicle data which is time-synchronized with the CPU kernel corresponding to each frame of image data;
the information processing module is used for adding the vehicle data corresponding to each frame of image data into a data structure of the frame of image data; or generating an information frame corresponding to each frame of image data according to the vehicle data corresponding to each frame of image data, and adding the time stamp corresponding to the frame of image data to the information frame corresponding to the frame of image data.
Wherein the vehicle data may include, but is not limited to, any one or more of: vehicle location, speed, attitude, event (such as a violation event, collision event, etc.). It should be noted that, in practical applications, the CPU device may acquire the vehicle data from relevant devices such as corresponding sensors and positioning devices.
In addition, the structure and content of the data frame are not limited in the embodiments of the present invention, and may be set according to the actual application requirements.
An embodiment of the present invention further provides a storage medium having executable code stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the timestamp generation method according to any one of the above items.
An embodiment of the present invention provides an electronic device, including: a processor; and a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the timestamp generation method as described above.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include various types of storage units, such as system memory, Read Only Memory (ROM), and permanent storage. Wherein the ROM may store static data or instructions that are required by the processor or other modules of the computer. The persistent storage device may be a read-write storage device. The persistent storage may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the permanent storage may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and data that some or all of the processors require at runtime. Further, the memory may comprise any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, the memory may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, dual layer DVD-ROM), a read-only Blu-ray disc, an ultra-dense optical disc, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disc, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory has stored thereon executable code which, when processed by the processor, causes the processor to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Those skilled in the art should also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined, and deleted according to actual needs, and the modules in the device of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of an electronic device (or electronic device, server, etc.), causes the processor to perform part or all of the various steps of the above-described method according to the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the applications disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method of event recorder timestamp generation, the method comprising:
the CPU equipment acquires image data of each frame captured by the automobile data recorder in real time and records CPU kernel time corresponding to the image data of each frame;
performing time synchronization on the CPU core time and the GPS time to obtain standard time corresponding to each frame of image data, wherein the GPS time is obtained after GPS real-time positioning data is analyzed, and the time difference between the CPU core time and the GPS time is fixed;
generating a timestamp according to the standard time;
and adding the time stamp corresponding to each frame of image data into the corresponding frame of image data to obtain an image with the time stamp.
2. The event data recorder timestamp generation method according to claim 1, wherein the CPU device acquiring, in real time, each frame of image data captured by the event data recorder includes:
and the CPU equipment acquires the image data of each frame captured by the automobile data recorder in real time by calling an API (application program interface) function of the automobile data recorder.
3. The method for generating a time stamp of a car recorder according to claim 1, wherein the time synchronization of the CPU core time and the GPS time to obtain the standard time corresponding to each frame of image data comprises:
respectively carrying out time synchronization on CPU core time corresponding to each frame of image data and GPS time to obtain standard time corresponding to each frame of image data; or
Carrying out time synchronization on CPU (Central processing Unit) kernel time corresponding to a first frame of image data and GPS (global positioning system) time to obtain standard time corresponding to the first frame of image data, and calculating a time difference value between the CPU kernel time corresponding to the first frame of image data and the GPS time;
and obtaining standard time corresponding to each subsequent frame of image data according to the CPU core time corresponding to each subsequent frame of image data and the time difference.
4. The event recorder timestamp generation method of claim 1, wherein generating the timestamp from the standard time comprises:
and generating the watermark picture according to the standard time according to the set font style.
5. The event data recorder time stamp generating method according to any one of claims 1 to 4, wherein the adding the time stamp corresponding to each frame of image data to each corresponding frame of image data to obtain the image with the time stamp includes:
adding a watermark picture corresponding to each frame of image data to a set position of the frame of image data;
and coding each frame of image data added with the watermark picture to obtain an image with a time stamp.
6. The event data recorder timestamp generation method of claim 5, wherein the method further comprises:
the CPU device collects vehicle data in real time and extracts the vehicle data which is synchronous with the CPU kernel time corresponding to each frame of image data;
adding vehicle data corresponding to each frame of image data into a data structure of the frame of image data; or generating an information frame corresponding to each frame of image data according to the vehicle data corresponding to each frame of image data, and adding the time stamp corresponding to the frame of image data to the information frame corresponding to the frame of image data.
7. An event data recorder timestamp generation apparatus, the apparatus comprising: CPU equipment and a vehicle event data recorder; the CPU device includes:
the data acquisition module is used for acquiring each frame of image data captured by the automobile data recorder in real time and recording CPU kernel time corresponding to each frame of image data;
the time synchronization module is used for carrying out time synchronization on the CPU kernel and the GPS time to obtain standard time corresponding to each frame of image data, wherein the GPS time is obtained after GPS real-time positioning data is analyzed, and the time difference value between the CPU kernel time and the GPS time is fixed;
the time stamp generating module is used for generating a time stamp according to the standard time;
and the time stamp adding module is used for adding the time stamp corresponding to each frame of image data into the corresponding frame of image data to obtain the image with the time stamp.
8. The event data recorder timestamp generation apparatus according to claim 7,
the time synchronization module is specifically used for respectively carrying out time synchronization on the CPU core time corresponding to each frame of image data and the GPS time to obtain standard time corresponding to each frame of image data; or
The time synchronization module includes:
the reference time determining unit is used for carrying out time synchronization on CPU (Central processing Unit) kernel time corresponding to the first frame of image data and GPS (global position System) time to obtain standard time corresponding to the first frame of image data and calculating a time difference value between the CPU kernel time corresponding to the first frame of image data and the GPS time;
and the time calculation unit is used for obtaining the standard time corresponding to each subsequent frame of image data according to the CPU core time corresponding to each subsequent frame of image data and the time difference value.
9. The event data recorder time stamp generation apparatus according to any one of claims 7 to 8, wherein the time stamp adding module comprises:
the information adding unit is used for adding the watermark picture corresponding to each frame of image data to the set position of the frame of image data;
and the coding unit is used for coding each frame of image data added with the watermark picture to obtain an image with a time stamp.
10. The event data recorder timestamp generation apparatus according to claim 9, wherein said CPU device further comprises:
the information acquisition module is used for acquiring vehicle data in real time and extracting the vehicle data which is time-synchronized with the CPU kernel corresponding to each frame of image data;
the information processing module is used for adding the vehicle data corresponding to each frame of image data into a data structure of the frame of image data; or generating an information frame corresponding to each frame of image data according to the vehicle data corresponding to each frame of image data, and adding the time stamp corresponding to the frame of image data to the information frame corresponding to the frame of image data.
CN202110192269.4A 2021-02-20 2021-02-20 Method and device for generating time stamp of automobile data recorder Active CN112770190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110192269.4A CN112770190B (en) 2021-02-20 2021-02-20 Method and device for generating time stamp of automobile data recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110192269.4A CN112770190B (en) 2021-02-20 2021-02-20 Method and device for generating time stamp of automobile data recorder

Publications (2)

Publication Number Publication Date
CN112770190A true CN112770190A (en) 2021-05-07
CN112770190B CN112770190B (en) 2023-05-09

Family

ID=75705564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110192269.4A Active CN112770190B (en) 2021-02-20 2021-02-20 Method and device for generating time stamp of automobile data recorder

Country Status (1)

Country Link
CN (1) CN112770190B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003333499A (en) * 2002-05-15 2003-11-21 Nec Corp Digital camera system and its use method
CN102142159A (en) * 2010-02-01 2011-08-03 比特硕尼克株式会社 Vehicle-mounted surveillance device
US20150195320A1 (en) * 2014-01-03 2015-07-09 Yosef Avraham Method, System and Software Product for Improved Online Multimedia File Sharing
CN104836630A (en) * 2015-05-21 2015-08-12 大连理工大学 IEEE1588 clock synchronization system and implementation method therefor
CN106951387A (en) * 2017-04-28 2017-07-14 中车青岛四方车辆研究所有限公司 Vehicle-mounted data storage device and storage method
CN111811527A (en) * 2020-09-12 2020-10-23 蘑菇车联信息科技有限公司 Time synchronization method and device of map data and related equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003333499A (en) * 2002-05-15 2003-11-21 Nec Corp Digital camera system and its use method
CN102142159A (en) * 2010-02-01 2011-08-03 比特硕尼克株式会社 Vehicle-mounted surveillance device
US20150195320A1 (en) * 2014-01-03 2015-07-09 Yosef Avraham Method, System and Software Product for Improved Online Multimedia File Sharing
CN104836630A (en) * 2015-05-21 2015-08-12 大连理工大学 IEEE1588 clock synchronization system and implementation method therefor
CN106951387A (en) * 2017-04-28 2017-07-14 中车青岛四方车辆研究所有限公司 Vehicle-mounted data storage device and storage method
CN111811527A (en) * 2020-09-12 2020-10-23 蘑菇车联信息科技有限公司 Time synchronization method and device of map data and related equipment

Also Published As

Publication number Publication date
CN112770190B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN111930755A (en) Driving data processing method and related equipment
CN111811527A (en) Time synchronization method and device of map data and related equipment
CN101599184A (en) A kind of information analysis method of Vehicular video traveling recorder recorded information
CN111754654A (en) Vehicle-mounted video storage method, reading method, storage device and reading device
CN111130673B (en) Vehicle-mounted terminal time synchronization method and system
CN112770190B (en) Method and device for generating time stamp of automobile data recorder
CN114089811A (en) Data processing method, device, equipment and storage medium
CN111856468A (en) Detection method, device, equipment, system and storage medium
US20200250970A1 (en) Information processing apparatus, information processing method and program
CN109697767B (en) Data processing method, related device and computer storage medium
CN113922910B (en) Sensor time synchronization processing method, device and system
CN111669625A (en) Processing method, device and equipment for shot file and storage medium
CN108259805B (en) Multi-channel video decoding method, playing method and device and automobile data recorder
US9612519B2 (en) Method and system for organising image recordings and sound recordings
CN111707278A (en) Driving data processing method and related equipment
CN111386699A (en) Digital ledger camera and image functionality
CN114615437B (en) Vehicle tracking method and system based on GIS
JP2021114644A (en) Image management device, image management method, and image management program
CN112288908B (en) Time generation method and device of automobile data recorder
US20200035094A1 (en) System and method for automatic calibration of vehicle position determining device in a traffic system
KR20150132672A (en) Video recording system for saving selected frame to high resolution and method of operation thereof
US20240020334A1 (en) Audio with embedded timing for synchronization
CN112131193B (en) Application program compression method and device
CN117492935B (en) Mirror image data synchronization method, device, terminal and storage medium
JP5711626B2 (en) Drive recorder, drive recorder system, and moving image playback method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant