Giter Site home page Giter Site logo

rohanmathur17 / lane-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 29.47 MB

This repository contains the code for lane detection with its main practical use in autonomous vehicles.

Home Page: https://lane-detection-webapp.herokuapp.com/

Jupyter Notebook 96.77% Python 3.19% Shell 0.04%
lane-detection opencv-python heroku-deployment

lane-detection's Introduction

Lane Detection

This repository contains the code for lane detection with its main practical use in autonomous vehicles.

Requirements

opencv-python==4.2.0.44 or above
numpy==1.19.2 or above
matplotlib==3.1.1
Pillow==7.2.0

Concepts

Image Used

alt text

  1. Grayscaling

Grayscale is a range of shades of gray without apparent color. The darkest possible shade is black, which is the total absence of transmitted or reflected light. The lightest possible shade is white, the total transmission or reflection of light at all visible wavelength s. Intermediate shades of gray are represented by equal brightness levels of the three primary colors (red, green and blue) for transmitted light, or equal amounts of the three primary pigments (cyan, magenta and yellow) for reflected light.

alt text

  1. Gaussian Blur

In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function. It is a widely used effect in graphics software, typically to reduce image noise and reduce detail. The visual effect of this blurring technique is a smooth blur resembling that of viewing the image through a translucent screen, distinctly different from the bokeh effect produced by an out-of-focus lens or the shadow of an object under usual illumination.

alt text

  1. Canny Edge Detection

The Canny edge detector is an edge detection operator that uses a multi-stage algorithm to detect a wide range of edges in images. The Canny filter is a multi-stage edge detector. It smooths the image with a Gaussian filter to reduce noise and unwanted details and textures.

alt text

After removing the noise

alt text

  1. Hough Transforms

The Hough transform is a technique which can be used to isolate features of a particular shape within an image. Because it requires that the desired features be specified in some parametric form, the classical Hough transform is most commonly used for the detection of regular curves such as lines, circles, ellipses, etc. A generalized Hough transform can be employed in applications where a simple analytic description of a feature(s) is not possible. The main advantage of the Hough transform technique is that it is tolerant of gaps in feature boundary descriptions and is relatively unaffected by image noise.

A good reference to understand Hough Line Transforms -> https://www.youtube.com/watch?v=4zHbI-fFIlI

Final Processed Image

alt text

Deployed Screenshots

alt text

alt text

Done By -

Rohan Mathur

Your Name Here (Insert Your Image Link In Src

Made with ❤️ by DS Community SRM

lane-detection's People

Contributors

rohanmathur17 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

higgy-debug

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.