Single and Multi object Tracking
Object tracking is an application of computer vision where an object is detected in a video, otherwise interpreted as a set of frames, and the object’s trajectory is estimated.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
objectTrackingOpencv
|-- InputFiles
-- car_driving.mp4
-- chaplin.mp4
-- horse_riding.mp4
-- run.mp4
|-- SourceFolder
-- CentroidTracking.py
-- SingleObjectTracking.py
-- MultiObjectTracking.py
|-- README.MD
-- Engine.py
-- requirements.txt
- Python3.X
-
To activate Virtual Environment
-
First install Virtual Environment for python3 using this command in your terminal
pip install virtualenv -
Create a new Virtual Env
python3 -m venv task_env -
In the current working directory i.e objectTrackingOpencv, activate the virtualenv
source task_env/bin/activate
-
-
run this command in command line to install needed dependencies
pip install -r requirements.txt
You can download the GOTURN caffemodel and prototxt files located at: https://github.com/spmallick/goturn-files
- You need the goturn.caffemodel file and goturn protxtxt for running the goturn model - these must be downloaded from the above link and stored in the ML_Pipeline folder
- You need the res10_300x300_ssd_iter_140000.caffemodel and deploy.prototxt file for executing the CentroidTracking.py file - these must be present in the ML_Pipeline folder.
For concatenating the goturn model;
-
git clone
-
on unix
cd goturn-files
cat goturn.caffemodel.zip* > goturn.caffemodel.zip
unzip goturn.caffemodel.zip
- on windows
type goturn.caffemodel.zip* > goturn.caffemodel.zip
Extract the zip with any unzipping libra