Download yolo v4 weights from: https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights Place the downloaded file in the github downloaded folder in directory "model_data"
To install all the dependencies: pip install -r requirements.txt
To run: python main.py
-a: Diplaying Momentary Time to Contact without Acceleration (point 2 of research paper) Otherwise it will display with modeling of acceleration which is giving negative results (point 3 of research paper)
python main.py -a
-c: To use camera
python main.py -c
-r: To use time of 60 fps
To display TTC without acceleration using camera
Sequence doesn't matter
python main.py -c -a