Abstract
Bus passenger flow information is very important as a reference data for bus company line optimization, schedule scheduling basis, and passenger travel mode arrangement. With the development of image processing technology, it has become a current research trend to count passenger flow with the help of surveillance video of passengers getting on and off the bus. The specific research contents of this paper based on video image detection and statistics of passengers are as follows:(1) Collect head target image samples through a variety of ways, including 3960 positive head target samples and 4150 negative head target samples, which together constitute the head target feature database. (2) Established a head target detection model based on deep learning. First, the labeling of the head target training data set is completed. Then, after 15,000 iterations of model training, the YOLOv3 head target detection network model was obtained, with a recall rate of 92.12% and an accuracy rate of 89.71%. (3) A multi-target matching tracking algorithm based on the combination of Cam-shift and YOLOv3 is proposed. First, the Cam-shift algorithm is used to track the head target. Secondly, the head target tracking data and the YOLOv3 detection data are combined to solve the problem of drift during the tracking of the Cam-shift algorithm through the data association matching method based on the minimum distance, and then combined with the time constraint, a passenger location information judgment rule is proposed. Optimize the error and missed detection in the process of head target detection and tracking, and improve the reliability of passenger trajectory tracking. (4) A statistical algorithm for the detection of passengers getting on and off the bus is proposed. First, the trajectory of passengers in the bus boarding and disembarking area is analyzed, and a process for judging passengers’ boarding and boarding behavior is proposed. At the same time, a passenger position information judgment rule is proposed according to the different situations of whether there are new passengers or missing passengers, so as to optimize the problem of wrong detection and missing detection in the process of head target detection and tracking. (5) Finally, experiments are carried out in actual bus scenes and simulation scenes. The experiment proves that the statistical algorithm for the detection of passengers getting on and off the bus proposed in this paper has good detection, tracking and statistics effects in bus scenes and simulation scenes.
Similar content being viewed by others
References
Bradski GR (1998) Computer vision face tracking for using in a perceptual user interface[J]. Intel Technol J 2:1–15
Gao M (2019) Research on passenger flow statistics algorithm based on binocular stereo vision [D]. Changchun University of Science and Technology
Hare S, Saffari A, Torr PHS (2011) Structured output tracking with kernels[C]//2011 IEEE international conference on computer vision. Barcelona, Spain, pp 263–270
Hongzhi Z, Jinhuan Z, Hui Y et al (2006) Target tracking algorithm based on CamShift [J]. Comput Eng Design 27(011):2012–2014
Hu J, Li G (2006) Design of city-bus intelligent control system framework[C]//proceedings of the 2006 IEEE international conference mechatronics and automation. Luoyang, China, pp 2307–2311
Huiying J (2018) Research on video people counting method based on machine learning algorithm [D]. Beijing Jiaotong University
Joao F, Caseiro R, Martins P (2015) High-speed tracking with Kernelized correlation filters[J]. IEEE Trans Pattern Anal Mach Intell 37(3):583–596
Kalal Z, Mikolajczyk K, Matas J (2011) Tracking learning detection[J]. IEEE Trans Pattern Anal Mach Intell 34(7):1409–1422
Kalman RE (1960) A new approach to linear filtering and prediction problems[J]. J Basic Eng 82(1):35–45
Li B (2019) Analysis and application of bus surveillance video[D]. Huaqiao university
Li M (2019) Research on prediction of short-time bus passenger flow based on deep learning [D]. Beijing Jiaotong University
Liu X (2013) The method and realization of bus passenger flow statistics based on stereo vision [D]. Yanshan University
Liu Q (2019) Exploration of urban intelligent bus management system based on big data[C]// Proceedings of the 3rd International Conference on Computer Engineering, Information Science & Application Technology (ICCIA 2019), Nanchang, China, 21-23 June. France: Atlantis Press:152–157
Ouyang L, Wang H (2019) Vehicle target detection in complex scenes based on YOLOv3 algorithm[J]. IOP Conference Series: Materials Science and Engineering 569:052018
Redmon J, Farhadi A. (2018) YOLOv3: An incremental improvement [J]. arXiv:1804.02767v1
Redmon J, Divvala S, Girshick R et al (2016) You only look once: unified, real-time object detection[C]//2016 IEEE conference on computer vision and pattern recognition. Las Vegas, NV, USA, pp 779–788
Shao Y, Zhihua Q, Deng T et al (2019) Pedestrian detection method and evaluation based on CapsNet[J]. Journal of Transportation Systems Engineering and Information Technology 3:54–61
Shi T (2011) Research on improvement of data acquisition device of public transportation counting system [D]. Northeastern University
Tang Q (2014) Research and realization of the key technology of bus passenger flow statistics analysis based on video [D]. South China University of Technology
Wang Z, Yang X, Xu Y, Yu S (2009) CamShift guided particle filter for visual tracking[J]. Pattern Recogn Lett 30(4):407–413
Xian X, Shi Y, Tang Y et al (2015) A method to judge bus passenger flow based on multi - movement behavior [J]. Comput Eng 4:176–180
Xu B, Chen X (2010) Development of passenger flow statistics system of city bus based on infrared sensor [J]. Bus Technology and Research 32(05):12–14+17
Yi Z (2017) Research on public transportation surveillance video passenger flow statistics system based on deep learning [D]. Chongqing University
Zhang W (2018) Research on bus passenger flow statistics method based on machine learning [D]. Chang'an University
Zhang K, Zhang L, Yang MH et al (2014) Fast visual tracking via dense spatio-temporal context learning[C]//2014 13th European conference computer vision (ECCV) proceedings. Zurich:127–141
Zhao Q (2016) Research and implementation of bus passenger flow statistics based on video analysis [D]. Chongqing University
Zhou X (2020) A statistical study of bus passenger detection based on video image[D]. Beijing Jiaotong University
Acknowledgements
This work is supported by the National Key R&D Program of China (2019YFB1600200), National Natural Science Foundation of China (71871011, 71890972/71890970, 71621001), and the first batch of science and technology projects of Jingde Expressway(JD-202014).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interests
The authors declare that there is no conflict of interests regarding the publication of this article.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Zhao, J., Li, C., Xu, Z. et al. Detection of passenger flow on and off buses based on video images and YOLO algorithm. Multimed Tools Appl 81, 4669–4692 (2022). https://doi.org/10.1007/s11042-021-10747-w
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-021-10747-w