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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymtcnn-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 32a122868d89d15100f9dfd4ef29e860c3ebb7b84f5b6f636206972573798009
MD5 b2866cc05006d5853caf2f856090fc3a
BLAKE2b-256 e10d05786097845229056fe20aa4f80cdade8ef9916e257213a2af9d08c2acd3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pymtcnn-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 019c576a7196df9e1f63cad382b1828567936ffa43bee5d3aca77fb2485d2d3b
MD5 efd242d6acb47ed7d9400dcad9e25a02
BLAKE2b-256 178cbe226970df2936668c1f159e9b88d297b772a9d432c75d56b0ed2a25410e

See more details on using hashes here.

Provenance

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