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.4.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.4-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymtcnn-1.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 a7fe8c553a7bc2752d633a1bf53671b37efa076a7c1196ea270c0fadb170cc3a
MD5 37a4c102e4a42fffa9c26be3d780b7d7
BLAKE2b-256 db5a10be339b75b3212bcc2fd29ee1a6139da205ae7fd7897f639a8e8a5bc8ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymtcnn-1.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: pymtcnn-1.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aff9da60ab3d2362156f9166c25e68379127cd40e2b3804cc48871a935903051
MD5 5875fe47ca57ca9530e383319795e8a6
BLAKE2b-256 d6a7bb4830e4db62e68ae06bbfc0d8558970ed46cea48a97485594a5d875ab49

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymtcnn-1.1.4-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