Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

sqwwwok/find-duplicate-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Duplicate Images

Introduction

Find duplicate images and move into the specific directory sorted by name.

  • All images
/demo
  a.jpg
  b.jpg
  c.jpg
  d.jpg
  e.jpg
  • After duplicate removal
/demo
  d.jpg

/twins
  a.jpg
  a_c.jpg
  b.jpg
  b_e.jpg

Usage

Python 3.6+

pip install imagededup

python src/main.py /all/images/dir /duplicate/images/dir 

Configuration

{
  // find duplicate images in specific order
  // 'PHash' | 'CNN'
  "find": ["PHash", "CNN"],
  "pick": {
    // pick images you want to remain
    "best": {
      // 'size' | 'date' | 'name'
      "indicator": "size",
      "biggest": true
    },
    // rename duplicate images
    // {base_img_name}({symbol}{index}){original_name}{extension}
    // e.g. bar.jpg -> foo($1)bar.jpg
    "secondary": {
      "symbol": "$",
      "with_ori_name": false
    },
    // auto remove duplicate images
    "auto_remove_secondary": false
  }
}

Reference

Image Deduplicator (imagededup)

About

find duplicate images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published