One-way vehicle reverse detection method, system and device based on deep learning
By setting up a retrograde judgment area on a one-way street and combining deep learning YOLOv5 and DEEP SORT algorithms to track and determine retrograde vehicles in real time, it solves the real-time and accuracy problems of retrograde vehicle detection in the existing technology and achieves fast and accurate performance. retrograde judgment.
Patent Information
- Application Number
- CN202210235720.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-03-11
AI Technical Summary
The existing one-way vehicle retrograde detection methods have problems such as low real-time performance, high misjudgment and missed determination rates, slow detection speed, and low accuracy. Especially in areas with dense traffic, it is difficult to effectively assist traffic police in regulating traffic.
A deep learning-based one-way vehicle retrograde detection method is adopted. By setting the retrograde judgment area in the video pixel coordinate system, combined with the YOLOv5 target detection model and the DEEP SORT multi-target tracking algorithm, the vehicle track is tracked in real time and whether it is retrograde, and the vehicle passing by is used to determine whether it is retrograde. The collection of pixels determines the driving direction sequentially.
It achieves the stability, fast speed, high accuracy and strong real-time performance of the detection results, effectively reduces the retrograde misjudgment rate and missed detection rate, avoids the same vehicle being judged multiple times, and improves the practicality of the detection.
Smart Images

