Description
The Finding_Lanes project contains several bugs, hardcoded dimensions, and missing features:
- Hardcoded ROI Polygon Mask:
roi() uses static coordinates [(200, height), (1100, height), (550, 250)], which breaks on any image or video of different resolutions (e.g. 1080p, 480p).
- Color Space Mismatch:
canny() uses cv2.COLOR_RGB2GRAY on OpenCV frames loaded in BGR format, which violates OpenCV conventions.
- Noisy Slope Filtering & Divide-by-Zero Risk:
average_lines_intercept() fails to filter out near-horizontal road artifacts and shadows (slopes near 0), and make_coordinate() lacks zero/NaN/inf safeguards.
- Hardcoded Input Paths & Lack of CLI: Only runs on a fixed
video.mp4 file; no support for CLI arguments (--image, --video, --camera, --output, --no-show).
- Incomplete Subplot Utility (
sub.py): sub.py was an orphaned placeholder script displaying the raw image without running lane detection.
- No Unit Tests & Incomplete Documentation: No test suite exists to verify pipeline robustness, and
README.md had placeholder text.
Type of issue
Checklist:
Description
The
Finding_Lanesproject contains several bugs, hardcoded dimensions, and missing features:roi()uses static coordinates[(200, height), (1100, height), (550, 250)], which breaks on any image or video of different resolutions (e.g. 1080p, 480p).canny()usescv2.COLOR_RGB2GRAYon OpenCV frames loaded in BGR format, which violates OpenCV conventions.average_lines_intercept()fails to filter out near-horizontal road artifacts and shadows (slopes near 0), andmake_coordinate()lacks zero/NaN/inf safeguards.video.mp4file; no support for CLI arguments (--image,--video,--camera,--output,--no-show).sub.py):sub.pywas an orphaned placeholder script displaying the raw image without running lane detection.README.mdhad placeholder text.Type of issue
Checklist: