Bringing the ICT-3DHP script up to date with the new interface

This commit is contained in:
Tadas Baltrusaitis 2017-11-14 07:46:01 +00:00
parent 32862c32f4
commit c7e13bce9e
2 changed files with 20 additions and 33 deletions

1
.gitignore vendored
View file

@ -53,3 +53,4 @@ matlab_version/face_validation/vlfeat-0.9.20/
matlab_version/face_validation/trained/intermediate/ matlab_version/face_validation/trained/intermediate/
lib/local/GazeAnalyser/x64/ lib/local/GazeAnalyser/x64/
lib/local/Utilities/x64/ lib/local/Utilities/x64/
exe/FeatureExtraction/processed/

View file

@ -11,29 +11,11 @@ end
output_dir = 'experiments/ict_out'; output_dir = 'experiments/ict_out';
dbSeqDir = dir([rootDir ictDir]); dbSeqDir = dir([rootDir ictDir]);
dbSeqDir = dbSeqDir(3:end);
output_dir = cat(2, output_dir, '/'); output_dir = cat(2, output_dir, '/');
numTogether = 10; command = sprintf('%s -inroot "%s" -outroot "%s" -fx 535 -fy 536 -cx 327 -cy 241 -pose -vis-track ', executable, rootDir, output_dir);
for i=3:numTogether:numel(dbSeqDir)
command = [executable ' -fx 535 -fy 536 -cx 327 -cy 241 -pose -vis-track '];
command = cat(2, command, [' -inroot ' '"' rootDir '/"']);
% deal with edge cases
if(numTogether + i > numel(dbSeqDir))
numTogether = numel(dbSeqDir) - i + 1;
end
for n=0:numTogether-1
inputFile = [ictDir dbSeqDir(i+n).name '/colour undist.avi'];
command = cat(2, command, [' -f "' inputFile '" -of "' output_dir '" ']);
end
if(verbose) if(verbose)
command = cat(2, command, [' -tracked ' outputVideo]); command = cat(2, command, [' -tracked ' outputVideo]);
@ -43,12 +25,16 @@ for i=3:numTogether:numel(dbSeqDir)
command = cat(2, command, [' -mloc "', varargin{find(strcmp('model', varargin))+1}, '"']); command = cat(2, command, [' -mloc "', varargin{find(strcmp('model', varargin))+1}, '"']);
end end
for i=1:numel(dbSeqDir)
inputFile = [ictDir dbSeqDir(i).name '/colour undist.avi'];
command = cat(2, command, [' -f "' inputFile '" -of "' dbSeqDir(i).name '" ']);
end
if(isunix) if(isunix)
unix(command, '-echo') unix(command, '-echo')
else else
dos(command); dos(command);
end end
end
end end