Skip to main content

Pure Python OpenFace 2.2 AU extraction with CLNF landmark refinement

Project description

pyfaceau

Python implementation of OpenFace 2.2's Facial Action Unit extraction pipeline.

Installation

pip install pyfaceau

Usage

from pyfaceau import FaceAnalyzer

analyzer = FaceAnalyzer()
result = analyzer.analyze(image)

print(result.au_intensities)  # 17 action unit intensities
print(result.landmarks)       # 68 facial landmarks
print(result.pose)            # head pose

What it does

  • Extracts 17 facial action units (AU01, AU02, AU04, AU05, AU06, AU07, AU09, AU10, AU12, AU14, AU15, AU17, AU20, AU23, AU25, AU26, AU45)
  • Detects 68 facial landmarks via pyclnf
  • Estimates 3D head pose
  • No C++ compilation required

Citation

If you use this in research, please cite:

Wilson IV, J., Rosenberg, J., Gray, M. L., & Razavi, C. R. (2025). A split-face computer vision/machine learning assessment of facial paralysis using facial action units. Facial Plastic Surgery & Aesthetic Medicine. https://doi.org/10.1177/26893614251394382

License

CC BY-NC 4.0 — free for non-commercial use with attribution.

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

pyfaceau-1.3.4.tar.gz (141.9 kB view details)

Uploaded Source

File details

Details for the file pyfaceau-1.3.4.tar.gz.

File metadata

  • Download URL: pyfaceau-1.3.4.tar.gz
  • Upload date:
  • Size: 141.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfaceau-1.3.4.tar.gz
Algorithm Hash digest
SHA256 27085adf7400ffd9b7928fe0a1aab68aef059320c3487caa8c96f6ba10e4741a
MD5 6d81323caffa67be09ba4b8de0185aa6
BLAKE2b-256 3d544875a231069cb6bcd3c20ab81e1ddad52c4ebffc95544971f0d17cfb0bdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfaceau-1.3.4.tar.gz:

Publisher: publish.yml on johnwilsoniv/pyfaceau

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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