change HOG cell size in trainCascadeObjectDetector
이전 댓글 표시
I am using trainCascadeObjectDetector to train a detector for small objects so the default HOG features with 8x8 cell size is too big, is there any way to use 4x4 or 2x2 cell size for underlying HOG feature? thanks,
답변 (1개)
Dima Lisin
2014년 6월 29일
편집: Dima Lisin
2014년 6월 29일
0 개 추천
Unfortunately, there is currently no way to do this. Is there any possibility for you to get higher resolution images? Or will there be enough detail if you up-sample the images?
Another possible alternative is to use the extractHOGFeatures function to compute the HOG features yourself. Then you could train a classifier (e. g. SVM) using the Statistics Toolbox. Take a look at this example of digit classification using HOG and SVM.
Another thought: a 2x2 cell seems really small for computing a 9-bin histogram. Training a HOG-SVM classifier for your objects might tell you whether it is feasible to detect them at all.
카테고리
도움말 센터 및 File Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!