From 423886e85ce049cc53ff6693a9baf9e4a40f22b2 Mon Sep 17 00:00:00 2001 From: Yonghye Kwon Date: Sun, 26 Dec 2021 00:40:46 +0900 Subject: [PATCH] Apply python style to code example for more beautiful README --- README.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 4d2b997..1f95d3b 100644 --- a/README.md +++ b/README.md @@ -85,19 +85,21 @@ Using the [MOT challenge devkit](https://motchallenge.net/devkit/) the method pr ### Using SORT in your own project Below is the gist of how to instantiate and update SORT. See the ['__main__'](https://github.com/abewley/sort/blob/master/sort.py#L239) section of [sort.py](https://github.com/abewley/sort/blob/master/sort.py#L239) 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) - ... +```python +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) +... +```