Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import os
- from glob import glob
- from tqdm import tqdm
- import subprocess
- exe_dir = "D:\\Desktop\\Affective Computing\\OpenFace_2.0.5_win_x64\\OpenFace_2.0.5_win_x64\\"
- file_dir = "D:\\Desktop\\Affective Computing\\Videos\\Videos\\"
- if __name__ == '__main__':
- command = [exe_dir+ "./FeatureExtraction" + (".exe" if os.name == "nt" else "")]
- for filename in tqdm(glob(os.path.join(file_dir, '*.webm'))):
- command.append('-f')
- command.append(filename)
- print(command)
- subprocess.call(command)
Add Comment
Please, Sign In to add comment