Skip to main content

mtcnn-runtime

基于mtcnn和onnxruntime的轻量级人脸检测库,开箱即用,非常方便。 cover

使用方式

安装方式

在终端运行如下命令进行安装:

pip install mtcnn-runtime

本项目只针对python3.8以上版本进行维护

运行方式

安装完毕以后,可在python代码中加入如下内容进行使用:

import cv2
from mtcnnruntime import MTCNN, draw_faces

mtcnn = MTCNN()
path="你的图像路径"
img = cv2.imread(path)
boxes, landmarks = mtcnn.detect(img)

# 并且, 你可以使用如下方式进行绘制
img_show = draw_faces(img, boxes, landmarks)

Metadata

Release files for mtcnn-runtime 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtcnn-runtime 1.0.0
File Size Uploaded
mtcnn_runtime-1.0.0.tar.gz 3.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mtcnn-runtime 1.0.0
File Interpreter ABI Platform
mtcnn_runtime-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 MB

Release files / mtcnn_runtime-1.0.0.tar.gz

Download URL mtcnn_runtime-1.0.0.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
dc48d6566ff0229a028c5074f66989a17ed36ed5e41fe49c973925f8a5043d47
BLAKE2b-256 checksum
How to use checksums
4f789894a0553b2828255c5388149d345d48091ba1c19ce6203f74d35fabf2a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / mtcnn_runtime-1.0.0-py3-none-any.whl

Download URL mtcnn_runtime-1.0.0-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7e6923b9f48b4ae569eb6e1b234b20a42a7f3081797cb351c55db9d528a3f346
BLAKE2b-256 checksum
How to use checksums
c2a2c9ac8d01e2ee91d5396ec84632124acd7129efc3d2be03dab7ee9fd0e3ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page