Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mtcnn-tflite

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mtcnn-tflite

MTCNN face detection implementation in Tensorflow Lite.

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

MTCNN face recognition

Implementation of the MTCNN face detection algorithm. This project converted the code from ipazc/mtcnn to TF Lite.

Installation

You can install the package through pip:

pip install mtcnn-tflite

Quick start

Similar to the original implementation, the following example illustrates the ease of use of this package:

>>> from mtcnn_tflite.MTCNN import MTCNN
>>> import cv2
>>>
>>> img = cv2.cvtColor(cv2.imread("ivan.jpg"), cv2.COLOR_BGR2RGB)
>>> detector = MTCNN()
>>> detector.detect_faces(img)
[
    {
        'box': [276, 88, 51, 68],
        'confidence': 0.9989245533943176,
        'keypoints': {
            'left_eye': (291, 117),
            'right_eye': (314, 114),
            'nose': (303, 130),
            'mouth_left': (296, 143),
            'mouth_right': (314, 141)
        }
    }
]

Benchmark

Image sizeTF versionProcess time *
561x561TF2698ms
561x561This repository (TF Lite)445ms

* executed on a CPU: Intel i7-10510U

License

MIT License

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc