NSFW Screen Detect
A small python package for detecting NSFW content on a Windows display.
Usage
This package does the following by default:
- Take a screenshot on all connected displays. You can take a screenshot of just the active window by passing
input='active_window'to thecheckmethod. You can also pass in a Pillow image like so :input=Image - Detect actual images from the screenshot. You can skip this by passing
parse_images=Falseto thecheckmethod. - Run skin detection. You can set the
skin_thresholdparameter to have NSFW checking skipped if an image contains very little skin. - Use AI to detect how NSFW each image is. You can pass
check_type='skin'to just get a skin color score. - Returns each analyzed picture along with its results.
Examples
# Import and initialize the main Checker class
from nsfw_screen_detect import Checker
checker = Checker()
# Run check on all monitors
results = checker.check()
# Run check on active window
results = checker.check(input='active_window')
# Run check for skin content
results = checker.check(check_type='skin')
# Run check without parsing real pictures from screenshot
results = checker.check(parse_images=False)
Big thanks to NudeNet for their AI model.
Metadata
Release files for nsfw-screen-detect 0.2.1
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 |
|---|---|---|---|---|
| nsfw_screen_detect-0.2.1.tar.gz | 76.7 MB | Without provenance | Details for nsfw_screen_detect-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nsfw_screen_detect-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for nsfw_screen_detect-0.2.1-py3-none-any.whl |
Total release size: 153.4 MB
Release files / nsfw_screen_detect-0.2.1.tar.gz
| Download URL | nsfw_screen_detect-0.2.1.tar.gz |
|---|---|
| Size | 76.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ba8fae48a3bf508e728b5d8c24236a03e9a1d9b4b3f73ee363f343dcdd9f9ff
|
|
BLAKE2b-256 checksum How to use checksums |
32a42a3501113eeaa3139ec6bab0dd1873065a02ea8e015874eb73733f8955ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / nsfw_screen_detect-0.2.1-py3-none-any.whl
| Download URL | nsfw_screen_detect-0.2.1-py3-none-any.whl |
|---|---|
| Size | 76.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25c0e1a3ddcec70c080802e331d2694b59d2517e55fcd57d524a9be6a0cf656c
|
|
BLAKE2b-256 checksum How to use checksums |
7214cdfa24dd56ae9d6881aa70ad2c422419d753ddb0a52a5f9b6241afb805a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for nsfw-screen-detect 0.2.1
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.