Output example · Project notebook
- Install the necessary dependencies via pip:
pip install opencv-python
pip install numpy
pip install matplotlib
pip install sympy
- Download the MainCode.py file and import it into your IDE
- Download the "cars_good" car classifier XML file and save it to a specific path.
- Change the car classifier path in the MainCode.py file to the respective path.
- Download the test clips from youtube:
Straight clip: https://youtu.be/upYxrqMvYAM
Distracted clip: https://youtu.be/xejhEGlisRk
- Change the video path in the MainCode.py file to the respective path.
- Run the code!