A traffic warning system and method based on a collection device
By adopting a traffic warning system based on the acquisition device in the traffic warning system, using the distance collector and the environment acquisition device to collect data in real time, and dynamically process it through the network speed detection device and edge computing equipment, the problem of data processing delay in the existing system is solved, and efficient and real-time traffic warning is achieved.
Patent Information
- Application Number
- CN202510352606.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2045-03-25
AI Technical Summary
Due to the network limitations of data collection equipment and excessive environmental data, the existing traffic warning system has a long warning processing time and a delay in response time.
The traffic warning system based on the acquisition device is adopted to collect the environmental distance in real time through the distance from the collector. When a hazard is detected, the environmental acquisition device and the data transmission device are activated. The network speed detection device is used to dynamically adjust the data tiling ratio, and the real-time processing is performed through the edge computing device.
It realizes triggered data acquisition on demand, reduces energy consumption and data storage pressure, dynamically adapts to network bandwidth, ensures real-time transmission of high-priority data, and reduces data transmission volume and processing delay.
Smart Images

Figure CN119865500B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of traffic warning, and particularly to a traffic warning system and method based on a collection device. Background Art
[0002] With the rapid development of technology, the importance of traffic warning systems has become increasingly prominent. These systems integrate advanced sensor technologies, big data analysis, artificial intelligence algorithms, and Internet of Things communications and other cutting-edge technologies to achieve real-time monitoring and accurate prediction of road traffic conditions, effectively reducing the incidence of traffic accidents and ensuring the safety of people's lives and property.
[0003] Existing traffic warning systems mainly deploy a variety of sensors, such as displacement sensors, stress sensors, meteorological sensors, etc., to monitor the changes in road structure, geological environment, meteorological conditions, and vehicle driving status in real time. At the same time, high-definition cameras are used to monitor the road, and a big data analysis platform is used to process and analyze the massive data collected, so as to discover potential safety hazards in advance and immediately send warning information to relevant departments and the public.
[0004] However, due to the network limitations of data collection devices and the large amount of environmental data generated, the processing time required for warning is relatively long, and there is a problem of delayed response time. Summary of the Invention
[0005] In view of the above deficiencies of the prior art, this application provides a traffic warning system and method based on a collection device to solve the problems in the existing solution, such as the network limitations of data collection devices, the large amount of environmental data generated, the relatively long processing time required for warning, and the resulting delayed response time.
[0006] In the first aspect, this application provides a traffic warning system based on a collection device, the system includes:
[0007] Distance collector, used to collect the real-time distance from the surrounding environment in real time; local central processor, connected to the distance collector, environment collection device, and data transmission device respectively, used to obtain the real-time distance, and when it detects that the real-time distance is less than the preset distance, start the environment collection device and data transmission device; among them, a network speed detection device is provided in the data transmission device, and the data transmission device accesses the network of the current environment; environment collection device, used to collect environmental data; network speed detection device, used to obtain the network bandwidth of the data transmission device within the current detection time interval; the local central processor is also used to obtain the network bandwidth, determine the chunking ratio of the environmental data collected in the current detection time interval according to the network bandwidth, and determine the data transmission device corresponding to each chunk; among them, the number of chunks is the same as the number of data transmission devices, and the name of the chunk is the collection time; the data transmission device is also used to determine the position of the same data between the current chunk corresponding to the data transmission device and the previous chunk, and then determine the size of the chunk to be finally uploaded, and upload the chunk to the edge computing device; the edge computing device is used to obtain the chunks uploaded by each data transmission device and perform sorting and identification on the chunks according to the name of the chunks.
[0008] In one implementation manner of the present application, the local central processor includes a chunk calculation module,
[0009] used to calculate the chunk value of each data transmission device through the formula: chunk value = (current network bandwidth × RTT) / K;
[0010] where K is a preset network stability coefficient, and RTT represents the round-trip time of the data packet;
[0011] Determine the chunking ratio of the environmental data collected in the current detection time interval according to the ratio between the chunk values of the data transmission devices.
[0012] In one implementation manner of the present application, the environmental data at least includes video data at a preset detection angle;
[0013] The data transmission device includes a data comparison module,
[0014] used to convert the current chunk composed of video data into a number of video frames, and convert each video frame into a hash value;
[0015] Remove the duplicate hash values in the current chunk, obtain and cache the hash value set of the current chunk, and compare it with the hash value set cached in the previous chunk; determine whether there are overlapping hash values;
[0016] When there are no overlapping hash values, determine that the position of the same data is a null value;
[0017] When there are overlapping hash values, use the position of the video frame corresponding to the overlapping hash value in the current chunk as the position of the same data.
[0018] In an implementation manner of the present application, the data transmission device includes a chunk determination module,
[0019] which is used to determine that the position of the identical data is a null value when there is no identical data, and determine that the size of the chunk finally uploaded is the original chunk;
[0020] When the position of the identical data is not a null value, when the position of the identical data is the starting position of the original chunk, determine that the chunk after removing the starting position is the chunk finally uploaded; when the position of the identical data is not the starting position of the original chunk, determine that the size of the chunk finally uploaded is the original chunk.
[0021] In an implementation manner of the present application, the data transmission device includes a compression processing module,
[0022] which is used to obtain the network bandwidth of the current data transmission device, determine the compression ratio of the chunk according to the network bandwidth, and then process the chunk according to the compression ratio and upload the processed chunk to the edge computing device.
[0023] In a second aspect, the present application provides a traffic warning method based on a collection device. The method includes:
[0024] Real-time collecting the real-time distance from the surrounding environment through a distance collector; when the local central processing unit detects that the real-time distance is less than a preset distance, starting the environment collection device and the data transmission device; wherein, a network speed detection device is provided in the data transmission device, and the data transmission device is connected to the network of the current environment; collecting environment data through the environment collection device; obtaining the network bandwidth of the data transmission device within the current detection time interval through the network speed detection device; determining the chunk ratio of the environment data collected within the current detection time interval according to the network bandwidth, and determining the data transmission device corresponding to each chunk; wherein, the number of chunks is the same as the number of data transmission devices, and the name of the chunk is the collection time; determining the position of the identical data between the current chunk corresponding to the data transmission device and the previous chunk through the data comparison device built in the data transmission device, and then determining the size of the chunk finally uploaded, and uploading the chunk to the edge computing device; the edge computing device obtains the chunks uploaded by each data transmission device and sorts and identifies the chunks according to the name of the chunks.
[0025] In an implementation manner of the present application, determining the chunk ratio of the environment data collected within the current detection time interval according to the network bandwidth specifically includes:
[0026] Calculating the chunk value of each data transmission device through the formula: chunk value = (current network bandwidth × RTT) / K;
[0027] wherein, K is a preset network stability coefficient, and RTT represents the round-trip time of the data packet.
[0028] Determine the chunking ratio of the environmental data collected at the current detection time interval according to the ratio between the chunk values of the data transmission device.
[0029] In one implementation manner of the present application, the environmental data at least includes video data at a preset detection angle;
[0030] Through the data comparison device built in the data transmission device, determine the position of the same data between the current chunk corresponding to the data transmission device and the previous chunk, specifically including:
[0031] Convert the current chunk composed of video data into a number of video frames, and convert each video frame into a hash value;
[0032] Remove the duplicate hash values in the current chunk, obtain and cache the hash value set of the current chunk, and compare it with the hash value set cached in the previous chunk; determine whether there are overlapping hash values;
[0033] When there are no overlapping hash values, determine that the position of the same data is a null value;
[0034] When there are overlapping hash values, use the position of the video frames corresponding to the overlapping hash values in the current chunk as the position of the same data.
[0035] In one implementation manner of the present application, determine the size of the chunk to be finally uploaded, specifically including:
[0036] When there is no same data, determine that the position of the same data is a null value, and determine that the size of the chunk to be finally uploaded is the original chunk;
[0037] When the position of the same data is not a null value, when the position of the same data is the starting position of the original chunk, determine that the chunk after removing the starting position is the chunk to be finally uploaded; when the position of the same data is not the starting position of the original chunk, determine that the size of the chunk to be finally uploaded is the original chunk.
[0038] In one implementation manner of the present application, upload the chunk to the edge computing device, specifically including:
[0039] Obtain the network bandwidth of the current data transmission device, determine the compression ratio of the chunk according to the network bandwidth, and then process the chunk according to the compression ratio, and upload the processed chunk to the edge computing device.
[0040] Those skilled in the art can understand that the present application has at least the following beneficial effects:
[0041] This application provides a traffic warning system and method based on a collection device, which can collect the real-time distance from the surrounding environment through a distance collector in real time; when the local central processor detects that the real-time distance is less than the preset distance, the environment collection device and the data transmission device are started, realizing trigger-based on-demand collection, avoiding redundant data generated by continuously running the environment collection device, and significantly reducing energy consumption and data storage pressure. It solves the problems of "large data occupancy space" and "low collection rate" caused by all-weather collection in traditional systems.
[0042] Since a network speed detection device is provided in the data transmission device and it is connected to the network of the current environment, it can then determine the chunking ratio of the environmental data and the corresponding transmission device according to the network bandwidth, realizing the automatic adjustment of the data chunking strategy through a dynamic bandwidth adaptation mechanism when the network fluctuates, ensuring the real-time transmission of high-priority data. For example, in the case of low bandwidth, only the differential data blocks may be transmitted instead of the full amount of data.
[0043] By determining the same data positions of the current chunk and the previous chunk, and then determining the size of the chunk to be finally uploaded, that is, only uploading the differential part by comparing historical data, the amount of data transmission is reduced, alleviating the problems of "low transmission rate" and "large data occupancy space". In addition, the edge-side timing reorganization algorithm is adopted to avoid the delay caused by centralized cloud processing, solving the problems of "long warning processing time" and "response delay". Brief Description of the Drawings
[0044] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0045] Figure 1 It is a schematic internal structure diagram of a traffic warning system based on a collection device provided by an embodiment of this application.
[0046] Figure 2 It is a flowchart of a traffic warning method based on a collection device provided by an embodiment of this application. Detailed Embodiments
[0047] Those skilled in the art should understand that the embodiments described below are only the preferred embodiments of the present disclosure, which does not mean that the present disclosure can only be implemented through these preferred embodiments. These preferred embodiments are only used to explain the technical principles of the present disclosure and are not used to limit the protection scope of the present disclosure. Based on the preferred embodiments provided by the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts should still fall within the protection scope of the present disclosure.
[0048] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.
[0049] The technical solutions proposed in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0050] The present application Figure 1 provides a traffic warning system based on a collection device for the embodiments of the present application. As Figure 1 shown, the system provided by the embodiments of the present application mainly includes:
[0051] A distance collector 110, configured to collect the real-time distance from the surrounding environment in real time.
[0052] It should be noted that the distance collector 110 can be a time-of-flight laser sensor (such as VL53L0X). The surrounding environment can be the environment corresponding to the vehicle in several preset directions. The preset directions can be the front, left / right sides, etc. of the vehicle driving direction at preset angles, etc.
[0053] A local central processor 120, respectively connected to the distance collector 110, the environment collection device 130, and the data transmission device 140, is configured to obtain the real-time distance and start the environment collection device 130 and the data transmission device 140 when it detects that the real-time distance is less than the preset distance.
[0054] It should be noted that the local central processor 120 can be an existing control chip capable of data processing, etc. The environment collection device 130 is a device capable of collecting environment data (for example, the environment collection device 130 can be a video collection device; therefore, the environment data at least includes video data at a preset detection angle, and the preset detection angle here can be any feasible angle, which is not limited in the present application). The data transmission device 140 can be an existing device capable of data transmission. In addition, in order to achieve effective data transmission, a network speed detection device 141 is provided in the data transmission device 140 (the network speed detection device 141 is configured to obtain the network bandwidth of the data transmission device 140 within the current detection time interval), and the data transmission device 140 accesses the network of the current environment. In addition, in order to split the data and reduce the data transmission volume of a single device, there are several data transmission devices 140 involved in the present application.
[0055] The solution for the data transmission device 140 to access the network of the current environment can be: The data transmission device 140 directly accesses a local area network (LAN) or a wide area network (WAN) through wired connection methods such as network cables and optical fibers.
[0056] Those skilled in the art can understand that when the local central processor 120 (such as a high-performance control chip) receives the data transmitted from the distance collector 110 and detects that the real-time distance is less than the preset distance, it will immediately activate the environment acquisition device 130 (such as a video acquisition device) and the data transmission device 140. This mechanism ensures that when the vehicle is in a potentially dangerous state, it can quickly collect and transmit the data of the surrounding environment, providing key information for subsequent analysis and processing.
[0057] Here, detecting that the real-time distance is less than the preset distance can be: When the distance between the vehicle and the obstacle is less than 30 cm, it triggers the activation of the environment acquisition device 130 and the data transmission device 140.
[0058] In addition, in order to implement the chunking processing of data and solve the problem of excessive data volume uploaded at one time, the local central processor 120 involved in this application can also obtain the network bandwidth, and according to the network bandwidth, determine the chunking ratio of the environmental data collected at the current detection time interval (here, this application can flexibly adjust the chunking ratio within different detection time intervals to avoid a fixed-mode upload mechanism) and determine the data transmission device 140 corresponding to each chunk.
[0059] It should be noted that the number of chunks is the same as the number of data transmission devices 140, and the name of the chunk is the acquisition time.
[0060] Here, determining the chunking ratio of the environmental data collected at the current detection time interval can specifically be:
[0061] The chunking calculation module of the local central processor 120 uses the formula:
[0062] Chunk value = (current network bandwidth × RTT) / K, to calculate the chunk values of each data transmission device 140. Where K is a preset network stability coefficient, and RTT represents the round-trip time of the data packet; the unit of network bandwidth is Mbps, and the unit of RTT is milliseconds.
[0063] According to the ratio between the chunk values of the data transmission devices 140, determine the chunking ratio of the environmental data collected at the current detection time interval.
[0064] In order to avoid uploading duplicate data, which may cause a problem of a large amount of processed data, the data transmission device 140 in this application can determine the position of the same data in the current chunk corresponding to the data transmission device 140 and the previous chunk, and then determine the size of the chunk to be finally uploaded, and upload the chunk to the edge computing device 150.
[0065] Among them, to determine the position of the same data between the current chunk corresponding to the data transmission device 140 and the previous chunk, specifically, it can be:
[0066] Through the data comparison module in the data transmission device 140, convert the current chunk composed of video data into several video frames, and convert each video frame into a hash value; remove the duplicate hash values in the current chunk, obtain and cache the hash value set of the current chunk, and compare it with the hash value set cached in the previous chunk; determine whether there are overlapping hash values; when there are no overlapping hash values, determine that the position of the same data is a null value; when there are overlapping hash values, use the position of the video frame corresponding to the overlapping hash value in the current chunk as the position of the same data.
[0067] It should be added that removing the duplicate hash values in the current chunk means retaining the hash value corresponding to the video frame collected first and removing the other duplicates. In addition, the perceptual hashing (pHash) algorithm can be used to generate the video frame feature values (hash values), and a similarity threshold (such as Hamming distance ≤ 5) is set to determine duplicates.
[0068] Among them, to determine the size of the chunk to be finally uploaded, specifically, it can be:
[0069] Using the chunk determination module in the data transmission device 140, when there is no same data, determine that the position of the same data is a null value, and determine that the size of the chunk to be finally uploaded is the original chunk; when the position of the same data is not a null value, when the position of the same data is the starting position of the original chunk, determine that the chunk after removing the starting position is the chunk to be finally uploaded; when the position of the same data is not the starting position of the original chunk, determine that the size of the chunk to be finally uploaded is the original chunk.
[0070] In addition, in order to further reduce the amount of data transmitted and improve the transmission speed, the present application can also perform data compression processing.
[0071] The specific process can be:
[0072] Through the compression processing module of the data transmission device 140, obtain the network bandwidth of the current data transmission device 140, determine the compression ratio of the chunk according to the network bandwidth, and then process the chunk according to the compression ratio, and upload the processed chunk to the edge computing device 150.
[0073] The edge computing device 150 is used to obtain the chunks uploaded by each data transmission device 140 and perform sorting and recognition on the chunks according to the names of the chunks.
[0074] In addition, the embodiment provides a traffic warning method based on a collection device, such as Figure 2As shown in the figure, the method provided by the embodiment of the present application mainly includes the following steps:
[0075] Step 210: Use a distance collector to collect the real-time distance from the surrounding environment in real time; when the local central processor detects that the real-time distance is less than the preset distance, start the environment collection device and the data transmission device.
[0076] It should be noted that a network speed detection device is provided in the data transmission device, and the data transmission device is connected to the network of the current environment.
[0077] As an example, in an autonomous vehicle, the distance collector monitors the distance between the vehicle and the obstacle in front in real time. When the distance is less than the safety threshold (such as 30 cm), the local central processor immediately starts the environment collection device such as a camera, and at the same time starts the data transmission device to upload the collected environment data to the cloud or edge computing device in real time for further analysis and processing.
[0078] Step 220: Collect environment data through the environment collection device; obtain the network bandwidth of the data transmission device within the current detection time interval through the network speed detection device; determine the chunking ratio of the environment data collected in the current detection time interval according to the network bandwidth, and determine the data transmission device corresponding to each chunk.
[0079] It should be noted that the number of chunks is the same as the number of data transmission devices, and the name of the chunk is the collection time.
[0080] Evaluate the current network bandwidth of each network speed detection device in real time, and dynamically adjust the data chunk size of each data transmission device according to the bandwidth situation.
[0081] Among them, determining the chunking ratio of the environment data collected in the current detection time interval according to the network bandwidth can be specifically:
[0082] Calculate the chunk value of each data transmission device through the formula: chunk value = (current network bandwidth × RTT) / K;
[0083] Among them, K is a preset network stability coefficient, and RTT represents the round-trip time of the data packet;
[0084] Determine the chunking ratio of the environment data collected in the current detection time interval according to the ratio between the chunk values of the data transmission devices.
[0085] For example: when the ratio between the chunk values of 3 data transmission devices is 3:2:7, the chunking ratio is 3:2:7.
[0086] Those skilled in the art can understand that when the local central processor (such as a high-performance control chip) receives the data transmitted from the distance collector and detects that the real-time distance is less than the preset distance, it will immediately activate the environmental data collection device (such as a video data collection device) and the data transmission device. This mechanism ensures that when the vehicle is in a potentially dangerous state, it can quickly collect and transmit the data of the surrounding environment, providing key information for subsequent analysis and processing.
[0087] Step 230: Through the data comparison device built into the data transmission device, determine the position of the same data between the current data block corresponding to the data transmission device and the previous data block, and then determine the size of the data block to be finally uploaded, and upload the data block to the edge computing device.
[0088] Among them, through the data comparison device built into the data transmission device, determining the position of the same data between the current data block corresponding to the data transmission device and the previous data block can specifically be:
[0089] Convert the current data block composed of video data into a number of video frames, and convert each video frame into a hash value;
[0090] Remove the duplicate hash values in the current data block, obtain and cache the hash value set of the current data block, and compare it with the hash value set cached in the previous data block; determine whether there are overlapping hash values;
[0091] When there are no overlapping hash values, determine that the position of the same data is a null value;
[0092] When there are overlapping hash values, use the position of the video frames corresponding to the overlapping hash values in the current data block as the position of the same data.
[0093] It should be noted that the environmental data here is video data. The solution of converting each video frame into a hash value can be implemented using existing solutions, and this application does not make any limitations on this.
[0094] Further specifically, when the monitoring is normal, most of the content in consecutive video frames may be similar, and data deduplication can significantly reduce the data transmission volume. At the same time, dynamically adjust the compression ratio of video data according to the current network bandwidth to ensure that the video data can be uploaded to the edge computing device in real time and smoothly for further analysis.
[0095] Among them, determining the size of the data block to be finally uploaded can specifically be:
[0096] When there is no same data, determine that the position of the same data is a null value, and determine that the size of the data block to be finally uploaded is the original data block;
[0097] When the position of the same data is not a null value, and when the position of the same data is the starting position of the original chunk, determine the chunk after removing the starting position as the chunk to be finally uploaded; when the position of the same data is not the starting position of the original chunk, determine the size of the chunk to be finally uploaded as the original chunk.
[0098] As an example, a chunk (chunk A) has been uploaded, which contains video data for a period of time before the current detection time interval. Now, prepare to upload a new chunk (chunk B), which contains video data after chunk A (here, due to the chunking of data, chunk A and chunk B are not time-adjacent. However, since the current detection time interval involved in this application is short, such as 15 seconds, the problem of non-time-adjacency can be ignored, and there is still a problem of data duplication).
[0099] By converting chunk B into a number of video frames and converting each video frame into a hash value. Remove the duplicate hash values in chunk B, obtain and cache the hash value set of chunk B. Compare the hash value set of chunk B with the cached hash value set of chunk A to determine whether there are overlapping hash values.
[0100] If the position of the same data is a null value (i.e., there are no overlapping video frames between chunk B and chunk A), then determine the size of the chunk to be finally uploaded as the size of the original chunk B. This means that all the video frames contained in chunk B are new and need to be uploaded in full.
[0101] If the position of the same data is not a null value, it is necessary to further judge the position of the same data:
[0102] If the position of the same data is the starting position of the original chunk B (i.e., the beginning part of chunk B overlaps with the ending part of chunk A), then determine the chunk after removing the starting position as the chunk to be finally uploaded. This means that only the new video frames in chunk B except for the part that overlaps with chunk A need to be uploaded.
[0103] If the position of the same data is not the starting position of the original chunk B (i.e., the overlapping part between chunk B and chunk A is not at the beginning), then determine the size of the chunk to be finally uploaded as the size of the original chunk B. This is because, although there is an overlapping part, the overlapping part is not at the beginning of chunk B, so the entire chunk B needs to be uploaded to ensure data integrity.
[0104] Among them, uploading the chunk to the edge computing device can specifically be:
[0105] Obtain the network bandwidth of the current data transmission device, determine the compression ratio of the chunk according to the network bandwidth, and then process the chunk according to the compression ratio and upload the processed chunk to the edge computing device.
[0106] As an example, the current network bandwidth situation is obtained in real time. For example, at a certain moment, the network speed detection module detects that the current network bandwidth is 10 Mbps (megabits per second). The compression ratio of the chunks can be: when the network bandwidth is 10 Mbps, the compression ratio is 50%, that is, each chunk will be compressed to half of its original size before uploading. That is, the original chunk size is 100 MB (megabytes), and after 50% compression, the chunk size becomes 50 MB.
[0107] Step 240: The edge computing device obtains the chunks uploaded by each data transmission device and sorts and identifies the chunks according to the names of the chunks.
[0108] So far, the technical solutions of the present disclosure have been described in combination with multiple embodiments above. However, it is easy for those skilled in the art to understand that the protection scope of the present disclosure is not limited to these specific embodiments. Without departing from the technical principle of the present disclosure, those skilled in the art can split and combine the technical solutions in the above embodiments, and can also make equivalent changes or replacements to the relevant technical features. Any changes, equivalent replacements, improvements, etc. made within the technical concept and / or technical principle of the present disclosure will fall within the protection scope of the present disclosure.
Claims
1. A traffic warning system based on a data collection device, characterized in that: The system comprises: Distance collector, used to collect the real-time distance to the surrounding environment; The local central processor is connected to the distance collector, the environment collection device, and the data transmission device respectively, and is used to obtain the real-time distance. When it is detected that the real-time distance is less than the preset distance, the environment collection device and the data transmission device are started; wherein the data transmission device is provided with a network speed detection device, and the data transmission device is connected to the network of the current environment; An environmental collection device, used for collecting environmental data; A network speed detection device, used to obtain the network bandwidth of the data transmission device within the current detection time interval; The local central processor is also used to obtain the network bandwidth, determine the block ratio of the environmental data collected at the current detection time interval according to the network bandwidth, and determine the data transmission device corresponding to each block; wherein the number of blocks is the same as the number of data transmission devices, and the name of the block is the collection time; The local CPU includes a block computing module. Used to calculate the block value of each data transmission device through the formula: block value = (current network bandwidth × RTT) / K; where K is the preset network stability coefficient, and RTT represents the round-trip time of the data packet; according to the ratio between the block values of the data transmission device, determine the block ratio of the environmental data collected at the current detection time interval; The data transmission device is also used to determine the position of the same data of the current cut block and the previous cut block corresponding to the data transmission device, thereby determining the size of the cut block to be uploaded, and uploading the cut block to the edge computing device; wherein the environmental data at least includes video data of a preset detection angle; The data transmission device includes a data comparison module, Used to convert the current block composed of video data into several video frames, and convert each video frame into a hash value; remove repeated hash values in the current block, obtain and cache the hash value set of the current block, and compare it with the hash value set cached in the previous block; determine whether there are overlapping hash values; when there are no overlapping hash values, determine that the position of the same data is a null value; when there are overlapping hash values, use the position of the video frame corresponding to the overlapping hash value in the current block as the position of the same data; The edge computing device is used to obtain the blocks uploaded by each data transmission device and sort and identify the blocks according to their names.
2. The traffic warning system based on the collection device according to claim 1 is characterized in that: The data transmission device includes a block determination module, When the same data does not exist, the location of the same data is determined to be a null value, and the size of the final uploaded block is determined to be the original block; When the position of the same data is not a null value, when the position of the same data is the starting position of the original block, the block after removing the starting position is determined to be the final uploaded block; when the position of the same data is not the starting position of the original block, the size of the final uploaded block is determined to be the original block.
3. The traffic warning system based on the collection device according to claim 1 is characterized in that: The data transmission device includes a compression processing module, It is used to obtain the network bandwidth of the current data transmission device, determine the compression ratio of the blocks according to the network bandwidth, and then process the blocks according to the compression ratio, and upload the processed blocks to the edge computing device.
4. A traffic warning method based on a collection device, characterized in that: The method comprises: The real-time distance to the surrounding environment is collected in real time through the distance collector; when the local central processor detects that the real-time distance is less than the preset distance, the environment collection device and the data transmission device are started; wherein the data transmission device is provided with a network speed detection device, and the data transmission device is connected to the network of the current environment; Collect environmental data through the environmental collection device; obtain the network bandwidth of the data transmission device in the current detection time interval through the network speed detection device; determine the block ratio of the environmental data collected in the current detection time interval according to the network bandwidth, and determine the data transmission device corresponding to each block; wherein the number of blocks is the same as the number of data transmission devices, and the name of the block is the collection time; The block ratio of the environmental data collected at the current detection time interval is determined according to the network bandwidth, specifically including: The block value of each data transmission device is calculated by the formula: block value = (current network bandwidth × RTT) / K; where K is the preset network stability coefficient, and RTT represents the round-trip time of the data packet; according to the ratio between the block values of the data transmission device, the block ratio of the environmental data collected at the current detection time interval is determined; The data comparison device built into the data transmission device is used to determine the position of the same data between the current block and the previous block corresponding to the data transmission device, and then the size of the block to be uploaded is determined, and the block is uploaded to the edge computing device; Wherein, the environmental data at least includes video data of a preset detection angle; The data comparison device built in the data transmission device is used to determine the position of the same data between the current block and the previous block corresponding to the data transmission device, specifically including: Convert the current block composed of video data into several video frames, and convert each video frame into a hash value; remove repeated hash values in the current block, obtain and cache the hash value set of the current block, and compare it with the hash value set cached in the previous block; determine whether there are overlapping hash values; when there are no overlapping hash values, determine that the position of the same data is a null value; when there are overlapping hash values, use the position of the video frame corresponding to the overlapping hash value in the current block as the position of the same data; The edge computing device obtains the blocks uploaded by each data transmission device, and sorts and identifies the blocks according to their names.
5. The traffic warning method based on the collection device according to claim 4 is characterized in that: Determine the final uploaded chunk size, including: When the same data does not exist, the location of the same data is determined to be a null value, and the size of the final uploaded block is determined to be the original block; When the position of the same data is not a null value, when the position of the same data is the starting position of the original block, the block after removing the starting position is determined to be the final uploaded block; when the position of the same data is not the starting position of the original block, the size of the final uploaded block is determined to be the original block.
6. The traffic warning method based on the data collection device according to claim 4 is characterized in that: Upload the blocks to the edge computing device, including: The network bandwidth of the current data transmission device is obtained, and the compression ratio of the blocks is determined according to the network bandwidth. Then, the blocks are processed according to the compression ratio, and the processed blocks are uploaded to the edge computing device.
Citation Information
Patent Citations
Dynamic data distribution method and system based on hybrid network, and storage medium
CN114401277A
NR-V2X-based vulnerable traffic participant collision early warning system and method
CN115240470A