An open API service indexing awesome lists of open source software.

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.

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

image

## 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.