You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pip install for OpenCV (version 3.4.3 or later) is available [here](https://pypi.org/project/opencv-python/) and can be done with the following command:
19
23
20
-
`pip install opencv-contrib-python`
24
+
```
25
+
pip install numpy matplotlib scipy
26
+
pip install opencv-contrib-python
27
+
```
21
28
22
-
## Run with YOLO
29
+
Installation of `ipyfilechooser` is recommended if you want to use the jupyter notebooks available in the ```examples``` folder.
30
+
```
31
+
pip install ipyfilechooser
32
+
```
23
33
24
-
1. Open the terminal
25
-
2. Go to `yolo_dir` in this repository: `cd ./yolo_dir`
The model and the config files will be downloaded in `./yolo_dir`. These will be used `tracking-yolo-model.ipynb`.
49
+
The above commands will download the model and the config files in `./pretrained_models/yolo_weights`.
50
+
These weights are to be used in `examples/tracking-yolo-model.ipynb`.
30
51
31
52
- The video input can be specified in the cell named `Initiate opencv video capture object` in the notebook.
32
53
- To make the source as the webcam, use `video_src=0` else provide the path of the video file (example: `video_src="/path/of/videofile.mp4"`).
33
54
34
-
Example video used in above demo: https://flic.kr/p/L6qyxj
55
+
Example video used in above demo was taken from [here](https://flic.kr/p/L6qyxj)
35
56
36
-
##Run with TensorFlow SSD model
57
+
### TensorFlow model
37
58
38
-
1. Open the terminal
39
-
2. Go to the tensorflow_model_dir: `cd ./tensorflow_model_dir`
40
-
3. Run: `sudo chmod +x ./get_ssd_model.sh`
41
-
4. Run: `./get_ssd_model.sh`
59
+
Do the following in the terminal:
60
+
```
61
+
cd ./pretrained_models/tensorflow_weights
62
+
sudo chmod +x ./get_ssd_model.sh
63
+
./get_ssd_model.sh
64
+
```
42
65
43
-
This will download model and config files in `./tensorflow_model_dir`. These will be used `tracking-tensorflow-ssd_mobilenet_v2_coco_2018_03_29.ipynb`.
66
+
This will download model and config files in `./pretrained_models/tensorflow_weights`.
67
+
These will be used `examples/tracking-tensorflow-ssd_mobilenet_v2_coco_2018_03_29.ipynb`.
44
68
45
69
**SSD-Mobilenet_v2_coco_2018_03_29** was used for this example.
46
70
Other networks can be downloaded and ran: Go through `tracking-tensorflow-ssd_mobilenet_v2_coco_2018_03_29.ipynb` for more details.
47
71
48
72
- The video input can be specified in the cell named `Initiate opencv video capture object` in the notebook.
49
73
- To make the source as the webcam, use `video_src=0` else provide the path of the video file (example: `video_src="/path/of/videofile.mp4"`).
50
74
51
-
Video used in SSD-Mobilenet multi-object detection and tracking: https://flic.kr/p/26WeEWy
75
+
Video used in SSD-Mobilenet multi-object detection and tracking can be found [here](https://flic.kr/p/89KYXt)
52
76
53
-
## Run with Caffemodel
54
-
- You have to use `tracking-caffe-model.ipynb`.
55
-
- The model for use is provided in the folder named `caffemodel_dir`.
56
-
- The video input can be specified in the cell named `Initiate opencv video capture object` in the notebook.
57
-
- To make the source as the webcam, use `video_src=0` else provide the path of the video file (example: `video_src="/path/of/videofile.mp4"`).
77
+
### Caffemodel
58
78
59
-
## References
79
+
Do the following in the terminal
80
+
```
81
+
cd ./pretrained_models/caffemodel_weights
82
+
sudo chmod +x ./get_caffemodel.sh
83
+
./get_caffemodel.sh
84
+
```
85
+
86
+
This will download model and config files in `./pretrained_models/caffemodel_weights`.
87
+
These will be used `examples/tracking-caffe-model-mobilenetSSD.ipynb`.
88
+
89
+
The caffemodel example provided here also uses MobileNet-SSD model for detection.
90
+
91
+
### References and Credits
60
92
This work is based on the following literature:
61
93
1. Bochinski, E., Eiselein, V., & Sikora, T. (2017, August). High-speed tracking-by-detection without using image information. In 2017 14th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS) (pp. 1-6). IEEE. [[paper-pdf](http://elvera.nue.tu-berlin.de/files/1517Bochinski2017.pdf)]
@@ -69,8 +101,7 @@ Use the caffemodel zoo from the reference [4,5] mentioned above to vary the CNN
69
101
70
102
***Suggestion**: If you are looking for speed go for SSD-mobilenet. If you are looking for accurracy and speed go with YOLO. The best way is to train and fine tune your models on your dataset. Although, Faster-RCNN gives more accurate object detections, you will have to compromise on the detection speed as it is slower as compared to YOLO.*
71
103
72
-
73
-
## Citation
104
+
### Citation
74
105
75
106
If you use this repository in your work, please consider citing it with:
0 commit comments