Skip to content

ChenKuanSun/Self-Driving-CarND-LaneLines-P1

Repository files navigation

Finding Lane Lines on the Road

Udacity - Self-Driving Car NanoDegree

This is My test video

This is My test video

Overview

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.

#The Project

  1. Describe your pipeline. As part of the description, explain how you modified the draw_lines() function.

My pipeline consisted of some steps.

converted the images to grayscale

alt text

Gausian smoothing image

alt text

apply Canny edge detection.

alt text

Mask other areas of the image.

alt text

Apply Hough Transform to detect lane lines.

alt text

Draw the lane lines on the original image.

alt text

In order to draw lines on the left and right lanes, I converted the lines from Hoff to a slope greater than 0.4 and less than 0.8. Divide these lines into positive and negative (left and right), and find the average slope, and the average BIAS, find <code>y=mx+b</code>, find the points at the bottom and bottom of MASK, and draw them.

2. Identify potential shortcomings with your current pipeline

This My Challenge video

This My Challenge video

At present, I use the weight method to balance the offset and noise, but there will still be some slight errors. I think I can enhance the image pre-processing.

About

UdacityND Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published