Skip to main content

Emotion expression capture from multiple modalities.

Project description

Multimodal Emotion Expression Capture Amsterdam

github license badge RSD read the docs badge fair-software badge workflow scq badge workflow scc badge build cffconvert markdown-link-check DOI docker hub badge docker build badge black code style badge

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: FaceExtractor
  • spe: SpeakerIdentifier
  • voi: VoiceExtractor
  • tra: AudioTranscriber
  • sen: 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):

The recipes/ folder contains two Python scripts that can easily be reused in a new project:

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.

[^1]: We explain the rationale for this setup in the Docker section.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mexca-1.0.4.tar.gz (64.4 kB view details)

Uploaded Source

Built Distribution

mexca-1.0.4-py3-none-any.whl (57.6 kB view details)

Uploaded Python 3

File details

Details for the file mexca-1.0.4.tar.gz.

File metadata

  • Download URL: mexca-1.0.4.tar.gz
  • Upload date:
  • Size: 64.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for mexca-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0bfea964b5ec9fdb1f324dbf7a3d244dac6c5969ed67dbcf368e571d81451854
MD5 89fb543d2c640d658ba77ad274223c82
BLAKE2b-256 e31afab7f71307e220dcda39f326e70ee1249788f0649ec1e67b561cb0d63d3b

See more details on using hashes here.

File details

Details for the file mexca-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: mexca-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 57.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for mexca-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4345935315c3a2db03ed73201915e371c89b5904fb5f42cf2a110e2496179ba5
MD5 a325e4d668327d6d25fd9dbee83264ad
BLAKE2b-256 b08f631e5f52ebd19a3c6249cfc76620af6a943dfcae552ffb764b75c5d28b8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page