An open API service indexing awesome lists of open source software.

https://github.com/kaylaipp/lane-detection

Build a simple lane detector with Python and OpenCV
https://github.com/kaylaipp/lane-detection

autonomous-vehicles lane-detection lane-lines-detection lane-tracking opencv opencv-python

Last synced: 7 months ago
JSON representation

Build a simple lane detector with Python and OpenCV

Awesome Lists containing this project

README

          

# Lane Detection
> Build a lane detector with Python and OpenCV :)
## To run
```sh
python laneDetectionVideo.py
```

## Preview
![Final output video](https://github.com/kaylaipp/lane-detection/blob/main/media/final.gif)

[Original video](https://www.youtube.com/watch?v=IWIOafpMi4E)

## Steps
1. Grayscale frame

2. Gaussian blur grayscale frame

3. Detect edges using Canny edge algorithm

4. Create mask for region of interest


5. Detect lines through Hough transform

6. Average lines from Hough transform and draw on frame