How abhijitmahalle/lane-detection works
This repository implements two standalone classical-computer-vision workflows: straight-road solid/dashed line detection and curved-road lane fitting with curvature and turn estimation. A user runs either script; it reads video frames, processes them, and writes annotated video. The straight workflow is explicit in its source. The curved workflow’s README documents the detection stages, while its excerpt shows the frame loop and final assembly but omits several intermediate calls; those links are therefore documented rather than inferred from imports. Input and output filenames differ between the tree and source, so they are not linked to specific assets.
Main entry points: curved_lane_detection.py Curved Workflow · straight_lane_detection.py Straight Workflow
Components 16
Straight Lane Detection
- Straight Workflow
code/straight_lane_detection.py - Threshold Frames
code/straight_lane_detection.py - Select Road ROI
code/straight_lane_detection.py - Detect Lane Lines
code/straight_lane_detection.py - Draw Lane Lines
code/straight_lane_detection.py
Curved Lane Detection
- Curved Workflow
code/curved_lane_detection.py - Lane Preprocessing
code/curved_lane_detection.py - Perspective Warp
code/curved_lane_detection.py - Lane Curve Fit
code/curved_lane_detection.py - Lane Overlay
code/curved_lane_detection.py - Curvature Estimate
code/curved_lane_detection.py - Turn Prediction
code/curved_lane_detection.py - Result Assembly
code/curved_lane_detection.py
Video I/O
- Input Video
- Annotated Video
Other components
- User
Connections 17
- User → Straight Workflow: runs
README.md - User → Curved Workflow: runs
README.md - Input Video → Straight Workflow: provides frames
code/straight_lane_detection.py - Straight Workflow → Threshold Frames: preprocesses
code/straight_lane_detection.py - Straight Workflow → Select Road ROI: masks region
code/straight_lane_detection.py - Straight Workflow → Detect Lane Lines: detects lines
code/straight_lane_detection.py - Straight Workflow → Draw Lane Lines: draws results
code/straight_lane_detection.py - Straight Workflow → Annotated Video: writes frames
code/straight_lane_detection.py - Input Video → Curved Workflow: provides frames
code/curved_lane_detection.py - Curved Workflow → Lane Preprocessing: detects lanes
README.md - Curved Workflow → Perspective Warp: warps view
README.md - Curved Workflow → Lane Curve Fit: fits curves
README.md - Curved Workflow → Lane Overlay: renders lanes
code/curved_lane_detection.py - Curved Workflow → Curvature Estimate: computes radii
README.md - Curved Workflow → Turn Prediction: predicts turn
code/curved_lane_detection.py - Curved Workflow → Result Assembly: assembles display
code/curved_lane_detection.py - Curved Workflow → Annotated Video: writes frames
code/curved_lane_detection.py