A method and system for optimizing transmission of highway video surveillance video

By dynamically optimizing the data packaging and transmission rate of highway surveillance video frames, the problems of delay and low efficiency in highway surveillance video transmission are solved, and more efficient and stable video transmission is achieved.

CN118714267BActive Publication Date: 2024-10-25GUIZHOU BRIDGE CONSTR GROUP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411187972.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-25
Estimated Expiration
2044-08-28

Smart Images

  • Figure CN118714267B_ABST
    Figure CN118714267B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of wireless communication networks, and in particular to a method and system for optimizing transmission of highway video surveillance video. The present invention obtains main message data and idle message data of different transmission priorities according to the highway surveillance video shot by each highway camera in a monitoring time period; uses the main message data as a detection message to predict the transmission link bandwidth, and combines the road condition information of the monitored road section of each highway camera to obtain the corresponding transmission rate of each highway camera at each transmission; thereby, according to the channel utilization rate in the transmission process of each transmission rate, it is determined whether to continue transmission or repeat the calculation of the transmission rate until all the main message data and idle message data are transmitted, so that the accuracy and integrity of the highway surveillance video transmission are higher, and the transmission efficiency is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless communication networks, and in particular to a method and system for optimizing transmission of highway video surveillance videos. Background Art

[0002] The video surveillance system can monitor the traffic conditions on the highway in real time, including traffic flow, traffic accidents, road conditions, etc. It can help the traffic management department to promptly discover and deal with traffic violations and accidents to ensure road safety. The video surveillance system of the highway usually uses cameras installed on various sections of the highway to shoot the road section and transmit the captured highway surveillance video to the cloud or video storage system.

[0003] The existing technology usually uses the TCP / IP protocol with better stability to transmit highway monitoring videos; however, the highway sections are long, resulting in a large number of monitoring videos shot by numerous highway cameras, and all of them need to be transmitted in real time; and the TCP / IP protocol has congestion control and a corresponding confirmation mechanism, which usually has a large delay when transmitting highway monitoring videos with a large total data volume, and is more likely to cause data loss when the amount of data transmitted is large. Therefore, the existing technology uses the TCP / IP protocol to transmit highway monitoring videos, which will cause a large transmission delay and may cause data loss, and the corresponding transmission efficiency is low. Summary of the invention

[0004] In order to solve the technical problem that the existing technology uses TCP / IP protocol to transmit highway surveillance video, which will cause large transmission delay and data loss, and the corresponding transmission efficiency is low, the purpose of the present invention is to provide a method and system for optimizing the transmission of highway video surveillance video. The technical solution adopted is as follows:

[0005] The present invention proposes a method for optimizing transmission of highway video surveillance videos, the method comprising:

[0006] Obtain the highway monitoring videos shot by each highway camera during the monitoring period;

[0007] Packing all video frames of the highway monitoring video through a transport layer protocol to obtain main message data corresponding to video frames with vehicles and idle message data corresponding to video frames without vehicles;

[0008] A preset number of untransmitted main message data are used as analysis data packets, and an initial transmission rate corresponding to each highway camera is determined according to the network capacity of the main message data in the analysis data packet and the traffic volume of the corresponding highway camera in the corresponding monitoring time period; based on the initial transmission rate, the untransmitted main message data and idle message data corresponding to each highway camera are transmitted in sequence, and a new analysis data packet is determined when the channel utilization during the transmission process meets the preset iteration condition, and the iteration of the transmission rate and the channel utilization is repeated until the transmission of all main message data and all idle message data corresponding to the highway monitoring video is completed.

[0009] Furthermore, the method for acquiring the transmission rate includes:

[0010] taking each analysis data packet as a target analysis data packet in turn;

[0011] The main message data that is not transmitted in the target analysis data packet is used as the detection message data; the time interval between each detection message data being sent to the transmission link corresponding to the TCP / IP protocol and receiving the response message is used as the transmission delay of each detection message data;

[0012] The ratio of the data volume of each detection message data to the transmission delay is used as the reference network capacity of each detection message data; according to the reference network capacity of all detection message data, the detection channel bandwidth corresponding to the target analysis data packet is screened out;

[0013] Obtain the prior basic transmission channel bandwidth of the transmission channel; use all detection channel bandwidths as historical data, perform channel bandwidth prediction through the RLS algorithm, and obtain the predicted channel bandwidth corresponding to the target analysis data packet;

[0014] Using a positive correlation mapping value of a priori basic transmission channel bandwidth as a comparison channel bandwidth; the comparison channel bandwidth is smaller than the a priori basic transmission channel bandwidth;

