Home

Awesome

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.

<p align="center"> <a href="https://www.youtube.com/watch?v=c4LobbqeKZc" target="_blank"> <img src="https://raw.githubusercontent.com/andrewssobral/vehicle_detection_haarcascades/master/doc/images/vehicle_detection_haarcascades.png" border="0" /> </a> </p>

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

For Linux users

~/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
~/vehicle_detection_haarcascades/run_vehicle_detection_video1.sh
~/vehicle_detection_haarcascades/run_vehicle_detection_video2.sh

Docker image

Release Notes: