Implementation of MTCNN using Pytorch.
Project description
The original work of this project is always belong to the original creator (https://github.com/TropComplique/mtcnn-pytorch). I just make this available on pypi for easy installation. To install this project just type pip install torch-mtcnn
MTCNN
pytorch
implementation of inference stage of face detection algorithm described in
Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks.
Example
How to use it
Install the package with pip: pip install torch-mtcnn
from torch_mtcnn import detect_faces
from PIL import Image
image = Image.open('image.jpg')
bounding_boxes, landmarks = detect_faces(image)
For a few more examples available on the original repository (link above).
Requirements
- pytorch 0.2
- Pillow, numpy
Credit
This implementation is heavily inspired by:
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
Built Distribution
File details
Details for the file torch-mtcnn-0.0.7.tar.gz
.
File metadata
- Download URL: torch-mtcnn-0.0.7.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e435e5cd0f07110801fadd7fe6f1d47825ae9f79353f74f2e6e764df2d527108
|
|
MD5 |
786a6d550243578d958b17f7df975b16
|
|
BLAKE2b-256 |
ec28c08c9674eae5742b84b783d2188a17513cdb05ce969d2aeffd11f0a36aeb
|
File details
Details for the file torch_mtcnn-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: torch_mtcnn-0.0.7-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1f19d528de763568f673a5261e18c22dbcdf043d6413ba968411a309f284b77e
|
|
MD5 |
81c0453dc168ed6b6cc5f0e52ed53d35
|
|
BLAKE2b-256 |
3e63406c2f22ff79269edefa82373f9dd3082a977fe03e6ccc2efc54100afc88
|