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 | |
|---|---|---|---|
| ifnude-0.0.3.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ifnude-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
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
|