J Shanghai Jiaotong Univ Sci ›› 2024, Vol. 29 ›› Issue (6): 1081-1090.doi: 10.1007/s12204-022-2411-z

• • 上一篇    下一篇

基于车载智能手机的实时车辆及行人测距

周苏,钟泽滨   

  1. (同济大学 汽车学院,上海201804)
  • 收稿日期:2021-01-28 接受日期:2021-05-07 出版日期:2024-11-28 发布日期:2024-11-28

Real-Time Ranging of Vehicles and Pedestrians for Mobile Application on Smartphones

ZHOU Su (周苏), ZHONG Zebin (钟泽滨)   

  1. (School of Automotive Studies, Tongji University, Shanghai 201804, China)
  • Received:2021-01-28 Accepted:2021-05-07 Online:2024-11-28 Published:2024-11-28

摘要: 车辆与行人测距是高级驾驶辅助系统的基本功能之一。然而,大多数测距系统只能在具有高计算能力的工作站上工作。为了解决这一问题,提出了一种轻量级算法,将其打包到Android应用程序包中,安装在Android智能手机中,用于车辆和行人测距。该测距系统基于智能手机单目摄像头获取的图像。为了实现实时测距,提出了一种8位整数(int8)量化算法来加速卷积神经网络的推理。为了提高检测精度,进一步提出了一种放大算法来检测远距离的小目标。在检测到车辆和行人的二维边界框后,采用针孔测距法估计距离。为了验证所提出的算法,首先在华为P40Pro上使用COCO数据集测试了平均精度均值(mAP)和帧/秒(FPS),然后在真实道路上测试了测距精度。实验结果表明:该算法能够在被测智能手机上成功实现34.8 mAP高精度的15 FPS实时测距。最后,给出了基于测距算法的一种可能的移动应用,即保持距离预警。

关键词: 高级驾驶辅助系统, 计算机视觉, int8量化, 视觉测距, 智能手机应用

Abstract: The vehicles and pedestrians ranging is one of the basic functions of advanced driving assistance system. However, most of the ranging systems can only work on workstations with high computing power. To solve this problem, a lightweight algorithm is proposed to be packaged into Android application package, and be installed in Android smartphones for vehicles and pedestrians ranging. The proposed ranging system is based on the images obtained by smartphone’s monocular camera. To achieve real-time ranging, an 8-bit integer (int8) quantization algorithm is proposed to accelerate the inference of convolutional neural networks. To increase the detection precision, a zoom-in algorithm is further proposed to detect small targets in the distance. After having detected the 2D bounding boxes of vehicles and pedestrians, a pinhole ranging method is applied to estimate the distance. In order to verify the proposed algorithm, the mean average precision (mAP) and the frame per second (FPS) are first tested by using COCO dataset on Huawei P40Pro, then, the ranging precision on the real road.The experimental results show that this algorithm can successfully perform real-time ranging (15 FPS) with high precision (34.8 mAP) onto the tested smartphones. Finally, a possible mobile application based on the ranging algorithm, i.e., distance keeping warning, is also provided.

中图分类号: