shahjui2000 / Drive-able-Road-Detection

This code segments out the drive-able portion of the road from the surrounding.
10 stars 5 forks source link
cv2 detect detection drivable-road-detection drive-able-road-detection image image-processing indian-road indian-road-detection indian-roads open-cv opencv-python pixels python road road-detection traffic-camera-feeds video video-feeds video-processing

Drivable-Road-Detection

This code segments out the drivable portion of the road from the surrounding with the help of inbuilt open-CV library.

Installations required:

1.Numpy library

2.OpenCV library(cv2)

3.Matplotlib library

4.Python 3.6

Now road-lane detection techniques exists but they do not work for Indian-roads due to the fading of lanes and unsmooth road surfaces. So, this project directly takes use of the pixel-values of the road and applies different opencv functions to segment out the drivable portion of the road.

Now, we can deal with pixel values in 2 different ways- OpenCV library for image processing or using Neural Networks.

Output images of particular frames of 2 videos are here below:

Frame 1:

1

Frame 2:

2

Since, the output shows great acuracy , using openCV for segmentation becomes a better way since, Neural Networks come with a lot of computations and costs.