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

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.

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

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](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/)

![sample1_output (1) (1)](https://github.com/user-attachments/assets/869951fe-56bd-4357-a48f-409737f87f39)

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