ifnude
It is a nudity detection library that actually works, on both on humans and drawings.. It tells you exactly what NSFW parts of the body are visible. Optionally, you can censor the said parts.
Installation
pip install ifnude
Example
from ifnude import detect
# use mode="fast" for x3 speed with slightly lower accuracy
print(detect('/path/to/nsfw.png'))
Output
[{'box': [164, 188, 246, 271], 'score': 0.8253238201141357, 'label': 'EXPOSED_BREAST_F'}, {'box': [252, 190, 335, 270], 'score': 0.8235630989074707, 'label': 'EXPOSED_BREAST_F'}]
Credits
This is fork of NudeNet library which doesn't work anymore. I have taken the liberty to remove the video detection functionality as it was prone to crashes. It will be re-implemented in future.
Metadata
Release files for ifnude 0.0.3
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 |
|---|---|---|---|---|
| ifnude-0.0.3.tar.gz | 6.9 kB | Without provenance | Details for ifnude-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ifnude-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ifnude-0.0.3-py2.py3-none-any.whl |
Total release size: 14.0 kB
Release files / ifnude-0.0.3.tar.gz
| Download URL | ifnude-0.0.3.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d34c6a6d7a56d1de4882c33b56922ebd956bfb0a18a9606266baabbdf457e74
|
|
BLAKE2b-256 checksum How to use checksums |
4c02895b4b9670b9ddfe6eb8afe19f9f804cb4d03c4b952f6c81bfd95716d015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / ifnude-0.0.3-py2.py3-none-any.whl
| Download URL | ifnude-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
add0122d65dd1dad8232175426ca0cbe1c265a5fb7c341212648aef1bd17b9cb
|
|
BLAKE2b-256 checksum How to use checksums |
cf33f574d30776de4729dc67be79b273cbd000ce37deb4b897331c0dd2a41096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for ifnude 0.0.3
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.