[0015] The minimum value between the predicted channel bandwidth and the compared channel bandwidth is used as the final channel bandwidth corresponding to the target analysis data packet;

[0016] According to the vehicle passing situation in the highway monitoring video corresponding to the target analysis data packet, a reference transmission weight corresponding to the target analysis data packet is obtained;

[0017] A transmission rate corresponding to a target analysis data packet is obtained according to the final channel bandwidth and the reference transmission weight.

[0018] Furthermore, the method for sequentially transmitting the untransmitted main message data and idle message data corresponding to each highway camera based on the initial transmission rate includes:

[0019] For each highway camera:

[0020] Arrange all main message data in the order of the corresponding video frames in the corresponding highway monitoring video to obtain a main message data sequence; arrange all idle message data in the order of the corresponding video frames in the highway monitoring video to obtain an idle message data sequence;

[0021] Using a preset first number of main message data in the main message data sequence and a preset second number of idle message data in the idle message data sequence as transmission message data transmitted by each highway camera each time;

[0022] The transmission message data is transmitted sequentially at the initial transmission rate of each highway camera.

[0023] Furthermore, the method for obtaining the channel utilization rate includes:

[0024] The ratio between the data volume of the transmission message data corresponding to each highway camera at each transmission and the corresponding transmission rate is used as the local time length corresponding to each highway camera at each transmission; the accumulated value of all local time lengths corresponding to all highway cameras at each transmission is used as the actual transmission time length;

[0025] The product of the actual transmission time length and the a priori basic transmission channel bandwidth is used as the maximum transmission data amount;

[0026] The data volume of the transmission message data corresponding to each transmission of all highway cameras is accumulated as the actual transmission data volume of each transmission;

[0027] The ratio between the actual transmission data amount and the maximum transmission data amount is used as the channel utilization rate during each transmission.

[0028] Furthermore, the method for determining a new analysis data packet when the channel utilization rate during the transmission process meets a preset iteration condition includes:

[0029] Obtaining the channel utilization rate corresponding to each transmission during the transmission process; when the corresponding channel utilization rate is greater than or equal to a preset first utilization rate threshold and less than or equal to a preset second utilization rate threshold, continuing to transmit at the current transmission rate;

[0030] When the corresponding channel utilization is less than a preset first utilization threshold or greater than a preset second utilization threshold, the transmission stops, and a preset number of untransmitted main message data in the transmission sequence are used as new analysis data packets.

[0031] Furthermore, the method for acquiring the detection channel bandwidth includes:

[0032] The minimum value of the reference network capacity of all detection message data is used as the detection channel bandwidth corresponding to the target analysis data packet.

[0033] Furthermore, the method for obtaining the reference transmission weight includes:

[0034]

[0035] in, The highway camera corresponding to the highway surveillance video corresponding to the target analysis data packet The reference transmission weight of For highway cameras The length of the highway section monitored during the monitoring period; Highway cameras during the monitoring period The number of vehicles passing through the monitoring area; For highway cameras The number of highway cameras sharing a transmission channel; For monitoring time period with highway cameras Sharing a transmission channel The number of vehicles passing within the surveillance range of a highway camera; For highway cameras Sharing a transmission channel The length of the highway section monitored by each highway camera during the monitoring period; is a logarithmic function with a natural constant as its base.

[0036] Furthermore, the method for obtaining the transmission rate corresponding to the target analysis data packet according to the final channel bandwidth and the reference transmission weight includes:

[0037] The product of the final channel bandwidth and the reference transmission weight is used as the transmission rate corresponding to the target analysis data packet.

[0038] Furthermore, the preset number is set to 5.

[0039] The present invention also proposes a highway video surveillance video optimization transmission system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any one of the steps of a highway video surveillance video optimization transmission method.

[0040] The present invention has the following beneficial effects:

[0041] For each highway camera, the road section it monitors is not always one where vehicles pass by; video frames without vehicles passing by usually correspond to empty roads, and the corresponding monitoring information is usually invalid. Therefore, in subsequent analysis, the messages corresponding to the video frames with vehicles are used as the main messages for subsequent bandwidth detection analysis, so that the information conveyed by the video frames with vehicles can be transmitted accurately as much as possible, making the data transmission more accurate and complete, that is, the possibility of valid data loss is smaller.

[0042] According to the bandwidth detection method disclosed by the real-time video transmission bandwidth detection method for optimizing video stream messages, the present invention determines the transmission rate based on the main message data that has not been transmitted, using the traffic volume of the highway camera in the corresponding monitoring time period as a weight; it can combine the traffic volume of different highway cameras in the corresponding monitoring time period to adaptively calculate the channel transmission weight of the highway monitoring video taken by each highway camera, thereby making the calculated transmission rate more accurate.

