Guest User

Untitled

a guest
Feb 15th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import os
  3. from glob import glob
  4. from tqdm import tqdm
  5. import subprocess
  6.  
  7.  
  8. exe_dir = "D:\\Desktop\\Affective Computing\\OpenFace_2.0.5_win_x64\\OpenFace_2.0.5_win_x64\\"
  9.  
  10. file_dir = "D:\\Desktop\\Affective Computing\\Videos\\Videos\\"
  11.  
  12. if __name__ == '__main__':
  13. command = [exe_dir+ "./FeatureExtraction" + (".exe" if os.name == "nt" else "")]
  14. for filename in tqdm(glob(os.path.join(file_dir, '*.webm'))):
  15. command.append('-f')
  16. command.append(filename)
  17. print(command)
  18. subprocess.call(command)
Add Comment
Please, Sign In to add comment