|
pp. 329-347
S&M4302 Research paper https://doi.org/10.18494/SAM5781 Published: January 29, 2026 Real-time Vehicle Detection and Distance Estimation: Soft-sensor Approach Using Optimized You Only Look Once Version 5 and Perspective Geometry [PDF] Zhengsong Ni, Jie Shi, Liyao Li, and Cairong Ni (Received June 5, 2025; Accepted January 21, 2026) Keywords: YOLOv5, vehicle detection, monocular ranging, deep learning, computer vision
We developed a low‑cost, high‑precision monocular visual ranging system based on the You Only Look Once version 5 (YOLOv5) object detection algorithm, addressing the limitations of traditional methods by integrating deep learning with computer vision. The YOLOv5 architecture is optimized through the adoption of the cross stage partial darknet backbone network and the Mosaic data augmentation strategy. The architecture improves vehicle detection accuracy with a mean average precision at intersection over union threshold 0.5 of 0.5719, and the inference speed of 140 frames per second. Multiscale object detection capabilities are further enhanced using an adaptive anchor box generation mechanism. The monocular ranging model was constructed by combining camera calibration parameters with perspective geometry principles. Bounding box information produced by YOLOv5 is mapped to three‑dimensional spatial distances through the relationship between object pixel dimensions and actual physical dimensions, effectively mitigating the scale ambiguity inherent in monocular vision. The experimental results showed that the system maintained average ranging errors within engineering‑acceptable limits under diverse lighting and weather conditions while satisfying real‑time requirements. Compared with traditional geometric ranging benchmarks, the optimized model showed a 12% improvement in mean absolute error and root mean square error with an overall accuracy enhancement of 16.88%. The results confirm that the developed monocular visual ranging model balances cost and performance and is a reliable method for intelligent transportation systems. By functioning as a robust software‑defined virtual sensor, the system offers significant engineering application value and contributes to the advancement of intelligent driving technologies.
Corresponding author: Liyao Li![]() ![]() This work is licensed under a Creative Commons Attribution 4.0 International License. Cite this article Zhengsong Ni, Jie Shi, Liyao Li, and Cairong Ni, Real-time Vehicle Detection and Distance Estimation: Soft-sensor Approach Using Optimized You Only Look Once Version 5 and Perspective Geometry, Sens. Mater., Vol. 38, No. 1, 2026, p. 329-347. |