Skip to main content

MTCNN implementation using ONNXRuntime

Project description

ONNX MTCNN

Description

This project implements the MTCNN (Multi-task Cascaded Convolutional Networks) algorithm using ONNX (Open Neural Network Exchange) format. MTCNN is a popular face detection algorithm that consists of three stages: face detection, bounding box regression, and facial landmark localization. By using ONNX, we can leverage the benefits of interoperability and portability across different deep learning frameworks.

When you are going to use MTCNN to satisfy your face detection needs in your production environment, you can use this to get rid of the heavy Pytorch or Tensorflow dependency and instead opt for the lightweight ONNXruntime

Features

  • Face detection using MTCNN algorithm
  • Bounding box regression for accurate face localization
  • Facial landmark localization for detailed facial analysis

Installation

  1. Install the required dependencies: pip install MTCNN_ONNX

Usage

from mtcnn_onnx_simple import Align

align = Align()
image_path = "Image Path Here"
boxes, faces = align.get_aligned_faces(image_path)
# faces is an array of PIL Image Instances
for face in faces:
    face.show()

License

This project is licensed under the MIT License.

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

mtcnn_onnx_simple-0.4.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

mtcnn_onnx_simple-0.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file mtcnn_onnx_simple-0.4.tar.gz.

File metadata

  • Download URL: mtcnn_onnx_simple-0.4.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for mtcnn_onnx_simple-0.4.tar.gz
Algorithm Hash digest
SHA256 42337525e86df2ad13de00ed75b57f6a4a571ab1aeb5cc5dcf7e570428309b64
MD5 a50e0f7639b4f92ea1f07fffb9f75b8c
BLAKE2b-256 0c3d6c0a69ac38f22bc0f72b706958cbc930028fb570a8173e8da07b427dbf55

See more details on using hashes here.

File details

Details for the file mtcnn_onnx_simple-0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mtcnn_onnx_simple-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7d48684426e216e8f450ff26cf49e648577a82ce628c303a4ec4f7289d5c49f1
MD5 0c3fe88a146245034cccab01af77a5c5
BLAKE2b-256 3f6722c3b644e687330d22b322bf2b43b76c43eef7eb70aa9a8065e9fcbc7c7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page