This project is a demonstration of how to use OpenCV to detect and draw road lane lines on a video stream.
- Python 3.x
- OpenCV
- Numpy
- matplotlib
- detector_image.py (to identify the area to focus)
- detector_image2.py (to mark the lines in image)
- detector_video.py (to mark the lines in live video)
- Clone or download the repository.
- Install the required packages by running
pip install opencv-python
. - Download a video file of a road or use your own video file.
- run
python detector_video.py
in terminal
Image detection:
Video Detection :