skillfed

nudenet

Lightweight Nudity Detection

nudenet v3.4.2 90.5K downloads/30d#13,583 on PyPI2,427
Permissive license MIT Active released

What it is and what it does

NudeNet is a Python library for detecting nudity and exposed body parts in images using ONNX-based neural networks. It wraps ultralytics YOLOv8 models (320n at 320x320 or 640m at 640x640 resolution) to classify image regions into categories like FEMALE_GENITALIA_EXPOSED, FACE_FEMALE, BELLY_EXPOSED, and others. The detector returns bounding boxes with confidence scores for each detected region.

The package is designed for content moderation workflows: you can scan individual images or batches, accept file paths or in-memory image objects (numpy arrays, bytes, or file handles), and optionally blur or censor detected regions. A Docker image is also provided for server-side deployment. The 320n model ships with the package by default; larger models can be downloaded separately.

Use it for:

  • Content moderation for user-generated image uploads on social platforms or forums.
  • Automated filtering of adult content in image galleries or search results.
  • Batch processing of large image datasets to identify and flag potentially sensitive material.
  • Client-side nudity detection in browser-based applications using the in-browser demo.
  • Building a censoring pipeline to blur or redact exposed regions before display or storage.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Detects nudity in images using lightweight ONNX models, returning bounding boxes and confidence scores for exposed or covered body parts, with optional image censoring.

Yes, if you need lightweight nudity detection. Low install friction, permissive MIT license, active maintenance, and no known vulnerabilities. The 320n model is included by default for quick setup. Trade-off: the maintainer is seeking contributors, so long-term feature development may be limited; verify accuracy on your specific image types before production deployment.

Install

nudenet on PyPI

pip

pip install nudenet

uv

uv add nudenet

poetry

poetry add nudenet

Installing nudenet

Before you install

Low friction: pure Python wheel with three runtime dependencies (numpy, onnxruntime, opencv-python-headless). Actively maintained as of June 2026, with 2427 GitHub stars. Maintainer is seeking contributors but the repo remains current.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.

Quickstart

pip install nudenet

from nudenet import NudeDetector
detector = NudeDetector()
detections = detector.detect('image.jpg')
print(detections)  # Returns list of dicts with 'class', 'score', 'box'

Requires Python 3.6 or later; onnxruntime and opencv-python-headless must be installed (handled by pip).

Verify before relying

  • Accuracy and false-positive rates across different image types and lighting conditions.
  • Performance characteristics (inference time, memory usage) on typical hardware.
  • Whether the 320n model is suitable for production use or if 640m is recommended for better accuracy.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6.0)
Install friction low — pure-Python wheel
Runtime dependencies 3 — numpy, onnxruntime, opencv-python-headless
Maintenance actively maintained — 772 days since the last release
Last repo commit
First released
Downloads 90,464/month — #13,583 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: nudenet-3.4.2-py3-none-any.whl

License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: Implementation :: CPython

Tags

nudity detection in imagesNSFW content detectionbody part classificationimage censoring automationlightweight object detectiononnx-based image analysisadult content filtering
content-moderationcomputer-visiononnx-inference

More Artificial Intelligence packages