Lane Detection Algorithm
- Clone the repository
- Insure you have python3.x installed
- If you have pip run '''bash pip install -r requirements.txt ''' this will install the required python modules
- next go to the end of the autonomas.py file and set the path to the video you which to use (line 309)
- Now you should be able to run the program, enjoy!
The algorithm uses 8 filters and functions to detect lane lines.
- The image is masked to only have the road in the image
- HSL color threhold
- Gray Scale color threshold
- Sobel Filter used on x and y
- Canny Edge Detection
- Adaptive Binary Filter
- Hough Lines Filter
- Extapolation and averaging of Hough Lines
- Moving average for Extapolation Lines
Orginal Image
Masked Image
Filtering (Color HSL and Gray Scale, Sobel, and Canny Edge Detection)
Filtering Adaptive Binary Threshold
Resulting Image (including filters 7,8,9)
Full youtube video of demo can be found here: https://youtu.be/_-spc5U9u3E
Note: the current release of AutonoMas does not detect cars but if your are interested search for haarcascades
Most of the learning resources I used for this project came from OpenCVs Docs and many different articles, videos, and github repos.