Journal of Jilin University(Engineering and Technology Edition) ›› 2025, Vol. 55 ›› Issue (2): 693-699.doi: 10.13229/j.cnki.jdxbgxb.20231458

Previous Articles    

Multiple object detection of violated vehicles in traffic surveillance video based on YOLOv5 network algorithm

Li-min ZHENG1(),Shuang CHEN2,Gang LI1   

  1. 1.Automobile and Traffic Engineering,Liaoning University of Technology,Jinzhou 121001,China
    2.College of Automobile and Traffic,Shenyang Ligong University,Shenyang 110159,China
  • Received:2023-12-29 Online:2025-02-01 Published:2025-04-16

Abstract:

In order to improve the effectiveness of detecting illegal vehicles in traffic monitoring videos, a multi-objective detection method for illegal vehicles in traffic monitoring videos based on the YOLOv5 network algorithm is proposed. In the fusion processing of traffic monitoring video images, the grayscale histogram equalization operation is performed, and the grayscale deviation values of different exposed images are calculated through the window function. All ghosts in the fused images are removed by image corrosion, and high-quality image fusion results are obtained through pixel normalization and Laplace pyramid; Based on the YOLOv5 network algorithm, a multi head self attention learning mechanism is constructed using a driver graph encoder in the Transformer module to enhance the semantic information of target features of illegal vehicles in the image; On the basis of continuous dilated convolution, dense connection structures are utilized to expand the feature map convolution into a single pixel addition operation, enhancing the semantic information of features; Utilizing the Softmax function for feature multi-scale fusion to achieve multi-target detection of illegal vehicles in traffic surveillance videos. The experimental results show that the proposed method can effectively improve the quality of traffic monitoring video images, and the YOLOv5 network algorithm used has high computational intensity, resulting in more accurate multi-target detection of illegal vehicles.

Key words: YOLOv5 network algorithm, traffic monitoring videos, violating vehicles, multi object detection

CLC Number: 

  • TP391.4

Fig.1

YOLOv5 network structure diagram"

Fig.2

Flow chart of multi object detection of violated vehicles in traffic monitoring video under YOLOv5 network algorithm"

Fig.3

Real scene of traffic monitoring"

Fig.4

Test display images"

Table 1

Ghost removal performance analysis of traffic surveillance video images"

测试图像编号测试指标鬼影去除前鬼影去除后
01~100平均梯度22.13845.118
空间频率42.78960.345
标准差50.15273.551
101~200平均梯度8.67123.742
空间频率16.25135.873
标准差61.22081.122
201~300平均梯度12.77128.160
空间频率17.52037.251
标准差56.11476.441
301~400平均梯度15.66332.773
空间频率15.05129.152
标准差45.66864.022

Fig.5

Algorithm strength test results"

Fig.6

Comparison of multi object detection results for violated vehicles in traffic surveillance video using three methods"

