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

30 lines
729 B
Mathematica
Raw Normal View History

2016-06-14 23:55:16 +02:00
clear
if(isunix)
executable = '"..\..\../build/bin/FaceLandmarkImg"';
else
executable = '"..\..\../x64/Release/FaceLandmarkImg.exe"';
end
2016-06-14 23:55:16 +02:00
find_Bosphorus;
2016-06-14 23:55:16 +02:00
out_loc = 'E:\datasets\face_datasets_processed/bosph';
Bosphorus_dir = [Bosphorus_dir, 'BosphorusDB/BosphorusDB/'];
2016-06-14 23:55:16 +02:00
% Go two levels deep
bosph_dirs = dir([Bosphorus_dir, 'bs*']);
2016-06-14 23:55:16 +02:00
parfor f1=1:numel(bosph_dirs)
2016-06-14 23:55:16 +02:00
command = executable;
2016-06-14 23:55:16 +02:00
input_dir = [Bosphorus_dir, bosph_dirs(f1).name];
command = cat(2, command, [' -fdir "' input_dir '" -out_dir "' out_loc '"']);
command = cat(2, command, ' -multi_view 1 -wild -pdmparams -hogalign');
2016-06-14 23:55:16 +02:00
if(isunix)
unix(command, '-echo')
else
2016-06-14 23:55:16 +02:00
dos(command);
end
end