Anti-tampering method for video content of automobile data recorder
The SHA-256 encryption algorithm is used to generate video fingerprints and form a data link, which solves the problem of difficulty in verifying the authenticity of driving recorder videos on roads without fixed cameras, and achieves anti-tampering and authenticity verification of video content.
Patent Information
- Application Number
- CN202411186950.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-29
AI Technical Summary
On roads without fixed cameras, the authenticity of driving recorder videos is difficult to verify, and there is controversy over tampering.
Video fingerprints are generated through the SHA-256 encryption algorithm, and data links are generated through time series data to ensure the authenticity of the video content.
An untamperable data chain is formed, and the authenticity of the video is verified through the continuity and correlation of video fingerprints, ensuring the integrity of the entire data chain.
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of driving recorder videos, and in particular relates to a method for preventing tampering of driving recorder video content. Background Art
[0002] At present, the authenticity verification of dashcam video data is mostly carried out by collaborative comparison of data shot by cameras on and around the driving section. However, on some roads without fixed cameras, the authenticity of the video may be controversial. Therefore, we provide a method to prevent dashcam video content from being tampered with. Summary of the invention
[0003] The technical problem to be solved by the present invention is to address the deficiencies of the above-mentioned prior art and to provide a method for preventing tampering of the video content of a driving recorder. It generates a video fingerprint from video data through an encryption algorithm, and generates a data chain by adding time series data, thereby proving the authenticity of past videos through the data chain.
[0004] The technical solution adopted by the present invention is: a method for preventing tampering of video content of a driving recorder, comprising the following steps:
[0005] S1: Obtain a video data from the driving recorder, generate a video fingerprint through the SHA-256 encryption algorithm, and mark the video fingerprint through the set timing module to obtain the first time-series video fingerprint after the first time-series data is marked;
[0006] S2: Obtain the next video data of S1 video data in the driving recorder in chronological order, generate the corresponding next video fingerprint through the SHA-256 encryption algorithm, and obtain the next time series data through the time series module mark;
[0007] S3: The next video fingerprint, the next time series data and the first time series video fingerprint in S1 are encrypted by SHA-256 algorithm to generate the second video fingerprint. Similarly, several video fingerprints can be obtained in chronological order, and each video fingerprint contains corresponding time series data.
[0008] S5: The obtained video fingerprints are connected in series in chronological order to form a complete and continuous data chain, thereby realizing the anti-tampering of the dashcam video content.
[0009] Preferably, the time series data is a digital mark that increases in sequence from small to large.
[0010] Preferably, the video fingerprint generated each time for the same segment of video data is exactly the same.
[0011] As a preferred method, data link authenticity verification: by using the video images from the cameras on the road section to collaboratively prove the authenticity of this section of video data in the data link, it can be proved that the video data on the entire data link are authentic.
[0012] The beneficial effects of the present invention are:
[0013] (1) Each video in the dashcam is encrypted using the SHA-256 encryption algorithm to generate a unique video fingerprint, and the time series data of each video fingerprint is marked in chronological order, so that the video fingerprints are connected in series in chronological order to form a complete and tamper-proof data chain;
[0014] (2) To verify the authenticity of a video, it is only necessary to generate a video fingerprint for that video and compare it. Since the video fingerprints on the entire data chain are continuous and interrelated, by comparing one of the videos with the surrounding cameras on the road section, it can be confirmed that all the videos on the entire data chain are authentic.
[0015] The present invention encrypts each video recorded in the driving recorder and connects them in series in chronological order to form an anti-tampering data chain, thereby effectively preventing the video data from being tampered with. DETAILED DESCRIPTION
[0016] The present invention will be further described in detail below with reference to specific embodiments.
[0017] Example
[0018] In the method for preventing the tampering of the video content of a driving recorder provided in this embodiment, the video in the driving recorder is recorded in chronological order, and the video in the driving recorder is generally segmented by time, that is, the video recorded in the driving recorder is continuous in chronological order and is a plurality of segmented videos;
[0019] This embodiment includes the following steps:
[0020] S1: Obtain a video data from the driving recorder, generate a video fingerprint through the SHA-256 encryption algorithm, and mark the video fingerprint through the set timing module to obtain the first time-series video fingerprint after the first time-series data is marked; the video data obtained in this embodiment is the first video arranged in chronological order in the driving recorder, and after obtaining the first video data, it is encrypted through the SHA-256 encryption algorithm to obtain the first video fingerprint, and at the same time, a timing module is set in the driving recorder, and the timing module performs time-series marking for the first video fingerprint obtained, that is, the first video fingerprint is attached with time-series data. The time-series markings in this embodiment are digital marks arranged in ascending order from small to large, that is, the first time-series video fingerprint in this embodiment is video fingerprint 1;
[0021] S2: obtain the next video data of the S1 video data in the driving recorder in chronological order, generate the corresponding next video fingerprint through the SHA-256 encryption algorithm, and obtain the next time series data through the timing module mark; in this embodiment, the second video in the driving recorder is obtained in chronological order, and the second video data is encrypted through the SHA-256 encryption algorithm to obtain the corresponding video fingerprint. At the same time, the timing module generates corresponding time series data for the obtained video fingerprint. The time series data in this embodiment is "2";
[0022] S3: The next video fingerprint, the next time series data and the first time series video fingerprint in S1 are encrypted by the SHA-256 algorithm to generate a second video fingerprint; in this embodiment, the video fingerprint encrypted in S2, the time series data "2" obtained in S2 and the video fingerprint 1 obtained in S1 are encrypted by the SHA-256 algorithm to generate the second video fingerprint, i.e., video fingerprint 2;
[0023] The third video data is obtained according to the above method, encrypted to obtain the video fingerprint, and the corresponding time series data "3" is generated. The video fingerprint, time series data "3" and video fingerprint 2 are encrypted to generate video fingerprint 3. Similarly, the continuous multiple videos in the driving recorder can be encrypted in chronological order to generate corresponding video fingerprints. At the same time, each continuous video fingerprint is marked with corresponding continuous time series data; that is, each video fingerprint not only contains its own corresponding time series data mark, but also combines with the previous video fingerprint, so that a composite data is generated by fusing the current video fingerprint, the current time series data and the previous video fingerprint, which effectively prevents data tampering; and the video fingerprint encrypted by the SHA-256 algorithm is unique, and the video fingerprint generated by the same video is completely consistent, which is also convenient for the subsequent verification of the authenticity of the video, and the video fingerprint encrypted by SHA-256 cannot be reversed to the original video content;
[0024] S5: several video fingerprints obtained in chronological order are connected in series to form a complete and continuous data chain; in this embodiment, video fingerprint 1, video fingerprint 2, video fingerprint 3... video fingerprint n obtained in chronological order are connected in series to form a complete and continuous data chain; each video fingerprint is displayed in the next video fingerprint, which ensures the continuity and visibility of the video fingerprint. At the same time, adjacent video fingerprints are associated with each other to ensure the uniqueness of the position and order of each video fingerprint, thereby realizing the anti-tampering of the dash cam video content.
[0025] When the authenticity of a video needs to be verified, the continuous video chain of the video is found, and a trusted video is obtained from the video chain as the first video data. The above method is used for calculation to obtain the video fingerprint of the video to be verified, and then it is compared with the video fingerprint in the data chain. If they are consistent, it means that the video is authentic; if a video in the video chain is proved to be authentic by the road section camera or image, it can be judged that all videos in the entire video chain are authentic.
[0026] The above description is only a preferred implementation manner of the present invention, but the protection scope of the present invention is not limited thereto, and any modification and replacement based on the technical solution and inventive concept provided by the present invention should be included in the protection scope of the present invention.
Claims
1. A method for preventing tampering of video content of a driving recorder, characterized in that: The following steps are involved: S1: Obtain a video data from the driving recorder, generate a video fingerprint through the SHA-256 encryption algorithm, and mark the video fingerprint through the set timing module to obtain the first time-series video fingerprint after the first time-series data is marked; S2: Obtain the next video data of S1 video data in the driving recorder in chronological order, generate the corresponding next video fingerprint through the SHA-256 encryption algorithm, and obtain the next time series data through the time series module mark; S3: The next video fingerprint, the next time series data and the first time series video fingerprint in S1 are encrypted by SHA-256 algorithm to generate the second video fingerprint. Similarly, several video fingerprints can be obtained in chronological order, and each video fingerprint contains corresponding time series data. S5: The obtained video fingerprints are connected in series in chronological order to form a complete and continuous data chain, thereby realizing the anti-tampering of the dashcam video content.
2. A method for preventing tampering of driving recorder video content according to claim 1, characterized in that: The time series data are digital labels that increase in sequence from small to large.
3. The method for preventing tampering of video content of a driving recorder according to claim 1, characterized in that: The video fingerprint generated each time for the same video data is exactly the same.
4. The method for preventing tampering of video content of a driving recorder according to claim 1, characterized in that: Data link authenticity verification: By using the video images from the cameras on the road section to collaboratively prove the authenticity of the video data in this section of the data link, it can be proved that the video data on the entire data link is authentic.
