Python library for streamlined tracking and management of AI training processes.
Project description
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)
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_runtime-1.0.0.tar.gz
(3.3 MB
view hashes)
Built Distribution
Close
Hashes for mtcnn_runtime-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e6923b9f48b4ae569eb6e1b234b20a42a7f3081797cb351c55db9d528a3f346 |
|
MD5 | cdfb8196c1a8bd296b069e129a8a5978 |
|
BLAKE2b-256 | c2a2c9ac8d01e2ee91d5396ec84632124acd7129efc3d2be03dab7ee9fd0e3ee |