360 Secure SkillHub
360 安全技能中心

Nsfw Detector Pro

该 Skill 声明用计算机视觉与深度学习模型做多模态内容检测,可分析图像、视频和文本,输出 pornography、erotica、suggestive、safe 分类与 0-100% 置信度,并提供 strict/moderate/relaxed 三档敏感度、批量与实时处理、缓存及艺术/医疗过滤等配置。材料未提供模型权重、示例代码与年龄估计实现。

raghulpasupathi
raghulpasupathi
热度 25.46
最近更新 2026-07-16 22:09:39
分类:安全依赖:代码执行 / 读写文件应用场景:数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nsfw-detector-pro

NSFW Detector Pro

Metadata

  • ID: nsfw-detector-pro
  • Version: 1.0.0
  • Category: content-filtering
  • Priority: Critical
  • Installation: ClawHub
  • Package: @raghulpasupathi/nsfw-detector-pro

Description

Advanced NSFW (Not Safe For Work) content detection system using computer vision, deep learning models, and multi-modal analysis. Detects explicit content in images, videos, and text with high accuracy and configurable sensitivity levels.

Installation

Via ClawHub

https://clawhub.ai/raghulpasupathi/nsfw-detector-pro

Via npm

npm install @raghulpasupathi/nsfw-detector-pro

Features

  • Image Analysis: Detect nudity, sexual content, and explicit imagery
  • Video Analysis: Frame-by-frame and scene-level detection
  • Text Analysis: Identify sexual language and explicit descriptions
  • Multi-class Detection: Pornography, erotica, suggestive, safe categories
  • Confidence Scoring: 0-100% confidence for each classification
  • Custom Thresholds: Adjustable sensitivity per use case
  • Skin Tone Detection: Identify exposed skin regions accurately
  • Context Awareness: Distinguish artistic from explicit content
  • Real-time Processing: Fast inference for live content
  • Batch Processing: Efficient analysis of multiple items
  • Age Estimation: Detect potential underage content (refer to CSAM Shield)
  • Model Ensemble: Combines multiple models for better accuracy

Configuration

{
  "enabled": true,
  "settings": {
    "defaultSensitivity": "moderate",
    "sensitivities": {
      "strict": {
        "pornography": 0.15,
        "erotica": 0.25,
        "suggestive": 0.40,
        "blockThreshold": 0.15
      },
      "moderate": {
        "pornography": 0.40,
        "erotica": 0.60,
        "suggestive": 0.75,
        "blockThreshold": 0.40
      },
      "relaxed": {
        "pornography": 0.70,
        "erotica": 0.85,
        "suggestive": 0.90,
        "blockThreshold": 0.70
      }
    },
    "models": {
      "image": {
        "enabled": true,
        "model": "nsfw-resnet-50",
        "useGPU": true
      },
      "video": {
        "enabled": true,
        "fps": 2,
        "maxFrames": 30
      },
      "text": {
        "enabled": true,
        "model": "bert-nsfw-classifier"
      }
    },
    "processing": {
      "imageMaxSize": "4096x4096",
      "videoMaxDuration": 300,
      "batchSize": 32,
      "cacheResults": true,
      "cacheTTL": 86400
    },
    "advanced": {
      "skinDetection": true,
      "faceDetection": true,
      "contextAnalysis": true,
      "artFilter": true,
      "medicalFilter": true
    }
  }
}

API Examples

See nsfw-detector-pro-examples.js for complete usage examples.

Dependencies

  • @tensorflow/tfjs-node-gpu: ^4.0.0 - TensorFlow for GPU inference
  • sharp: ^0.32.0 - Image processing
  • opencv4nodejs: ^6.0.0 - Computer vision operations
  • ffmpeg-fluent: ^2.1.0 - Video processing
  • nsfw.js: ^3.0.0 - Pre-trained NSFW model

Performance

  • Image Analysis: 50-800ms depending on image size
  • Video Analysis: 3-6s for 30s video at 2fps
  • Text Analysis: 20-200ms depending on text length
  • Accuracy: 96% for pornography detection
  • False Positive Rate: 2-4%
  • False Negative Rate: 1-3%

Use Cases

  • Social media content moderation
  • Dating app photo verification
  • User-generated content platforms
  • Comment section filtering
  • Profile picture screening
  • Video streaming platforms
  • E-commerce listings
  • Community forums
  • Educational platforms
  • Corporate content filters

Best Practices

  1. Use appropriate sensitivity level for your use case
  2. Enable caching to reduce repeated analysis costs
  3. Use GPU acceleration for production workloads
  4. Implement appeal process for false positives
  5. Log all violations for audit trail
  6. Provide clear feedback to users on violations
  7. Enable art/medical filters if applicable
  8. Use batch processing for efficiency
  9. Monitor false positive/negative rates
  10. Regular model updates for improved accuracy
  11. Implement graceful degradation if service unavailable
  12. Consider user reputation/history in moderation decisions