• Stars
    star
    518
  • Rank 85,414 (Top 2 %)
  • Language
    C++
  • Created over 8 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vehicle Detection by Haar Cascades with OpenCV

Vehicle Detection with Haar Cascades

Last page update: 19/10/2016

Last version: 1.0.0 (see Release Notes for more info)

Hello everyone, An easy way to perform vehicle detection is by using Haar Cascades. Currently, I don't have a detailed tutorial about it, but you can get some extra information in the OpenCV homepage, see Cascade Classifier page. See also Cascade Classifier Training for training your own cascade classifier.

The haar-cascade cars.xml was trained using 526 images of cars from the rear (360 x 240 pixels, no scale). The images were extracted from the Car dataset proposed by Brad Philip and Paul Updike taken of the freeways of southern California.

For more information, please see:

For Windows users

  • Check if your OpenCV is installed at: C:\OpenCV2.4.10
  • There is a Visual Studio 2013 template project in the vs2013/ folder. Open it in the Visual Studio IDE and select [Release]-[Win32] or [Release]-[x64] mode. Next, click on run_vehicle_detection.bat and enjoy!

For Linux users

  • For Linux and Mac users, a Makefile is provided to compile the source code.
    • Requirements: OpenCV 2.4.x (it only works with this version).
    • Check out the latest project source code and compile it:
~/git clone https://github.com/andrewssobral/vehicle_detection_haarcascades.git
~/cd vehicle_detection_haarcascades
~/vehicle_detection_haarcascades/ chmod +x run_vehicle_detection_video1.sh
~/vehicle_detection_haarcascades/ chmod +x run_vehicle_detection_video2.sh
~/vehicle_detection_haarcascades/cd build
~/vehicle_detection_haarcascades/build/ cmake ..
~/vehicle_detection_haarcascades/build/ make
    • Run demos:
~/vehicle_detection_haarcascades/run_vehicle_detection_video1.sh
~/vehicle_detection_haarcascades/run_vehicle_detection_video2.sh

Docker image

Release Notes:

  • Version 1.0.0: First version.

More Repositories

1

bgslibrary

A C++ Background Subtraction Library with wrappers for Python, MATLAB, Java and GUI on QT
C++
2,103
star
2

lrslibrary

Low-Rank and Sparse Tools for Background Modeling and Subtraction in Videos
MATLAB
775
star
3

simple_vehicle_counting

Vehicle Detection, Tracking and Counting
C++
486
star
4

mctc4bmi

Matrix and Tensor Completion for Background Model Initialization
MATLAB
96
star
5

mtt

MATLAB Tensor Tools
MATLAB
80
star
6

dtt

A C++ header-only for data transfer between linear algebra libraries (Eigen, Armadillo, OpenCV, ArrayFire, LibTorch).
C++
79
star
7

tensor_toolbox

MATLAB Tensor Toolbox (by Tamara Kolda)
MATLAB
35
star
8

imtsl

IMTSL - Incremental and Multi-feature Tensor Subspace Learning
MATLAB
33
star
9

godec

Python implementation of the GoDec algorithm from Zhou and Tao (ICML 2011) for low-rank and sparse representation
Python
32
star
10

ostd

Online Stochastic Tensor Decomposition for Background Subtraction in Multispectral Video Sequences
MATLAB
26
star
11

TDALAB

A MATLAB Toolbox for High-order Tensor Data Decompositions and Analysis
MATLAB
20
star
12

java_motion_detection

Motion Detection with Java + OpenCV + Webcam
Java
15
star
13

llama-webapp

Gradio Web Interface to Interact with LLaMA
Python
12
star
14

YALL1

YALL1: Your ALgorithms for L1
MATLAB
12
star
15

openai-whatsapp

OpenAI + Whatsapp = AI Assistant 🚀
TypeScript
9
star
16

poblano_toolbox

Poblano Toolbox (Sandia National Labs)
MATLAB
6
star
17

nway

N-way Toolbox for MATLAB (by Rasmus Bro)
MATLAB
6
star
18

manopt

A Matlab tool­box for opti­mization on manifolds (by Boumal and Mishra)
MATLAB
5
star
19

deep-learning-pytorch

PyTorch Deep Learning Models
Python
5
star
20

PROPACK

PROPACK toolbox (by Rasmus Larsen)
MATLAB
5
star
21

pyqt-node-editor-example

Python
3
star
22

bgslibrary-examples-cpp

BGS Library Example Projects
C++
3
star
23

andrewssobral.github.io

Andrews Sobral
CSS
3
star
24

redsvd

redsvd - RandomizED Singular Value Decomposition
C++
3
star
25

model_as_a_service

Machine Learning Model as a Service
Jupyter Notebook
2
star
26

docker

Docker files
Dockerfile
2
star
27

rsc

Robust Subspace Clustering algorithms
2
star
28

bgslibrary-examples-python

Python
1
star
29

rpi-raspbian

1
star
30

NVIDIA_Jetson_TX2_cpp

C++
1
star
31

NVIDIA_Jetson_TX2_Python

Python code for NVIDIA Jetson TX2
Python
1
star
32

Heuristic-Optimization-in-Python

Python
1
star
33

python_devops_template

Python DevOps Template
Makefile
1
star