py-feat icon indicating copy to clipboard operation
py-feat copied to clipboard

Importing data from OpenFace 2

Open joewilliams1124 opened this issue 2 years ago • 2 comments

Hi,

This is more of a feature enquiry than an issue.

Is it possible to import existing AU data extracted by OpenFace 2 for analysis with py-feat? I have a dataset from a study comparing film viewing experiences with different soundtracks for which we no longer have the video media, only these output files.

Thanks! Joe

joewilliams1124 avatar Sep 06 '23 11:09 joewilliams1124

Hi, I think it will be totally possible to do that. I am wondering given you have the AU data, you would be interested to use Py-Feat to do visualization and inference on the AU data resulting? Sorry we are just trying to figure out what you want from Py-Feat functionalities. Thanks!

TiankangXie avatar Sep 14 '23 01:09 TiankangXie

Hi @joewilliams1124, we definitely used to have this feature many years ago and I believe it still works.

Here is an example.

import os
from feat.data import Fex
from feat.utils.io import read_openface, get_test_data_path

filename = os.path.join(get_test_data_path(), "OpenFace_Test.csv")
openface = Fex(read_openface(filename), sampling_freq=30)

ljchang avatar Sep 19 '23 17:09 ljchang