Giter VIP home page Giter VIP logo

hogclassifier's Introduction

HOGclassifier

A program that uses libSVM in order to classify HOG features for visual object detection. Currently I used it to detect cars, so you may also find the positive training data there. It is not the final version, so it may lack quality in detection.

Warning! This program is growing and shrinking without any prior notice. However, once my thesis is done, it will shrink in size so that it does only car detection with a monocular camera. Thanks for interest!

Usage

To run this code you will need some external dependencies, such as OpenMP and OpenCV. You can download those on respective websites. The app uses c++0x, so a modern compiler would also be of use.

To build this software you just need to:

cd ./build/`
cmake ..`
make`

After these actions you should find an executable in bin folder.

Currently (you may kick me for this) the pathes to training and test data are hardcoded. You may want to change this. If it looks nice afterwards I would be happy to accept the pull request.

The other thing is the purpose of use of this piece of software. I use it to detect cars with a bumblebee camera. Therefore I also analyze the depth of the car. You may safely skip it. All relevant code is found in ResultAnalyzer class.

WARNING - I only ran the software on Ubuntu 12.04 x64, so no guarantees that it will work on other systems what so ever.

Training Data

You may also find quite a bit of training data in the folder. The neg folder is empty, so will have to fill the negative set by yourself. Every image in neg_square has to be 128x128 and in neg_rect -> 128x64. I have around 8000 negative samples randomly sampled from bigger images with no cars present on them. This part is actualy crucial.

Credits

This program was inspired by @DaHoC and his code here - https://github.com/DaHoC/trainHOG. However, even though it started of as quite a clone in the end there is not so much left in common. Also refer to licences of the third party software used by me (such as OpencV and libSVM).

Licening

alt text

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Please see the copy of the licence here: http://www.gnu.org/licenses/.

Contact

You may always leave an issue on GitHub page of the project. Or contact me directly via [email protected]

The first method is preferable.

hogclassifier's People

Contributors

niosus avatar

Watchers

 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.