From 151129130ea7ba9e357af861f563ca08bee29cf9 Mon Sep 17 00:00:00 2001 From: abewley Date: Thu, 4 Feb 2016 13:13:16 +1000 Subject: [PATCH] Update README.md Added example of how to use SORT in a custom project. --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b558615..9dd68c9 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ SORT A simple online and realtime tracking algorithm for 2D multiple object tracking in video sequences. -By Alex Bewley -DynamicDetection.com +By Alex Bewley +[DynamicDetection.com](http://www.dynamicdetection.com) ### Introduction @@ -79,3 +79,24 @@ Using the [MOT challenge devkit](https://motchallenge.net/devkit/) the method pr Venice-2 | 42.5 64.8 2.75| 26 7 9 10| 1650 4109 57 106| 18.6 73.4 19.3 KITTI-17 | 67.1 92.3 0.26| 9 1 8 0| 38 225 9 16| 60.2 72.3 61.3 *Overall* | 49.5 77.5 1.24|234 48 111 75| 3311 11660 274 499| 34.0 73.3 35.1 + + +### Using SORT in your own project + +Below is the gist of how to instantiate and update SORT. See the '__main__' section of sort.py for a complete example. + + from sort import * + + #create instance of SORT + mot_tracker = Sort() + + # get detections + ... + + # update SORT + track_bbs_ids = mot_tracker.update(detections) + + # track_bbs_ids is a np array where each row contains a valid bounding box and track_id (last column) + ... + +