ifnude


Nameifnude JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/s0md3v/ifnude
SummaryAn AI powered nudity detection library
upload_time2023-06-18 22:35:03
maintainer
docs_urlNone
authorSomdev Sangwan
requires_python>=3.6.0
licenseGPLv3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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.

<img src="https://i.imgur.com/0KPJbl9.jpg" width=600>

### Installation
```bash
pip install ifnude
```

### Example
```python
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](https://pypi.org/project/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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/s0md3v/ifnude",
    "name": "ifnude",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Somdev Sangwan",
    "author_email": "s0md3v@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4c/02/895b4b9670b9ddfe6eb8afe19f9f804cb4d03c4b952f6c81bfd95716d015/ifnude-0.0.3.tar.gz",
    "platform": null,
    "description": "\n# ifnude\n\nIt 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.\n\n<img src=\"https://i.imgur.com/0KPJbl9.jpg\" width=600>\n\n### Installation\n```bash\npip install ifnude\n```\n\n### Example\n```python\nfrom ifnude import detect\n\n# use mode=\"fast\" for x3 speed with slightly lower accuracy\nprint(detect('/path/to/nsfw.png'))\n```\n\n#### Output\n```\n[{'box': [164, 188, 246, 271], 'score': 0.8253238201141357, 'label': 'EXPOSED_BREAST_F'}, {'box': [252, 190, 335, 270], 'score': 0.8235630989074707, 'label': 'EXPOSED_BREAST_F'}]\n```\n\n### Credits\nThis is fork of [NudeNet](https://pypi.org/project/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.\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "An AI powered nudity detection library",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/s0md3v/ifnude"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf33f574d30776de4729dc67be79b273cbd000ce37deb4b897331c0dd2a41096",
                "md5": "8c4c7c76ed3538e6759a8b277d2dd6e3",
                "sha256": "add0122d65dd1dad8232175426ca0cbe1c265a5fb7c341212648aef1bd17b9cb"
            },
            "downloads": -1,
            "filename": "ifnude-0.0.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c4c7c76ed3538e6759a8b277d2dd6e3",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6.0",
            "size": 7071,
            "upload_time": "2023-06-18T22:35:01",
            "upload_time_iso_8601": "2023-06-18T22:35:01.011473Z",
            "url": "https://files.pythonhosted.org/packages/cf/33/f574d30776de4729dc67be79b273cbd000ce37deb4b897331c0dd2a41096/ifnude-0.0.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4c02895b4b9670b9ddfe6eb8afe19f9f804cb4d03c4b952f6c81bfd95716d015",
                "md5": "a2dd51b6a67fb5c02ccc1c42d27c5e50",
                "sha256": "5d34c6a6d7a56d1de4882c33b56922ebd956bfb0a18a9606266baabbdf457e74"
            },
            "downloads": -1,
            "filename": "ifnude-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a2dd51b6a67fb5c02ccc1c42d27c5e50",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6.0",
            "size": 6915,
            "upload_time": "2023-06-18T22:35:03",
            "upload_time_iso_8601": "2023-06-18T22:35:03.014432Z",
            "url": "https://files.pythonhosted.org/packages/4c/02/895b4b9670b9ddfe6eb8afe19f9f804cb4d03c4b952f6c81bfd95716d015/ifnude-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-18 22:35:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "s0md3v",
    "github_project": "ifnude",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ifnude"
}
        
Elapsed time: 0.09434s