Code Monkey home page Code Monkey logo

finding-lane-lines-on-the-road's Introduction

Finding Lane Lines on the Road

Application of pipeline2

Overview

In this project several computer vision techniques are applied to detect lanes on the read and draw lines fitting them.

Usage

Step 1: Set up Anaconda with OpenCV

Step 2: Open the P1.ipynb in a Jupyter Notebook (Python 3.5)

Step 3: Run the notebook

Implementation

Image processing pipeline

  1. Apply gray scale to the initial image
  2. Use Gaussian blur technique to distinct the white lanes and input to canny edge method
  3. Apply Canny edge method to find the edges in the image
  4. Apply a mask to spot only the lanes
  5. Use Hough transformation to obtain the most suitable lines passing over the edges
  6. Obtain fitting lines

Fitting line implementation

In order to draw a single line on the left and right lanes, I modified the ** draw_lines()** function by separating into positive and negative slope . Besides filter into two branches of positive/negative slope, I apply a range of acceptable values for slope according to the plot of all possible hough lines. This range was within [0.4, 0.95] for positive slopes and [-0.95,-0.4] for negative slopes. Afterwards, I evaluate the average slope for left and right lines (positive/negative slopes) in order to find a single line for both cases. Finally, using simple linear equation y = mx +b , I obtained the parameter b as well as extrapolate the right and left lines.

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.