- After downloading the attached zip file, unzip it to an arbitrary folder and install all required Python packages using (Python 3.5+ is required):

pip install -r requirements.txt

-- The applications were develop using the Ubuntu operating system, we did not test the applications on a Windows machine
-- Apart from downloading the OpenCV library with a pip manager, it is also possible to install OpenCV manually. A great tutorial is availabel on https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/


- To test our algorithms, use the "testing" parameter:

python3 run_general_alg.py -testing official_race.mp4

python3 run_color_alg.py -testing train_02.mp4


-- You can also test our algorithms without the testing paramater:

python3 run_general_alg.py -video ./data/video/official_race.mp4 -imgs ./data/imgs/official_race --flip

python3 run_color_alg.py -video ./data/video/train_02.mp4 -img_pick ./data/imgs/color_pick_train_02.jpg -resize 0.3 -rotate 1

python3 run_color_alg.py -video ./data/video/train_02.mp4 -rotate 1 -resize 0.3 -boundaries 136 0 93 156 39 115 6 131 196 26 171 216 -span 10 20 40


-- The rest of the testing videos can be downloaded from the following link. Please download and replace the whole "data" folder.

https://drive.google.com/drive/folders/1uIpxmXIPX6oyOU-pZJDJNW-N11uFh9qy?usp=sharing

-- We recorded our algorithm testing on YouTube, you can find all availabel videos in the following links

---General algorithm 
official_race.mp4: https://youtu.be/NolV8ZMEN6g
train_01.mp4:      https://youtu.be/jr_VvD6_qAw
train_02.mp4:      https://youtu.be/fFGdS2w7IGk
train_03.mp4:      https://youtu.be/rvmJkF6LRXc
train_04.mp4:      https://youtu.be/iRclMnIKJn0
train_05.mp4:      https://youtu.be/biWT0tM0dxU
train_06.mp4:      https://youtu.be/Ua7ZByuVYOk
train_07.mp4:      https://youtu.be/3zj9-mFfOUQ
train_08.mp4:      https://youtu.be/LJvt9inn5xI
train_09.mp4:      https://youtu.be/qYUvgfKnHqU
train_10.mp4:      https://youtu.be/pHNT1h9HcS4
train_11.mp4:      https://youtu.be/7ZPDBi8D9E4


---Color algorithm
train_02.mp4:      https://youtu.be/1Ze6Fe1gMPw
train_03.mp4:      https://youtu.be/mvzM2veLOa4
train_07.mp4:      https://youtu.be/mKym__IQLNs
train_10.mp4:      https://youtu.be/gbNh3ojF7t4


 
