This paper mainly realizes the assistant driving functions of vehicles based on Android NDK and OpenCV on Android phone.First it briefly introduces the basic framework of OpenCV operated on Android facilities.Then it briefly analyzes the detecting process of the basic module.Finally,it summarizes the transplantation process including the modification and the point required attention from computer to Android phone.The results indicate that when there are lanes in the frame,the algorithm will mark the lane with red lines.When there are vehicles in front of the current one, the algorithm will mark the vehicle with a green rectangle.%基于 Android NDK和 OpenCV实现在 Android 环境下的机动车辅助驾驶功能。分析了在 Android环境中使用 OpenCV 所需要的基本架构和基础模块(车道线检测和车型识别)的检测流程,介绍了由上位机程序移植到 Android手机上的流程,包括移植过程中所要做的更改和应注意的问题。实验结果显示,当手机摄像头采集到的图像中有车道线时,程序会标记出车道线;如果前方有车辆,程序会将前方车辆标记出。
展开▼