Skip to content

Erdk/imgdedup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgdedup

Go Report Card

Introduction

Simple program which scans directory with images (jpg, png) and computes their histograms. Next compares their Manhattan distance and shows pairs which distance falls below treshold, indicating potential duplicates.

How to build?

$ git clone https://github.com/Erdk/imgdedup && cd imgdedup
$ go build .

How to use?

$ ./imgdedup -d $DIR [-v] [-t $NUM] [-d $DISTANCE_FUNCTION]
  • -d

    directory with images to check, required

  • -v

    verbose output

  • -e $NUM

    set tolerance to $NUM, distance below this value indicates that images are similar, default: 100000

  • -t $DISTANCE_FUNCTION

    set distance function to one of the following:

    • manhattan (default),
    • chisquare,
    • correlation,
    • intersection,
    • bhattacharyya
  • -p

    basic profiling support

TODO

  • More comparison algorithms than Manhatan,
  • Instead of relying on hardcoded distance threshold allow to provide one,
  • Tests,
  • Http frontend,
  • Recursively search directory,
  • Allow specyfying multiple directories

About

Show possible duplicates of photos/images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages