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