Giter Club home page Giter Club logo

carnd-lanelines-p1's Introduction

Finding Lane Lines on the Road

The goals / steps of this project are the following:

  • Make a pipeline that finds lane lines on the road
  • Reflect on your work in a written report

Pipeline

1. Capture the screen essence

In this first step we try to capture the relevant aspects of the picture. For that we apply color selection to the image, we processes all the white and yellow colors and then we convert it to grayscale. This strips most of the things away leaving us with the lanes and some noise to work on.

alt text

2. Smoothing of the lines

We apply Gaussian Blur to smooth out the picture.

alt text

3. Edge detection

We use canny algorithm for edge detection.

alt text

4. Crop the region of interest

To remove noise from the picture (e.g. sky, trees, etc that we could not remove before) we crop the picture assuming that the camera is in the center of the car on a fixed position.

alt text

5. Hough Transformation

Next we apply hough transformation to detect the lines in the picture.

alt_text

6. Final step to draw 2 lines that mark the full lane

In here we use a linear regression to join all the lines provided by Hough's algorithm.

alt_text

Potential issues

  1. It is not hard to recognize that the code would only work while on rects or very smooth curves
  2. There is also an issue that would happen when the car is transitioning lanes
  3. Any factor that may alter the colors on the picture can play a major role in the identification (weather, very dirty lanes, etc)
  4. Polyfit algorithm used for the linear regression is very sensitive to outliers, this is causing major issues. Even if I applied an outliers filter based of an statistical model it is still not 100% accurate and some circunstances trigger the lines to severly deviate from the standard.

Future work

  1. Use ML for better identification of the relevant aspects of the picture and also for outliers detection
  2. Make it work on curves and transitioning lanes
  3. I believe this model is not highly scalable and that a whole new approach needs to be introduce to make it work on more real applications.

carnd-lanelines-p1's People

Contributors

andrewpaster avatar austinjalexander avatar bajcmartinez avatar baumanab avatar bayne avatar brok-bucholtz avatar citlaligm avatar dmlicht avatar domluna avatar jeremy-shannon avatar mikaelcarpenter avatar moe-elsadig avatar mvirgo avatar norman-thomas avatar quadhd avatar rajatgoyal715 avatar rasphilco avatar ryan-keenan 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.