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.3.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

mtcnn_onnx_simple-0.3-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

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