Pure Python implementation of CLNF (Constrained Local Neural Fields) facial landmark detector
Project description
pyclnf
Pure Python implementation of OpenFace's CLNF (Constrained Local Neural Fields) facial landmark detector.
Installation
pip install pyclnf
Usage
from pyclnf import CLNF
clnf = CLNF()
landmarks, pose = clnf.fit(image) # 68 facial landmarks + head pose
For video, use clnf.fit() on consecutive frames—it automatically tracks faces across frames.
What it does
- Detects 68 facial landmarks
- Estimates 3D head pose (pitch, yaw, roll)
- Uses OpenFace's trained CEN patch experts
- Built-in face detection via pymtcnn
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyclnf-0.2.7.tar.gz.
File metadata
- Download URL: pyclnf-0.2.7.tar.gz
- Upload date:
- Size: 6.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6ed5c1848ca05f11b6d83a12dc9dd52285975d618b8ce887231c27acea0d8b4
|
|
| MD5 |
654332928815789af6651bab125d087a
|
|
| BLAKE2b-256 |
3eb43bf2bdb401b7aed4f0dd2a61459896aea5747458b5dc30ae2471ba872438
|
Provenance
The following attestation bundles were made for pyclnf-0.2.7.tar.gz:
Publisher:
publish.yml on johnwilsoniv/pyclnf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyclnf-0.2.7.tar.gz -
Subject digest:
f6ed5c1848ca05f11b6d83a12dc9dd52285975d618b8ce887231c27acea0d8b4 - Sigstore transparency entry: 779586599
- Sigstore integration time:
-
Permalink:
johnwilsoniv/pyclnf@9ddd14ea4b53857d74d7e75ef4f7e88fc5b15e74 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/johnwilsoniv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9ddd14ea4b53857d74d7e75ef4f7e88fc5b15e74 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyclnf-0.2.7-py3-none-any.whl.
File metadata
- Download URL: pyclnf-0.2.7-py3-none-any.whl
- Upload date:
- Size: 11.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f190520f3be936e986de7a8ac8fe898de9a91c546c75e392fae193187d15c094
|
|
| MD5 |
1cb1132ddcbc897f8ed1f388001f65d3
|
|
| BLAKE2b-256 |
5c8b0465c0088bbfb0e87ba78006fe1e4f9d46531731c9ace0dcaa7cf0f7a62a
|
Provenance
The following attestation bundles were made for pyclnf-0.2.7-py3-none-any.whl:
Publisher:
publish.yml on johnwilsoniv/pyclnf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyclnf-0.2.7-py3-none-any.whl -
Subject digest:
f190520f3be936e986de7a8ac8fe898de9a91c546c75e392fae193187d15c094 - Sigstore transparency entry: 779586600
- Sigstore integration time:
-
Permalink:
johnwilsoniv/pyclnf@9ddd14ea4b53857d74d7e75ef4f7e88fc5b15e74 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/johnwilsoniv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9ddd14ea4b53857d74d7e75ef4f7e88fc5b15e74 -
Trigger Event:
release
-
Statement type: