Giter Site home page Giter Site logo

road-lane-detection's Introduction

Road-lane-detection

In this project i have used OpenCV to detect road lanes for self driving cars. By detecting road lanes we can help self driving cars in good lane keeping and turning on a curved road.

Preprocessing image

  • First i have performed GaussianBlur on the image.
  • Then the image is converted to hsv format.
  • Then i have created a mask to detect the yellow road lanes.
  • Then i have used CannyEdge detector which helps Hough transform.

1

Cropping image

I cropped the image where the lanes are to be detected to avoid false detections. Without this cropping i got some detections on buildings, etc.

So i defined a region of interest where lane detections have to be made and then used bitwise AND to crop the image.

2

Lane detection

I used Probabilistic Hough Transform to detect lines in the Preprocessed image and then drew these lines over on the image.

3

Conclusion

This method worked on video and can be used in real time and doesn't require much expensive hardware.

Limitations

This is a naive approach to road lane detection problem in self driving cars and has its limitations

  • Algorithm has trouble finding road lanes when there are shadows over them.
  • Sunlight also affects the algorithm in detecting the road lanes.

These problems can be solved using a deep learning based approach. I have tried to build a simple approach to a problem without using deep learning so that no expensive hardware is required.

road-lane-detection's People

Contributors

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