nicetoolbox.detectors.method_detectors.emotion_individual.py_feat

Py-feat method detector class.

Classes

PyFeat

The Python - Facial Expression Analysis Toolbox (Py-feat) is a method detector that computes emotion_individual component

class nicetoolbox.detectors.method_detectors.emotion_individual.py_feat.PyFeat(config, io, data)[source]

The Python - Facial Expression Analysis Toolbox (Py-feat) is a method detector that computes emotion_individual component

Component emotion_individual

Attributes: components (list): A list containing the name of the component: emotion_individual algorithm (st): Algorithm name used to compute the emotion_individual component. camera_names (list): A list of camera names used to capture original input data.

Initialize the PyFeat method detector with all inference preparation.

Parameters:
  • config (dict) – A dictionary containing the configuration settings for

  • detector. (the method) –

  • io (class) – An instance of the IO class for input-output operations.

  • data (class) – An instance of the Data class for accessing data.

post_inference()[source]

Post processing after inference.

visualization(data)[source]

Visualizes the processed frames of the pyfeat algorithm as a video.

Returns:

None

Raises:
  • AssertionError – If no frames are found for at least one camera or if

  • the number of frames per camera is not consistent.