Giter Club home page Giter Club logo

advanced-lane-line-detection's Introduction

INTRODUCTION

Built an advanced lane-finding algorithm using distortion correction, image rectification, color transforms, and gradient thresholding. Identified lane curvature and vehicle displacement. Overcame environmental challenges such as shadows and pavement changes

In this project, I have used computer vision techniques to identify lane boundaries and compute the estimate the radius of curvature given a frame of video of the road.

To achieve this, the following steps are taken:

  • Computed the camera calibration matrix and distortion coefficients of the camera lens used given a set of chessboard images taken by the same camera
  • Used the aforementioned matrix and coefficient to correct the distortions given by the raw output from the camera
  • Use color transforms, and sobel algorithm to create a thresholded binary image that has been filtered out of unnecessary information on the image
  • Apply perspective transform to see a “birds-eye view” of the image as if looking from the sky
  • Apply masking to get the region of interest, detect lane pixels,
  • Determine the best fit curve for each lane the curvature of the lanes
  • Project the lane boundaries back onto the undistorted image of the original view
  • Output a visual display of the lane boundaries and other related information

HOW TO USE

  • You need to setup dependencies to run a Jupyter Notebook on your computer and setup a handful of packages such as opencv
import matplotlib.pyplot as plt
%matplotlib inline
import cv2 
import numpy as np
import pickle
from moviepy.editor import VideoFileClip
  • This is so that each notebook sees to see relevant files, the most relevant files being the python classes.

Relevant Links

RELEVANT FILES

Classes

  • ChessBoard - chessboard.py
  • BirdsEye - birdseye.py
  • LaneFilter - lanefilter.py
  • Curves - curves.py

advanced-lane-line-detection's People

Stargazers

 avatar

Watchers

 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.