Figure CN114898326B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent traffic monitoring and computer vision, and relates to a method, system and equipment for detecting wrong-way traffic of a one-way vehicle, and in particular to a method, system and electronic equipment for detecting wrong-way traffic of a one-way vehicle based on deep learning. Background Art
[0002] Although the importance of road safety is increasing, and a large number of cameras are installed on the road for monitoring, most monitoring is still at the recording stage, and manual observation is performed to see if a vehicle is driving in the wrong direction. When the amount of monitoring data increases and the traffic is in a densely populated area, it will not only consume a lot of manpower and material resources, but also lack real-time performance and efficiency.
[0003] In the prior art, there are two methods for detecting vehicles going against traffic: the method based on the dynamic target detection algorithm of the optical flow method can detect the movement of objects, but it is sensitive to noise interference, has low real-time performance, and is prone to missed reports and false reports; the method based on deep learning neural network is used to train a detection model using the front and rear data sets of the vehicle, and then make a reverse judgment on the vehicles on the road. Although the real-time effect is good, this method has limited detection capabilities and will make misjudgments for the front and rear of vehicles that have not been learned or have a high degree of similarity, resulting in wrong reverse judgments; the method based on the target tracking algorithm is as follows: tracking the same target vehicle throughout the road It takes a long time to obtain the corresponding tracking trajectory information or vehicle orientation information, etc., to compare and determine whether it is going against the flow. However, this method has great limitations in judging whether the vehicle is going against the flow. When the tracking algorithm itself causes the target vehicle ID to change due to changes in lighting or occlusion, the vehicle ID change means that a new vehicle appears in the monitoring range for the algorithm, which will cause problems such as asymmetric information or information loss, resulting in missed judgments and misjudgments. At the same time, since the reverse judgment of the existing technology is carried out randomly on the road, after the judgment of a tracked vehicle is completed, due to the ID conversion, the same target vehicle will be judged twice or even multiple times, which is not very practical. Therefore, for the detection of reverse vehicles on one-way roads, there is an urgent need for a vehicle reverse detection method with stable detection results, fast detection speed, high accuracy, low reverse judgment misjudgment rate and missed judgment rate, strong practicality, and meeting the real-time requirements to assist traffic police in regulating traffic on one-way roads. Summary of the invention
[0004] In order to solve the above-mentioned defects of the existing detection methods, the present invention provides a one-way vehicle wrong-way detection method, system and equipment based on deep learning, which has fast detection speed and high accuracy, and can intelligently determine whether vehicles traveling on a one-way road violate the wrong-way traffic rules by monitoring real-time multi-vehicle target tracking.
[0005] The technical solution adopted by the method of the present invention is: a one-way vehicle reverse detection method based on deep learning, comprising the following steps:
[0006] Step 1: In the video pixel coordinate system, a reverse traffic judgment area is set. The reverse traffic judgment area is composed of two connected and non-intersecting position areas and crosses the road in the video; the position area is composed of pixel point sets, which are two connected and non-intersecting pixel point sets. At the same time, the two connected and non-intersecting position areas must cross the road in the video to ensure that vehicles traveling on the road will pass through these two position areas one after another;
[0007] Step 2: Acquire road monitoring video data in real time to obtain video frame image data; input the obtained video frame image data into the vehicle detection network model, perform target detection on the vehicles traveling on the road, and obtain the vehicle information of the traveling vehicles at the video pixel coordinates, including position and size information;
[0008] Step 3: The moving vehicle detected in step 2 is tracked throughout the entire process within the video surveillance range using the multi-target tracking algorithm DEEP SORT to obtain the vehicle's entire driving trajectory and the driving trajectory within the reverse judgment area;
[0009] Step 4: Determine whether the vehicle is traveling in the wrong direction; when the target ID vehicle passes through two adjacent non-intersecting position areas in the wrong direction judgment area, the trajectory information of the target ID vehicle on the video pixel coordinates of the wrong direction judgment area is obtained through tracking in step 3. The driving direction of the target ID vehicle is determined according to the order in which the target ID vehicle passes through the two adjacent non-intersecting pixel point sets, and it is determined whether the tracked vehicle is traveling in the wrong direction. A wrong direction judgment is performed once the vehicle passes through the wrong direction judgment area.
[0010] The technical solution adopted by the system of the present invention is: a one-way vehicle reverse detection system based on deep learning, comprising the following modules:
[0011] Module 1 is used to set a reverse traffic judgment area in the video pixel coordinate system, wherein the reverse traffic judgment area is composed of two connected and non-intersecting position areas and crosses the road in the video; the position area is composed of pixel point sets, which are respectively two connected and non-intersecting pixel point sets, and the two connected and non-intersecting position areas must cross the road in the video to ensure that vehicles traveling on the road will pass through the two position areas one after another;
[0012] Module 2 is used to obtain road monitoring video data in real time and obtain video frame image data; input the obtained video frame image data into the vehicle detection network model, perform target detection on the vehicles traveling on the road, and obtain the vehicle information of the traveling vehicles at the video pixel coordinates, including position and size information;
[0013] Module 3, tracks the moving vehicle detected in module 2 throughout the entire process within the video surveillance range using the multi-target tracking algorithm DEEP SORT, and obtains the vehicle's entire driving trajectory and the driving trajectory in the reverse judgment area;
[0014] Module 4 is used to determine whether the vehicle is traveling in the wrong direction; when the target ID vehicle passes through two adjacent non-intersecting position areas of the wrong direction determination area, the trajectory information of the target ID vehicle on the video pixel coordinates of the wrong direction determination area is obtained through tracking in step 3, and the driving direction of the tracked target ID vehicle is determined according to the order in which the target ID vehicle passes through the two adjacent non-intersecting pixel point sets, and it is determined whether the tracked vehicle is traveling in the wrong direction, and a wrong direction determination is performed once the tracked vehicle passes through the wrong direction determination area.
[0015] The technical solution adopted by the device of the present invention is: a one-way vehicle reverse detection device based on deep learning, comprising:
[0016] one or more processors;
[0017] A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement a one-way vehicle wrong-way detection method based on deep learning.
[0018] The present invention provides a one-way vehicle reverse detection method, system and equipment based on deep learning. The road traffic monitoring video data is collected in real time by a monitoring camera. The road traffic monitoring video data is transmitted to a terminal and decoded to obtain video frame image data. The video frame image is processed and detected by a trained deep learning target detection algorithm YOLOv5 vehicle detection model to obtain a vehicle detection frame; the vehicle is tracked by a multi-target tracking algorithm DEEP SORT, and the driving vehicle within the visual monitoring video range is matched with an ID and tracked in real time to obtain tracking trajectory information; the trajectory information of the ID vehicle in the reverse judgment area on the video pixel coordinates is obtained by tracking, and whether the ID vehicle is reversed is judged according to the order in which the ID vehicle passes through two adjacent non-intersecting position areas. Through the above method, the vehicle is accurately detected by using the YOLOv5 deep learning target detection algorithm with fast detection speed and high precision, and the multi-target tracking algorithm DEEP SORT is combined to efficiently track the multi-target vehicle in real time; finally, the ID vehicle is judged to be reversed by the pixel position information. Compared with the prior art, the detection results of the present invention are stable, the detection speed is fast, the accuracy is high, the practicability is strong, and the real-time performance is strong. It can judge the vehicle's reversal in real time, and effectively prevent the same vehicle from being judged multiple times, thereby reducing the misjudgment rate and missed judgment rate of reversal. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1It is a schematic diagram of the detection method of the present embodiment;
[0020] Figure 2 is an example diagram of a detection method according to an embodiment of the present invention;
[0021] Figure 3 is a flow chart of a detection method according to an embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram of real-time collection of road traffic video according to an embodiment of the present invention;
[0023] Figure 5 is a schematic diagram of a method for determining vehicle reverse driving according to an embodiment of the present invention;
[0024] Figure 6 is a schematic diagram of the structure of a detection system according to an embodiment of the present invention;
[0025] Figure 7 is a schematic structural diagram of a detection device according to an embodiment of the present invention; DETAILED DESCRIPTION
[0026] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0027] Please see Figure 1 , Figure 2 and 3 The present invention provides a one-way vehicle reverse driving detection method based on deep learning, comprising the following steps:
[0028] S101. In the video pixel coordinate system, a reverse driving judgment area (composed of two adjacent non-intersecting position areas and crossing the road in the video) is set.
[0029] In the existing vehicle reverse detection technology, based on the target tracking algorithm, the same target vehicle is tracked for a long time on the road to obtain a long tracking trajectory information or vehicle orientation information, etc., to compare and determine whether it is reverse driving. However, these methods have great limitations. The premise is that this information only corresponds to one target vehicle. However, the target tracking algorithm itself causes vehicle ID conversion due to changes in lighting or occlusion. For the algorithm, vehicle ID conversion means that a new car appears in the monitoring range, which will cause problems such as information asymmetry and information loss, causing judgment delays, even judgment failures or missed judgments. At the same time, since the reverse judgment of the existing technology is carried out randomly on the road, after the judgment of a target vehicle is completed, due to ID conversion, the same target vehicle will be judged twice or even multiple times, which is not very practical.
[0030] The method for judging the reverse traffic in this embodiment is as follows:
[0031] Video pixel coordinate system XY, road traffic monitoring video pixel size height and width are H and W, within the video pixel size, set a reverse judgment area, composed of two connected non-intersecting position areas and cross the road in the video, the position area, composed of pixel point sets, are two connected non-intersecting pixel point sets, and at the same time, the two connected non-intersecting position areas must cross the road in the video to ensure that vehicles traveling on the road will pass through these two position areas one after another; the trajectory information of the ID vehicle on the video pixel coordinates is obtained by the multi-target tracking algorithm, and two connected non-intersecting different position areas are set as A = [[x1, y2], [x3, y4], [x5, y6] ... [x 11 ,y 12 ]],B=[[x 13 ,y 14 ],[x 15 ,y 16 ],[x 17 ,y 18 ]……[x 23 ,y 24 ]], surround the pixel points into two connected and non-intersecting pixel points, where (x, y) represents the location information of the pixel. Each tracked vehicle traveling on the road will pass through these two connected and non-intersecting location areas one after another.
[0032] S102, the monitoring camera collects video data in real time and transmits it to the terminal, decodes it into video frame images, and inputs it into the vehicle detection network model.
[0033] In this embodiment, a road monitoring camera is set on the one-way lane, and the monitoring camera is deployed at the entrance of the one-way lane to collect road traffic monitoring video data in real time, and the road traffic monitoring video data is transmitted to the terminal, and decoded to obtain video frame image data; the video frame image data is a video frame image sequence, and the image includes the road conditions and moving vehicles within the monitoring video range, and then the video frame image sequence is subjected to subsequent steps to detect and track the vehicles moving on the road within the monitoring video range.
[0034] In this embodiment, road monitoring cameras are deployed on the single lane to collect road traffic video in real time. Figure 4 , a schematic diagram of real-time collection of road traffic video provided by an embodiment of the present invention.
[0035] In this embodiment, by actively collecting road traffic videos in real time, the road traffic videos collected in real time are then transmitted to the terminal, and then the original video frame images are extracted at the terminal through video decoding technology to detect and track the vehicle in real time, so that the subsequent reverse driving judgment results are more objective and fair, which can prevent the owner from modifying and destroying the reverse driving judgment results. In addition, by reasonably arranging the real-time collection device of the road surface image, the purpose of full perception and comprehensive detection of the road can be achieved.
[0036] In this embodiment, the vehicle detection network model is an existing model, and the vehicle detection model is obtained by training the deep learning target detection algorithm YOLOv5 to detect moving vehicles.
[0037] The video pixel coordinate system of road traffic monitoring is XY, and the video frame image obtained by S101 is input into the trained deep learning target detection algorithm YOLOv5 to obtain a vehicle detector, detect vehicles traveling on the road, and obtain vehicle information. The vehicle information includes the location information of the vehicle and the size information of the vehicle detection frame.
[0038] This example trains the deep learning target detection algorithm YOLOv5 to obtain a vehicle detection model. The steps are as follows: Figure 2 The specific training process is as follows:
[0039] The vehicle detection model needs to use the deep learning target detection algorithm YOLOv5 to use the UA-DETRAC vehicle data set to perform model training in advance, and the data set is allocated as a training data set and a test data set according to a predetermined ratio; the deep learning target detection algorithm YOLOv5 is trained using the training data set, and during the training process, the target detection algorithm YOLOv5 generates and saves a model weight file for each round of iteration until the target detection algorithm YOLOv5 reaches a convergence state and stops training; the target detection algorithm YOLOv5 uses the model weight file as the vehicle detection model weight to perform a detection test on the test set in the UA-DETRAC vehicle detection data set, compares the detection result with the manual annotation real result, calculates the model detection accuracy, selects the model weight with the highest test accuracy as the vehicle detection model weight of the embodiment of the present invention, selects the model weight with the highest test accuracy as the vehicle detection model weight of this embodiment, and obtains a trained deep learning vehicle detection model; through the vehicle detection model, the video frame image data obtained in step 1 is subjected to target detection, and the vehicle information of the moving vehicle on the video pixel coordinates is obtained, and the vehicle information includes the position information of the vehicle and the size information of the vehicle detection frame;
[0040] In this embodiment, the video frame image is input into the YOLOv5 vehicle detection model for vehicle detection to obtain vehicle information, which is [x, y, w, h]. The vehicle position information is [x, y], which represents the center coordinates of the vehicle detection frame, and the size information of the vehicle detection frame is [w, h], which is the width and height of the vehicle detection frame.
[0041] This embodiment uses the UA-DETRAC vehicle dataset as a training set and a test set. The dataset is taken from screenshots of roads in 24 different areas of Beijing and Tianjin, and is a bird's-eye view of the vehicle, which is suitable for urban road monitoring and is more suitable for the dataset of deep learning target detection in the embodiment of the present invention.
[0042] YOLOv5 of this embodiment is an improved version based on YOLOv4, with a very lightweight model size, which can be nearly 90% smaller than the YOLOv4 model size at the limit. It is currently a relatively excellent one-stage detection network in terms of accuracy and detection speed. After inheriting the advantages of previous versions and other networks, the YOLOv5 target detection algorithm has improved detection accuracy and real-time performance, meeting the needs of real-time detection of video images, and the model size is also smaller, meeting the deployment requirements at the monitoring end.
[0043] This embodiment uses the YOLOv5 target detection model to detect vehicles. An excellent target detection model can greatly improve the target tracking effect, so YOLOv5, an excellent single-stage target detection network, is selected as the detection model.
[0044] S103: Use the multi-target tracking algorithm DEEP SORT to track the vehicle in real time to obtain a driving trajectory.
[0045] In terms of multi-target tracking algorithms, the mainstream multi-target tracking algorithms include single-target tracker algorithms based on multi-threading, with KCF as a representative example. Such algorithms have high detection accuracy, but the implementation method of opening multiple threads consumes a lot of CPU resources, and the real-time performance is not high, which is not suitable for real-time detection at the monitoring end. There are also back-end optimization algorithms that use Kalman waves and Hungarian algorithms, with SORT and DEEP SORT as representative examples. At the same time, they have high requirements for deep learning target detection models. Such algorithms have high detection accuracy, good tracking effects and high real-time performance, and are suitable for deployment at the monitoring end for real-time detection.
[0046] This embodiment uses the multi-target tracking algorithm DEEP SORT, which is based on a discriminative tracking algorithm, which means detecting the vehicle first and then tracking it (Tracking by Detection, TBD). It uses a well-trained deep learning target detection model to detect vehicles traveling on the road in the video frame image. In the real-time target tracking process, Kalman filtering is used for prediction and update, and the Hungarian algorithm performs frame-by-frame data association. At the same time, it considers the target spacing and appearance similarity, extracts the appearance features of the target, and improves the matching accuracy. It can improve the target tracking effect in the case of occlusion, so that the tracked vehicle can obtain better tracking effect in complex situations such as lighting, fast movement, and occlusion.
[0047] In this embodiment, the DEEP SORT algorithm uses an 8-dimensional state vector X = [u, v, r, h, u * , v * , r * ,h * ] T To estimate the position and state of the vehicle in the next frame, [u, v] is the center coordinate of the vehicle detection frame, r is the aspect ratio, h is the height, and the remaining four variables represent the speed information of the derivative of each parameter in the image coordinate system.
[0048] In this embodiment, the Kalman filter is used to predict the position and state of the vehicle in the next frame to obtain a prediction frame, and the Hungarian algorithm performs data association between the prediction frame and the vehicle detection frame of the next frame. Cascade matching is used to consider target spacing and appearance similarity at the same time, thereby improving matching accuracy, achieving real-time tracking of the vehicle, and obtaining the trajectory information of the ID vehicle in the video pixel coordinates.
[0049] In this embodiment, Kalman filtering is used as a method for optimal state prediction and estimation. Kalman filtering is used to predict and update the trajectory of the moving vehicle. Kalman filtering mainly adopts a uniform speed model and a nonlinear observation model. The vector [u, v, r, h] is predicted and estimated through Kalman filtering. It plays an irreplaceable role in the moving vehicle motion system that needs to be predicted. On the one hand, this is because Kalman filtering has a certain tolerance for noisy motion parameters and inaccurate observation values. On the other hand, the comprehensive performance of the Kalman filtering prediction step can achieve the optimal estimation of the dynamic system state value as much as possible.
[0050] In this embodiment, the Hungarian algorithm is a method for finding the optimal allocation for data association, which takes into account the target distance and appearance similarity, and the cost matrix is weighted and calculated, which is then input into the Hungarian algorithm for data association to solve the allocation problem of the detection results of the vehicle detection model and the tracking results predicted by the Kalman filter.
[0051] When a vehicle drives into the range of the surveillance camera, the vehicle detection model will detect the vehicle driving on the road in the video frame image to obtain a vehicle detection frame. The detected vehicle will match the corresponding annotation ID, and the deep appearance feature extraction of the vehicle in the vehicle detection frame is performed. The prediction frame of the next frame of the driving vehicle is predicted by Kalman filtering. In the next frame, the vehicle detection model is used to detect the vehicle driving on the road in the video frame image to obtain a vehicle detection frame, and the deep appearance feature extraction of the vehicle in the vehicle detection frame is performed. The Mahalanobis distance is then used to associate and measure the target distance between the Kalman filter prediction frame of the previous frame and the detection frame of the current frame. The appearance feature cosine distance measures the appearance features of the vehicle detection frame of the previous frame and the vehicle detection frame of the current frame to obtain the minimum cosine distance. The Mahalanobis distance result and the minimum cosine distance are weighted and summed to calculate the cost matrix. The cost matrix is input into the Hungarian algorithm for data association to obtain a linear matching result. The target with a high matching degree in the current frame is assigned the ID of the corresponding target vehicle in the previous frame. The previous and next frames are tracked successfully, and then the Kalman filter is used for prediction and update. The Hungarian algorithm performs frame-by-frame data association and tracks until the ID vehicle disappears or the ID is converted.
[0052] In this embodiment, when creating and removing targets, each track of the ID vehicle is processed. Each track has a threshold A, which is used to record the duration of a track from the last successful match with the target to the current moment. Once the detection result of the target is correctly associated with the tracking result, the parameter is set to 0. Set the maximum threshold A max , default A max =70, when the threshold A exceeds the maximum threshold A set in advance max , the tracking process of the vehicle with this ID may end. Then, when matching, any detection frame that has not completed the match is considered to have the potential to generate a new track trace. However, since these detection results may be some false warnings, the newly generated tracks in this special case are marked with a specific state tentative (initial default state), and then they are observed in the next three consecutive frames to determine whether they are matched successfully. If they are matched successfully for three consecutive frames, they can be considered to be new tracks that are repeatedly generated, and the state is changed from tentative to confirmed. Otherwise, they are considered to be tracks that have left the scene and can be deleted, and the state is marked as deleted.
[0053] In this embodiment, the Mahalanobis distance is used to correlate and measure the target distance between the Kalman filter prediction frame of the previous frame and the vehicle detection model detection frame of the current frame. The Mahalanobis distance is mainly used to measure the similarity of the first four vectors [u, v, r, h] of the 8-dimensional state vector. In principle, the moving distance of the target between the previous and next frames will not differ too much, so the closer the coordinates are, the more likely they are the same target. The function used is (1):
[0054]
[0055] d j Indicates the position of the jth detection box, y i represents the predicted position of the target by the i-th Kalman filter, S i -1 Represents the covariance matrix between the detected positions and the average tracked positions.
[0056] In this embodiment, the Mahalanobis distance only measures the spatial distance, which will lead to serious identity transformation problems. The cosine distance of the appearance feature is introduced to measure the appearance similarity within the frame. The appearance features within the frame are extracted by the wide residual network in the re-identification field. The network model for extracting the appearance features needs to be learned offline in advance to extract the appearance features of the vehicle. The minimum cosine distance between all the feature vectors of the tracking of the i-th object and the target detection result of the j-th object is calculated. The function used is (2):
[0057]
[0058] r j Corresponding to the jth detected feature vector, r k (i) The set of feature vectors corresponding to k successful tracking times, r j T r k (i) Calculate cosine similarity, 1-r j T r k (i) is the cosine distance between two vectors.
[0059] This embodiment combines the metrics to calculate the weighted sum of the target distance and appearance features, taking into account not only the target frame distance but also the content within the target frame, and uses the weighted sum of the two metrics as the final metric. The function used is (3):
[0060] c i,j =λd (1) (i,j)+(1-λ)d (2) (i,j) (3)
[0061] λ represents the weights of the Mahalanobis distance and the cosine distance in the cost function calculation process. The role of the Mahalanobis distance is to eliminate false matches. When two bounding boxes are far apart but successfully matched, the false matching results are filtered out through the threshold of the motion measurement model, and the Mahalanobis distance does not need to be considered in the comprehensive measurement.
[0062] The essence of multi-target tracking in this embodiment is to use Kalman filtering to predict and estimate the behavior of active targets. Since Kalman filtering needs to adjust the prediction results according to the observed object, when the motion and appearance information for reference is blank for a long time due to long-term occlusion, the uncertainty of Kalman filtering prediction will be greatly increased, and the observability in the state space will be greatly reduced. Therefore, the DEEP SORT algorithm uses a cascade matching method. By using cascade matching to give priority to more frequently appearing targets, the core idea of cascade matching is to match the trajectories with the same disappearance time from small to large, which first ensures that the most recently appearing targets are given the greatest priority, and also solves the above problem.
[0063] In this embodiment, the video frame image obtained by the road traffic monitoring camera is passed into the trained YOLOv5 target detection model to obtain a vehicle detection frame, and then the target vehicle detection frame generated by YOLOv5 and the multi-target tracking algorithm DEEP SORT are used to jointly realize target tracking. At the same time, the target detection model detects each vehicle within the monitoring video range and matches the corresponding ID. The trained deep convolutional neural network model is used to extract vehicle appearance features, and the Kalman filter is used to predict the vehicle detection frame to obtain the predicted frame and the Hungarian algorithm to perform frame-by-frame data association and perform cascade matching. At the same time, the target spacing and appearance similarity are considered to improve the matching accuracy.
[0064] For a better understanding of the above target tracking, see Figure 2In this embodiment, when a moving vehicle is detected on the road at time T1, the corresponding ID-1 is matched to obtain the vehicle detection frame and vehicle position of the ID-1 vehicle, and the appearance features of the ID-1 vehicle are extracted. Then, the prediction frame of the vehicle ID-1 detection frame is predicted by the Kalman filter; at time T2, the vehicle detection frame and vehicle position of the current frame are obtained and the appearance features of the detection frame are extracted. The distance between the Kalman filter prediction frame of the ID-1 vehicle and the current frame detection frame is calculated by the Mahalanobis distance, and the minimum cosine distance between the Kalman filter prediction frame of the ID-1 vehicle and the current frame detection frame is calculated. The distance is used to measure the appearance similarity of the two frames, and the cost matrix is calculated by weighted summation of the two results; the calculated cost matrix is input into the Hungarian algorithm to obtain a linear matching result. When the vehicle detection frame at time T2 and the prediction frame of the Kalman filter match successfully, this indicates that the tracking at time T1 and time T2 is successful. The vehicle detection frame at time T2 is matched as the ID-1 vehicle, and then the ID-1 vehicle in the video range is continuously tracked. When the ID-1 vehicle leaves the video range at Tn+1, the tracking of the ID-1 vehicle ends, and the trajectory information of the vehicle ID-1 in the video pixel coordinates is obtained.
[0065] The multi-target tracking algorithm DEEP SORT used in this embodiment adds cascade matching on the basis of the SORT algorithm, and considers the target distance and appearance similarity at the same time, thereby improving the matching accuracy. When the tracked target disappears briefly and then reappears, it can also be re-tracked, with better tracking effect, enhanced robustness and reduced ID conversion.
[0066] See also Figure 4 and Figure 5 , which are respectively a schematic diagram of a real-time road traffic video acquisition provided by an embodiment of the present invention and a schematic diagram of an exemplary vehicle wrong-travel judgment method provided by an embodiment of the present invention. The real-time acquired road traffic video is transmitted to the terminal for processing, and the following vehicle wrong-travel judgment method is further explained.
[0067] S104, vehicle reverse driving judgment: judging whether the target vehicle is reverse driving by tracking the order in which the target vehicle arrives at different location areas.
[0068] The retrograde judgment method of this embodiment is based on the multi-target tracking algorithm DEEP SORT for tracking. Although the multi-target tracking algorithm DEEP SORT is already very powerful and has a good target tracking effect, the target tracking problem still faces many challenges due to the noise pollution in the image, the complexity and diversity of the scene, and the complex changes of the target itself. For example, lighting changes, motion scenes, camera shaking, long-term occlusion, etc., may still cause the same target to be converted within the visible range of the surveillance video.
[0069] In order to reduce the impact of target vehicle ID conversion on wrong-way vehicle detection, and in order to better solve the above problem and prevent the same vehicle from being identified multiple times, an embodiment of the present invention proposes an efficient wrong-way judgment method: in the video pixel coordinate system, a wrong-way judgment area is set, the wrong-way judgment area is composed of two connected and non-intersecting position areas and crosses the road in the video, the position area is composed of pixel point sets, which are respectively two connected and non-intersecting pixel point sets, and the two connected and non-intersecting position areas must cross the road in the video to ensure that vehicles traveling on the road will pass through these two position areas one after another; when the ID When the vehicle passes through these two connected and non-intersecting location areas, the trajectory information of the ID vehicle on the video pixel coordinates of the reverse traffic judgment area is tracked through step three, and a fast and efficient reverse traffic judgment is performed each time the vehicle passes through the two connected and non-intersecting pixel point sets. The driving direction of the tracked target vehicle is determined according to the order in which the ID vehicle passes through the two connected and non-intersecting pixel point sets, and it is determined whether the tracked vehicle is reversed; in order to prevent ID conversion from occurring in the reverse traffic judgment area, the reverse traffic judgment area will be reasonably set to reduce its range, and because the vehicle travels at a relatively fast speed, the target vehicle can pass through the reverse traffic judgment area in a very short time, and a quick reverse traffic judgment can be performed.
[0070] For a better understanding of the following, see Figure 5 , a fixed reverse judgment area (consisting of area A and area B). When the tracking vehicle passes through area A first and then area B, it will return to determine whether the tracking ID vehicle has passed through area A. The direction is determined according to the tracking ID vehicle passing through these two connected and non-intersecting different position areas in sequence; when passing through area A and then area B, it is forward driving, otherwise it is reverse driving.
[0071] See also Figure 3 , a flowchart of an exemplary vehicle reverse driving detection solution provided in this embodiment. The flowchart includes the following steps:
[0072] S301, the collected video is input to the terminal;
[0073] S302, the trained YOLOv5 target detection model detects the vehicle;
[0074] S303, the multi-target tracking algorithm DEEP SORT tracks the vehicle in real time;
[0075] S304, tracking whether the vehicle passes through area B first and then passes through area A;
[0076] When the target vehicle passes through area B first and then through area A, the target vehicle is traveling in the reverse direction.
[0077] Combination Figure 5This embodiment provides a schematic diagram of an exemplary method for judging vehicle reverse driving, wherein the video pixel coordinate system is XY, and the height and width of the road traffic monitoring video pixel size are H and W. Figure 4 The dotted area is the road traffic monitoring video range, and the video pixel coordinate system is shown as follows: Figure 5 Coordinate system.
[0078] Two non-intersecting position areas are set within the video pixel size to cross the road in the video, and the trajectory information of the ID vehicle in the pixel coordinates is obtained by multi-target tracking. The two non-intersecting different position areas are set as A = [[x1, y2], [x3, y4], [x5, y6] ... [x 11 ,y 12 ]],B=[[x 13 ,y 14 ],[x 15 ,y 16 ],[x 17 , y 18 ]……[x 23 ,y 24 ]], enclose the pixels into two connected and non-intersecting pixel sets, where (x, y) represents the pixel location information. According to the order in which the tracked ID vehicles pass through different location areas, it is determined whether they are driving in the wrong direction. Figure 5 As shown in , the ID coordinate position has been marked, and the pixel point where the ID coordinate passes is the driving trajectory. When tracking the ID-2 vehicle passing through area A and then area B, the driving process is AB, which is judged as forward driving; ID-3 tracking vehicle passes through area B and then area A, and the driving process is BA, which is judged as reverse driving, illegal driving. Within the monitoring video range, when the vehicle is driving normally, each target vehicle only passes through the reverse judgment area once and performs a reverse judgment once, making an efficient judgment on the target vehicle once, effectively preventing the same vehicle from being judged multiple times.
[0079] The present embodiment provides a method for judging wrong-traffic. If the direction of the tracked vehicle is judged to be wrong-traffic, the monitoring will capture the image of the violation scene in real time, obtain the violation video, and the violation video and image will be saved to the terminal storage, and the wrong-traffic violation vehicle will be locked to complete the detection. This method only fixes the wrong-traffic judgment area for judgment. Each target vehicle only passes through the wrong-traffic judgment area once and performs a wrong-traffic judgment once, which reduces the impact of the target vehicle ID conversion on the wrong-traffic judgment, improves the wrong-traffic detection rate, effectively prevents the same vehicle from being judged multiple times, and reduces the misjudgment rate.
[0080] The embodiment of the present invention provides a one-way reverse detection method based on deep learning. Compared with the prior art, it combines a target detection algorithm based on deep learning, a very fast, highly accurate and very lightweight YOLOv5 as a vehicle detection model, and a multi-target tracking algorithm DEEP SORT to track vehicles, thereby realizing real-time multi-target tracking of vehicles on road traffic; at the same time, an efficient real-time reverse judgment method is performed on the target vehicle through trajectory information, and the information of the illegal vehicle is saved to the terminal. With this method, the detection result is stable, the detection speed is fast, the accuracy is high, the real-time performance is strong, and the reverse vehicle can be judged in real time. At the same time, the reverse misjudgment rate and missed judgment rate are effectively reduced, and it is easy to deploy.
[0081] In the above-mentioned embodiment, a one-way street vehicle wrong-way detection method based on deep learning is provided, and correspondingly, a one-way street vehicle wrong-way detection system based on deep learning is provided, see Figure 6 , Figure 6 A schematic diagram of a one-way vehicle reverse driving detection system based on deep learning is provided in an embodiment of the present invention. Figure 6 As shown, the vehicle wrong-traffic detection system includes a wrong-traffic area module 601 , a video acquisition module 602 , a target detection module 603 , a multi-target tracking module 604 , a wrong-traffic judgment module 605 , and a target locking module 606 .
[0082] The reverse traffic area module 601 sets a reverse traffic judgment area in the video pixel coordinate system. The reverse traffic judgment area is composed of two connected but non-intersecting position areas and crosses the road in the video. The position area is composed of pixel point sets, which are two connected but non-intersecting pixel point sets. At the same time, the two connected but non-intersecting position areas must cross the road in the video to ensure that vehicles traveling on the road will pass through these two position areas one after another.
[0083] The video acquisition module 602 sets a road monitoring camera on the one-way lane, deploys the monitoring camera at the entrance of the one-way lane to collect road traffic monitoring video data in real time, transmits the road traffic monitoring video data to the terminal, and decodes it to obtain video frame image data; the video frame image data is a video frame image sequence, and the image includes the road conditions and moving vehicles within the monitoring video range, and then performs subsequent steps on the video frame image sequence to detect and track the vehicles moving on the road within the monitoring video range.
[0084] The target detection module 603 builds a vehicle detection model based on a deep learning target detection algorithm. The vehicle detection model needs to use the target detection algorithm to use an open source vehicle detection data set to perform model training in advance, and the data set is allocated into a training data set and a test data set according to a predetermined ratio; the training data set is used to train the deep learning target detection network. During the training process, the deep learning target detection algorithm generates and saves a model weight file for each round of iteration until the deep learning target detection algorithm reaches a convergence state and stops training; the deep learning target detection algorithm uses the model weight file as the vehicle detection weight to perform a test test on the test set in the open source vehicle detection data set, and compares the detection results with the manually annotated real results The results are compared, the model detection accuracy is calculated, and the model weight with the highest test accuracy is selected as the vehicle detection model weight of the embodiment of the present invention, and the model weight with the highest test accuracy is selected as the vehicle detection model weight of this embodiment to obtain a trained deep learning target detection model; through the vehicle detection model, target detection is performed on the video frame image data obtained by the video acquisition module to obtain vehicle information of the moving vehicle on the video pixel coordinates, the vehicle information includes the vehicle position information and the size information of the vehicle detection frame, the vehicle information is [x, y, w, h], where the vehicle position information is [x, y] representing the center coordinates of the vehicle detection frame, and the size information of the vehicle detection frame is [w, h] which is the width and height of the vehicle detection frame.
[0085] The multi-target tracking module 604 uses the multi-target tracking algorithm DEEP SORT to track the vehicles detected by the vehicle detection model in the target detection module on the video frame image. Vehicle tracking is limited to tracking vehicles within the monitoring video range; the multi-target tracking algorithm DEEP SORT uses the vehicle detection model in step 2 to detect vehicles traveling on the road in the video frame image. When the vehicle travels into the monitoring camera range, the vehicle detection model will detect the vehicle traveling on the road in the video frame image to obtain a vehicle detection frame. The detected vehicle will match the corresponding annotation ID, and the deep appearance feature extraction of the vehicle in the vehicle detection frame is performed, and the prediction frame of the next frame of the driving vehicle is predicted by Kalman filtering; in the next frame, the vehicle detection model is used to detect the vehicle traveling on the road in the video frame image to obtain a vehicle detection frame, and the deep appearance feature extraction of the vehicle in the vehicle detection frame is performed, and then the Mahalanobis distance is used to associate and measure the Kalman filter prediction frame of the previous frame and the current frame detection frame. The target distance of the detection frame and the cosine distance of the appearance feature measure the appearance features of the vehicle detection frame of the previous frame and the vehicle detection frame of the current frame to obtain the minimum cosine distance. The Mahalanobis distance result and the minimum cosine distance are weighted and summed to obtain the cost matrix. The cost matrix is input into the Hungarian algorithm for data association to obtain the linear matching result. The target with high matching degree in the current frame is assigned the ID of the corresponding target vehicle in the previous frame. The previous and next frames are tracked successfully, and then predicted and updated through Kalman filtering. The Hungarian algorithm performs frame-by-frame data association and tracks until the ID vehicle disappears or the ID is converted. Cascade matching is used to consider the target spacing and appearance similarity at the same time, improve the matching accuracy, and obtain the trajectory information of the corresponding ID vehicle in the video pixel coordinates.
[0086] The reverse traffic judgment module 605, when the ID vehicle passes through these two connected and non-intersecting position areas, obtains the trajectory information of the ID vehicle on the video pixel coordinates of the reverse traffic judgment area through tracking in step three, and determines the driving direction of the tracked target vehicle according to the order in which the ID vehicle passes through the two connected and non-intersecting pixel point sets, and determines whether the tracked vehicle is reverse traffic, and performs a fast and efficient reverse traffic judgment every time it passes through the reverse traffic judgment area.
[0087] The target locking module 606 obtains the driving trajectory of the vehicle in the wrong-travel judgment area through the above module, and determines whether it is wrong-travelling based on the order in which the ID vehicle passes through two adjacent non-intersecting position areas. The two position areas are assumed to be area A and area B. If the ID vehicle passes through A first and then B, it is forward driving, and vice versa. When it is judged to be wrong-travelling, the monitoring will capture the image of the violation scene in real time, and the violation video and image will be saved to the terminal to lock the target vehicle.
[0088] This embodiment provides a one-way vehicle wrong-travel detection system based on deep learning. The system has stable detection results, fast detection speed, high accuracy, strong real-time performance and can judge wrong-travel vehicles in real time. At the same time, an efficient wrong-travel judgment method is used through position information to perform efficient wrong-travel judgment on the target vehicle.
[0089] According to an embodiment of the present invention, this embodiment also provides a detection device.
[0090] See also Figure 7 , Figure 7 This embodiment provides a structural schematic diagram of a one-way vehicle reverse detection device based on deep learning. The terminal device is intended to represent various forms of digital computers, such as laptops, desktop computers, mainframe computers, workbenches, vehicle-mounted terminals, wireless terminals in unmanned driving, etc. Various forms of mobile devices can also be represented, such as personal digital processing, smart phones, wearable devices, etc. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described or required herein.
[0091] like Figure 7 As shown, the terminal includes a processor 701, a memory 702, an input device 703, an output device 704 and a bus; the processor 701, the memory 702, the input device 703, and the output device 704 in the terminal device are specifically connected to each other through the bus. Figure 7 The example of the bus connection is taken as an example. The memory 702 is used to store computer programs, the computer programs include program instructions, and the processor 701 executes the instructions in the terminal device for processing.
[0092] The memory 702 is a computer-readable storage medium that can be used to store computer-executable programs, instructions, and modules, such as program instructions or modules corresponding to the vehicle wrong-way detection method in the embodiment of the present invention (for example, see Figure 6 The schematic diagram of the vehicle reverse traffic detection system shown in the figure includes a video acquisition module 601, a target detection module 602, a multi-target tracking module 603, a reverse traffic judgment module 604, and a target locking module 605). The processor 701 executes various functional applications and data processing of the terminal device by running the computer executable programs, instructions and modules in the processor 702, that is, realizing the above-mentioned one-way vehicle reverse traffic judgment method based on deep learning.
[0093] The memory 702 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program; the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium, and stores data created by the vehicle reverse detection method (e.g., vehicle data set, model weight, pixel coordinate position information, violation information, etc.). In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device.
[0094] The input device 703 can receive input digital or character information and generate key signal input related to the user settings and function control of the terminal, such as a touch screen, touch pad, keyboard, mouse, microphone, etc. The output device 704 includes devices such as a display, a speaker, etc.
[0095] This embodiment also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the aforementioned one-way wrong-way vehicle detection method based on a convolutional neural network.
[0096] Through the above description of the embodiments, it can be clearly understood by those skilled in the art that it can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, random access memory can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0097] The method of the present invention has stable detection results, fast detection speed and high accuracy, and can judge in real time whether a vehicle is traveling in the wrong direction. At the same time, it effectively prevents the same vehicle from being judged multiple times, thereby reducing the misjudgment rate of vehicle reverse driving judgment.
[0098] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.
[0099] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. A one-way vehicle reverse detection method based on deep learning, It is characterized in that The following steps are involved: Step 1: In the video pixel coordinate system, a reverse traffic judgment area is set. The reverse traffic judgment area is composed of two connected and non-intersecting position areas and crosses the road in the video; the position area is composed of pixel point sets, which are two connected and non-intersecting pixel point sets. At the same time, the two connected and non-intersecting position areas must cross the road in the video to ensure that vehicles traveling on the road will pass through these two position areas one after another; Step 2: Acquire road monitoring video data in real time to obtain video frame image data; input the obtained video frame image data into the vehicle detection network model, perform target detection on the vehicles traveling on the road, and obtain the vehicle information of the traveling vehicles at the video pixel coordinates, including position and size information; Step 3: The moving vehicle detected in step 2 is tracked throughout the entire process within the video surveillance range using the multi-target tracking algorithm DEEP SORT to obtain the vehicle's entire driving trajectory and the driving trajectory within the reverse judgment area; Step 4: Determine whether the vehicle is traveling in the wrong direction; when the target ID vehicle passes through two adjacent non-intersecting position areas in the wrong direction judgment area, the trajectory information of the target ID vehicle on the video pixel coordinates of the wrong direction judgment area is obtained through tracking in step 3. The driving direction of the target ID vehicle is determined according to the order in which the target ID vehicle passes through the two adjacent non-intersecting pixel point sets, and it is determined whether the tracked vehicle is traveling in the wrong direction. A wrong direction judgment is performed once the vehicle passes through the wrong direction judgment area.
2. The one-way vehicle reverse driving detection method based on deep learning according to claim 1, Features: The vehicle detection network model described in step 2 is a deep learning vehicle detection network model that has been trained in advance. The deep learning target detection algorithm is used to learn the vehicle contour through the vehicle data set, so that the vehicle detection network model can identify the vehicle on the road within the monitoring video range.
3. The one-way vehicle reverse driving detection method based on deep learning according to claim 1, Features: The vehicle information in step 2 is [x, y, w, h], where the vehicle position information is [x, y], which represents the center coordinates of the vehicle detection frame, and the size information of the vehicle detection frame is [w, h], which is the width and height of the vehicle detection frame.
4. The one-way vehicle reverse driving detection method based on deep learning according to claim 1, Features: In step 3, the detected vehicle is tracked by the multi-target tracking algorithm DEEP SORT; the vehicle detection network model is used to detect the vehicle traveling on the road in the video frame image. When the vehicle travels into the monitoring camera range, the vehicle detection network model detects the vehicle traveling on the road in the video frame image to obtain a vehicle detection frame, the detected vehicle is matched with the corresponding annotation ID, and the deep appearance feature extraction is performed on the vehicle in the vehicle detection frame, and the prediction frame of the next frame of the driving vehicle is predicted by Kalman filtering; in the next frame, the vehicle detection network model is used to detect the vehicle traveling on the road in the video frame image to obtain a vehicle detection frame, and the deep appearance feature extraction is performed on the vehicle in the vehicle detection frame, and then the Mahalanobis algorithm is used to extract the vehicle appearance of the vehicle in the vehicle detection frame. The distance is used to associate and measure the target distance between the Kalman filter prediction frame of the previous frame and the detection frame of the current frame. The appearance feature cosine distance measures the appearance features of the vehicle detection frame of the previous frame and the vehicle detection frame of the current frame to obtain the minimum cosine distance. The Mahalanobis distance result and the minimum cosine distance are weighted and summed to obtain the cost matrix. The cost matrix is input into the Hungarian algorithm for data association to obtain the linear matching result. The target with a high matching degree in the current frame is assigned the ID of the corresponding target vehicle in the previous frame. The previous and next frames are tracked successfully, and then the Kalman filter is used for prediction and update. The Hungarian algorithm performs frame-by-frame data association and tracks until the ID vehicle disappears or the ID is converted to obtain the trajectory information of the ID vehicle in the video pixel coordinates.
5. The one-way vehicle reverse driving detection method based on deep learning according to claim 4, Features: Using the 8-dimensional state vector X = [u, v, r, h, u * , v * , r * ,h * ] T To estimate the position and state of the vehicle in the next frame, [u, v] is the center coordinate of the vehicle detection frame, r is the aspect ratio, h is the height, and the remaining four variables represent the velocity information of the derivative of each parameter in the image coordinate system; The Mahalanobis distance is used to measure the target distance between the Kalman filter prediction frame of the previous frame and the detection frame of the current frame. The Mahalanobis distance is used to measure the similarity d of the first 4 vectors [u, v, r, h] of the 8-dimensional state vector (1) (i,j), the Mahalanobis distance metric calculation formula is as follows: Among them, d j Indicates the position of the jth detection box, y i represents the predicted position of the target by the i-th Kalman filter, S i -1 Represents the covariance matrix between the detected and tracked positions.
6. The one-way vehicle reverse driving detection method based on deep learning according to claim 4, Features: The appearance feature cosine distance measures the appearance features of the vehicle detection frame of the previous frame and the vehicle detection frame of the current frame to obtain the minimum cosine distance, and calculates the minimum cosine distance d between all feature vectors of the tracking of the i-th object and the target detection result of the j-th object (2) (i, j), the minimum cosine distance calculation formula is as follows: Among them, r j Corresponding to the jth detected feature vector, The set of feature vectors corresponding to k successful tracking times, Calculate the cosine similarity, is the cosine distance between two vectors.
7. The one-way vehicle reverse driving detection method based on deep learning according to claim 4, Features: The cost matrix c is calculated by weighted summing the Mahalanobis distance result and the minimum cosine distance. i,j : c i,j =λd (1) (i,j)+(1-λ)d (2) (i,j) Among them, λ represents the weight of Mahalanobis distance and cosine distance in the cost function calculation process.
8. The one-way vehicle wrong-way detection method based on deep learning according to any one of claims 1 to 7, Features: In step 4, if the direction of the tracked vehicle is determined to be wrong, the monitoring will capture the image of the violation scene in real time, obtain the violation video, and lock the wrong-traveling illegal vehicle to complete the detection.
9. A one-way vehicle reverse detection system based on deep learning, It is characterized in that Includes the following modules: Module 1 is used to set a reverse traffic judgment area in the video pixel coordinate system, wherein the reverse traffic judgment area is composed of two connected and non-intersecting position areas and crosses the road in the video; the position area is composed of pixel point sets, which are respectively two connected and non-intersecting pixel point sets, and the two connected and non-intersecting position areas must cross the road in the video to ensure that vehicles traveling on the road will pass through the two position areas one after another; Module 2 is used to obtain road monitoring video data in real time and obtain video frame image data; input the obtained video frame image data into the vehicle detection network model, perform target detection on the vehicles traveling on the road, and obtain the vehicle information of the traveling vehicles at the video pixel coordinates, including position and size information; Module 3, tracks the moving vehicle detected in module 2 throughout the entire process within the video surveillance range using the multi-target tracking algorithm DEEP SORT, and obtains the vehicle's entire driving trajectory and the driving trajectory in the reverse judgment area; Module 4 is used to determine whether the vehicle is traveling in the wrong direction; when the target ID vehicle passes through two adjacent non-intersecting position areas in the wrong direction determination area, the trajectory information of the target ID vehicle on the video pixel coordinates of the wrong direction determination area is obtained through tracking in step 3, and the driving direction of the tracked target ID vehicle is determined according to the order in which the target ID vehicle passes through the two adjacent non-intersecting pixel point sets, and it is determined whether the tracked vehicle is traveling in the wrong direction, and a wrong direction determination is performed once the tracked vehicle passes through the wrong direction determination area.
10. A one-way vehicle reverse detection device based on deep learning, It is characterized in that include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the one-way vehicle wrong-way detection method based on deep learning as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method for recognizing converse vehicle driving in vehicle lanes on the basis of image processing
CN106022243A
Convolutional neural network-based retrograde vehicle detection method and system, and medium
CN111259868A
