https://github.com/mayhixza/vehicle-tracking
This project focuses on tracking multiple objects throughout a video to accurately monitor and count vehicles as they enter and exit the frame.
https://github.com/mayhixza/vehicle-tracking
colab-notebook computer-vision machine-learning opencv yolov8
Last synced: 5 months ago
JSON representation
This project focuses on tracking multiple objects throughout a video to accurately monitor and count vehicles as they enter and exit the frame.
- Host: GitHub
- URL: https://github.com/mayhixza/vehicle-tracking
- Owner: mayhixza
- Created: 2024-08-28T18:05:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T19:40:22.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T21:43:14.426Z (about 1 year ago)
- Topics: colab-notebook, computer-vision, machine-learning, opencv, yolov8
- Language: Jupyter Notebook
- Homepage:
- Size: 9.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vehicle Tracking Project
This repository contains code for a vehicle tracking model developed using OpenCV and YOLOv8 which supports a range of vision AI tasks, including detection, segmentation, tracking, and classification. This project aims to track various objects throughout a video and determine the number of vehicles leaving and entering the frame. This code serves as a preliminary implementation for detecting traffic congestion. It sets up the necessary parameters and initial configurations for analyzing traffic patterns.
## Run the Notebook on Google Colab
[](https://colab.research.google.com/github/mayhixza/vehicle-tracking/blob/main/vehicle_tracking.ipynb)
### How to Use the Colab Notebook
To run this project in Google Colab, click the "Open in Colab" button above. Follow these simple steps to set it up:
1. **Click the "Open in Colab" button** above to open the notebook in Google Colab.
2. **Run the setup cell**: The first cell installs all necessary libraries and mounts Google Drive if needed. You only need to do this once.
3. **Follow the notebook instructions**: Run each cell in order to execute the code and see the results.
**Note**: You must have a Google account to use Google Colab.
### Requirements
- Google Account to access Google Colab.
- Python dependencies specified in the `requirements.txt` file (automatically installed in the setup cell).
Below is an example of a processed frame from the video. (Sample video source: https://www.pexels.com/video/traffic-flow-in-the-highway-2103099/)

You can change and experiment with other parameters supported by YOLOv8 to build upon this project using different datasets.