HOG-Pedestrian-Detector-master
image 

所属分类:其他
开发工具:HTML
文件大小:1312KB
下载次数:0
上传日期:2020-04-03 04:57:41
上 传 者mosawi
说明:  image recognation using in matlab

文件列表:
LICENSE.md (35140, 2018-10-15)
PCA_reduction.m (1298, 2018-10-15)
compute_HOG.m (4707, 2018-10-15)
compute_cell_coordinates.m (2199, 2018-10-15)
compute_gradient.m (2047, 2018-10-15)
convert2gray.m (1140, 2018-10-15)
cross_validate.m (4437, 2018-10-15)
dataset (0, 2018-10-15)
docs (0, 2018-10-15)
docs\PCA_reduction.html (4869, 2018-10-15)
docs\alpha.png (273, 2018-10-15)
docs\c++.png (327, 2018-10-15)
docs\c.png (252, 2018-10-15)
docs\compute_HOG.html (11947, 2018-10-15)
docs\compute_cell_coordinates.html (7320, 2018-10-15)
docs\compute_gradient.html (6861, 2018-10-15)
docs\convert2gray.html (5279, 2018-10-15)
docs\cross_validate.html (10913, 2018-10-15)
docs\demoicon.gif (214, 2018-10-15)
docs\down.png (133, 2018-10-15)
docs\doxysearch.php (8286, 2018-10-15)
docs\draw_sliding_window.html (10509, 2018-10-15)
docs\fortran.png (265, 2018-10-15)
docs\get_feature_matrix.html (8710, 2018-10-15)
docs\get_files.html (8374, 2018-10-15)
docs\get_negative_windows.html (6447, 2018-10-15)
docs\get_params.html (6967, 2018-10-15)
docs\get_pyramid_dimensions.html (6326, 2018-10-15)
docs\get_pyramid_hogs.html (8173, 2018-10-15)
docs\get_scale_space_pyramid_images.html (11078, 2018-10-15)
docs\get_window.html (7479, 2018-10-15)
docs\hp.png (255, 2018-10-15)
docs\index.html (6577, 2018-10-15)
docs\left.png (136, 2018-10-15)
docs\linux.png (272, 2018-10-15)
docs\m2html.css (1188, 2018-10-15)
docs\matlabicon.gif (574, 2018-10-15)
... ...

# HOG-Pedestrian-Detector ![CRAN](https://img.shields.io/cran/l/devtools.svg) This repository contains the code for a MATLAB implementation of a basic HOG + SVM pedestrian detector form my Computer Science Master [thesis](https://upcommons.upc.edu/bitstream/handle/2099.1/21343/95066.pdf?sequence=1&isAllowed=y) ## 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](https://github.com/cjlin1/libsvm/tree/v322) >= 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](https://www.mathworks.com/help/matlab/ref/addpath.html) 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: ```matlab which -all svmtrain ``` Which should show something like: ``` ~/HOG-Pedestrian-Detector/libs/libsvm-3.22/matlab/svmtrain.mexa*** /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` ```matlab model = train_svm("test", ["./models", "dataset/Train/pos" "dataset/Train/neg"]); ``` ### Eval To evaluate the just trained model: ```matlab test_svm(model.test, ["dataset/Test/pos" "dataset/Test/neg"]); ``` Note `test_svm` expects `model.`... ### PCA versions of train / test ```matlab [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: ```matlab 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.

近期下载者

相关文件


收藏者