Skip to content

Hpouralireza/lineDetection_with_OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

lineDetection_with_OpenCV

Find the road line in two ways:

1- threshold & findContours

2- erode method

First of all, we read the image and perform some steps on it, such as Gaussian/median Blur and Grayscale conversion.

For the first method, we use Binary threshold and then after finding the Contours, we draw them.

Threshold method

And in the second method, after defining a simple kernel, we use the Erode

Erode method