/haar_vehicle_and_pedestrian_detection

Haar cascade for detecting vehicles and pedestrians in videos using Python

Primary LanguagePythonMIT LicenseMIT

haar_vehicle_and_pedestrian_detection

Haar cascade for detecting vehicles and pedestrians in videos using Python and image processing to detect line lanes.

Installation

Clone the repository. Install all requirements using the following line.

pip install -r requirements.txt

Usage

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()

Examples