imgdedup

command module
v0.0.0-...-6bb422a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL