When we drive, we use our eyes to decide where to go. The lines on the road that show us where the lanes are act as our constant reference for where to steer the vehicle. Naturally, one of the first things we would like to do in developing a self-driving car is to automatically detect lane lines using an algorithm.
This project detect lane lines in images using Python and OpenCV. This project was successfully tested in Python3.6 environment. The required packages include:
matplotlib
python-opencv
numpy
moviepy
os
math
To have a brief understanding of the detection pipeline, you should first take a look at writeup.md, which describes the pipeline as well as the shortcomings and possible improvements.
To see the detection results, you should look at folders test_images_output
and test_videos_output
,
which contain the detected images and videos respectively. If you are interested in the
temporary outputs, you could take a look at folder tmp_output
.
The detection pipeline is written in P1.ipynb
, which is a ipython-notebook file. You can
follow the directions step by step in that notebook file to look at the details of this method.
P1.html
also shows you the code details, while the only difference is that you cann't run
the code.
This project has been pushed to github.