Coder Social home page Coder Social logo

xiaoerlaigeid / vehicle_detection_haarcascades Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewssobral/vehicle_detection_haarcascades

0.0 2.0 0.0 4.56 MB

Vehicle Detection by Haar Cascades with OpenCV

CMake 8.88% Batchfile 10.43% Shell 4.08% C++ 60.28% Python 16.32%

vehicle_detection_haarcascades's Introduction

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.

vehicle_detection_haarcascades's People

Contributors

andrewssobral avatar

Watchers

James Cloos avatar  avatar

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.