Multimodal Emotion Expression Capture Amsterdam
mexca is an open-source Python package which aims to capture human emotion expressions from videos in a single pipeline.
Check out our preprint:
Lüken, M., Moodley, K., Viviani, E., Pipal, C., & Schumacher, G. (2024, January 18). MEXCA - A simple and robust pipeline for capturing emotion expressions in faces, vocalization, and speech. PsyArXiv. https://doi.org/10.31234/osf.io/56svb
How To Use Mexca
mexca implements the customizable yet easy-to-use Multimodal Emotion eXpression Capture Amsterdam (MEXCA) pipeline for extracting emotion expression features from videos. It contains building blocks that can be used to extract features for individual modalities (i.e., facial expressions, voice, and dialogue/spoken text). The blocks can also be integrated into a single pipeline to extract the features from all modalities at once. Next to extracting features, mexca can also identify the speakers shown in the video by clustering speaker and face representations. This allows users to compare emotion expressions across speakers, time, and contexts.
Please cite mexca if you use it for scientific or commercial purposes.
Installation
mexca can be installed on Windows, macOS and Linux. We recommend Windows 10, macOS 12.6.x, or Ubuntu. The base package can be installed from PyPI via pip:
pip install mexca
The dependencies for the additional components can be installed via:
pip install mexca[vid,spe,voi,tra,sen]
or:
pip install mexca[all]
The abbreviations indicate:
vid: FaceExtractorspe: SpeakerIdentifiervoi: VoiceExtractortra: AudioTranscribersen: SentimentExtractor
For details on the requirements and installation procedure, see the Quick Installation and Installation Details sections of our documentation.
Getting Started
If you would like to learn how to use mexca, take a look at our demo notebook and the Getting Started section of our documentation.
Examples and Recipes
In the examples/ folder, we currently provide two Jupyter notebooks (and a short demo):
- example_custom_pipeline_components shows how the standard MEXCA pipeline can be customized and extended
- example_emotion_feature_extraction shows how to apply the MEXCA pipeline to a video and conduct a basic analysis of the extracted features
The recipes/ folder contains two Python scripts that can easily be reused in a new project:
- recipe_postprocess_features applies a standard postprocessing routine to extracted features
- recipe_standard_pipeline applies the standard MEXCA pipeline to a list of videos
Components
The pipeline components are described here.
Documentation
The documentation of mexca can be found on Read the Docs.
Contributing
If you want to contribute to the development of mexca, have a look at the contribution guidelines.
License
The code is licensed under the Apache 2.0 License. This means that mexca can be used, modified and redistributed for free, even for commercial purposes.
Credits
Mexca is being developed by the Netherlands eScience Center in collaboration with the Hot Politics Lab at the University of Amsterdam.
This package was created with Cookiecutter and the NLeSC/python-template.
Metadata
Release files for mexca 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mexca-1.0.4.tar.gz | 64.4 kB | Without provenance | Details for mexca-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mexca-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for mexca-1.0.4-py3-none-any.whl |
Total release size: 122.0 kB
Release files / mexca-1.0.4.tar.gz
| Download URL | mexca-1.0.4.tar.gz |
|---|---|
| Size | 64.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bfea964b5ec9fdb1f324dbf7a3d244dac6c5969ed67dbcf368e571d81451854
|
|
BLAKE2b-256 checksum How to use checksums |
e31afab7f71307e220dcda39f326e70ee1249788f0649ec1e67b561cb0d63d3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / mexca-1.0.4-py3-none-any.whl
| Download URL | mexca-1.0.4-py3-none-any.whl |
|---|---|
| Size | 57.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4345935315c3a2db03ed73201915e371c89b5904fb5f42cf2a110e2496179ba5
|
|
BLAKE2b-256 checksum How to use checksums |
b08f631e5f52ebd19a3c6249cfc76620af6a943dfcae552ffb764b75c5d28b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Security for mexca 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.