https://github.com/miteshgupta07/lane-detection-using-computer-vision
A lane detection system using computer vision to identify and track road lanes, enhancing driver assistance and safety by providing real-time lane-keeping guidance and alerts.
https://github.com/miteshgupta07/lane-detection-using-computer-vision
computer-vision opencv
Last synced: 3 months ago
JSON representation
A lane detection system using computer vision to identify and track road lanes, enhancing driver assistance and safety by providing real-time lane-keeping guidance and alerts.
- Host: GitHub
- URL: https://github.com/miteshgupta07/lane-detection-using-computer-vision
- Owner: miteshgupta07
- License: mit
- Created: 2024-06-03T13:55:50.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-03T18:18:53.000Z (11 months ago)
- Last Synced: 2024-12-28T03:27:46.791Z (4 months ago)
- Topics: computer-vision, opencv
- Language: Python
- Homepage:
- Size: 28 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🛣️🚗 Lane Detection 🚗🛣️
This project implements lane detection on video streams using OpenCV and Python. The lanes are detected using edge detection and Hough Line Transform, and the detected lanes are highlighted and filled with color in the output video.## Features
- Convert image frames to grayscale and apply Gaussian blur
- Perform Canny edge detection
- Define a region of interest to focus on the road area
- Detect lines using Hough Line Transform
- Average the detected lines to get a single left and right lane line
- Fill the lane area with a specified color
## Installation
1. Clone the repository:
```sh
git clone https://github.com/miteshgupta07/lane-detection.git
```
2. Navigate to the project directory:
```sh
cd lane-detection
```
3. Install the required packages:
```sh
pip install -r requirements.txt
```## Usage
1. Place your video file (e.g., `test2.mp4`) in the project directory.
2. Run the main script:
```sh
python main.py
```
3. The processed video with detected and filled lanes will be displayed.