mtcnn-runtime
基于mtcnn和onnxruntime的轻量级人脸检测库,开箱即用,非常方便。
使用方式
安装方式
在终端运行如下命令进行安装:
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mtcnn_runtime-1.0.0.tar.gz | 3.3 MB | Without provenance | Details for mtcnn_runtime-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mtcnn_runtime-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for mtcnn_runtime-1.0.0-py3-none-any.whl |
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
|
Security for mtcnn-runtime 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.