All Projects → ahmetozlu → Vehicle_counting_hog_svm

ahmetozlu / Vehicle_counting_hog_svm

Licence: mit
Vehicle detection, tracking and counting by SVM is trained with HOG features using OpenCV on c++.

Projects that are alternatives of or similar to Vehicle counting hog svm

Pedestrian detection
通过HOG+SVM训练进行行人检测,行人数据库使用INRIAPerson,程序基于OpenCV实现
Stars: ✭ 253 (+208.54%)
Mutual labels:  opencv, svm
Opencv Lane Vehicle Track
OpenCV implementation of lane and vehicle tracking
Stars: ✭ 162 (+97.56%)
Mutual labels:  opencv, vehicle-detection
Vehicle Detection Yolo Ver
real-time Vehicle Detection( tiny YOLO ver) and HOG+SVM method
Stars: ✭ 111 (+35.37%)
Mutual labels:  svm, vehicle-detection
Smart Surveillance System Using Raspberry Pi
This is my Third Year Project for face recognition using OpenCV
Stars: ✭ 41 (-50%)
Mutual labels:  opencv, svm
Vehicle Detection
Created vehicle detection pipeline with two approaches: (1) deep neural networks (YOLO framework) and (2) support vector machines ( OpenCV + HOG).
Stars: ✭ 462 (+463.41%)
Mutual labels:  svm, vehicle-detection
Simple vehicle counting
Vehicle Detection, Tracking and Counting
Stars: ✭ 439 (+435.37%)
Mutual labels:  opencv, vehicle-detection
Scene Text Recognition
Scene text detection and recognition based on Extremal Region(ER)
Stars: ✭ 146 (+78.05%)
Mutual labels:  opencv, svm
Vehicle detection haarcascades
Vehicle Detection by Haar Cascades with OpenCV
Stars: ✭ 445 (+442.68%)
Mutual labels:  opencv, vehicle-detection
Vehicle counting tensorflow
🚘 "MORE THAN VEHICLE COUNTING!" This project provides prediction for speed, color and size of the vehicles with TensorFlow Object Counting API.
Stars: ✭ 582 (+609.76%)
Mutual labels:  opencv, vehicle-detection
Vehicle Detection And Tracking
Udacity Self-Driving Car Engineer Nanodegree. Project: Vehicle Detection and Tracking
Stars: ✭ 60 (-26.83%)
Mutual labels:  opencv, svm
Imageminilab
opencv-python 应用
Stars: ✭ 68 (-17.07%)
Mutual labels:  opencv
Opencv Android Object Detection
This is sample code for object detection using OpenCV on android
Stars: ✭ 70 (-14.63%)
Mutual labels:  opencv
Pyscenedetect
🎥 Python and OpenCV-based scene cut/transition detection program & library.
Stars: ✭ 1,203 (+1367.07%)
Mutual labels:  opencv
Computervision Projects
Some simple computer vision implementations using OpenCV
Stars: ✭ 79 (-3.66%)
Mutual labels:  opencv
Faceai
一款入门级的人脸、视频、文字检测以及识别的项目.
Stars: ✭ 9,207 (+11128.05%)
Mutual labels:  opencv
Gru Svm
[ICMLC 2018] A Neural Network Architecture Combining Gated Recurrent Unit (GRU) and Support Vector Machine (SVM) for Intrusion Detection
Stars: ✭ 76 (-7.32%)
Mutual labels:  svm
Openframeworks
openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
Stars: ✭ 8,652 (+10451.22%)
Mutual labels:  opencv
Grid map
Universal grid map library for mobile robotic mapping
Stars: ✭ 1,135 (+1284.15%)
Mutual labels:  opencv
Build Deep Learning Env With Tensorflow Python Opencv
Tutorial on how to build your own research envirorment for Deep Learning with OpenCV, Python, Tensorfow
Stars: ✭ 66 (-19.51%)
Mutual labels:  opencv
Handy
Hand detection software built with OpenCV.
Stars: ✭ 81 (-1.22%)
Mutual labels:  opencv

Vehicle Detection, Tracking and Counting

This project focuses "Vehicle Detection" by Support Vector Machine(SVM) with Histogram Oriented Gradients(HOG) features. OpenCV library (version 3.0) was used for implementation.

Quick Demo

Moreover, this project has vehicle counting system, the accuracy is approximately 80% for now but developing of the accuracy is still in progress and this repository will be updated with higher accuracy rate soon.

Click to see another vehicle counting project which is developed with "Blob Detection" method.

Theory

What is SVM?

A Support Vector Machine (SVM) is a discriminative classifier formally defined by a separating hyperplane. In other words, given labeled training data (supervised learning), the algorithm outputs an optimal hyperplane which categorizes new examples.

What is HOG?

In the HOG feature descriptor, the distribution ( histograms ) of directions of gradients ( oriented gradients ) are used as features. Gradients ( x and y derivatives ) of an image are useful because the magnitude of gradients is large around edges and corners ( regions of abrupt intensity changes ) and we know that edges and corners pack in a lot more information about object shape than flat regions.

Project Demo

Installation

For Windows Users

  • Please, use CMAKE; Compiling with OpenCV 3.0 and Visual Studio 2013 from CMAKE Dependencies:
  • OpenCV 3.x (tested with OpenCV 3.0)
  • GIT (tested with git version 2.7.2.windows.1).
  • CMAKE for Windows (tested with cmake version 3.1.1).
  • Microsoft Visual Studio (tested with VS2013). Note: the procedure is similar for OpenCV 3.x and Visual Studio 2015.

Please follow the instructions below:

  1. ) Go to Windows console.

  2. ) Clone git repository:

     git clone --recursive https://github.com/ahmetozlu/vehicle_counting_hog_svm.git
    
  3. ) Go to vehicle_counting_hog_svm/build folder.

  4. ) Set your OpenCV PATH:

     set OpenCV_DIR=C:\OpenCV3.0\build
    
  5. ) Launch CMAKE:

     cmake -DOpenCV_DIR=%OpenCV_DIR% -G "Visual Studio 12 Win32" ..
    
  6. ) Include OpenCV binaries in the system path:

     set PATH=%PATH%;%OpenCV_DIR%\x86\vc12\bin
    
  7. ) Open the vehicle_counting_hog_svm.sln file in your Visual Studio and switch to 'DEBUG' mode

  8. ) Click on 'ALL_BUILD' project and build!

  9. ) If everything goes well, copy vehicle_counting_hog_svm.exe to vehicle_counting_hog_svm/ and run!

For Linux Users

For Linux and Mac users, a CMakefile is provided to compile the source code.

  • Check out the latest project source code and compile it:

    ~/git clone --recursive https://github.com/ahmetozlu/vehicle_counting_hog_svm.git
    ~/cd vehicle_counting_hog_svm
    ~/vehicle_counting_hog_svm/cd build
    ~/vehicle_counting_hog_svm/build/ cmake ..
    ~/vehicle_counting_hog_svm/build/ make
    
  • Run demo:

    ~/vehicle_counting_hog_svm/run_vehicle_counting_hog_svm.sh
    

Citation

If you use this code for your publications, please cite it as:

@ONLINE{vdtc,
    author = "Ahmet Özlü",
    title  = "Vehicle Detection, Tracking and Counting",
    year   = "2017",
    url    = "https://github.com/ahmetozlu/vehicle_counting_hog_svm"
}

Author

Ahmet Özlü

License

This system is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].