cosanlab/py-feat
Facial Expression Analysis Toolbox
What it solves
Py-FEAT provides a comprehensive toolkit for researchers to analyze facial expressions (FEX) from images and videos. It simplifies the process of extracting emotional states, muscle movements, and facial landmarks, which would otherwise require integrating multiple separate tools.
How it works
The library uses a Detectorv1 class to process visual data. It automatically downloads necessary model weights from the HuggingFace Hub and can run on CPU, NVIDIA GPUs (CUDA), or Apple Silicon (MPS). The suite handles the entire pipeline from face detection to the extraction of specific facial features and provides methods for preprocessing, analyzing, and visualizing the resulting data.
Who it’s for
It is primarily designed for researchers in the field of facial expression analysis and affective computing.
Highlights
- Extracts emotional expressions (e.g., happiness, sadness, anger).
- Detects facial muscle movements known as action units.
- Identifies facial landmarks.
- Supports hardware acceleration across CPU, CUDA, and Metal (MPS).
Related
- Project
- Project
- Project
- Dispatch
- Project