In a previous post I walked through how to create a lane keeping autopilot using an end-to-end neural network. This post shows how to create a lane keeping autopilot using line detection computer vision algorithms.

This is essentially a python port of the C++ computer vision autopilot, written by Haoyang Wang, and Jason Devitt from Compound Eye. It was the only vehicle to complete the first DIYRobocar Race.

This autopilot can be run on modified RC car (or differential drive) controlled by a Rasberry Pi, Pi Camera and Adafruit servo shield. See the Donkey repo to see how to build your own.