Skip to main content

# face-mask Wear face masks in the given picture.

## Install Install by pip: `bash pip install face-mask `

Or install locally (cd project root directory first): `bash python3 setup.py install `

## Usage Specify face picture path and then auto save to face with mask picture path (whose name with “-with-mask” suffix). `bash face-mask /path/to/face/picture `

If you want to see the new picture with default viewer, please specify –show option. `bash face-mask /path/to/face/picture --show `

If you want to wear different mask to face, then specify one of the options below: - –black for black mask - –blue for blue mask - –red for red mask

For instance: `bash face-mask /path/to/face/picture --blue `

In addition, you can specify different detection models by –model option: - hog is less accurate but faster on CPUs. - cnn is a more accurate deep-learning model which is GPU/CUDA accelerated (if available).

`bash face-mask /path/to/face/picture --model cnn `

## Effects ### One person wears a mask ![](images/face-mask-single.jpg)

### Many persons wear masks ![](images/face-mask-multi.jpg)

### Comic persons wear masks > Attention: Face recognition for comic face is not accurate enough.

![](images/face-mask-comic.jpg)

Metadata

Release files for face-mask 0.3.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 face-mask 0.3.0
File Size Uploaded Provenance Actions
face-mask-0.3.0.tar.gz 108.7 kB Without provenance Details for face-mask-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for face-mask 0.3.0
File Interpreter ABI Platform Actions
face_mask-0.3.0-py3-none-any.whl Python 3 none any Details for face_mask-0.3.0-py3-none-any.whl

Total release size: 216.3 kB

Release files / face-mask-0.3.0.tar.gz

Download URL face-mask-0.3.0.tar.gz
Size 108.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96c12a30b60f572eb3f4e5ac5991c8eb1de593f9ae2b572af0a046bb5c3db41a
BLAKE2b-256 checksum
How to use checksums
162a741ce35d67bd1b2ff3b3ac987f1ccf80e124cca6609873d1431784cb9295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3

Release files / face_mask-0.3.0-py3-none-any.whl

Download URL face_mask-0.3.0-py3-none-any.whl
Size 107.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfb309c0e3c4afec518b71e5bed7cee6790154e9c78e9537d3015d6efa87f5ed
BLAKE2b-256 checksum
How to use checksums
8416714ebe66a44cb5ef104cf3c4b33e36920d87c722be14add7a9fdade05b48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3

Security for face-mask 0.3.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.

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