[0043] Furthermore, in order to ensure the stability of network channel transmission and reduce the frequency of calculating the transmission rate as much as possible, the present invention transmits all main message data and all idle message data in sequence according to the calculated transmission rate, and uses the channel utilization rate during the transmission process as the transmission stop condition, so that the transmission process is more stable while ensuring the transmission efficiency of the channel; and when the transmission stop condition is not met, data transmission continues at the current transmission rate, reducing the frequency of calculating the transmission rate, thereby further improving the transmission efficiency; therefore, compared with the corresponding highway monitoring video transmission in the prior art, the present invention has higher accuracy and completeness, and higher transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A flow chart of a method for optimizing transmission of highway video surveillance video provided by an embodiment of the present invention;

[0046] Figure 2 A flow chart of a transmission rate acquisition method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a method and system for optimizing transmission of video surveillance video on a highway proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0048] Unless defined otherwise, 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 belongs.

[0049] The specific scheme of a highway video surveillance video optimization transmission method and system provided by the present invention is described in detail below with reference to the accompanying drawings.

[0050] See also Figure 1 , which shows a flow chart of a method for optimizing transmission of highway video surveillance video provided by an embodiment of the present invention, the method comprising:

[0051] Step S1: Obtain the highway monitoring video captured by each highway camera during the monitoring time period.

[0052] The embodiment of the present invention aims to provide a method for optimizing the transmission of highway video surveillance videos, which is used to obtain main message data and idle message data with different transmission priorities based on the highway surveillance videos taken by each highway camera, and at the same time perform data detection based on the transmission link bandwidth, so as to control the transmission rate of the surveillance video, so as to complete the dynamic optimization transmission of the surveillance video, so that the transmission quality and transmission rate of the highway surveillance video are higher.

[0053] The embodiment of the present invention obtains the highway monitoring video shot by each highway camera during the monitoring time period. In the embodiment of the present invention, the monitoring time period is set to 10 minutes, so that the embodiment of the present invention has sufficient data for analysis, and the implementer can adjust it according to the specific implementation environment. It should be noted that all highway cameras in the embodiment of the present invention share a channel for transmission, and the channel bandwidth shared by all highway cameras in the embodiment of the present invention is measured in advance by a network traffic analyzer, that is, the a priori basic transmission channel bandwidth corresponding to the subsequent embodiment of the present invention.

[0054] Step S2: Packing all video frames of the highway monitoring video through the transport layer protocol to obtain main message data corresponding to the video frames with vehicles and idle message data corresponding to the video frames without vehicles.

[0055] For each highway camera, the road section it monitors is not always one where vehicles pass by; video frames without vehicles passing by usually correspond to empty roads, and the corresponding monitoring information is usually invalid. Therefore, in the subsequent analysis, the message corresponding to the video frame with vehicles is used as the main message for subsequent bandwidth detection analysis, so that the information conveyed by the video frame with vehicles can be transmitted accurately as much as possible, so that the accuracy and integrity of data transmission are higher, that is, the possibility of effective data loss is smaller. Therefore, the embodiment of the present invention packages all video frames of the highway monitoring video through the transport layer protocol to obtain the main message data corresponding to the video frame with vehicles and the idle message data corresponding to the video frame without vehicles.

[0056] In the embodiment of the present invention, the transport layer protocol adopts the TCP / IP protocol, and the implementer can obtain the main message data and the idle message data through other methods according to the specific implementation environment. In the embodiment of the present invention, the video frames with vehicles and the video frames without vehicles in the highway monitoring video are determined by the target detection method; and the video frames without vehicles in the highway monitoring video are extracted and arranged in time order as the idle video frame group; and a blank frame is inserted into each extracted video frame position in the highway monitoring video, and the number of extracted video frames corresponding to each extracted video frame position is written in the blank frame, so that it can be used as the basis for video recovery later; and all blank frames and all video frames with vehicles are arranged in time order to obtain the main video frame group. It should be noted that the implementer can adopt other methods for detecting video frames with vehicles and video frames without vehicles in the highway monitoring video according to the specific implementation environment, such as through a vehicle detection method based on machine learning, etc., which will not be further elaborated here.

[0057] The main video frame group is packaged with data through the Maximum Transmission Unit (MTU) in the TCP / IP protocol to obtain all the main message data; the idle video frame group is packaged with data through the MTU in the TCP / IP protocol to obtain all the idle message data.

