Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Naive Lane Lines Detection

The goal of this project is to make a pipeline that finds lane lines on the road through naive Computer Vision techniques.

A demo of the pipeline can be found on Youtube

Naive Lane Tracking Video

Pipeline Overview

My pipeline comprised of -

  1. Changing the color space from RGB to grayscale
  2. Performing Gaussian smoothing/blurring to remove noise and spurious gradients
  3. Performing edge detection using the Canny Edge Detection Algorithm.
  4. Implementing a Polygon ROI mask and using this to restrict the location of the detected edges
  5. Applying Hough transform to find the line segments over this masked edge detected image.
  6. Reducing jitter and smoothing out the detections through a moving average
  7. Drawing out these detected line segments on a blank copy of the original image
  8. Performing blending of the original and lines image

Results from each step of the pipeline can be observed in my Jupyter notebook: naive_lane_tracker.ipynb. Furthermore, please find below the overall results visualised for each of the test images.

image1 image2 image3 image4 image5 image6

Potential shortcomings of the current pipeline

  1. Currently the parameters for the Hough Transform and Canny Edge Detection were chose through trial and error. Maybe incorporate a better mechanism for hyper parameter selection like k-folds cross validation, etc.

  2. The pipeline needs a mechanism to handle different contrast ratios as is quite evident on moving from the first two test videos to the challenge video

Suggestions for possible improvements to the pipeline

  1. The smoothing algorithm needs to be refined as it still introduces jitter and has an immensely long window.

  2. Extend this pipeline to handle curvature on the road as opposed to just straight lines. Potential for introducing better computer vision and deep learning techniques

You can’t perform that action at this time.