GithubHelp home page GithubHelp logo

sankalpvarshney / track-and-count-object-using-yolo Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 5 KB

Advanced Vehicle Tracking and Detection System using ByteTrack, Supervision, and YOLO Algorithms

Python 100.00%
bytetrack traffic-analysis traffic-management vehicle-counting vehicle-detection vehicle-tracking

track-and-count-object-using-yolo's Introduction

Tracking and counting of object using YOLO v8

This repository contains Python code for tracking vehicles (such as cars, buses, and bikes) as they enter and exit the road, thereby incrementing the counters for incoming and outgoing vehicles.

Installation

1. git clone https://github.com/sankalpvarshney/Track-And-Count-Object-using-YOLO.git
2. cd Track-And-Count-Object-using-YOLO
3. conda create --prefix ./env python=3.8 -y
4. conda activate ./env
5. pip install ultralytics
6. git clone https://github.com/ifzhang/ByteTrack.git
7. cd ByteTrack
8. sed -i 's/onnx==1.8.1/onnx==1.9.0/g' requirements.txt
9. pip install -q -r requirements.txt
10. python setup.py -q develop
11. pip install -q cython_bbox
12. pip install -q onemetric
13. pip install -q loguru lap
14. pip install numpy==1.22.4
15. pip install supervision==0.1.0

Usage

Firstly set the crossing line co-ordinates inside the code i.e yolov8tracker.py for the incoming and outgoing vehicles. And then execute the python code as mentioned below.

Linux

python yolov8tracker.py -i <input_video_path> -o <output_video_path>

Python

from yolov8tracker import TrackObject
obj = TrackObject(<input_video_path>,<output_video_path>)
obj.process_video()
CompressedTrafficLightObjectTracking.mp4

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

track-and-count-object-using-yolo's People

Contributors

sankalpvarshney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

track-and-count-object-using-yolo's Issues

losing tracker_id

Hi
I'm trying to use your code on my custom data
I have a problem with an object that is going behind a wall and coming back with a different tracker_id
How to configure it that this will not happen

I tried to configure the frozen class
image

but it didn't help

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.