SVM-classification-detection (Python2.7)
HoG, PCA, PSO, Hard Negative Mining, Sliding Window, NMS
Best way to do detection is:
HoG(features) -> PCA(less features) + PSO(best C&gamma) -> origin SVM -> HNM(more features) -> better SVM -> SW -> NMS(bbox regression)
Sorry for my laziness.
I think I should clarify the steps for the program.
-
Extract HoG features (script 1)
-
Train an initial model for pso (script 2)
-
Do pca and pso for better parameters C and gamma (script 6)
-
Use no-pca features and the best parameters to train the second model (script 2)
-
In order to increase the accuracy, use the second model to do hnm and get the final model(script 7)
-
Finally, choose an algorithm you like to do location(script 8 or 9 or 10)
PS:
-
The reason I use pca is to accelerate the speed of pso. To be honestly, pso is really slow.
-
For step 4, you can also use features processed by pca, but I strongly advise you to hold as possible as more features. Because more features, higher accuracy.
中文地址:http://blog.csdn.net/renhanchi/article/category/7007663
强烈建议将6篇文章都仔细看一遍,再来跑代码,或者边看边跑。内容不是很多,但是会对你理解算法和代码有很大帮助。