Coder Social home page Coder Social logo

shadimsaleh / lane-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from felixhsu123/lane-detection

0.0 1.0 0.0 7.83 MB

Lane departure warning system is a mechanism designed to warn a driver when the vehicle begins to move out of its lane (unless a turn signal is on in that direction) on freeways. The system is designed to minimize accidents by addressing the main causes of collisions: driver error, distractions and drowsiness. The aim of this project is to implement the core algorithm of this feature which is the lane detection. The aim is to detect road lane markers in a video stream and to highlight the lane in which the vehicle is driven by detecting boundaries of the lane markers in the video.

Python 100.00%

lane-detection's Introduction

Hough Line Transform

The Hough Line Transform is a transform used to detect straight lines. To apply the Transform, first an edge detection pre-processing is desirable.

Implementation

Detect the road surface in the video - this is a segmentation task, find all pixels in the image which are road; it will help here to have three classes to segment: road, not-road, and sky. Find the horizon (this is roughly where your road/not-road and sky classes meet Use a simple edge detector to differentiate the edges between road and non-road Apply a Hough Transform on the edges to draw "lines" for the edge of the road Find where the road-lines meet at the horizon

A road dataset which contained 250 images was downloaded from the California Institute of Technology website. These images were run as a video to test the lane detection algorithm. All the images are read from the folder and checked for edges. Canny edge detection algorithm was used for edge detection. On finding edges, I needed to find out the straight lines by checking the continuity of the pixel values. The feature extraction technique called Hough Transform was made use of for this. This is used to find imperfect instances of objects within a certain class of shapes by a voting procedure. This voting procedure is carried out in a parameter space, from which object candidates are obtained as local maxima in an accumulator space that is explicitly constructed by the algorithm for computing the Hough transform. Third party library functions from OPENCV were used for this.

lane-detection's People

Watchers

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