Image Deduplicator

👤 mingo-318 📦 v1.0.0 ⭐ 4.2 ⬇️ 944 下载
📊 数据分析 免费

📖 技能介绍

Image Deduplicator

Find and remove duplicate or similar images in a folder using perceptual hashing. Use when user wants to clean up duplicate images, find near-duplicates, or deduplicate an image dataset.

Features

  • Exact Duplicates: Find images with identical content
  • Similar Images: Detect visually similar images (threshold configurable)
  • Hash-based: Fast MD5 hashing for exact duplicates
  • Perceptual Hash: pHash for finding similar images
  • Batch Processing: Process large image folders
  • Multiple Actions: List, delete, or move duplicates

Usage

# Find exact duplicates
python scripts/dedupe.py scan /path/to/images/

# Find similar images (90% similarity)
python scripts/dedupe.py scan /path/to/images/ --threshold 90

# Delete duplicates (keeps first occurrence)
python scripts/dedupe.py scan /path/to/images/ --action delete

# Move duplicates to a folder
python scripts/dedupe.py scan /path/to/images/ --action move --output /path/to/dupes/

Examples

$ python scripts/dedupe.py scan ./images/

Scanning images...
Found 150 images
Computing hashes...
Found 5 duplicate groups:

Group 1 (3 files):
  ./images/photo1.jpg
  ./images/photo1_copy.jpg
  ./images/photo1_final.jpg

Group 2 (2 files):
  ./images/screenshot.png
  ./images/screenshot (1).png

Total: 5 duplicate groups, 8 duplicate files

Installation

pip install pillow imagehash

Options

  • --threshold: Similarity threshold (0-100), default: 100 (exact)
  • --action: What to do with duplicates (list, delete, move)
  • --output: Output folder for --action move
  • --extensions: File extensions to scan (default: jpg,jpeg,png,bmp)

🤖 AI 评测

这是一款质量不错的图片去重工具,处理速度快,功能实用,文档说明详细。它的优势在于功能完整、使用灵活、安全性好,删除前会提示确认。不足之处是依赖额外的库,安装时需要手动安装依赖;另外只有命令行界面,对不熟悉命令行的用户不太友好。总体而言,是一款专业可靠的图片清理工具。

📊 多维度评分

适应性4
规范性4.1
有效性4.2
可靠性4.2
可信度4.3

📁 包含文件 (3 个)

📄 SKILL.md 1.6 KB
📄 _meta.json 137 B
📄 scripts/dedupe.py 6.3 KB

🔥 大家都在搜

wps 写作 pdf 苹果