Skip to content

lorenzoridolfi9/Traffic-Detection-and-Count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Traffic-Detection-and-Count 🚗 🚛

This repository contains Computer Vision project files. In particular, Yolov8 has been applied for object detection tasks, which can create models that recognize cars, trucks and other objects on the highway and monitor traffic by counting units passing by at a certain point.

Dataset 📊

The dataset used in the following project contains highway traffic images, and is divided into 3 parts:

  • training set (70%) : 4702 model training frames
  • validation set (20%) : 1358 frames of model validation
  • testing set (10%) : 674 frames to test the model.

There are too many classes:

  • car
  • big bus
  • big truck
  • bus -l-
  • bus -s-
  • mid truck
  • small bus
  • small truck
  • truck -l-
  • truck -m-
  • truck -s-
  • truck -xl-

The dataset was taken from Roboflow, which also annotated the classes for each frame. you can find the dataset used in the project in my google drive at the following link.

Process of Analysis ⚙️

The computer vision application used yolov8 to perform object detection, ByteTrack for tracking, and the latest python library from Roboflow - Supervision for object counting.

Results 📈

The end result is an .mp4 file that can detect different classes and count the number of objects entering and leaving a particular stretch of highway. This project can find several applications, such as monitoring certain particularly busy stretches, road safety, accident detection, parking management, and many others.

Resources 💎

The .mp4 video used to do detection and counting is called vehicle counting original and is available in my google drive at the following link, along with the code and the final .mp4 video obtained from the following project titled vehicle counting final result.

About

Traffic Detection and Count with yolov8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published