Skip to main content

NSFW Screen Detect

PyPi version

A small python package for detecting NSFW content on a Windows display.

Usage

This package does the following by default:

  1. Take a screenshot on all connected displays. You can take a screenshot of just the active window by passing input='active_window' to the check method. You can also pass in a Pillow image like so : input=Image
  2. Detect actual images from the screenshot. You can skip this by passing parse_images=False to the check method.
  3. Run skin detection. You can set the skin_threshold parameter to have NSFW checking skipped if an image contains very little skin.
  4. Use AI to detect how NSFW each image is. You can pass check_type='skin' to just get a skin color score.
  5. 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.

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)

Source distribution for nsfw-screen-detect 0.2.1
File Size Uploaded
nsfw_screen_detect-0.2.1.tar.gz 76.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nsfw-screen-detect 0.2.1
File Interpreter ABI Platform
nsfw_screen_detect-0.2.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page