Giter Site home page Giter Site logo

sdcnd-p1's Introduction

Finding Lane Lines on the Road

1. Pipeline description.

This pipeline consists of 6 steps:

Color Selection

Using HSV color space two mask are created for the yellow and white color range. The mask is aplied to the image to filter out unwanted colors.

Region Masking

A triangular region is defined comprised of bottom corners and the center of the image, where the road is located.

Canny Edge Detection

To improve the edge detection two transformations were applied:

  • Convert images into gray scale to simplify detecting the edges on the image
  • Gaussian smoothing for suppressing noise and spurious gradients

Hough Transform

The Hough transform is applied to obtain the line's points of the edges calculated on the previuous step.

Slope, intercept and length of Hough lines

The slope, intercept and length of all the lines were calculated. The side of the road of each line is determined by the slope sign.

Weighted mean of the lines of each side

Right and left lane lines are calculated as the weigthed mean of the lines of each side. Lengthly lines has more importance in order to obtain the main lines.

2. Potential shortcomings

Potential shortcomings would be what would happen when dealing with:

  • Sharp corners
  • Lane changes
    • Own car
    • Other cars
  • Night
  • Low visibility
    • Rain
    • Fog

3. Possible improvements

Possible improvements would be to:

  • Horizon line calculation
  • Polynomial curve fitting

sdcnd-p1's People

Contributors

jla avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.