Giter Club home page Giter Club logo

pytracking's Introduction

pyTracking

This repo is a collection of trackers for Multi-Object Tracking by Detection.

Additionally, they are modified for purpose of online tracking, with results to be stored for downstream applications (e.g. analytics).

As such, it will differ from code provided by original authors as it is not intended for MOT challenge or other benchmarking format.

Install

pip install -r requirements.txt

Usage

from tracking.iou import IOUTracker
tracker = IOUTracker()

# update tracker with a list of detection objects
# this is performed at each frame 
tracker.track(detections)

# get list of active tracks 
tracks = tracker.get_tracks()

# get track as a dict
tracks[0].to_dict()

{'track_id': 'aab1fb',
 'box': array([659. , 450. , 757. , 735.6]),
 'score': 1.0,
 'status': 1,
 'frames': 99} 

Trackers

Original code for available trackers from source where cited. The trackers are modified for the purposes of this repo.

# High-Speed Tracking-by-Detection Without Using Image Information by E. Bochinski, V. Eiselein, T. Sikora
# http://elvera.nue.tu-berlin.de/files/1517Bochinski2017.pdf.

from tracking.iou import IOUTracker
tracker = IOUTracker()


# Simple online and real-time tracking by Bewley, et al. 
# http://arxiv.org/abs/1602.00763

from tracking.sort import SortTracker
tracker = SortTracker()

Sample image below (yellow denotes new track)

tracker comparison sample

LICENSE

MIT Licensed

pytracking's People

Contributors

twairball avatar

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.