Traffic monitoring video processing method and system
By segmenting and encrypting surveillance videos, generating encrypted videos, and storing them in a unique folder, the problem of poor security performance of surveillance videos in existing technologies is solved, and efficient security and secure storage of surveillance videos are achieved.
Patent Information
- Application Number
- CN202511326097.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-17
- Publication Date
- 2026-01-09
AI Technical Summary
Existing technologies have poor security in the process of saving real-time monitoring videos, posing a risk of data leakage and resulting in low work efficiency.
The surveillance video is split into sub-videos, and encryption keys are generated based on the start time, intermediate time, and end time. The sub-videos are then encrypted, and the encrypted videos are stored in the target folder. The encryption keys are generated using hash operations and a two-dimensional hash coordinate system, and a unique folder is generated by combining the monitoring location, object, and duration.
By segmenting and encrypting the video footage, the confidentiality and efficiency of the surveillance video were significantly improved, and the risk of data leakage was reduced.
Smart Images

Figure CN121309872A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method and system for processing traffic monitoring videos. Background Technology
[0002] With the advancement of technology and the development of the times, people have built various types of roads and formulated corresponding road use rules and vehicle driving rules to ensure the correct use of roads and the safety of vehicle driving.
[0003] In order to maintain road use order, existing technologies typically involve installing cameras on roads and at intersections to monitor specific locations in real time and capture violators or vehicles.
[0004] Furthermore, existing technologies generate corresponding monitoring videos during real-time monitoring. Specifically, most existing technologies directly store the real-time collected monitoring videos into pre-set folders. However, although this method can save the required monitoring videos in a timely manner, its security performance is poor, making it easy for external personnel to intrude and open them, thus posing a certain risk of data leakage and reducing work efficiency. Summary of the Invention
[0005] Therefore, the purpose of this invention is to provide a traffic monitoring video processing method and system to solve the problem that although the existing technology can save the collected monitoring video in a timely manner, the confidentiality performance of the monitoring video is poor, resulting in the risk of data leakage.
[0006] The first aspect of the present invention proposes: A traffic monitoring video processing method, wherein the method includes: When a traffic camera on the road is detected to be working in real time, a timer is started, and the real-time traffic monitoring video is segmented at preset intervals to generate several corresponding sub-videos. The sub-video is parsed to detect the start time, intermediate time and end time corresponding to the sub-video in real time. The start time, intermediate time and end time each contain specific values. Based on preset rules, an encryption key corresponding to the sub-video is generated in real time according to the start time, the intermediate time and the end time, and the sub-video is encrypted using the encryption key to generate the corresponding encrypted video in real time. Based on the encrypted video, a corresponding target folder is generated in real time, and the encrypted video is stored inside the target folder.
[0007] The beneficial effects of this invention are: by splitting a complete video into several sub-videos, the amount of subsequent data processing can be effectively reduced. Furthermore, by detecting the start time, intermediate time, and end time of the current sub-video in real time, the required encryption key can be generated in real time, and the encryption process can be performed immediately using the current encryption key to generate an encrypted video. Based on this, it is further stored in the target folder for secondary encryption processing, thereby effectively improving the confidentiality performance of the surveillance video and correspondingly improving work efficiency.
[0008] Furthermore, the step of generating an encryption key corresponding to the sub-video in real time based on the start time, the intermediate time, and the end time according to preset rules includes: When the start time, the intermediate time, and the end time are obtained respectively, a corresponding target identifier is added to the start time, the intermediate time, and the end time respectively; Based on the target identifier, hash operations are performed on the start time, the intermediate time, and the end time respectively to generate the corresponding first hash sequence, second hash sequence, and third hash sequence; The encryption key is generated based on the first hash sequence, the second hash sequence, and the third hash sequence.
[0009] Furthermore, the step of generating the encryption key based on the first hash sequence, the second hash sequence, and the third hash sequence includes: The system detects several first sequence values contained in the first hash sequence in real time, and generates several corresponding first hash coordinates based on the several first sequence values in sequence. The system detects several second sequence values contained in the second hash sequence in real time, and generates several corresponding second hash coordinates based on the several second sequence values in sequence. The third hash sequence contains several third sequence values in real time, and several corresponding third hash coordinates are generated according to the several third sequence values in sequence. The encryption key is generated based on a number of first hash coordinates, a number of second hash coordinates, and a number of third hash coordinates.
[0010] Furthermore, the step of generating the encryption key based on a plurality of first hash coordinates, a plurality of second hash coordinates, and a plurality of third hash coordinates includes: A two-dimensional hash coordinate system is created in real time through a preset program, and each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are mapped to the two-dimensional hash coordinate system respectively. In the two-dimensional hash coordinate system, each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are connected to generate corresponding first hash curves, second hash curves, and third hash curves. The encryption key is generated based on the first hash curve, the second hash curve, and the third hash curve.
[0011] Furthermore, the step of generating the encryption key based on the first hash curve, the second hash curve, and the third hash curve includes: When the first hash curve, the second hash curve, and the third hash curve are obtained respectively, a full scan is performed on the first hash curve, the second hash curve, and the third hash curve to detect several target intersections generated between them. The target value corresponding to each target intersection is detected in real time, and each target value is integrated and processed to generate the corresponding encryption key.
[0012] Furthermore, the step of generating the corresponding target folder in real time based on the encrypted video includes: When the encrypted video is acquired in real time, a folder template is created in real time. The encrypted video is parsed to detect the corresponding target attribute information in real time; The target folder is generated according to the folder template and the target attribute information, and the target folder is unique.
[0013] Furthermore, the step of generating the target folder based on the folder template and the target attribute information includes: When the target attribute information is acquired in real time, the monitoring location, monitoring object and monitoring duration corresponding to the traffic camera are detected in real time based on the target attribute information. Based on a preset format, a corresponding monitoring data chain is constructed in real time according to the monitoring location, the monitoring object, and the monitoring duration. The monitoring data chain is set as the folder name of the folder template to generate the target folder. The monitoring data chain is unique.
[0014] The second aspect of the present invention proposes: A traffic monitoring video processing system, wherein the system comprises: The processing module is used to start timing when the traffic camera on the road is detected to be working in real time, and to segment the real-time traffic monitoring video at preset intervals to generate several corresponding sub-videos. The parsing module is used to parse the sub-video to detect the start time, intermediate time and end time corresponding to the sub-video in real time. The start time, intermediate time and end time all contain specific values. An encryption module is used to generate an encryption key corresponding to the sub-video in real time based on the start time, the intermediate time and the end time according to preset rules, and to encrypt the sub-video using the encryption key to generate the corresponding encrypted video in real time. The storage module is used to generate a corresponding target folder in real time based on the encrypted video, and store the encrypted video in the target folder.
[0015] Furthermore, the encryption module is specifically used for: When the start time, the intermediate time, and the end time are obtained respectively, a corresponding target identifier is added to the start time, the intermediate time, and the end time respectively; Based on the target identifier, hash operations are performed on the start time, the intermediate time, and the end time respectively to generate the corresponding first hash sequence, second hash sequence, and third hash sequence; The encryption key is generated based on the first hash sequence, the second hash sequence, and the third hash sequence.
[0016] Furthermore, the encryption module is specifically used for: The system detects several first sequence values contained in the first hash sequence in real time, and generates several corresponding first hash coordinates based on the several first sequence values in sequence. The system detects several second sequence values contained in the second hash sequence in real time, and generates several corresponding second hash coordinates based on the several second sequence values in sequence. The third hash sequence contains several third sequence values in real time, and several corresponding third hash coordinates are generated according to the several third sequence values in sequence. The encryption key is generated based on a number of first hash coordinates, a number of second hash coordinates, and a number of third hash coordinates.
[0017] Furthermore, the encryption module is specifically used for: A two-dimensional hash coordinate system is created in real time through a preset program, and each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are mapped to the two-dimensional hash coordinate system respectively. In the two-dimensional hash coordinate system, each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are connected to generate corresponding first hash curves, second hash curves, and third hash curves. The encryption key is generated based on the first hash curve, the second hash curve, and the third hash curve.
[0018] Furthermore, the encryption module is specifically used for: When the first hash curve, the second hash curve, and the third hash curve are obtained respectively, a full scan is performed on the first hash curve, the second hash curve, and the third hash curve to detect several target intersections generated between them. The target value corresponding to each target intersection is detected in real time, and each target value is integrated and processed to generate the corresponding encryption key.
[0019] Furthermore, the storage module is specifically used for: When the encrypted video is acquired in real time, a folder template is created in real time. The encrypted video is parsed to detect the corresponding target attribute information in real time; The target folder is generated according to the folder template and the target attribute information, and the target folder is unique.
[0020] Furthermore, the storage module is specifically used for: When the target attribute information is acquired in real time, the monitoring location, monitoring object and monitoring duration corresponding to the traffic camera are detected in real time based on the target attribute information. Based on a preset format, a corresponding monitoring data chain is constructed in real time according to the monitoring location, the monitoring object, and the monitoring duration. The monitoring data chain is set as the folder name of the folder template to generate the target folder. The monitoring data chain is unique.
[0021] The third aspect of the present invention proposes: A computer includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the traffic monitoring video processing method as described above.
[0022] The fourth aspect of the present invention proposes: A readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the traffic monitoring video processing method as described above.
[0023] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0024] Figure 1 This is a flowchart of the traffic monitoring video processing method provided in the first embodiment of the present invention; Figure 2 This is a structural block diagram of a traffic monitoring video processing system provided in the third embodiment of the present invention.
[0025] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation
[0026] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
[0027] It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0029] Please see Figure 1 The image shows a traffic monitoring video processing method provided in the first embodiment of the present invention. The traffic monitoring video processing method provided in this embodiment can perform primary and secondary encryption processing on the real-time collected monitoring video, thereby improving the confidentiality performance of the monitoring video and improving work efficiency.
[0030] Specifically, this embodiment provides: A traffic monitoring video processing method specifically includes the following steps: Step S10: When the traffic camera on the road is detected to be working in real time, start timing and segment the real-time traffic monitoring video every preset time interval to generate several corresponding sub-videos. Step S20: The sub-video is parsed to detect the start time, intermediate time and end time corresponding to the sub-video in real time. The start time, intermediate time and end time all contain specific values. Step S30: Based on preset rules, generate an encryption key corresponding to the sub-video in real time according to the start time, the intermediate time and the end time, and encrypt the sub-video using the encryption key to generate the corresponding encrypted video in real time; Step S40: Generate a corresponding target folder in real time based on the encrypted video, and store the encrypted video in the target folder.
[0031] Specifically, in this embodiment, it should first be noted that in order to objectively and effectively complete the encryption processing of surveillance videos, it is necessary to accurately obtain the information contained in the surveillance videos and then perform targeted encryption processing. It should be pointed out that the traffic surveillance video processing method provided by this invention mainly targets traffic surveillance videos collected by cameras on urban roads or other roads, and further encrypts and stores them to improve the confidentiality of the surveillance videos. Based on this, in practical applications, when the server set in the background detects that a camera installed on the road has started working in real time, it will immediately activate the traffic surveillance video processing method. Preferably, after detecting the camera's activation, this invention will simultaneously start timing, and during the timing process, it will segment the real-time traffic surveillance video at preset intervals, generating several sub-videos accordingly. That is, a complete surveillance video is divided into several sub-videos. Preferably, the length of each sub-video is set to 10 minutes.
[0032] Furthermore, after acquiring the required sub-videos in real time through the above steps, in order to perform targeted encryption processing simply and effectively, the present invention preferably further parses each sub-video and can further detect the start time, intermediate time, and end time corresponding to the current sub-video in real time, thereby comprehensively covering the content of the current sub-video. Based on this, the present invention can further generate an encryption key corresponding to the current sub-video in real time according to the current start time, intermediate time, and end time based on pre-set rules. At the same time, the current sub-video is immediately encrypted using the current encryption key, thereby generating the required encrypted video. On this basis, the present invention can also further generate a target folder adapted to the current encrypted video and finally store the encrypted video in the target folder, thereby completing the encryption and storage processing of the monitoring video separately, thus improving the confidentiality performance and improving the work efficiency of the staff.
[0033] Second Embodiment Furthermore, the step of generating an encryption key corresponding to the sub-video in real time based on the start time, the intermediate time, and the end time according to preset rules includes: When the start time, the intermediate time, and the end time are obtained respectively, a corresponding target identifier is added to the start time, the intermediate time, and the end time respectively; Based on the target identifier, hash operations are performed on the start time, the intermediate time, and the end time respectively to generate the corresponding first hash sequence, second hash sequence, and third hash sequence; The encryption key is generated based on the first hash sequence, the second hash sequence, and the third hash sequence.
[0034] Furthermore, the step of generating the encryption key based on the first hash sequence, the second hash sequence, and the third hash sequence includes: The system detects several first sequence values contained in the first hash sequence in real time, and generates several corresponding first hash coordinates based on the several first sequence values in sequence. The system detects several second sequence values contained in the second hash sequence in real time, and generates several corresponding second hash coordinates based on the several second sequence values in sequence. The third hash sequence contains several third sequence values in real time, and several corresponding third hash coordinates are generated according to the several third sequence values in sequence. The encryption key is generated based on a number of first hash coordinates, a number of second hash coordinates, and a number of third hash coordinates.
[0035] Furthermore, the step of generating the encryption key based on a plurality of first hash coordinates, a plurality of second hash coordinates, and a plurality of third hash coordinates includes: A two-dimensional hash coordinate system is created in real time through a preset program, and each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are mapped to the two-dimensional hash coordinate system respectively. In the two-dimensional hash coordinate system, each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are connected to generate corresponding first hash curves, second hash curves, and third hash curves. The encryption key is generated based on the first hash curve, the second hash curve, and the third hash curve.
[0036] Furthermore, the step of generating the encryption key based on the first hash curve, the second hash curve, and the third hash curve includes: When the first hash curve, the second hash curve, and the third hash curve are obtained respectively, a full scan is performed on the first hash curve, the second hash curve, and the third hash curve to detect several target intersections generated between them. The target value corresponding to each target intersection is detected in real time, and each target value is integrated and processed to generate the corresponding encryption key.
[0037] Furthermore, the step of generating the corresponding target folder in real time based on the encrypted video includes: When the encrypted video is acquired in real time, a folder template is created in real time. The encrypted video is parsed to detect the corresponding target attribute information in real time; The target folder is generated according to the folder template and the target attribute information, and the target folder is unique.
[0038] Furthermore, the step of generating the target folder based on the folder template and the target attribute information includes: When the target attribute information is acquired in real time, the monitoring location, monitoring object and monitoring duration corresponding to the traffic camera are detected in real time based on the target attribute information. Based on a preset format, a corresponding monitoring data chain is constructed in real time according to the monitoring location, the monitoring object, and the monitoring duration. The monitoring data chain is set as the folder name of the folder template to generate the target folder. The monitoring data chain is unique.
[0039] Furthermore, in this city example, it should be noted that after obtaining the required sub-video and its corresponding start time, intermediate time, and end time in real time through the above steps, the corresponding encryption processing can then be performed. Preferably, to facilitate subsequent processing, the present invention further adds corresponding target identifiers to the current start time, intermediate time, and end time, and further performs corresponding hash operations sequentially according to the order of the current target identifiers, thereby generating the required first hash sequence, second hash sequence, and third hash sequence. It should be pointed out that since each hash sequence consists of several sequence values, based on this, the present invention can further detect the several first sequence values contained in the current first hash sequence, and further perform encryption operations according to the current order of the first hash sequence. The order in which the first sequence values appear is combined to form several corresponding first hash coordinates, i.e., several corresponding hash coordinate points. Similarly, this invention can also obtain several second hash coordinates corresponding to the current second hash sequence, and several third hash coordinates corresponding to the current third hash sequence. Furthermore, in order to objectively and effectively generate the required encryption key, after obtaining several first hash coordinates, several second hash coordinates, and several third hash coordinates through the above steps, an adapted two-dimensional hash coordinate system will be further created using existing hash software. At the same time, each first hash coordinate, each second hash coordinate, and each third hash coordinate will be immediately mapped to the current two-dimensional hash coordinate system for subsequent processing.
[0040] Furthermore, this invention connects each first hash coordinate, each second hash coordinate, and each third hash coordinate in the current two-dimensional hash coordinate system, thereby connecting the corresponding first hash curve, second hash curve, and third hash curve. It should be noted that since the current first hash curve, second hash curve, and third hash curve will have corresponding intersections, i.e., corresponding intersection points, these intersection points can represent the characteristics of the current monitoring video. Based on this, this invention will further detect several target intersection points generated between the current first hash curve, second hash curve, and third hash curve, and can further detect the target value corresponding to each target intersection point. At the same time, by performing corresponding integration processing, the required encryption key can be obtained in real time, and subsequent encryption processing can be completed. Furthermore, after obtaining the required encryption key in real time through the above steps, in order to objectively and accurately generate the required target folder, preferably, the present invention will first create a required folder template. At the same time, in order to perform targeted processing, preferably, the present invention will further detect the target attribute information corresponding to the current encrypted video. Based on this, the monitoring location, monitoring object, and monitoring duration corresponding to the traffic camera will be detected in real time. On this basis, the corresponding monitoring data chain will be constructed in real time according to the format of "monitoring location-monitoring object-monitoring duration". Finally, the monitoring data chain will be set as the folder name of the current folder template, and the required target folder will be generated. On this basis, the current encrypted video can be directly stored in the current target folder, thereby greatly improving the confidentiality of the surveillance video and improving work efficiency for subsequent processing.
[0041] Please see Figure 2 The third embodiment of the present invention provides: A traffic monitoring video processing system, wherein the system comprises: The processing module is used to start timing when the traffic camera on the road is detected to be working in real time, and to segment the real-time traffic monitoring video at preset intervals to generate several corresponding sub-videos. The parsing module is used to parse the sub-video to detect the start time, intermediate time and end time corresponding to the sub-video in real time. The start time, intermediate time and end time all contain specific values. An encryption module is used to generate an encryption key corresponding to the sub-video in real time based on the start time, the intermediate time and the end time according to preset rules, and to encrypt the sub-video using the encryption key to generate the corresponding encrypted video in real time. The storage module is used to generate a corresponding target folder in real time based on the encrypted video, and store the encrypted video in the target folder.
[0042] Furthermore, the encryption module is specifically used for: When the start time, the intermediate time, and the end time are obtained respectively, a corresponding target identifier is added to the start time, the intermediate time, and the end time respectively; Based on the target identifier, hash operations are performed on the start time, the intermediate time, and the end time respectively to generate the corresponding first hash sequence, second hash sequence, and third hash sequence; The encryption key is generated based on the first hash sequence, the second hash sequence, and the third hash sequence.
[0043] Furthermore, the encryption module is specifically used for: The system detects several first sequence values contained in the first hash sequence in real time, and generates several corresponding first hash coordinates based on the several first sequence values in sequence. The system detects several second sequence values contained in the second hash sequence in real time, and generates several corresponding second hash coordinates based on the several second sequence values in sequence. The third hash sequence contains several third sequence values in real time, and several corresponding third hash coordinates are generated according to the several third sequence values in sequence. The encryption key is generated based on a number of first hash coordinates, a number of second hash coordinates, and a number of third hash coordinates.
[0044] Furthermore, the encryption module is specifically used for: A two-dimensional hash coordinate system is created in real time through a preset program, and each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are mapped to the two-dimensional hash coordinate system respectively. In the two-dimensional hash coordinate system, each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are connected to generate corresponding first hash curves, second hash curves, and third hash curves. The encryption key is generated based on the first hash curve, the second hash curve, and the third hash curve.
[0045] Furthermore, the encryption module is specifically used for: When the first hash curve, the second hash curve, and the third hash curve are obtained respectively, a full scan is performed on the first hash curve, the second hash curve, and the third hash curve to detect several target intersections generated between them. The target value corresponding to each target intersection is detected in real time, and each target value is integrated and processed to generate the corresponding encryption key.
[0046] Furthermore, the storage module is specifically used for: When the encrypted video is acquired in real time, a folder template is created in real time. The encrypted video is parsed to detect the corresponding target attribute information in real time; The target folder is generated according to the folder template and the target attribute information, and the target folder is unique.
[0047] Furthermore, the storage module is specifically used for: When the target attribute information is acquired in real time, the monitoring location, monitoring object and monitoring duration corresponding to the traffic camera are detected in real time based on the target attribute information. Based on a preset format, a corresponding monitoring data chain is constructed in real time according to the monitoring location, the monitoring object, and the monitoring duration. The monitoring data chain is set as the folder name of the folder template to generate the target folder. The monitoring data chain is unique.
[0048] The fourth embodiment of the present invention provides a computer, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the traffic monitoring video processing method described above.
[0049] The fifth embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the traffic monitoring video processing method as described above.
[0050] In summary, the traffic monitoring video processing method and system provided in the above embodiments of the present invention can perform primary and secondary encryption processing on the monitoring video, thereby improving the confidentiality of the monitoring video and increasing work efficiency.
[0051] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.
[0052] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0053] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0054] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0055] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0056] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the appended claims.
Claims
1. A method for processing traffic monitoring video, characterized in that, The method includes: When a traffic camera on the road is detected to be working in real time, a timer is started, and the real-time traffic monitoring video is segmented at preset intervals to generate several corresponding sub-videos. The sub-video is parsed to detect the start time, intermediate time and end time corresponding to the sub-video in real time. The start time, intermediate time and end time each contain specific values. Based on preset rules, an encryption key corresponding to the sub-video is generated in real time according to the start time, the intermediate time and the end time, and the sub-video is encrypted using the encryption key to generate the corresponding encrypted video in real time. Based on the encrypted video, a corresponding target folder is generated in real time, and the encrypted video is stored inside the target folder.
2. The traffic monitoring video processing method according to claim 1, characterized in that: The step of generating an encryption key corresponding to the sub-video in real time based on the start time, the intermediate time, and the end time according to preset rules includes: When the start time, the intermediate time, and the end time are obtained respectively, a corresponding target identifier is added to the start time, the intermediate time, and the end time respectively; Based on the target identifier, hash operations are performed on the start time, the intermediate time, and the end time respectively to generate the corresponding first hash sequence, second hash sequence, and third hash sequence; The encryption key is generated based on the first hash sequence, the second hash sequence, and the third hash sequence.
3. The traffic monitoring video processing method according to claim 2, characterized in that: The step of generating the encryption key based on the first hash sequence, the second hash sequence, and the third hash sequence includes: The system detects several first sequence values contained in the first hash sequence in real time, and generates several corresponding first hash coordinates based on the several first sequence values in sequence. The system detects several second sequence values contained in the second hash sequence in real time, and generates several corresponding second hash coordinates based on the several second sequence values in sequence. The third hash sequence contains several third sequence values in real time, and several corresponding third hash coordinates are generated according to the several third sequence values in sequence. The encryption key is generated based on a number of first hash coordinates, a number of second hash coordinates, and a number of third hash coordinates.
4. The traffic monitoring video processing method according to claim 3, characterized in that: The step of generating the encryption key based on a plurality of first hash coordinates, a plurality of second hash coordinates, and a plurality of third hash coordinates includes: A two-dimensional hash coordinate system is created in real time through a preset program, and each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are mapped to the two-dimensional hash coordinate system respectively. In the two-dimensional hash coordinate system, each of the first hash coordinates, each of the second hash coordinates, and each of the third hash coordinates are connected to generate corresponding first hash curves, second hash curves, and third hash curves. The encryption key is generated based on the first hash curve, the second hash curve, and the third hash curve.
5. The traffic monitoring video processing method according to claim 4, characterized in that: The step of generating the encryption key based on the first hash curve, the second hash curve, and the third hash curve includes: When the first hash curve, the second hash curve, and the third hash curve are obtained respectively, a full scan is performed on the first hash curve, the second hash curve, and the third hash curve to detect several target intersections generated between them. The target value corresponding to each target intersection is detected in real time, and each target value is integrated and processed to generate the corresponding encryption key.
6. The traffic monitoring video processing method according to claim 1, characterized in that: The step of generating the corresponding target folder in real time based on the encrypted video includes: When the encrypted video is acquired in real time, a folder template is created in real time. The encrypted video is parsed to detect the corresponding target attribute information in real time; The target folder is generated according to the folder template and the target attribute information, and the target folder is unique.
7. The traffic monitoring video processing method according to claim 6, characterized in that: The step of generating the target folder based on the folder template and the target attribute information includes: When the target attribute information is acquired in real time, the monitoring location, monitoring object and monitoring duration corresponding to the traffic camera are detected in real time based on the target attribute information. Based on a preset format, a corresponding monitoring data chain is constructed in real time according to the monitoring location, the monitoring object, and the monitoring duration. The monitoring data chain is set as the folder name of the folder template to generate the target folder. The monitoring data chain is unique.
8. A traffic monitoring video processing system, characterized in that, The system includes: The processing module is used to start timing when the traffic camera on the road is detected to be working in real time, and to segment the real-time traffic monitoring video at preset intervals to generate several corresponding sub-videos. The parsing module is used to parse the sub-video to detect the start time, intermediate time and end time corresponding to the sub-video in real time. The start time, intermediate time and end time all contain specific values. An encryption module is used to generate an encryption key corresponding to the sub-video in real time based on the start time, the intermediate time and the end time according to preset rules, and to encrypt the sub-video using the encryption key to generate the corresponding encrypted video in real time. The storage module is used to generate a corresponding target folder in real time based on the encrypted video, and store the encrypted video in the target folder.
9. A computer 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 computer program, it implements the traffic monitoring video processing method as described in any one of claims 1 to 7.
10. A readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the traffic monitoring video processing method as described in any one of claims 1 to 7.
