ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

image-duplication-detector

Detect image duplication and tampering in manuscript figures using computer vision algorithms

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/aipoch-ai/image-duplication-detector
Or

Image Duplication Detector

ID: 195

Description

Uses Computer Vision (CV) algorithms to scan all images in paper manuscripts to detect potential duplication or local tampering (PS traces).

Usage

# Scan single PDF file
python scripts/main.py --input paper.pdf --output report.json

# Scan image folder
python scripts/main.py --input ./images/ --output report.json

# Specify similarity threshold (default 0.85)
python scripts/main.py --input paper.pdf --threshold 0.90 --output report.json

# Enable tampering detection
python scripts/main.py --input paper.pdf --detect-tampering --output report.json

# Generate visualization report
python scripts/main.py --input paper.pdf --visualize --output report.json

Parameters

ParameterTypeDefaultRequiredDescription
--inputstring-YesInput PDF file or image folder path
--outputstringreport.jsonNoOutput report path
--thresholdfloat0.85NoSimilarity threshold (0-1), higher is stricter
--detect-tamperingflagfalseNoEnable tampering/PS trace detection
--visualizeflagfalseNoGenerate visualization comparison images
--temp-dirstring./tempNoTemporary file directory

Output Format

{
  "summary": {
    "total_images": 12,
    "duplicates_found": 2,
    "tampering_detected": 1,
    "processing_time": "3.5s"
  },
  "duplicates": [
    {
      "group_id": 1,
      "similarity": 0.98,
      "images": [
        {"page": 2, "index": 1, "path": "..."},
        {"page": 5, "index": 3, "path": "..."}
      ]
    }
  ],
  "tampering": [
    {
      "image": "page_3_img_2.png",
      "suspicious_regions": [
        {"x": 120, "y": 80, "width": 50, "height": 50, "confidence": 0.92}
      ]
    }
  ]
}

Requirements

opencv-python>=4.8.0
numpy>=1.24.0
Pillow>=10.0.0
PyPDF2>=3.0.0
pdf2image>=1.16.0
imagehash>=4.3.0
scikit-image>=0.21.0
matplotlib>=3.7.0

Algorithm Details

Duplication Detection

  • Perceptual Hashing: Uses pHash, dHash, aHash combination to detect visually similar images
  • Feature Matching: ORB feature point matching to verify similarity
  • SSIM: Structural similarity index as auxiliary verification

Tampering Detection

  • ELA (Error Level Analysis): Detects JPEG compression level inconsistencies
  • Noise Analysis: Noise pattern anomaly detection
  • Copy-Move Detection: Copy-move forgery detection
  • Lighting Inconsistency: Lighting consistency analysis

Example

from scripts.main import ImageDuplicationDetector

detector = ImageDuplicationDetector(
    threshold=0.85,
    detect_tampering=True
)

results = detector.scan("paper.pdf")
detector.save_report(results, "report.json")

Notes

Metadata

Author@aipoch-ai
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-aipoch-ai-image-duplication-detector": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.