Python for autonomous vehicles in Euro Truck Simulator 2

Lane Detection

The next step towards a true autonomous vehicle is identifying where the lane lines are, and keeping the vehicle within them.

This lane detection demo uses OpenCV edge detection to identify the edges of the lane, and display them on screen.

Download links and instructions are in the video description on Youtube


Autosteer

Using a different lane detection methodology to detect whether the vehicle is closer to the left or right line, and apply steering inputs accordingly with Directkeys to keep the vehicle in lane.

This is something of a "failed" experiment, as it's not perfect or useable every day, but is interesting to watch all the same.

Download links and instructions are in the video description on Youtube