1 成怡, 张宇, 李宝全. 基于改进CenterNet的交通监控车辆检测算法[J]. 计算机仿真, 2023, 40(1): 131-136.
Cheng Yi, Zhang Yu, Li Bao-quan. Vehicle detection algorithm based on improved CenterNet in traffic surveillance[J]. Computer Simulation, 2023, 40(1): 131-136.
2 孙敏, 李免, 赵玉舟, 等. 基于实时交通状况和自适应像素分割的运动车辆检测[J]. 液晶与显示, 2021, 36(10): 1454-1462.
Sun Min, Li Mian, Zhao Yu-zhou, et al. Vehicle detection based on real-time traffic condition and adaptive pixel segmentation[J]. Chinese Journal of Liquid Crystals and Displays, 2021, 36(10): 1454-1462.
3 郭宇阳, 胡伟超, 戴帅, 等. 面向路侧交通监控场景的轻量车辆检测模型[J]. 计算机工程与应用, 2022, 58(6): 192-199.
Guo Yu-yang, Hu Wei-chao, Dai Shuai, et al. A lightweight vehicle detection model for roadside traffic monitoring scenarios[J]. Computer Engineering and Applications, 2022, 58(6): 192-199.
4 陈立潮, 解丹, 曹建芳, 等. 改进光流法和GMM融合的车辆实时检测算法研究[J]. 智能系统学报, 2021, 16(2): 271-278.
Chen Li-chao, Dan Jie, Cao Jian-fang, et al. Research on vehicle real-time detection algorithm based on improved optical flow method and GMM[J]. CAAI Transactions on Intelligent Systems, 2021, 16(2): 271-278.
5 赵璐璐, 王学营, 张翼, 等. 基于YOLOv5s融合SENet的车辆目标检测技术研究[J]. 图学学报, 2022, 43(5): 776-782.
Zhao Lu-lu, Wang Xue-ying, Zhang Yi, et al. Vehicle target detection based on YOLOv5s fusion SENet[J]. Journal of Graphics, 2022, 43(5): 776-782.
6 Jin Z, Zhang Q, Gou C, et al. Transformer-based vehicle detection for surveillance images[J]. Journal of Electronic Imaging, 2022, 31(5): 5160217.
7 Fern􀅡ndez J D, Garcia-Gon􀅡zlez J, R Benítez-Rochel et al. Automated detection of vehicles with anomalous trajectories in traffic surveillance videos[J]. Integrated Computer-Aided Engineering, 2023, 30(3): 293-309.
8 刘新富, 蒋慕蓉, 黄亚群, 等. 结合稳像补帧与VIBE算法的抖动视频前景目标提取方法[J]. 计算机科学, 2022, 49(): 404-411.
Liu Xin-fu, Jiang Mu-rong, Huang Ya-qun, et al. Using image stabilization and VIBE algorithm to extract foreground target from jitter video[J]. Computer Science, 2022, 49 (Sup.2): 404-411.
9 雷大江, 杜加浩, 张莉萍, 等. 联合多流融合和多尺度学习的卷积神经网络遥感图像融合方法[J]. 电子与信息学报, 2022, 44(1): 237-244.
Lei Da-jiang, Du Jia-hao, Zhang Li-ping, et al. Multi-stream architecture and multi-scale convolutional neural network for remote sensing image fusion[J]. Journal of Electronics & Information Technology, 2022, 44 (1): 237-244.
10 王峰, 程咏梅. 基于JBF与MLNE的图像融合方法[J]. 西北工业大学学报, 2022, 40(6): 1414-1421.
Wang Feng, Cheng Yong-mei. Image fusion method based on JBF and multi-order local region energy[J]. Journal of Northwestern Polytechnical University, 2022, 40(6): 1414-1421.
[1] Xiang-jiu CHE,Yu-ning WU,Quan-le LIU. A weighted isomorphic graph classification algorithm based on causal feature learning [J]. Journal of Jilin University(Engineering and Technology Edition), 2025, 55(2): 681-686.
[2] Yu-ting SU,Meng-yao JING,Pei-guang JING,Xian-yi LIU. Deep photometric stereo learning framework for battery defect detection [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(12): 3653-3659.
[3] Xin CHENG,Sheng-xian LIU,Jing-mei ZHOU,Zhou ZHOU,Xiang-mo ZHAO. 3D object detection algorithm fusing dense connectivity and Gaussian distance [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(12): 3589-3600.
[4] Hua CAI,Ting-ting KOU,Yi-ning YANG,Zhi-yong MA,Wei-gang WANG,Jun-xi SUN. Three-dimensional vehicle multi-target tracking based on trajectory optimization [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(8): 2338-2347.
[5] Yi TANG,Yang PAN,Ming GAO,Hong-chen YI,An-qi WEI. Multi spectral image matching algorithm of unmanned aerial vehicle based on affine invariant operator [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(7): 2080-2085.
[6] Yun-zuo ZHANG,Yu-xin ZHENG,Cun-yu WU,Tian ZHANG. Accurate lane detection of complex environment based on double feature extraction network [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(7): 1894-1902.
[7] Yan-feng LI,Ming-yang LIU,Jia-ming HU,Hua-dong SUN,Jie-yu MENG,Ao-ying WANG,Han-yue ZHANG,Hua-min YANG,Kai-xu HAN. Infrared and visible image fusion based on gradient transfer and auto-encoder [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(6): 1777-1787.
[8] Zi-chao ZHANG,Jian CHEN. A mapping method using 3D orchard point cloud based on hawk-eye-inspired stereo vision and super resolution [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(5): 1469-1481.
[9] Dian-wei WANG,Chi ZHANG,Jie FANG,Zhi-jie XU. UAV target tracking algorithm based on high resolution siamese network [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(5): 1426-1434.
[10] Yu WANG,Kai ZHAO. Postprocessing of human pose heatmap based on sub⁃pixel location [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(5): 1385-1392.
[11] Tao CHEN,Zhi-gang ZHOU,Nan-nan LEI. Multi-objective optimization of parameters of automotive mechanical automatic transmission system based on particle swarm optimization [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(5): 1214-1220.
[12] Jing-hong LIU,An-ping DENG,Qi-qi CHEN,Jia-qi PENG,Yu-jia ZUO. Anchorfree target tracking algorithm based on multiple attention mechanism [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(12): 3518-3528.
[13] Zhen WANG,Xiao-han YANG,Nan-nan WU,Guo-kun LI,Chuang FENG. Ordinal cross entropy Hashing based on generative adversarial network [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(12): 3536-3546.
[14] Xiao-qi LYU,Hao LI,Yu GU. Adaptive blur and deduplication algorithm for digital media image based on wavelet domain [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(11): 3201-3206.
[15] Fan YANG,Zhi-qiang ZHAI,Yuan-yuan WANG,Zhong-xiang ZHU,Yue-feng DU,En-rong MAO. Design of assembly system for tractor transmission based on virtual reality [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(10): 3038-3044.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!