[0058] Step S3: Use the previously preset number of untransmitted main message data as analysis data packets, and determine the initial transmission rate corresponding to each highway camera according to the network capacity of the main message data in the analysis data packet and the traffic volume of the corresponding highway camera in the corresponding monitoring time period; based on the initial transmission rate, transmit the untransmitted main message data and idle message data corresponding to each highway camera in sequence, determine a new analysis data packet when the channel utilization during the transmission process meets the preset iteration condition, and repeat the iteration of the transmission rate and channel utilization until the transmission of all main message data and all idle message data corresponding to the highway monitoring video is completed.

[0059] According to the bandwidth detection method disclosed by the real-time video transmission bandwidth detection method optimized by video stream message, the present invention determines the transmission rate based on the untransmitted main message data, taking the traffic volume of the highway camera in the corresponding monitoring time period as the weight; it can adaptively calculate the channel transmission weight of the highway monitoring video shot by each highway camera in combination with the traffic volume of different highway cameras in the corresponding monitoring time period, so that the calculated transmission rate is more accurate. Therefore, the embodiment of the present invention uses the previously preset number of untransmitted main message data as the analysis data packet, and determines the initial transmission rate corresponding to each highway camera according to the network capacity of the main message data in the analysis data packet and the traffic volume of the corresponding highway camera in the corresponding monitoring time period. That is, the embodiment of the present invention uses the previously preset number of untransmitted main message data as the detection message data for bandwidth detection, and determines the corresponding transmission rate in combination with the detected detection channel bandwidth and the traffic volume corresponding to each highway camera. In the embodiment of the present invention, the preset number is set to 5, and the implementer can adjust it according to the specific implementation environment.

[0060] Preferably, the method for acquiring the transmission rate includes:

[0061] See also Figure 2 , which shows a flow chart of a transmission rate acquisition method provided by an embodiment of the present invention, the method comprising:

[0062] Step S301: Detect and obtain the final channel bandwidth according to the detection message data.

[0063] taking each analysis data packet as a target analysis data packet in turn;

[0064] The main message data not transmitted in the target analysis data packet is used as the detection message data; the time interval between each detection message data being sent to the transmission link corresponding to the TCP / IP protocol and receiving the response message is used as the transmission delay of each detection message data; the ratio of the data volume of each detection message data to the transmission delay is used as the reference network capacity of each detection message data; according to the reference network capacity of all detection message data, the detection channel bandwidth corresponding to the target analysis data packet is screened out; preferably, the method for obtaining the detection channel bandwidth includes:

[0065] The minimum value of the reference network capacity of all the detection message data is used as the detection channel bandwidth corresponding to the target analysis data packet. For network channel transmission, the overall transmission performance is usually determined by the minimum path capacity. Even if the capacity of other links in the network is large, if there is a very narrow link, it will become the bottleneck of the entire path, thereby limiting the data transmission speed. Therefore, in the form of a detection data packet, the minimum network capacity of all the detection message data is calculated, and the minimum network capacity is used as the detection channel bandwidth, so that the subsequent transmission of data messages is as smooth as possible, making the network data transmission more stable. It should be noted that the detection message data in the embodiment of the present invention is the data that has been transmitted through the TCP / IP protocol. When the message data is transmitted at the calculated transmission rate later, the untransmitted data after the detection message data needs to be transmitted in sequence.

[0066] In the embodiment of the present invention, the target analysis data packet The corresponding The method for obtaining the reference network capacity of a detection message data is expressed in the formula as follows:

[0067]

[0068] in, Analyze the data packet for the target The corresponding Reference network capacity of probe message data; Analyze the data packet for the target The corresponding The data volume of each detection message data; Analyze the data packet for the target The corresponding The transmission delay of the detection message data.

[0069] Obtain the a priori basic transmission channel bandwidth of the transmission channel; use the bandwidth of all detection channels as historical data, and use the recursive least squares (RLS) algorithm to predict the channel bandwidth to obtain the predicted channel bandwidth corresponding to the target analysis data packet; by predicting the channel bandwidth, it is possible to reduce the possibility of congestion while ensuring low latency in video transmission. Compared with other prediction algorithms, the advantage of the RLS algorithm is that it does not require a specific data model, but only requires historical values ​​to predict the channel bandwidth. The implementer can use other data prediction methods to predict the channel bandwidth according to the specific implementation environment, which will not be further elaborated here. It should be noted that the RLS algorithm is a prior art well known to those skilled in the art, and will not be further defined or elaborated here.

