sustaining_gazes/matlab_version/AU_training/data extraction/extract_features_SEMAINE.m

56 lines
1.3 KiB
Mathematica
Raw Permalink Normal View History

if(isunix)
features_exe = '"../../../build/bin/FeatureExtraction"';
else
features_exe = '"../../../x64/Release/FeatureExtraction.exe"';
end
find_SEMAINE;
% Go two levels deep
semaine_dirs = train_recs;
output_dir = 'E:\datasets\face_datasets_processed\semaine\train';
parfor f1=1:numel(semaine_dirs)
if(isdir([SEMAINE_dir, semaine_dirs{f1}]))
vid_files = dir([SEMAINE_dir, semaine_dirs{f1}, '/*.avi']);
f1_dir = semaine_dirs{f1};
for v=1:numel(vid_files)
input_file = [SEMAINE_dir, f1_dir, '/', vid_files(v).name];
command = sprintf('%s -f "%s" -out_dir "%s" -hogalign -pdmparams -of %s', features_exe, input_file, output_dir, f1_dir );
dos(command);
end
end
end
%%
semaine_dirs = devel_recs;
output_dir = 'E:\datasets\face_datasets_processed\semaine\devel';
parfor f1=1:numel(semaine_dirs)
if(isdir([SEMAINE_dir, semaine_dirs{f1}]))
vid_files = dir([SEMAINE_dir, semaine_dirs{f1}, '/*.avi']);
f1_dir = semaine_dirs{f1};
for v=1:numel(vid_files)
input_file = [SEMAINE_dir, f1_dir, '/', vid_files(v).name];
command = sprintf('%s -f "%s" -out_dir "%s" -hogalign -pdmparams -of %s', features_exe, input_file, output_dir, f1_dir );
dos(command);
end
end
end