Skip to main content

PainFace

Open-source Python framework for facial pain estimation via Action Units (AUs).

Research tool only — not a medical device.

Install

pip install painface

Quick Start

from painface import PainFace

pf = PainFace()

# Load an image
record = pf.load_image("face.jpg")

# Load a video and sample frames
meta   = pf.load_video("patient_video.mp4")
frames = pf.sample_frames(meta, target_fps=5)

print(f"Got {len(frames)} frames")

Current Version (v0.1.0)

  • Image loading
  • Video loading & frame sampling

More modules coming: face detection, landmarks, AU estimation, pain scoring.

Download files

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

Source Distribution

painfacenet-0.2.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

painfacenet-0.2.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file painfacenet-0.2.0.tar.gz.

File metadata

  • Download URL: painfacenet-0.2.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for painfacenet-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dc6d96a94b966792fe8c8256fe862f12311fe7999552d0c02e33b13597474320
MD5 ded0dbe0657096b582caec86cda1168f
BLAKE2b-256 3a727ab9949897d4a05c368c75308ee76c480a570010d30990a74e1acf1afca9

See more details on using hashes here.

File details

Details for the file painfacenet-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: painfacenet-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for painfacenet-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bc79e8f7c8f3280975f1e878f0c33705edd82e8ba7a7e888db004e65760d0c3
MD5 de17fca7e94259657ada0c8d7ff4f0ec
BLAKE2b-256 38573532e4eac500d4b5ae1cda65fb64b7d6ac27923a4e1073c5228252e4864f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

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