Download the requirement.txt
from the repo.
Install all the requiremnets.
create a folder named video
in main folder and put the video file there.
- create a folder named
video
in main folder and put the video file there. - Navigate to code folder using
cd code
commands. - use
make all
or simplymake
to compile the codes. - First run
./ip
to initailise points on the video. Click the desired four points and press Enter. - use
./main <videoName> <MethodNum> <arg1> <arg2>
to run the code.<videoName>
should be given with extension.<arg1>
and<arg2>
depends on the parameters used in that method.<MethodNum>
ranges from 0 to 5.
0 stands for subtask 2 while 1-5 stands for corresponding methods.
./run.sh
for complete procedure. - use
make deleteData
to delete all the data and graph images. - use
make clean
to delete executables.
The data created by running all the methods will be available in analysis/data/
folder.
Utilities functions are available in ./analysis/utility/
folder.
- Various functions have been defined in ./analysis/utility/ folder.
-
compareTwoData.py
takes two argument data1 (used as base data) and data2 (data to be compared) and print RMS errors.
-
method4.py
takes data from all the threads of method4 and combines into one.
-
method5.py
takes data from all the threads of method5 and combines into one.
-
graph.py
makes queueDensity and DynamicDensity graph as a function of frame number for any data (takes argument).
-
method1_graph.py
,method2_graph.py
,method4_graph.py
ormethod5_graph.py
makes the corresponding tradeoff (runtime vs error) graphs.
-
utility.py
makes the main (comparing all the methods) tradeoff graph (runtime vs error).
-
- All the graphs made during the process are saved in this
./analysis/graphs/
folder. - All the data are saved in
./analysis/data/
folder.