Skip to content

This project focuses on tracking multiple objects throughout a video to accurately monitor and count vehicles as they enter and exit the frame.

Notifications You must be signed in to change notification settings

mayhixza/vehicle-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

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)

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

About

This project focuses on tracking multiple objects throughout a video to accurately monitor and count vehicles as they enter and exit the frame.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published