idealo/imagededup

โ˜… 5,670โ‘‚ 478

๐Ÿ˜Ž Finding duplicate images made easy!

About idealo/imagededup

idealo/imagededup is an open-source project on GitHub, mainly written in Python. ๐Ÿ˜Ž Finding duplicate images made easy! It currently holds 5,670 stars and 478 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Image Projects board and on the AI AI Image Projects list.

GitHub Repository Details

Repository idealo/imagededup ยท default branch - ยท size 0 KB ยท watchers 0 ยท source: GitHub REST API and repository README

README

Image Deduplicator (imagededup)

Build Status Docs codecov PyPI Version License

imagededup is a python package that simplifies the task of finding exact and near duplicates in an image collection.

This package provides functionality to make use of hashing algorithms that are particularly good at finding exact duplicates as well as convolutional neural networks which are also adept at finding near duplicates. An evaluation framework is also provided to judge the quality of deduplication for a given dataset.

Following details the functionality provided by the package:

Detailed documentation for the package can be found at: https://idealo.github.io/imagededup/

imagededup is compatible with Python 3.9+ and runs on Linux, MacOS X and Windows. It is distributed under the Apache 2.0 license.

๐Ÿ“– Contents

โš™๏ธ Installation

There are two ways to install imagededup:

pip install imagededup
git clone https://github.com/idealo/imagededup.git
cd imagededup
pip install .

๐Ÿš€ Quick Start

In order to find duplicates in an image directory using perceptual hashing, following workflow can be used:

from imagededup.methods import PHash
phasher = PHash()
encodings = phasher.encode_images(image_dir='path/to/image/directory')
duplicates = phasher.find_duplicates(encoding_map=encodings)
from imagededup.utils import plot_duplicates
plot_duplicates(image_dir='path/to/image/directory',
                duplicate_map=duplicates,
                filename='ukbench00120.jpg')

The output looks as below:

The complete code for the workflow is:

from imagededup.methods import PHash
phasher = PHash()

Generate encodings for all images in an image directory

encodings = phasher.encode_images(image_dir='path/to/image/directory')

Find duplicates using the generated encodings

duplicates = phasher.find_duplicates(encoding_map=encodings)

plot duplicates obtained for a given file using the duplicates dictionary

from imagededup.utils import plot_duplicates plot_duplicates(image_dir='path/to/image/directory', duplicate_map=duplicates, filename='ukbench00120.jpg')
To run the above snippet on Windows, have a look here. It is also possible to use your own custom models for finding duplicates using the CNN method.

For examples, refer this part of the repository.

For more detailed usage of the package functionality, refer: https://idealo.github.io/imagededup/

โณ Benchmarks

Update: Provided benchmarks are only valid upto imagededup v0.2.2. The next releases have significant changes to all methods, so the current benchmarks may not hold.

Detailed benchmarks on speed and classification metrics for different methods have been provided in the documentation. Generally speaking, following conclusions can be made:

๐Ÿค Contribute

We welcome all kinds of contributions. See the Contribution guide for more details.

๐Ÿ“ Citation

Please cite Imagededup in your publications if this is useful for your research. Here is an example BibTeX entry:

@misc{idealods2019imagededup,
  title={Imagededup},
  author={Tanuj Jain and Christopher Lennan and Zubin John and Dat Tran},
  year={2019},
  howpublished={\url{https://github.com/idealo/imagededup}},
}

๐Ÿ— Maintainers

ยฉ Copyright

See LICENSE for details.

GitHub Stars & Activity

5,670Stars
478Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars5,670
Forks478
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

ultralytics / ultralytics

Pythonโ˜… 61,829โ‘‚ 11,787
โ†’
2

ultralytics / yolov5

Pythonโ˜… 58,057โ‘‚ 17,469
โ†’
3

roboflow / supervision

Pythonโ˜… 50,960โ‘‚ 4,848
โ†’
4

lucidrains / vit-pytorch

Pythonโ˜… 25,514โ‘‚ 3,495
โ†’
5

junyanz / pytorch-CycleGAN-and-pix2pix

Pythonโ˜… 25,244โ‘‚ 6,567
โ†’
6

graphdeco-inria / gaussian-splatting

Pythonโ˜… 23,930โ‘‚ 3,434
โ†’
7

pytorch / vision

Pythonโ˜… 17,921โ‘‚ 7,265
โ†’
8

cvat-ai / cvat

Pythonโ˜… 16,758โ‘‚ 3,871
โ†’

More AI Rankings