An AI powered nudity detection library
Project description
ifnude
ifnude is a neural net powered library that takes an input as input and tells you exactly what NSFW parts of the body are visible. It also allows you to censor the said parts.
Works on both on humans and drawings.
Installation
pip install --upgrade 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ifnude-0.0.1.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for ifnude-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3b834e5353e1a8cb253de677fe66f4a11b8accacff0c475d8fc60dbcf2f5613 |
|
MD5 | 6fe5df48589b61461d0133f90279f1a8 |
|
BLAKE2b-256 | f63b355f56af3d495af833429dfb5dcb1a34f9b9f7c3ec24a258a03619dcb254 |