Giter VIP home page Giter VIP logo

vehicle-and-pedestrian-detection-using-haar-cascades's Introduction

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

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

FULL TUTORIAL TO CREATE YOUR OWN HAAR CASCADE: https://www.youtube.com/watch?v=ydSXgBZ1ybk

UPDATE [7-12-2018] I've also built an UI for it in Tkinter: https://github.com/AdityaPai2398/UI-For-Vehicle-and-Pedestrian-Detection-/tree/master/Vehicle%20and%20pedestrain%20detection

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.

vehicle-and-pedestrian-detection-using-haar-cascades's People

Contributors

adityapai2398 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vehicle-and-pedestrian-detection-using-haar-cascades's Issues

error when call cv2.CascadeClassifier(pedestrian.xml)

following error reported:
cv2.error: OpenCV(4.4.0) /tmp/pip-req-build-civioau0/opencv/modules/core/src/persistence.cpp:717: error: (-49:Unknown error code -49) Input file is invalid in function 'open'

any comment about this?
thank you.

About positive and negative samples

Thank you for videos. Can you provide me your positive sample and negative samples? It will help me to make XML file. Can classifier file can be created in windows ?

Himal

automatic fork

i found this repo forked ,in my github , but i never forked it

Training

Did you convert your positive images to grayscale before training, or did you use the coloured images

人数统计

你好,人脸检测出来了,用什么方法可以统计有多少人吗

Video

Hi,
Can you provide me your video for bike and vehicle video file?
Himal

About positive and negative samples

Thank you for your response. I couldnt get idea on collecting positive samples. Can you provide downloadable link of your positive image dataset?

thank you once again

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.