This file can be used to analyze multiple videos in a specified root directory using the OpenFace software. The output is saved in an organized manner in a specified directory.
- Windows
- Python 3
- OpenFace should be downloaded and installed according to the installation wiki of OpenFace
- Download run_open_face.py
- Specify the root directory where all videos that should be analyzed are located using
-root [rootdir]. This can either be a folder containing just videos, or a folder with subdirectories containing the videos. - Specify where FeatureExtraction.exe from OpenFace is located using
-open [path] - Specify where the output should be saved using
-out [output directory] - Use the optional parameter
-suf [suffix]to specify which files will be analyzed. Example: with-suf face.mpgonly files that end with face.mpg are analyzed. If this parameter is omitted all files in rootdir are analyzed.
Example:
python C:\Downloads\run_open_face.py -root C:\workspaces\videos -open C:\OpenFace\OpenFace_2.0.5_win_x64\FeatureExtraction.exe -out C:\OpenFace\Output -suf face.mpg
For every video that is analyzed a folder is created in the specified output directory containing the outputs from the OpenFace software.