极品馒头泬19p,国产精品亚洲一区二区三区,狠狠色噜噜狠狠狠7777奇米,国产精品视频一区二区三区无码,国产欧美日韩久久久久

【E504】TensorFlow+OpenCV模擬自動駕駛

2021-08-23 16:42:11      索煒達(dá)電子      692     

項(xiàng)目編號:E504

文件大?。?3M

源碼說明:帶中文注釋

開發(fā)環(huán)境:Python

簡要概述:

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:

【E504】TensorFlow+OpenCV模擬自動駕駛

作用是勾勒路線的輪廓


3, using cv2.HoughLinesP() function to analyze 道路的虛線和實(shí)線 原理是計(jì)算條線之間的空隙。而實(shí)線比較好處理。 enter image description here

【E504】TensorFlow+OpenCV模擬自動駕駛

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


Problem: 通過CNN訓(xùn)練模型,但還是未能解決紅綠燈信號識別的問題,打算用openCV做顏色歸納 enter image description here   行人檢測

【E504】TensorFlow+OpenCV模擬自動駕駛

行人檢測

【E504】TensorFlow+OpenCV模擬自動駕駛

文件列表:

目錄│文件列表:

 └ AutoDrive

    └ AutoDrive

       │ alexnet.py

       │ autoDrive.py

       │ balance_data.py

       │ directkeys.py

       │ ez_setup.py

       │ getkeys.py

       │ grabscreen.py

       │ Maching.py

       │ main.py

       │ tf_vehicle.py

       │ training_data_2.npy

       └ screenshoot

          │ 476419097427111374.jpg

          │ 547439799077907042.jpg

          │ Thumbs.db

          │ truck_Canny.png

          │ truck_light.png

          │ truck_line.png

          │ truck_trafficlight.png

          └ WechatIMG60.jpeg

TAG模擬自動駕駛
  • 9 次
  • 1 分