Skip to main content

High-performance cross-platform MTCNN face detection with CUDA and Apple Neural Engine support

Project description

pymtcnn

MTCNN face detection with CoreML (Apple Silicon) and CUDA support.

Installation

pip install pymtcnn

Usage

from pymtcnn import MTCNN

detector = MTCNN()  # auto-selects best backend
boxes, landmarks = detector.detect(image)

What it does

  • Detects faces and 5-point facial landmarks
  • Auto-selects backend: CoreML on Mac, CUDA on NVIDIA, CPU fallback
  • ~34 FPS on Apple Silicon, ~50 FPS on CUDA

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

pymtcnn-1.1.3.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

pymtcnn-1.1.3-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file pymtcnn-1.1.3.tar.gz.

File metadata

  • Download URL: pymtcnn-1.1.3.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymtcnn-1.1.3.tar.gz
Algorithm Hash digest
SHA256 0a63419fecd1e9e82ae01c10a9111a1da591ff106b8f5fc3c4b0fb2059b91b7e
MD5 d455657f1405eec86ae336c8069ba096
BLAKE2b-256 d00600259475274327c0e340b4528a4b9ac46d626dc55be05d65b79fc67ac5bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymtcnn-1.1.3.tar.gz:

Publisher: publish.yml on johnwilsoniv/pymtcnn

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

File details

Details for the file pymtcnn-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: pymtcnn-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymtcnn-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25cf3b814c9a2ad70cf7469fd42b945189ee789ffc4f02ca8d2a6237cf48f606
MD5 4e73556f200cf6400d1c790290622b98
BLAKE2b-256 5892d4e39f25d4ef9cf9efed7cf45e0f8efa40557fef9362f2511862f3d6b17e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymtcnn-1.1.3-py3-none-any.whl:

Publisher: publish.yml on johnwilsoniv/pymtcnn

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