Git Product home page Git Product logo

self-driving-carnd-lane-line-detection's Introduction

Udacity Self-Driving Car Nanodegree - Finding Lane Lines on the Road

This repo contains the code written to complete the first project on Udacity Self-Driving Car Nanodegree. This project consists of algorithms to identify lane lines on the road on a video. The video is taken from a camera at the center of a vehicle. This code is able to identify yellow and while lane lines on road.

Prerequisites

To run this project, you need Miniconda installed(Follow instructions to quickly install)

Installation

To create an environment for this project use the following command:

conda env create -f environment.yml

After the environment is created, it needs to be activated with the command:

source activate carnd-term1

and open the project's notebook P1.ipynb inside jupyter notebook:

jupyter notebook P1.ipynb

Overview

The repo contains the jupyter notebook P1.ipynb where the processing pipeline is implemented inside the function detect_lanes. The pipeline consists on six steps represented by six different functions which are called using functions:

  1. Gray conversion : Returns a gray scaled version of the input image using cv2.cvtColor method.
  2. Blur Image gaussian_blur: Applies a Gaussian blur to the provided image using cv2.GaussianBlur method.
  3. Canny canny: Use a Canny transformation to find edges on the image using cv2.Canny method.
  4. Masking region_of_interest: Only keeping region where lane line are available (for now...).
  5. Hough:Transform hough_lines: Use a Hough transformation to find the lines on the masked image using cv2.HoughLinesP. Function hough_lines calls draw_lines which extrapolates detected segments of lines to create single lane line.
  6. Weighted image weighted_img: Combining lane lines image and original image.

self-driving-carnd-lane-line-detection's People

Contributors

yogeshmahawar 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.