[0070] The positive correlation mapping value of the a priori basic transmission channel bandwidth is used as the comparison channel bandwidth; the comparison channel bandwidth is less than the a priori basic transmission channel bandwidth; the minimum value between the predicted channel bandwidth and the comparison channel bandwidth is used as the final channel bandwidth corresponding to the target analysis data packet. In an embodiment of the present invention, 0.8 times the a priori basic transmission channel bandwidth is used as the comparison channel bandwidth. The reason for setting the comparison channel bandwidth to be less than the a priori basic transmission channel bandwidth is that for the transmission bandwidth of the network channel, in order to maintain the stability of the network transmission, the entire network bandwidth is usually not fully used, that is, full-load transmission is maintained, but a part is reserved to be able to cope with network fluctuations or emergency transmission situations. Therefore, the minimum value between the predicted channel bandwidth and the comparison channel bandwidth is used as the final channel bandwidth, thereby ensuring the stability of the network transmission.

[0071] Step S302: Obtain a reference transmission weight according to the vehicle passing situation of the road section monitored by each highway camera.

[0072] Further, according to the vehicle passing situation in the highway monitoring video corresponding to the target analysis data packet, a reference transmission weight corresponding to the target analysis data packet is obtained; preferably, the method for obtaining the reference transmission weight includes:

[0073]

[0074] in, The highway camera corresponding to the highway surveillance video corresponding to the target analysis data packet The reference transmission weight of For highway cameras The length of the highway section monitored during the monitoring period; Highway cameras during the monitoring period The number of vehicles passing through the monitoring area; For highway cameras The number of highway cameras sharing a transmission channel; For monitoring time period and highway cameras Sharing a transmission channel The number of vehicles passing within the surveillance range of a highway camera; For highway cameras Sharing a transmission channel The length of the highway section monitored by each highway camera during the monitoring period; is a logarithmic function with a natural constant as its base.

[0075] Since multiple highway cameras share one channel for transmission, and different highway cameras capture different numbers of vehicles and lengths of sections during the monitoring time period, the importance of highway monitoring videos captured by different highway cameras is also different, that is, the transmission weights are different. For each highway camera, the longer the length of the highway section it captures and the more vehicles passing through during the monitoring time period of the embodiment of the present invention, the more important the highway monitoring video captured by the highway camera is, and the larger the corresponding transmission weight needs to be. Therefore, the embodiment of the present invention uses the product of the positive correlation mapping value of the number of vehicles passing through the highway video frame captured by each highway camera and the positive correlation mapping value of the length of the highway section captured as the importance of each highway camera; and The purpose is to prevent the calculated transmission weight from being 0. The length of the highway section is scaled by a logarithmic function to make the impact of the traffic flow index and the section length index on the importance more reasonable. Considering that all highway cameras share a channel for transmission, the importance of each highway camera is normalized to obtain the corresponding transmission weight.

[0076] Step S303: Obtain the transmission rate according to the reference transmission weight and the final channel bandwidth.

[0077] Further, according to the final channel bandwidth and the reference transmission weight, the transmission rate corresponding to the target analysis data packet is obtained. Preferably, according to the final channel bandwidth and the reference transmission weight, the method for obtaining the transmission rate corresponding to the target analysis data packet includes:

[0078] The product of the final channel bandwidth and the reference transmission weight is used as the transmission rate corresponding to the target analysis data packet; because different highway cameras have different reference transmission weights, and all highway cameras share one channel for transmission, the final channel bandwidth is further weighted by the reference transmission weight to obtain the transmission rate corresponding to each highway camera.

[0079] In the embodiment of the present invention, Target analysis data package corresponding to highway cameras The corresponding transmission rate is obtained by formula:

[0080]

[0081] in, Analyze the data packet for the target The corresponding transmission rate; Analyze the data packet for the target the reference transmission weight of the highway camera corresponding to the corresponding highway surveillance video; Analyze the data packet for the target Corresponding final channel bandwidth. Under the initial conditions, the embodiment of the present invention obtains the analysis data packet of the highway monitoring video shot by each highway camera, further calculates the detection channel bandwidth of the analysis data packet corresponding to each highway camera; combines the historical data of the detection channel bandwidth corresponding to each highway camera to obtain the corresponding predicted channel bandwidth; further combines the prior basic transmission channel bandwidth to obtain the final channel bandwidth of the analysis data packet corresponding to each highway camera; and weights the final channel bandwidth with the reference transmission weight obtained by combining the traffic volume and section length of the road section corresponding to each highway camera, so as to adaptively obtain the transmission rate corresponding to the analysis data packet corresponding to each highway camera.

[0082] Based on the initial transmission rate, the main message data and idle message data that have not been transmitted corresponding to each highway camera are transmitted in sequence. When the channel utilization rate during the transmission process meets the preset iteration condition, a new analysis data packet is determined, and the iteration of the transmission rate and channel utilization rate is repeated until all the main message data and all the idle message data corresponding to the highway monitoring video are transmitted. In order to ensure the stability of network channel transmission and reduce the calculation frequency of the transmission rate as much as possible, the present invention transmits all the main message data and all the idle message data in sequence through the calculated transmission rate, and uses the channel utilization rate during the transmission process as the transmission stop condition, so that the transmission process is more stable while ensuring the transmission efficiency of the channel; and when the transmission stop condition is not met, the data transmission continues at the current transmission rate, which reduces the calculation frequency of the transmission rate, thereby further improving the transmission efficiency.

[0083] Preferably, the method for sequentially transmitting the untransmitted main message data and idle message data corresponding to each highway camera based on the initial transmission rate includes:

[0084] For each highway camera:

[0085] Arrange all main message data in the order of the corresponding video frames in the corresponding highway monitoring video to obtain a main message data sequence; arrange all idle message data in the order of the corresponding video frames in the highway monitoring video to obtain an idle message data sequence;

[0086] The preset first number of main message data in the main message data sequence and the preset second number of idle message data in the idle message data sequence are used as the transmission message data transmitted by each highway camera each time; the transmission message data are transmitted in sequence at the initial transmission rate of each highway camera. In the embodiment of the present invention, the preset first number is set to 1, and the preset second number is set to 10, which can be adjusted by the implementer according to the specific implementation environment. It should be noted that in the embodiment of the present invention, the data transmission protocol of the main message data adopts the TCP / IP protocol, while the data transmission protocol of the idle message data adopts the UDP protocol; the purpose of the data transmission protocol of the main message data adopting the TCP / IP protocol is to ensure that the main message data containing the main features can be accurately transmitted; the purpose of the data transmission protocol of the idle message data adopting the UDP protocol is to use the fastest possible transmission method for the idle message data containing less effective information, which can be adjusted by the implementer according to the specific implementation environment.

[0087] Preferably, the method for acquiring channel utilization includes:

[0088] The ratio between the data volume of the transmission message data corresponding to each highway camera at each transmission and the corresponding transmission rate is used as the local time length corresponding to each highway camera at each transmission; the cumulative value of all local time lengths corresponding to all highway cameras at each transmission is used as the actual transmission time length; the product of the actual transmission time length and the bandwidth of the prior basic transmission channel is used as the maximum transmission data volume; the cumulative value of the data volume of the transmission message data corresponding to all highway cameras at each transmission is used as the actual transmission data volume at each transmission. It should be noted that when each highway camera has other data besides the transmission message data at each transmission, the data volume of the transmission message data corresponding to each highway camera at each transmission includes the other data, so that the subsequent channel utilization calculation is more in line with the facts.

[0089] The ratio between the actual transmission data volume and the maximum transmission data volume is taken as the channel utilization rate for each transmission. It should be noted that the calculation method of the channel utilization rate is a prior art well known to those skilled in the art, so the calculation significance of the channel utilization rate is not further elaborated here.

[0090] In the embodiment of the present invention, each transmission is sequentially regarded as the first The first transmission The method for obtaining the channel utilization rate during the transmission is expressed in the formula as follows:

[0091]

[0092] in, For the Channel utilization during transmission; For the Highway cameras in The amount of data in the transmission message corresponding to the transmission; For the Highway cameras in The corresponding transmission rate for the second transmission; is the a priori basic transmission channel bandwidth; is the number of highway cameras; For the The actual amount of data transmitted during each transmission; For the The first transmission The local time length corresponding to each highway camera; For the The actual transmission time length of the first transmission; For the The maximum amount of data to be transferred per transmission.

[0093] Preferably, the method for determining a new analysis data packet when the channel utilization rate during the transmission process meets a preset iteration condition includes:

[0094] Obtain the channel utilization rate corresponding to each transmission during the transmission process; when the corresponding channel utilization rate is greater than or equal to the preset first utilization rate threshold and less than or equal to the preset second utilization rate threshold, continue to transmit at the current transmission rate; when the corresponding channel utilization rate is less than the preset first utilization rate threshold or greater than the preset second utilization rate threshold, the transmission stops, and the preset number of untransmitted main message data in the transmission order is used as a new analysis data packet. In an embodiment of the present invention, the preset first utilization rate threshold is set to 0.5, that is, 50%; the preset second utilization rate threshold is set to 0.8, that is, 80%. That is, when the calculated channel utilization rate is greater than or equal to 50% and less than or equal to 80%, continue to transmit the subsequent message data at the transmission rate corresponding to this transmission of each highway camera, and calculate the new channel utilization rate to continue iterative determination until the channel utilization rate is less than 50% or greater than 80%, reselect a new analysis data packet to perform a new transmission rate calculation; until all main message data and all idle message data corresponding to all highway cameras are transmitted. It should be noted that the reason for recalculating a new transmission rate when the channel utilization is less than 50% is that the channel utilization is too low, and the corresponding data transmission does not meet the transmission efficiency requirements corresponding to the embodiment of the present invention; the reason for recalculating a new transmission rate when the channel utilization is greater than 80% is that the channel utilization is too high, the corresponding transmission load is high, and the transmission stability is poor, thereby affecting the transmission accuracy. It should be noted that the implementer can adjust the preset first utilization threshold and the preset second utilization threshold according to the specific implementation environment, but it is necessary to ensure that the preset first utilization threshold is less than the preset second utilization threshold.

