GithubHelp home page GithubHelp logo

nikvoronin / we-aint-same Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 13 KB

Let's find out duplicate images with Perceptual Hashing algorithms

License: MIT License

C# 100.00%
csharp dotnet image-duplicate-detection image-processing imagesharp perceptual-hash perceptual-hashing perceptual-hashes

we-aint-same's Introduction

We Ain't Same

Let's find out duplicate images with Perceptual Hashing algorithms.

  • Calculate perceptual hashes using ImageHash library.
  • Store and restore precalculated hashes.
  • Recursive seeking of image files.
  • Detect duplicates.
  • Organize images into the groups of duplicates.

Example

samples002

Output log:

+++ Computing hashes...
+ C:\Users\Pictures\Samples\Pictures\bing20221129.jpg
+ C:\Users\Pictures\Samples\Pictures\fireworks.jpg
+ C:\Users\Pictures\Samples\Pictures\mars.jpg
+ C:\Users\Pictures\Samples\Pictures\mount-copy.jpg
+ C:\Users\Pictures\Samples\Pictures\mount-rotated-2degree.jpg
+ C:\Users\Pictures\Samples\Pictures\mount-small.jpg
+ C:\Users\Pictures\Samples\Pictures\mountains.jpg

+++ Chasing duplicates...
....>>> mount-copy.jpg
        dup: 90,625% <> mount-rotated-2degree.jpg
>>> mount-copy.jpg
        dup: 100% == mount-small.jpg
>>> mount-copy.jpg
        dup: 100% == mountains.jpg
...
+++ Similarity: max= 100% / min= 40,625%

+++ Duplicate Groups (1):
Group #1
        mount-copy.jpg
        mount-rotated-2degree.jpg
        mount-small.jpg
        mountains.jpg

+++ TOTAL: 00:00:00.7362885

Precalculated hashes as JSON file:

[
    {
        "Path": "C:\\Users\\Pictures\\Samples\\Pictures\\bing20221129.jpg",
        "Hash": 11695141823225099355
    },
    {
        "Path": "C:\\Users\\Pictures\\Samples\\Pictures\\fireworks.jpg",
        "Hash": 10721035060630703339
    },
    // ...
]

Links

we-aint-same's People

Contributors

nikvoronin avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

vdaular-dev

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.