2016-06-03 13:33:04 +00:00
|
|
|
|
2018-02-08 19:44:51 +00:00
|
|
|
if(isunix)
|
|
|
|
features_exe = '"../../../build/bin/FeatureExtraction"';
|
|
|
|
else
|
|
|
|
features_exe = '"../../../x64/Release/FeatureExtraction.exe"';
|
|
|
|
end
|
2016-06-03 13:33:04 +00:00
|
|
|
|
|
|
|
find_SEMAINE;
|
|
|
|
|
|
|
|
|
|
|
|
% Go two levels deep
|
|
|
|
semaine_dirs = train_recs;
|
2018-02-12 20:16:26 +00:00
|
|
|
output_dir = 'E:\datasets\face_datasets_processed\semaine\train';
|
2016-06-03 13:33:04 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2018-02-08 19:44:51 +00:00
|
|
|
input_file = [SEMAINE_dir, f1_dir, '/', vid_files(v).name];
|
2016-06-03 13:33:04 +00:00
|
|
|
|
2018-02-08 19:44:51 +00:00
|
|
|
command = sprintf('%s -f "%s" -out_dir "%s" -hogalign -pdmparams', features_exe, input_file, output_dir );
|
2016-06-03 13:33:04 +00:00
|
|
|
|
|
|
|
dos(command);
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
%%
|
|
|
|
semaine_dirs = devel_recs;
|
2018-02-12 20:16:26 +00:00
|
|
|
output_dir = 'E:\datasets\face_datasets_processed\semaine\devel';
|
2016-06-03 13:33:04 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2018-02-08 19:44:51 +00:00
|
|
|
input_file = [SEMAINE_dir, f1_dir, '/', vid_files(v).name];
|
2016-06-03 13:33:04 +00:00
|
|
|
|
2018-02-08 19:44:51 +00:00
|
|
|
command = sprintf('%s -f "%s" -out_dir "%s" -hogalign -pdmparams', features_exe, input_file, output_dir );
|
2016-06-03 13:33:04 +00:00
|
|
|
|
|
|
|
dos(command);
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|