The invention provides a night traffic flow calculation method based on vehicle lamp detection, and the method comprises the following steps: photographing to obtain an original picture of night driving with vehicle lamps, and carrying out the binarization processing of the original picture, and obtaining a binary image only containing the vehicle lamps; clustering the binarized image through a DBSCAN algorithm to obtain a cluster of any shape, and regarding the center point of each cluster as a vehicle lamp; all the clusters are matched to obtain paired vehicle lamps, and each paired vehicle lamp is regarded as a target vehicle; and tracking the target vehicles in a plurality of frames of original photos to update the number of the target vehicles so as to obtain the latest night traffic flow. The method is advantaged in that the abnormally extracted light source points in the image can be eliminated, good robustness is realized, the processing flow is simple, real-time detection can be realized, and detection precision is relatively high.
本发明提供了一种基于车灯检测的夜间车流量计算方法,包括如下步骤:拍摄获取带有车灯的夜间行车的原始照片,对所述原始照片进行二值化处理,得到仅包含车灯的二值化图像;通过DBSCAN算法对所述二值化图像进行聚类,得到任一形状的聚类簇,每个所述聚类簇的中心点被认为是一个车灯;对所有所述聚类簇进行匹配,得到成对的车灯,每一所述成对的车灯被认为是一个目标车辆;在若干帧的所述原始照片中对所述目标车辆进行跟踪,以更新所述目标车辆的数量,从而获得最新的所述夜间车流量。能够对图像中异常提取的光源点进行排除,具有良好的鲁棒性,且处理流程简单,因此可以实现实时检测,同时检测精度较高。
Night traffic flow calculation method and system based on vehicle lamp detection
一种基于车灯检测的夜间车流量计算方法及系统
2022-06-24
Patent
Electronic Resource
Chinese
High‐accuracy vehicle lamp detection for real‐time night‐time traffic surveillance
Wiley | 2020
|High-accuracy vehicle lamp detection for real-time night-time traffic surveillance
IET | 2021
|Traffic lamp control system based on traffic flow detection
European Patent Office | 2015
|Night traffic flow detection method based on ShuffleNetv2-YOLOv5s
European Patent Office | 2024
|An Effective Method of Head Lamp and Tail Lamp Recognition for Night Time Vehicle Detection
BASE | 2010
|