[0095] For example, there are highway cameras A and B in the channel, and the highway monitoring videos taken by A and B during the monitoring period correspond to 100 main message data and 1000 idle message data; then for the main message data of A, select the first 5 main message data that have not been transmitted as the analysis data packet, and obtain the delay and data size of the data of the analysis data packet to obtain the final channel bandwidth corresponding to the analysis data packet; then, according to the number of vehicles passing through A during the monitoring period and the length of the monitored section, obtain A's reference transmission weight; multiply the final channel bandwidth by the reference weight as the transmission rate corresponding to A in the current analysis data packet; similarly, according to the calculation method of the transmission rate, calculate the transmission rate corresponding to B in the current analysis data packet; use 1 main message and 10 idle message data among the 95 main message data that A has not transmitted so far as A's transmission message data corresponding to this transmission; similarly, obtain the transmission message data corresponding to B in this transmission; further, according to the prior basic transmission information The channel bandwidth, the transmission message data and transmission rate corresponding to A in this transmission, and the transmission message data and transmission rate corresponding to B in this transmission are used to obtain the channel utilization corresponding to this transmission; when the channel utilization is greater than or equal to 50% and less than or equal to 80%, the transmission message data of this transmission is transmitted at the transmission rate corresponding to A, and the transmission message data of this transmission is transmitted at the transmission rate corresponding to B; and the channel utilization is calculated according to the next group of transmission message data corresponding to A and the next group of transmission message data corresponding to B; if the calculated channel utilization is less than 50% or greater than 80%, it means that the transmission rate corresponding to A and the transmission rate corresponding to B do not meet the requirements, and it is necessary to select new untransmitted message data in A and B as new analysis data packets to calculate the new transmission rate, that is, the new transmission rate corresponding to A and the new transmission rate corresponding to B are obtained again, and the channel utilization is continued to be calculated, and this cycle is repeated until all the main message data and idle message data corresponding to A and B are fully transmitted.

[0096] In summary, the present invention obtains main message data and idle message data of different transmission priorities according to the highway monitoring video taken by each highway camera during the monitoring time period; uses the main message data as the detection message to predict the transmission link bandwidth, and combines the road condition information of the monitored section of each highway camera to obtain the corresponding transmission rate of each highway camera at each transmission; thereby, according to the channel utilization rate in the transmission process of each transmission rate, it is determined whether to continue the transmission or repeat the calculation of the transmission rate until all the main message data and idle message data are transmitted, so that the accuracy and integrity of the highway monitoring video transmission are higher, and the transmission efficiency is higher.

[0097] The present invention also proposes a highway video surveillance video optimization transmission system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any one of the steps of a highway video surveillance video optimization transmission method.

[0098] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0099] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for optimizing transmission of highway video surveillance video, characterized in that: The method comprises: Obtain the highway monitoring videos shot by each highway camera during the monitoring period; Packing all video frames of the highway monitoring video through a transport layer protocol to obtain main message data corresponding to video frames with vehicles and idle message data corresponding to video frames without vehicles; The first preset number of untransmitted main message data are used as analysis data packets, and the initial transmission rate corresponding to each highway camera is determined according to the network capacity of the main message data in the analysis data packet and the traffic volume of the corresponding highway camera in the corresponding monitoring time period; based on the initial transmission rate, the untransmitted main message data and idle message data corresponding to each highway camera are transmitted in sequence, and a new analysis data packet is determined when the channel utilization rate during the transmission process meets the preset iteration condition, and the iteration of the transmission rate and the channel utilization rate is repeated until the transmission of all the main message data and all the idle message data corresponding to the highway monitoring video is completed; The method for acquiring the transmission rate includes: taking each analysis data packet as a target analysis data packet in turn; The main message data that is not transmitted in the target analysis data packet is used as the detection message data; the time interval between each detection message data being sent to the transmission link corresponding to the TCP / IP protocol and receiving the response message is used as the transmission delay of each detection message data; The ratio of the data volume of each detection message data to the transmission delay is used as the reference network capacity of each detection message data; according to the reference network capacity of all detection message data, the detection channel bandwidth corresponding to the target analysis data packet is screened out; Obtain the prior basic transmission channel bandwidth of the transmission channel; use all detection channel bandwidths as historical data, perform channel bandwidth prediction through the RLS algorithm, and obtain the predicted channel bandwidth corresponding to the target analysis data packet; Using a positive correlation mapping value of a priori basic transmission channel bandwidth as a comparison channel bandwidth; the comparison channel bandwidth is smaller than the a priori basic transmission channel bandwidth; The minimum value between the predicted channel bandwidth and the compared channel bandwidth is used as the final channel bandwidth corresponding to the target analysis data packet; According to the vehicle passing situation in the highway monitoring video corresponding to the target analysis data packet, a reference transmission weight corresponding to the target analysis data packet is obtained; A transmission rate corresponding to a target analysis data packet is obtained according to the final channel bandwidth and the reference transmission weight.

