mtcnn-runtime


Namemtcnn-runtime JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryPython library for streamlined tracking and management of AI training processes.
upload_time2023-12-12 07:46:47
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords machine learning
VCS
bugtrack_url
requirements opencv-python onnxruntime
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mtcnn-runtime

基于mtcnn和onnxruntime的轻量级人脸检测库,开箱即用,非常方便。
![cover](./imgs/Solvay_conference_1927_comp_mtcnn-result.jpg)

## 使用方式

### 安装方式

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

```shell
pip install mtcnn-runtime
```

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

### 运行方式

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

```py
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "mtcnn-runtime",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "machine learning",
    "author": "",
    "author_email": "Cunyue <cunykang@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4f/78/9894a0553b2828255c5388149d345d48091ba1c19ce6203f74d35fabf2a0/mtcnn_runtime-1.0.0.tar.gz",
    "platform": null,
    "description": "# mtcnn-runtime\n\n\u57fa\u4e8emtcnn\u548connxruntime\u7684\u8f7b\u91cf\u7ea7\u4eba\u8138\u68c0\u6d4b\u5e93\uff0c\u5f00\u7bb1\u5373\u7528\uff0c\u975e\u5e38\u65b9\u4fbf\u3002\n![cover](./imgs/Solvay_conference_1927_comp_mtcnn-result.jpg)\n\n## \u4f7f\u7528\u65b9\u5f0f\n\n### \u5b89\u88c5\u65b9\u5f0f\n\n\u5728\u7ec8\u7aef\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a\n\n```shell\npip install mtcnn-runtime\n```\n\n> \u672c\u9879\u76ee\u53ea\u9488\u5bf9python3.8\u4ee5\u4e0a\u7248\u672c\u8fdb\u884c\u7ef4\u62a4\n\n### \u8fd0\u884c\u65b9\u5f0f\n\n\u5b89\u88c5\u5b8c\u6bd5\u4ee5\u540e\uff0c\u53ef\u5728python\u4ee3\u7801\u4e2d\u52a0\u5165\u5982\u4e0b\u5185\u5bb9\u8fdb\u884c\u4f7f\u7528\uff1a\n\n```py\nimport cv2\nfrom mtcnnruntime import MTCNN, draw_faces\n\nmtcnn = MTCNN()\npath=\"\u4f60\u7684\u56fe\u50cf\u8def\u5f84\"\nimg = cv2.imread(path)\nboxes, landmarks = mtcnn.detect(img)\n\n# \u5e76\u4e14, \u4f60\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u65b9\u5f0f\u8fdb\u884c\u7ed8\u5236\nimg_show = draw_faces(img, boxes, landmarks)\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python library for streamlined tracking and management of AI training processes.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/SAKURA-CAT/mtcnn-runtime"
    },
    "split_keywords": [
        "machine",
        "learning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2a2c9ac8d01e2ee91d5396ec84632124acd7129efc3d2be03dab7ee9fd0e3ee",
                "md5": "cdfb8196c1a8bd296b069e129a8a5978",
                "sha256": "7e6923b9f48b4ae569eb6e1b234b20a42a7f3081797cb351c55db9d528a3f346"
            },
            "downloads": -1,
            "filename": "mtcnn_runtime-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cdfb8196c1a8bd296b069e129a8a5978",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1866231,
            "upload_time": "2023-12-12T07:46:44",
            "upload_time_iso_8601": "2023-12-12T07:46:44.878449Z",
            "url": "https://files.pythonhosted.org/packages/c2/a2/c9ac8d01e2ee91d5396ec84632124acd7129efc3d2be03dab7ee9fd0e3ee/mtcnn_runtime-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f789894a0553b2828255c5388149d345d48091ba1c19ce6203f74d35fabf2a0",
                "md5": "f8abb429249b21bc3951c681090a3e26",
                "sha256": "dc48d6566ff0229a028c5074f66989a17ed36ed5e41fe49c973925f8a5043d47"
            },
            "downloads": -1,
            "filename": "mtcnn_runtime-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f8abb429249b21bc3951c681090a3e26",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3280416,
            "upload_time": "2023-12-12T07:46:47",
            "upload_time_iso_8601": "2023-12-12T07:46:47.877843Z",
            "url": "https://files.pythonhosted.org/packages/4f/78/9894a0553b2828255c5388149d345d48091ba1c19ce6203f74d35fabf2a0/mtcnn_runtime-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-12 07:46:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SAKURA-CAT",
    "github_project": "mtcnn-runtime",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "opencv-python",
            "specs": []
        },
        {
            "name": "onnxruntime",
            "specs": []
        }
    ],
    "lcname": "mtcnn-runtime"
}
        
Elapsed time: 0.15276s