https://pjahanavi.github.io/roadsafe/
This project implements a Road Lane Line Detection system using a Convolutional Neural Network (CNN). The goal is to detect lane lines in road images or video streams, which is a crucial component in autonomous driving and advanced driver assistance systems (ADAS).
git clone https://github.com/yourusername/road-lane-detection-cnn.git
cd road-lane-detection-cnn
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
The model is trained on road images with lane markings. You can use publicly available datasets such as:
The CNN model consists of:
train
and test
folders.python train.py --epochs 10 --batch_size 32
To test the trained model on an image or video:
python test.py --input path/to/image_or_video
The model outputs lane boundaries on the given input images or video frames. You can visualize the predictions using OpenCV.
from model import LaneDetector
detector = LaneDetector("model.h5")
result = detector.detect_lanes("test_image.jpg")
For any questions or suggestions, contact pjahanavi2811@example.com or open an issue on GitHub.