Giter Club home page Giter Club logo

carnd-lanelines-p1's Introduction

Finding Lane Lines on the Road

Writeup


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

Reflection

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

My pipeline consist of 6 major steps. I named the function detectLines that takes in the image, and two threshold value for cropping ROI. In the first step I am creating a grayscale image of the given image. The output of the grayscale then get blurred by using gaussian blur. The blurred image then goes into the openCV canny edge detection part. I used lower threshold = 50 and upper threshold = 150. I am then creating a mask using the threshold parameter. The output of this phase goes into the hough_lines function. In the hough_lines function I am calling the draw_lines method. This method filters some of the outlier lines and separate the left and right lines based on positive and negative slope. I used polyfit from numpy to determine the slope and y_intercept. The final left and right lines are created by avaraging the slope and y_intercept.

2. Identify potential shortcomings with your current pipeline

One major shortcoming of the pipeline is that it is not robust. It performs really bad in curved roads. Also if the color of the asphalt changes (different shades of black/gray) it detects that changed color as a road marking and outputs abnormal lines.

3. Suggest possible improvements to your pipeline

One possible improvement can be to track the parameters in subsequent frames of the video. That way the line detection will be improved. Another improvement could be to use adaptive parameter for different algorithms used for the line detection, such as canny, hough transform, etc.

carnd-lanelines-p1's People

Contributors

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