Haar cascade for detecting vehicles and pedestrians in videos using Python and image processing to detect line lanes.
Clone the repository. Install all requirements using the following line.
pip install -r requirements.txt
Use the classifier by running the scr/main.py file using the default videos pedestrians and cars detection or lane detection. You can also specify the path to a specific video using the following line.
python src/main.py -v <path to video file>
Or you can import the classifier in your code by using:
from src.main import Classifier
classifier = Classifier(path_to_video_file)
classifier.detect()