Can anyone help with classification with HOG descriptor using SVM in Matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to do classification in matlab using SVM. For the feature, I'm using HOG feature descriptor.
I have train the model called "trainedClassifier.mat".
The question is how to evaluate the SVM, like how to get the results using SVM. I am trying my model on a single image. Can some one guide me how to evaluate my model on a single image so that it show me the results. Here is the code:
% Read image.
img = imread('BS_Images/bag/1.jpg');
%Get HOG features
H = HOG(img);
% Load the pre-trained model.
load('trainedClassifier.mat');
% Display the image
hold off;
colormap gray;
imagesc(img)
I shall be very thankful for the kind act of consideration.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Recognition, Object Detection, and Semantic Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!