Skip to content

Real Time Detection and Classification of Vehicles and Pedestrians Using Haar Cascade Classifier with Background Subtraction

License

Notifications You must be signed in to change notification settings

RahulK1998/Vehicle-And-Pedestrian-Detection-Using-Haar-Cascades

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle-And-Pedestrian-Detection-Using-Haar-Cascades

Real Time Detection and Classification of Vehicles and Pedestrians Using Haar Cascade Classifier with Background Subtraction

Computer Vision Plays a vital role in traffic management and surveillance systems and has been an active research area in the past years. In systems like these, the detection of vehicles and also classification of the vehicle plays a major role. The datasets are traffic videos of urban environment taken from various cities around the world which were used to train the classifier hence generating a robust classifier. The proposed approach is computationally less expensive with faster processing speed. The experiments on-road prove it to be a robust and real time algorithm which is highly competitive with the existing architecture.

This System has the following Haar Cascades:

  1. Haar Cascade for Car detection
  2. Haar Cascade for Bus Detection
  3. Haar Cascade for Two-Wheeler Detection
  4. Haar Cascade for Pedestrian Detection

The Results of the system are as shown below:

car

bus

pedestrian

two wheeler

Steps To Run The Project

System Requirements:


  1. Python 3.6 Or above
  2. Opencv-python -> Python 3.4+ comes with an easy installation tool called pip to install additional packages. (package manager)

    Successfull installation of above packages may be checked by moving into python shell and typing "import cv2" If nothing shows up then installation was successful. . We had used python 3.6.1 but any version higher than 3.6.1 will also do.


The Project Folders have 4 sub folders

1)Car

2)Two Wheeler

3)Bus

4)Pedestrian

In each of the subfolder there will be two videos ,one haarcascade ,two python scripts (one for each of the videos).

Due to file size constraint I wasn't able to upload all the videos. Please raise an issue if you need the videos and I'll send it ASAP.

If you want to create your own Haar Cascade refer this awesome tutorial: https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjE89XbrJDYAhWMp48KHXXnDWsQFggrMAA&url=https%3A%2F%2Fwww.cs.auckland.ac.nz%2F~m.rezaei%2FTutorials%2FCreating_a_Cascade_of_Haar-Like_Classifiers_Step_by_Step.pdf&usg=AOvVaw0BAeKbBkefnCykzazRxCol

Please Cite the following paper : http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8447818&isnumber=8447533

About

Real Time Detection and Classification of Vehicles and Pedestrians Using Haar Cascade Classifier with Background Subtraction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%