2. The method for optimizing transmission of highway video surveillance video according to claim 1, characterized in that: The method for sequentially transmitting the untransmitted main message data and idle message data corresponding to each highway camera based on the initial transmission rate includes: For each highway camera: Arrange all main message data in the order of the corresponding video frames in the corresponding highway monitoring video to obtain a main message data sequence; arrange all idle message data in the order of the corresponding video frames in the highway monitoring video to obtain an idle message data sequence; Using a preset first number of main message data in the main message data sequence and a preset second number of idle message data in the idle message data sequence as transmission message data transmitted by each highway camera each time; The transmission message data is transmitted sequentially at the initial transmission rate of each highway camera.

3. The method for optimizing transmission of highway video surveillance video according to claim 2 is characterized in that: The method for obtaining the channel utilization rate includes: The ratio between the data volume of the transmission message data corresponding to each highway camera at each transmission and the corresponding transmission rate is used as the local time length corresponding to each highway camera at each transmission; the accumulated value of all local time lengths corresponding to all highway cameras at each transmission is used as the actual transmission time length; The product of the actual transmission time length and the a priori basic transmission channel bandwidth is used as the maximum transmission data amount; The data volume of the transmission message data corresponding to each transmission of all highway cameras is accumulated as the actual transmission data volume of each transmission; The ratio between the actual transmission data amount and the maximum transmission data amount is used as the channel utilization rate during each transmission.

4. The method for optimizing transmission of highway video surveillance video according to claim 3 is characterized in that: The method for determining a new analysis data packet when the channel utilization rate during the transmission process meets the preset iteration condition includes: Obtaining the channel utilization rate corresponding to each transmission during the transmission process; when the corresponding channel utilization rate is greater than or equal to a preset first utilization rate threshold and less than or equal to a preset second utilization rate threshold, continuing to transmit at the current transmission rate; When the corresponding channel utilization is less than a preset first utilization threshold or greater than a preset second utilization threshold, the transmission stops, and a preset number of untransmitted main message data in the transmission sequence are used as new analysis data packets.

5. The method for optimizing transmission of highway video surveillance video according to claim 1, characterized in that: The method for acquiring the detection channel bandwidth includes: The minimum value of the reference network capacity of all detection message data is used as the detection channel bandwidth corresponding to the target analysis data packet.

6. The method for optimizing transmission of highway video surveillance video according to claim 1, characterized in that: The method for obtaining the reference transmission weight includes: in, The highway camera corresponding to the highway surveillance video corresponding to the target analysis data packet The reference transmission weight of For highway cameras The length of the highway section monitored during the monitoring period; Highway cameras during the monitoring period The number of vehicles passing through the monitoring area; For highway cameras The number of highway cameras sharing a transmission channel; For monitoring time period with highway cameras Sharing a transmission channel The number of vehicles passing within the surveillance range of a highway camera; For highway cameras Sharing a transmission channel The length of the highway section monitored by each highway camera during the monitoring period; is a logarithmic function with a natural constant as its base.

7. The method for optimizing transmission of highway video surveillance video according to claim 1, characterized in that: The method for obtaining the transmission rate corresponding to the target analysis data packet according to the final channel bandwidth and the reference transmission weight includes: The product of the final channel bandwidth and the reference transmission weight is used as the transmission rate corresponding to the target analysis data packet.

8. The method for optimizing transmission of highway video surveillance video according to claim 1, characterized in that: The preset number is set to 5.

9. A highway video surveillance video optimization transmission system, 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, the steps of the method for optimizing transmission of highway video surveillance video as described in any one of claims 1 to 8 are implemented.