Swiftpack.co - Package - ShreshthSaxena/TrackSS


SORT based Tracker for real-time Object Tracking in Swift
for author's Python implementation check : https://github.com/abewley/sort


SORT is a barebones implementation of a visual multiple object tracking framework based on rudimentary data association and state estimation techniques. It is designed for online tracking applications where only past and current frames are available and the method produces object identities on the fly. While this minimalistic tracker doesn't handle occlusion or re-entering objects its purpose is to serve as a baseline and testbed for the development of future trackers.

SORT was initially described in this paper. At the time of the initial publication, SORT was ranked the best open source multiple object tracker on the MOT benchmark.

Dependency Credits:


To add package in your Xcode project do:

  • File -> Swift Packages -> Add Package Dependency
  • add url: https://github.com/ShreshthSaxena/TrackSS/ and choose version/tag 1.0.0


  • Create a Tracker object:

let T = TrackerSS()

  • Update tracker with detections on each timestep/frame:

for f in frames{
let res = T.update(dets: f)

  • Input parameter dets: Array<Array<Int>> is an array of detections in the format [[x1,y1,x2,y2],[x1,y1,x2,y2],...]

  • Output returned is a similar 2d-array appended with object ID in last column.

To do

  • make corrections/improvements as needed
  • Error handling
  • Add utility functions for Vision structs (CGRect/CGPoint)
  • Add support for Carthage and Cocoapods
  • Benchmark on MOT datasets


Stars: 2

Used By

Total: 0


1.0.0 - 2020-10-12 12:56:27

Sort based tracker in Swift

0.1.0 - 2020-09-24 08:34:20

initial test release