# AutoDrive
Use TensorFlow and openCV
模拟自动驾驶
semi-finished product!
## PS: 现实环境中的测试:https://github.com/YanZiQinKevin/object_detection/blob/master/README.md
Self_ driving at Euro Truck Simulator2
-----《欧洲卡车模拟2》
#Implementation:
Control part: Use win32 api to control keyboard, which self play Euro Truck Simulator2.
Trace the traffic-line part: (openCV):
1, transfer original image to gray cv2.COLOR_BGR2GRAY
2, than using Canny to due with the image:
![Canny](https://github.com/YanZiQinKevin/AutoDrive/blob/master/screenshoot/truck_Canny.png)
作用是勾勒路线的轮廓
3, using cv2.HoughLinesP() function to analyze 道路的虚线和实线
原理是计算条线之间的空隙。而实线比较好处理。
![enter image description here](https://github.com/YanZiQinKevin/AutoDrive/blob/master/screenshoot/truck_line.png)
4, Using two lines to figure out "Turn", and the signal will call win32 to keyboard.
二, Use TensorFlow to recognized front of view, such as Car or Traffic_light.
This part based on :[object_detection](https://github.com/YanZiQinKevin/object_detection)
Problem: 通过CNN训练模型,但还是未能解决红绿灯信号识别的问题,打算用openCV做颜色归纳
![enter image description here](https://github.com/YanZiQinKevin/AutoDrive/blob/master/screenshoot/truck_light.png)
行人检测
![enter image description here](https://github.com/YanZiQinKevin/AutoDrive/blob/master/screenshoot/WechatIMG60.jpeg)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
模拟自动驾驶Use TensorFlow and openCV.zip (20个子文件)
open_weizhidongjiashi
screenshoot
Thumbs.db 18KB
truck_line.png 2.36MB
truck_Canny.png 1.38MB
476419097427111374.jpg 120KB
truck_light.png 2.07MB
547439799077907042.jpg 104KB
WechatIMG60.jpeg 198KB
truck_trafficlight.png 1.4MB
alexnet.py 2KB
main.py 1KB
Maching.py 347B
training_data_2.npy 7.94MB
getkeys.py 286B
grabscreen.py 1KB
directkeys.py 2KB
ez_setup.py 5KB
balance_data.py 1KB
tf_vehicle.py 5KB
README.md 2KB
autoDrive.py 7KB
共 20 条
- 1
资源评论
极致人生-010
- 粉丝: 3345
- 资源: 3076
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功