All Projects → jmrf → HOG-Pedestrian-Detector

jmrf / HOG-Pedestrian-Detector

Licence: GPL-3.0 License
MATLAB implementation of a basic HOG + SVM pedestrian detector.

Programming Languages

matlab
3953 projects
Smarty
1635 projects
PHP
23972 projects - #3 most used programming language
python
139335 projects - #7 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to HOG-Pedestrian-Detector

sign-language
Android application which uses feature extraction algorithms and machine learning (SVM) to recognise and translate static sign language gestures.
Stars: ✭ 35 (-18.6%)
Mutual labels:  svm, hog-features
Padestrian-Detection
Padestrian Detection in images using HOG Vector
Stars: ✭ 21 (-51.16%)
Mutual labels:  svm
info-retrieval
Information Retrieval in High Dimensional Data (class deliverables)
Stars: ✭ 33 (-23.26%)
Mutual labels:  svm
Bag-of-Visual-Words
🎒 Bag of Visual words (BoW) approach for object classification and detection in images together with SIFT feature extractor and SVM classifier.
Stars: ✭ 39 (-9.3%)
Mutual labels:  svm
SvmNest
a frame of amd-v svm nest
Stars: ✭ 47 (+9.3%)
Mutual labels:  svm
Handwritten-Digits-Classification-Using-KNN-Multiclass Perceptron-SVM
🏆 A Comparative Study on Handwritten Digits Recognition using Classifiers like K-Nearest Neighbours (K-NN), Multiclass Perceptron/Artificial Neural Network (ANN) and Support Vector Machine (SVM) discussing the pros and cons of each algorithm and providing the comparison results in terms of accuracy and efficiecy of each algorithm.
Stars: ✭ 42 (-2.33%)
Mutual labels:  svm
text-classification-cn
中文文本分类实践,基于搜狗新闻语料库,采用传统机器学习方法以及预训练模型等方法
Stars: ✭ 81 (+88.37%)
Mutual labels:  svm
Amazon-Fine-Food-Review
Machine learning algorithm such as KNN,Naive Bayes,Logistic Regression,SVM,Decision Trees,Random Forest,k means and Truncated SVD on amazon fine food review
Stars: ✭ 28 (-34.88%)
Mutual labels:  svm
SpeechEmoRec
Speech Emotion Recognition Using Deep Convolutional Neural Network and Discriminant Temporal Pyramid Matching
Stars: ✭ 44 (+2.33%)
Mutual labels:  svm
biovec
ProtVec can be used in protein interaction predictions, structure prediction, and protein data visualization.
Stars: ✭ 23 (-46.51%)
Mutual labels:  svm
svm
Support Vector Machine in Javascript
Stars: ✭ 31 (-27.91%)
Mutual labels:  svm
SentimentAnalysis
基于新浪微博数据的情感极性分析
Stars: ✭ 43 (+0%)
Mutual labels:  svm
SentimentAnalysis
(BOW, TF-IDF, Word2Vec, BERT) Word Embeddings + (SVM, Naive Bayes, Decision Tree, Random Forest) Base Classifiers + Pre-trained BERT on Tensorflow Hub + 1-D CNN and Bi-Directional LSTM on IMDB Movie Reviews Dataset
Stars: ✭ 40 (-6.98%)
Mutual labels:  svm
svm
Tutorial: Support Vector Machine from scratch using Python3
Stars: ✭ 32 (-25.58%)
Mutual labels:  svm
MachineLearning
机器学习教程,本教程包含基于numpy、sklearn与tensorflow机器学习,也会包含利用spark、flink加快模型训练等用法。本着能够较全的引导读者入门机器学习。
Stars: ✭ 23 (-46.51%)
Mutual labels:  svm
handson-ml
도서 "핸즈온 머신러닝"의 예제와 연습문제를 담은 주피터 노트북입니다.
Stars: ✭ 285 (+562.79%)
Mutual labels:  svm
pghumor
Is This a Joke? Humor Detection in Spanish Tweets
Stars: ✭ 48 (+11.63%)
Mutual labels:  svm
ml
经典机器学习算法的极简实现
Stars: ✭ 130 (+202.33%)
Mutual labels:  svm
Hyperspectral-image-target-detection-based-on-sparse-representation
Hyperspectral image Target Detection based on Sparse Representation
Stars: ✭ 52 (+20.93%)
Mutual labels:  svm
VisualML
Interactive Visual Machine Learning Demos.
Stars: ✭ 104 (+141.86%)
Mutual labels:  svm

HOG-Pedestrian-Detector

CRAN FOSSA Status stars forks

This repository contains the code for a MATLAB implementation of a basic HOG + SVM pedestrian detector form my Computer Science Master thesis

Disclaimer

If you are going to use this code, please read the LICENCE and keep in mind that I PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND.

I partially adapted this code-base to newer versions of MATLAB but is very likely you find discrepancies in how some MATLAB functions work. I am in general happy to help understanding the project if you ask nicely but since the implementation of the project is now several years old and MATLAB has evolved, some functions might behave differently and I won't be updating the project continuously nor answering about how to update the code to newer MATLAB versions.

Requirements

  • MATLAB >= R2017b
  • libsvm >= 3.22

Installation

Please refer to MATLAB and libsvm documentation to install.

Data

Run

The project was developed on a Windows machine and now being resurrected on a Linux one, so you should be good in any platform as long as you can run MATLAB.

Setting the environment

  1. Add the libs directory and all sub-directories to MATLABs path. Either through the command window or through the GUI.

  2. Make sure libsvm is visible to MATLAB. If you are not sure if your installation of libsvm went alright, you can check with:

which -all svmtrain

Which should show something like:

~/HOG-Pedestrian-Detector/libs/libsvm-3.22/matlab/svmtrain.mexa64
/usr/local/MATLAB/R2017b/toolbox/stats/stats/svmtrain.m                 % Shadowed

There are several entry points to the project, but here the two main ones are shown:

Train

Assuming there's a models directory where trained models will be saved and that the positive and negative images can be found in dataset/Test/pos and dataset/Test/neg respectively. Train an SVM model named test

model = train_svm("test", ["./models", "dataset/Train/pos" "dataset/Train/neg"]);

Eval

To evaluate the just trained model:

test_svm(model.test, ["dataset/Test/pos" "dataset/Test/neg"]);

Note test_svm expects model.<model-given-name-to-train-function>...

PCA versions of train / test

[model, Ureduce] = train_svm_PCA("test_pca", ["./models", "dataset/Train/pos" "dataset/Train/neg"]);
test_svm_PCA(model.test_pca, Ureduce, ["dataset/Test/pos", "dataset/Test/neg"]);

Known issues & contributions

Old MATLAB version used to concatenate strings by enclosing them between squared brackets but doesn't look like valid any longer. In that case you should use the strcat function. For example when constructing paths, so:

path = ['folder', 'filename', '.extension']  % this is wrong!
path = strcat('folder', 'filename', '.extension')  % this is right!

If you enjoyed this repository and find things that are not working any longer, you are very welcome to open a PR with fixes and I'll happily introduce them.

License

FOSSA Status

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].