Git Product home page Git Product logo

imgdup2go's Introduction

imgdup2go

Another command line visual (perceptual) image duplicate finder

Usage of ./imgdup2go:
  -algo string
    	algorithm for image hashing fmiq|avg|diff (default "avg")
  -dryrun
    	only print found matches
  -path string
    	the path to search the images (default ".")
  -sensitivity int
    	the sensitivity treshold (the lower, the better the match (can be negative)) - fmiq algorithm only
  -undo
    	restore removed duplicates

Upon running imgdup2go will create a duplicates directory where it will put the found duplicate files with an informative prefix, eg:

7563e__GONE__image1.jpg
7563e__KEPT__image92.jpg
f469b__GONE__image16.jpg
f469b__KEPT__image19.jpg

The initial hash pairs the files together, the KEPT files were copied from the initial directory while the GONE files were moved.

After inspecting the pairs, if you agree with what the tool found as duplicates you can just remove the duplicates folder; otherwise, move the specific GONE files back into the original directory, removing the prefix. To undo everything you can use the -undo flag.

The algorithms can be switched using -algo flag, in my test I found avg (default) to provide the best results.

For fmqi (Fast Multiresolution Image Querying) you can detect more loosely similar images by increasing the sensitivity, to make it even stricter you can go negative. Enjoy!

Install

You can find binaries here.

From source:

go get -u -v github.com/rif/imgdup2go

Credits

The heavy lifting is done by imgsim and duplo libraries. You can find more info on the hashing algorithms at the libraries home page.

A python version can be found here

WARNING

This tool moves and deletes files. Please make a backup of your image collection before using it!

imgdup2go's People

Contributors

rif avatar sarupbanskota avatar isptech avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.