Tobias Ludwig
Start
ServicesWeb, Apps, Backend und KIPlanerBausteine wählen, Preis sofort sehenBranchen-DemosBeispielseiten für Handwerk, Praxis, GastroReferenzenKundenprojekte mit ErgebnisMatch-CheckPasst das Vorhaben zu mir?Über michWer hinter der Seite steht
ProjekteEigene Software und Open SourceProdukteFertige Apps und WerkzeugeFlutterPlugins und PaketeBlogNotizen aus der Praxis
ToolsKleine Helfer im BrowserTech-WikiWerkzeuge und Stacks, kurz erklärtShowcaseDemos, Shader, Inszenierungen
Support & HilfeHilfe zu laufenden ProjektenMein KontoTickets und Zugänge
Erstgespräch
Erstgespräch buchenKostenloser Kennenlern-CallKontakt schreibenNachricht per Formular
$whoami
Tobias Ludwig
DevOps · Application Manager · Software Engineer
$ls /pages
tobias-ludwig/projekte/kontakt/kalender/impressum/datenschutz/
$git remote
github.com/nexas105
online·next.js 16·hono·postgresql
© 2026 tjl·stay curious_
Ambient OFF
Weiter so… ↓↓ ← → ← → B A
/flutter/nsfw_detect/Active/v2.1.1

nsfw_detect

Privacy-friendly NSFW detection for Flutter apps, running fully on-device.

pub.devSource
$flutter pub add nsfw_detect
iosandroidnativeswiftflutter
flutter package

Snapshot

nsfw_detect

flutter pub add nsfw_detect

status

Active

version

v2.1.1

score

150/160

platforms

5
iosandroidnativeswiftflutter
Package öffnen
FeaturesDokuCode
01

Features

features.md
  • →On-device NSFW detection for Flutter apps
  • →Image, video, photo library, native picker, file, bytes, and camera scanning
  • →iOS support via Core ML and Vision
02

Dokumentation

README.md

Privacy-friendly NSFW detection for Flutter apps, running fully on-device.

Use nsfw_detect to scan images, videos, selected media, photo libraries, and camera frames locally with Core ML on iOS and TensorFlow Lite on Android.

Detection is probabilistic. Use it as a local moderation signal and one layer in a broader safety workflow.

Features On-device NSFW detection for Flutter apps Image, video, photo library, native picker, file, bytes, and camera scanning iOS support via Core ML and Vision Android support via TensorFlow Lite Stream-based scan results and progress updates Configurable confidence thresholds and model selection Classification categories: safe, suggestive, nudity, explicit nudity, unknown Optional detection mode with body-part bounding boxes Incremental scan cache for large media libraries Ready-to-use widgets and headless Dart APIs No telemetry or automatic media transmission by the plugin

03

Code-Beispiele

Installation
dependencies:
  nsfw_detect: ^2.1.1
Pub Get
flutter pub get
Import
import 'package:flutter/foundation.dart';
import 'package:nsfw_detect/nsfw_detect.dart';
Request Permission
final status = await NsfwDetector.instance.requestPermission();

if (status != PhotoLibraryPermissionStatus.authorized &&
    status != PhotoLibraryPermissionStatus.limited) {
  // Show your permission UI or fallback flow.
  return;
}
Start Scan
final session = await NsfwDetector.instance.startScan(
  const ScanConfiguration(
    confidenceThreshold: 0.75,
    includeVideos: true,
    maxVideoFrames: 8,
  ),
);
Listen to Results
session.results.listen((result) {
  if (result.isNsfw) {
    debugPrint(
      '${result.item.localIdentifier}: '
      '${result.topCategory.displayName} '
      '${(result.topConfidence * 100).toStringAsFixed(1)}%',
    );
  }
});
Track Progress
session.progress.listen((progress) {
  debugPrint('${progress.scannedCount}/${progress.totalCount}');
});
Await Completion
final summary = await session.done;
debugPrint('Scanned ${summary.totalScanned} items.');
Run Example App
git clone https://github.com/nexas105/flutter_nsfw_scaner.git
cd flutter_nsfw_scaner/example
flutter pub get
flutter run
pubspec.yaml
name:nsfw_detect
version:2.1.1
dart:>=3.0.0
license:MIT
score:150/160
links
pub.dev Source