Skip to content

Commit 702d22f

Browse files
committed
Update readme
1 parent 14e6ec7 commit 702d22f

File tree

7 files changed

+41
-7
lines changed

7 files changed

+41
-7
lines changed

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,32 @@ For using the opencv `dnn`-based object detection modules provided in this repos
5252
Please refer [examples](https://github.com/adipandas/multi-object-tracker/tree/master/examples) folder of this repository.
5353
You can clone and run the examples as shown [here](examples/readme.md).
5454

55+
The interface for each tracker is simple and similar.
56+
57+
```
58+
from mottrackers import CentroidTracker # IOUTracker, CentroidKF_Tracker, SORT
59+
60+
input_data = ...
61+
detector = ...
62+
tracker = CentroidTracker(...)
63+
64+
while True:
65+
done, image = <read(input_data)>
66+
if done:
67+
break
68+
69+
detection_bboxes, detection_confidences, detection_class_ids = detector.detect(image)
70+
71+
output_tracks = tracker.track(detection_bboxes, detection_confidences, detection_class_ids)
72+
73+
# `output_tracks` is a list with each element containing tuple of
74+
# (<frame>, <id>, <bb_left>, <bb_top>, <bb_width>, <bb_height>, <conf>, <x>, <y>, <z>)
75+
for track in output_tracks:
76+
frame, id, bb_left, bb_top, bb_width, bb_height, confidence, x, y, z = track
77+
assert len(track) == 10
78+
print(track)
79+
```
80+
5581
## Pretrained object detection models
5682

5783
You will have to download the pretrained weights for the neural-network models.
@@ -62,9 +88,9 @@ Please refer [DOWNLOAD_WEIGHTS.md](DOWNLOAD_WEIGHTS.md) for more details.
6288
* There are some variations in implementations as compared to what appeared in papers of `SORT` and `IoU Tracker`.
6389
* In case you find any bugs in the algorithm, I will be happy to accept your pull request or you can create an issue to point it out.
6490

65-
## References and Credits
91+
## References, Credits and Contributions
6692

67-
Please see [REFERENCES.md](REFERENCES.md).
93+
Please see [REFERENCES.md](docs/readme/REFERENCES.md) and [CONTRIBUTING.md](docs/readme/CONTRIBUTING.md).
6894

6995
## Citation
7096

File renamed without changes.
File renamed without changes.

REFERENCES.md renamed to docs/readme/REFERENCES.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ This work is based on the following literature:
99
2. Bewley, A., Ge, Z., Ott, L., Ramos, F., & Upcroft, B. (2016, September). Simple online and realtime tracking. In 2016 IEEE International Conference on Image Processing (ICIP) (pp. 3464-3468). IEEE. [[arxiv](https://arxiv.org/abs/1602.00763)]
1010
3. YOLOv3. [[pdf](https://pjreddie.com/media/files/papers/YOLOv3.pdf)][[website](https://pjreddie.com/darknet/yolo/)]
1111
4. Kalman Filter. [[wiki](https://en.wikipedia.org/wiki/Kalman_filter)]
12-
5. TensorFlow Object Detection API [[github](https://github.com/tensorflow/models/tree/master/research/object_detection)]
13-
6. Caffe [[website](https://caffe.berkeleyvision.org/)][[github](https://github.com/BVLC/caffe)]
12+
5. TensorFlow Object Detection API [[GitHub](https://github.com/tensorflow/models/tree/master/research/object_detection)]
13+
6. Caffe [[website](https://caffe.berkeleyvision.org/)][[GitHub](https://github.com/BVLC/caffe)]
14+
7. OpenCV. [[GitHub](https://github.com/opencv/opencv)] [[Website](https://opencv.org/)]

examples/example_scripts/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## How to use?
2+
3+
To see how to use these example scripts, simply type the following in the terminal:
4+
5+
```
6+
python3 <file-name.py> --help
7+
```

examples/motmetrics_eval/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### MOT Challenge file format
22

3-
[GitHub](https://github.com/adipandas/multi-object-tracker)
4-
[Home](https://adipandas.github.io/multi-object-tracker/)
3+
[[GitHub](https://github.com/adipandas/multi-object-tracker)]
4+
[[Home](https://adipandas.github.io/multi-object-tracker/)]
55

66
The file format should be the same as the ground truth file, which is a CSV text-file containing one object instance per line.
77

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
numpy
22
scipy
33
matplotlib
4-
pandas
54
opencv-contrib-python
5+
pandas
66
motmetrics
77
setuptools

0 commit comments

Comments
 (0)