NSFW Recog
This library is meant to detect and censor nsfw content in public media. Models can be found here, they are downloaded automatically and cached.
Installation
- install requirements.txt
- install pytorch according to your cuda version
- (optional) install onnxruntime-gpu to support cuda usage
Usage
Instantiate a NsfwDetector class and use the methods detect(), blur(), video() and camera(). The demos show the usage:
- demo_detect.py: Detecting body parts/objects in an image
- demo_camera.py: Live detecting objects in a webcam stream
- demo_video.py: Detecting objects in a video and draw bounding boxes and labels to a new video
- demo_blur.py: Detecting objects in an image and blurring them.
Metadata
Release files for nsfwrecog 1.0
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 |
|---|---|---|---|---|
| nsfwrecog-1.0.tar.gz | 8.4 kB | Without provenance | Details for nsfwrecog-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nsfwrecog-1.0-py3-none-any.whl | Python 3 | none | any | Details for nsfwrecog-1.0-py3-none-any.whl |
Total release size: 17.0 kB
Release files / nsfwrecog-1.0.tar.gz
| Download URL | nsfwrecog-1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
736bcd2152b33e1011b5ee13b67440b6d0112159e41369371caa59bb467da28f
|
|
BLAKE2b-256 checksum How to use checksums |
81e60a82e172482f23920bb087db3378fa1342ead6d9e5d7ef94812839e3d32d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / nsfwrecog-1.0-py3-none-any.whl
| Download URL | nsfwrecog-1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f64194d4feecbfaa6916f0446ccc41db793bac648bcab590669673c15c173bb4
|
|
BLAKE2b-256 checksum How to use checksums |
90be44fc482515f04155b9f7d4eba949bd82c462d7e9ddf6cf1859abfebd6b18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for nsfwrecog 1.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.