Carla无人车车道检测仿真#4715
Closed
shengzhanpeng wants to merge 2 commits into
Closed
Conversation
Member
|
输入图不能自己构造,至少需要连接模拟器 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改概述:
该代码模拟了车载摄像头采集的道路图像的车道检测流程,主要包括:图像预处理(灰度化、高斯模糊、边缘检测)、感兴趣区域提取、霍夫变换检测直线、车道线拟合与绘制等核心步骤
修改的详细描述
灰度化:减少计算量,简化后续处理。
高斯模糊:去除图像噪声,避免边缘检测误判。
Canny 边缘检测:提取图像中的边缘信息(车道线的边缘)
经过了什么样的测试?
所需库:pip install opencv-python numpy matplotlib。
直接运行代码,会生成模拟道路图像并显示车道检测结果。
若需要处理真实道路图像或视频,替换代码中的图像 / 视频路径即可。
运行效果
动图、视频、截图等
0a9a9c9eadf8e8a7f39474dc69f9c368.mp4