pdx97 / Lane_Detection_Using_Computer_Vision

this showcases how one can use computer vision for lane detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lane Detection Using Computer Vision algorithms via Hand Engineering.

This was the Project 1 of the 3 part project we did to understand how The Self Driving Cars Work.


We Used various Computer Vision techniques to see how the Driverless Vehicle sees an Image and Processes it to navigate it self to be inside certain Region Of interest so Following the methods and steps we Used
  • Step 1: We Captured the Image using a Webcam and collected the image
  • Step 2:We Grayscaled the Image using OpenCv as color increases complexity of the model. A grayscale image consists of colors white and black and their varying intensities.Brightness, contrast, edges, shapes, contours, texture,perspective and shadows can be worked upon without addressing color. Grayscaling is also a necessary pre- processing step before we can run more powerful algorithms to isolate lines..
  • Step 3: Applied Various Smoothening and Filtering Methods on it so that we can reduce the Noise on the Image
  • Step 4: Applied Edge Detection to identify edges in an image and discard all other data.
  • Step 5 : Specified the Region Of Interest as helps us discard any lines outside of our desired region. One crucial assumption is that the camera remains in the same place across all images and the lanes are flat, therefore we can identify the critical region we are interested in.
  • Step 6: Applied Hough Lines Transformation which helped to extract lines and draw its own lines on them by identifying all points that lie on them
  • Step 7 : We need to identify left and right lanes so that we can calculate the slope and calculate the angle at which the servo motor should rotate and we were able to identify our Lanes Properly .

Test Image

TestImage

Gray Scale Image

TestImage

Smoothened Image

TestImage

Edge Detection

TestImage

Region of Interest

TestImage

Hough Line Transform

TestImage

Final Image After Correction

TestImage

About

this showcases how one can use computer vision for lane detection


Languages

Language:Python 100.0%