# lovoo/NSFWDetector

A NSFW (aka porn) detector with CoreML

Repository: https://github.com/lovoo/NSFWDetector
Canonical: https://ross.abutalabs.com/products/nsfwdetector
Language: Swift
License: BSD-3-Clause
License Family: permissive
Topics: coreml, swift, lovoo, ios, ios-library, cocoapods, machine-learning
Last push: 2024-08-29T13:35:18+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2941, "days_push": 734, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1676, forks 117 (observed 2026-08-28T04:05:20.541349+00:00)

## What it is
A tiny 17 kB CoreML model and Swift library that scans images for nudity/porn content, returning a confidence score. Distributed via CocoaPods/SPM or as a standalone MLModel file.

## Use cases
- detect nsfw images in an ios app
- filter pornographic user uploads
- content moderation for photos
- check images for nudity on device
- classify images as safe or explicit

## When to choose
- you need lightweight on-device NSFW detection for iOS/macOS
- app size matters more than maximum accuracy
- you want a simple Swift API with confidence thresholds

## When to avoid
- you need server-side or cross-platform detection
- you require state-of-the-art accuracy on edge cases
- your deployment targets below iOS 12

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, image-processing
- domain: machine-learning, image-processing, mobile-development
- platform: -
- tags: coreml, nsfw-detection, content-moderation, ios, swift, macos

## Member repositories
- lovoo/NSFWDetector (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.541349+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:26.878317+00:00, confidence not recorded.
  - readme: https://github.com/lovoo/NSFWDetector (fetched 2026-08-28T04:05:20.541349+00:00, sha 31685e0d4774)
- Data as of 2026-08-30T08:39:29.467469+00:00.
