/lane-detection

Build a simple lane detector with Python and OpenCV

Primary LanguagePython

Lane Detection

Build a lane detector with Python and OpenCV :)

To run

python laneDetectionVideo.py

Preview

Final output video

Original video

Steps

  1. Grayscale frame

2. Gaussian blur grayscale frame

3. Detect edges using Canny edge algorithm

4. Create mask for region of interest

5. Detect lines through Hough transform

6. Average lines from Hough transform and draw on frame