Vehicular networking and computer vision-based distance estimation for VANET application using Raspberry Pi 3

Mulia Pratama, Giambattista Gruosso, Widodo Budi Santoso, Achmad Praptijanto


This research was implementing vehicle networking using WIFI connection and computer vision to measure the distance of vehicles in front of a driver. In particular, this works aimed to improve a safe driving environment thus supporting the current technology concept being developed for inter-vehicular networking, VANET, especially in its safety application such as Overtaking Assistance System. Moreover, it can wirelessly share useful visual information such as hazard area of a road accident. In accordance with Vehicle-to-Vehicle (V2V) concept, a vehicle required to be able to conduct networking via a wireless connection. Useful data and video were the objects to be sent over the network established. The distance of a vehicle to other vehicles towards it is measured and sent via WIFI together with a video stream of the scenery experienced by the front vehicle. Haar Cascade Classifier is chosen to perform the detection. For distance estimation, at least three methods have been compared in this research and found evidence that, for measuring 5 meters, the iterative methods shows 5.80. This method performs well up to 15 meters. For measuring 20 meters, P3P method shows a better result with only 0.71 meters to the ground truth. To provide a physical implementation for both the detection and distance estimation mechanism, those methods were applied in a compact small-sized vehicle-friendly computer device the Raspberry Pi. The performance of the built system then analyzed in terms of streaming latency and accuracy of distance estimation and shows a good result in measuring distance up to 20 meters.


computer vision; Haar Cascade Classifier; distance estimation

Full Text:



M. Mittal, “A Study of Live Video Streaming over Highway Vehicular Ad hoc Networks,” Int. J. Comput. Appl., vol. 1, no. 21, pp. 86–90, Feb. 2010.

C. Iza-Paredes, A. M. Mezher, and M. Aguilar Igartua, “Adaptive Video-streaming Dissemination in Realistic Highway Vehicular Ad-Hoc Networks,” in Proceedings of the 13th ACM Symposium on Performance Evaluation of Wireless Ad Hoc, Sensor, & Ubiquitous Networks - PE-WASUN ’16, 2016, pp. 1–10.

A. Vinel, E. Belyaev, K. Egiazarian, and Y. Koucheryavy, “An Overtaking Assistance System Based on Joint Beaconing and Real-Time Video Transmission,” IEEE Trans. Veh. Technol., vol. 61, no. 5, pp. 2319–2329, 2012.

B. Cronin, “Vehicle Based Data and Availability,” 2016.

U. D. Gandhi, A. Singh, A. Mukherjee, and A. Chandak, “Smart vehicle connectivity for safety applications,” in 2014 International Conference on Reliability Optimization and Information Technology (ICROIT), 2014, pp. 262–266.

C. B. Math, H. Li, and S. Heemstra de Groot, “Risk Assessment for Traffic Safety Applications with V2V Communications,” in 2016 IEEE 84th Vehicular Technology Conference (VTC-Fall), 2016, pp. 1–6.

N. F. Mustamin, “Relative distance measurement between moving vehicles for manless driving,” in 2017 International Seminar on Application for Technology of Information and Communication (iSemantic), 2017, pp. 1–4.

A. A. Ali and H. A. Hussein, “Distance estimation and vehicle position detection based on monocular camera,” in 2016 Al-Sadeq International Conference on Multidisciplinary in IT and Communication Science and Applications (AIC-MITCSA), 2016, pp. 1–4.

H.-K. Cheung, W.-C. Siu, S. Lee, L. Poon, and Chiu-Shing Ng, “Accurate distance estimation using camera orientation compensation technique for vehicle driver assistance system,” in 2012 IEEE International Conference on Consumer Electronics (ICCE), 2012, pp. 227–228.

S. Jabri, M. Saidallah, A. El Belrhiti El Alaoui, and A. El

Fergougui, “Moving Vehicle Detection Using Haar-like, LBP and a Machine Learning Adaboost Algorithm,” in 2018 IEEE International Conference on Image Processing, Applications and Systems (IPAS), 2018, pp. 121–124.

E. Baser and Y. Altun, “Detection and classification of vehicles in traffic by using haar cascade classifier,” Proc. 58th ISERD Int. Conf. Sci. Innov. Eng., no. December, pp. 19–22, 2016.

M. Rokonuzzaman, M. A. Al Amin, M. H. K. M. U. Ahmed, and M. T. Rahman, “Automatic vehicle identification system using machine learning and robot operating system (ROS),” in 2017 4th International Conference on Advances in Electrical Engineering (ICAEE), 2017, pp. 253–258.

Y. Hasan, M. U. Arif, A. Asif, and R. H. Raza, “Comparative analysis of vehicle detection in urban traffic environment using Haar cascaded classifiers and blob statistics,” in 2016 Future Technologies Conference (FTC), 2016, pp. 547–552.

G. Kim and J.-S. Cho, “Vision-based vehicle detection and inter-vehicle distance estimation for driver alarm system,” Opt. Rev., vol. 19, no. 6, pp. 388–393, Nov. 2012.

R. K. Megalingam, V. Shriram, B. Likhith, G. Rajesh, and S. Ghanta, “Monocular distance estimation using pinhole camera approximation to avoid vehicle crash and back-over accidents,” in 2016 10th International Conference on Intelligent Systems and Control (ISCO), 2016, pp. 1–5.

X. Ying, G. Wang, X. Mei, S. Yang, and H. Zha, “The perspective-3-point problem when using a planar mirror,” Proc. - Int. Conf. Pattern Recognit., pp. 4033–4037, 2014.

B. Bellalta, E. Belyaev, M. Jonsson, and A. Vinel, “Performance Evaluation of IEEE 802.11p-Enabled Vehicular Video Surveillance System,” IEEE Commun. Lett., vol. 18, no. 4, pp. 708–711, Apr. 2014.

R. M. Howard, “White noise: A time domain basis,” 2015 Int. Conf. Noise Fluctuations, ICNF 2015, pp. 1–4, 2015.

P. Closas, J. Arribas, and C. Fern, “Testing for normality of UWB-based distance measurements by the Anderson-Darling statistic,” Futur. Netw. Mob. Summit 2010 Conf. Proc., pp. 1–8, 2010.

Article Metrics

Metrics Loading ...

Metrics powered by PLOS ALM


  • There are currently no refbacks.

Copyright (c) 2019 Journal of Mechatronics, Electrical Power, and Vehicular Technology

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.