Skip to content

lucasmirachi/Lane_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Lane Detection with OpenCV

The objective of this project is to create a lane lines detection algorithm using Python and computer vision techniques. It is part of the Complete Self Driving Car Course - Applied Deep Learning, and much of the code is leveraged from the lecture notes.


Resources

For this project, the following resources were used:

  • Python 3.8.5 - Latest Python version by the time the project was created
  • Numpy 1.18.5
  • OpenCV 4.3.0
  • A video recording of a vehicle moving in a lane street The video used on the project was filmed by me in my hometown (Belo Horizonte - Brazil). In my conception, it was a interesting one because it contained not only straight and cropped lanes, but it also had shadows from the trees and a little change of the perspective due to a soft uphill on the streed (that makes the lanes look a little more separeted from each other), wich made the line detection a little bit more difficult. The raw video can be downloaded here.

In OpenCV, in order to display the video file, it is needed to create a Video Capture Object and then create a loop to decode and show every video frame


Application of the Canny Filter

RGB Color images have, as the name suggests, 3 color channels (Reg, Green, Blue). Before applying the Canny Filter, one technique applyed to use less computational power, is to transform the 3-Color-Channel RGB image into a 1-Color-Channel Grayscale image.


Apply Blur with Gaussian Filter

When applying the Canny Filter for edge detection, it is easily affected by noise and, to reduce this noise and make the image smoother, we apply a Blur


Edge detection with Canny


Highliting the Region of Interest


Criacao das linhas


Average Lines

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages