"Not Another Driver" - Submission for TAMUHack 2022.
Not published yet: to be updated ASAP!
Clone this repo in the IDE of your choice using the origin link https://github.com/Video-Lab/NotAnotherDriver.git
Run the MAIN_FILE.py
file
You may get a module not found error while trying to run the file, this is because you don't have the required Python libraries installed.
Some common ones include:
pip install opencv-python
pip install -U scikit-learn
pip install uuid
Some sample videos to test different situations are located in the ./Sample_Videos/_
folder. For this, just change the name of the video file on line 54 to the desired file (followed by .mp4!)
For some reason, the exit button on the opencv window (the video itself) is unresponsive, so to quit the video just input CTRL+C
into your terminal.
After the video ends, the opencv window will quit and a matplotlib graph will display, which contains the change in area of the car in front over time. The higher the slope in an interval is, the more suddenly the driver braked.