Git Product home page Git Product logo

lane-detection's Introduction

Lane-Detection

My pipeline consists of 6 steps.

  1. Convert the images to grayscale
  2. Smooth the images and get rid of the noise using Gaussian filter
  3. Detect the edges in the images using Canny Edge Detector
  4. Crop the region of interest, which is a trapezoidal mask in the bottom center
  5. Extract the lines out of the images using Hough Transform
  6. Extrapolate the small line segments and draw a complete line for each lane

The following pictures show the process of step 1,3,and 6

In order to extrapolate the lines, I did the following work:

  1. Rule out the lines that are vertical or nearly horizontal, as they are not candidates of real lane lines.
  2. Group the lines segments by their slopes and positions. If a line is in the left half plane and its slope is negative, then I consider it as a valid lane line and add up the slope and x,y position. The same rule applies for the right lane.
  3. After grouping, I calculate the average slope and x,y position, and then draw a line from the bottom to the center of the image.

The following pictures show the result of step 1. Due to the shade and the different colors at different road, there will be some spurious detection. If they are not ruled out, the result is totally off.

Potential shortcomings with my pipeline

  1. Sometimes the dectector doesn't pick up the yellow lane line because its color is too close to the road
  2. Sometimes there is no line drawn because too much line segments are filtered out. This could be improve by fine tuning the parameters

lane-detection's People

Contributors

ryan-keenan avatar malichao avatar brok-bucholtz avatar andrewpaster avatar dmlicht avatar mikaelcarpenter avatar bayne avatar quadhd avatar domluna avatar jeremy-shannon avatar rasphilco avatar

Watchers

James Cloos 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.