This repository contains code for the Adaptive Traffic Signal Control System employing a multi-faceted approach combining computer vision, deep learning, and real-time data analysis employing key components which are:
- Object Detection
- Lane Detection
- Vehicle Counting
- Data Analysis
Sequence.2.mp4
- YOLO v8
- OpenCV
- NumPy
- Make sure that the traffic.mp4 is present in the same directory as main.py
-
YOLO v8:
- Follow the instructions in the YOLO GitHub repository to install YOLO v8.
- Make sure to compile YOLO with OpenCV and GPU support if available and required.
-
OpenCV:
- Install OpenCV using your preferred package manager or via source. For example, using pip:
pip install opencv-python
- Install OpenCV using your preferred package manager or via source. For example, using pip:
-
NumPy:
- Install NumPy using pip:
pip install numpy
- Install NumPy using pip:
- Clone this repository:
git clone https://github.com/Sohaib012/Raasta.ai-AI-Challenge-2024.git
- Navigate to the cloned repository:
cd your-repository
- Run the main.py script:
python main.py
- Sohaib Nasir
- M. Ahabb Sheraz