Skip to content

changtimwu/CarND-LaneLines-P1

 
 

Repository files navigation

#Finding Lane Lines on the Road


Goal & Steps

The goals / steps of this project are the following:

  • Make a pipeline that finds lane lines on the road
  • Test the pipeline on test images
  • Test the pipeline on test videos
  • Test the pipeline on challenge video and make adjustments

Reflection

Pipeline description

  • Convert the image to grayscale
  • Apply Gaussian blur
  • Apply Canny edge detection
  • Mask out edges image with region of interests
  • Apply Hough algorithm on the masked edge detected image to obtain line segments.
  • Draw the line segments on the original image

How I modify draw_lines()

  • Divide line segments into two groups: left side and right side.
  • For each side, find out the maximum/minimum x and y value among points of all line segments.
  • create a new line segment with the corner points found out in previous step.
  • append the new line segment to the original line segment array

Source

Results of test images

  • solidWhiteCurve solidWhiteCurve'
  • solidWhiteRight solidWhiteRight'
  • solidYellowCurve solidYellowCurve'
  • solidYellowCurve2 solidYellowCurve2'
  • solidYellowLeft solidYellowLeft'
  • whiteCarLaneSwitch whiteCarLaneSwitch'

results of test videos

###2. Identify potential shortcomings with your current pipeline

  • It can't identify thin lane lines on the far end.
  • Corner point calculation is buggy. It draws random straight line sometimes.
  • It completely fails on the challenge video.

###3. Suggest possible improvements to your pipeline

  • Make use of opencv's built-in box-bound function.
  • Add some color filters to make it able to handle special road color.

About

Lane Finding Project for Self-Driving Car ND

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%