A computer vision pipeline for detecting lane lines on roads, built as part of the Self-Driving Car Engineer Nanodegree. Uses Canny edge detection, Hough transforms, and region-of-interest masking to identify and overlay lane markings on images and video.
- ๐ Grayscale conversion and Gaussian blur for noise reduction
- ๐ Canny edge detection for identifying lane boundaries
- ๐ฏ Region-of-interest masking โ dynamic triangular ROI based on image dimensions
- ๐ Hough line transform for detecting line segments
- ๐งฎ Slope-based lane separation โ distinguishes left vs. right lane markings
- ๐ Line averaging & extrapolation โ smooth, full-length lane overlay
- ๐ฌ Video processing โ frame-by-frame lane detection on MP4 files using MoviePy
- ๐จ Color-based lane detection โ HLS color space for yellow and white lane identification
Input Image/Frame
โ Grayscale conversion
โ Gaussian blur (kernel=11)
โ Canny edge detection (50/150 thresholds)
โ Region-of-interest masking
โ Hough line transform
โ Slope filtering & lane averaging
โ Weighted overlay on original image
- Python 3 โ core language
- OpenCV โ image processing and computer vision
- NumPy โ numerical operations
- Matplotlib โ visualization
- MoviePy โ video processing
pip install opencv-python numpy matplotlib moviepyjupyter notebook "Finding Lane Lines- CARND-Term-1- Submission.ipynb"The notebook walks through the full pipeline with test images and video processing.
Road-Lane-Detection-Using-Computer-Vision/
โโโ Finding Lane Lines- CARND-Term-1- Submission.ipynb # Main notebook
โโโ output_4_1.png # Sample output
โโโ output_29_*.png # Test image results
โโโ README.md
The pipeline processes multiple test images (solid white, solid yellow, curves) and three video clips (white right, yellow left, challenge) with lane overlay rendering.
Sanjay Santhanam