Hello. I want to classify videos using several feature extraction.
I used HOG(histogram of oriented gradients), optical flow as feature extraction.
However, the accuracy of classification is not good. just 60% accuracy.
Could you give some ideas to improve accuracy?
This code is using HOG.
clear allclose all%// read the video:
list = dir('*.avi')% loop through the filenames in the list
for k = 1:length(list) reader = VideoReader(list(k).name); vid = {}; while hasFrame(reader) vid{end+1} = readFrame(reader); end for i=1:25 fIdx(i) = i; %// do it for frame 1 ~ 60
frameGray{i} = rgb2gray(vid{fIdx(i)}); [featureVector{i},hogVisualization{i}] = extractHOGFeatures(frameGray{i}); endend X = cell2mat(featureVector');
Best Answer