imagededup
Package for image deduplication
What it is and what it does
imagededup is a Python package for identifying duplicate and near-duplicate images within collections. It provides multiple detection methods: hashing algorithms (PHash, DHash, WHash, AHash) for exact duplicates, and convolutional neural networks for finding near duplicates even when images have been transformed. You can generate encodings for all images in a directory, find duplicates using those encodings, and visualize results.
The package depends on torch, torchvision, Pillow, scikit-learn, PyWavelets, tqdm, and matplotlib. It runs on Linux, macOS, and Windows with Python 3.9 or later. An evaluation framework is included to assess deduplication quality against ground truth. The last release was 364 days ago and maintenance is aging, so updates may be infrequent.
Use it for:
- Clean up large photo libraries by identifying and removing visually identical or very similar images.
- Detect near-duplicate images in datasets that have undergone minor transformations like compression or resizing.
- Evaluate the effectiveness of image deduplication methods using provided benchmarking and evaluation tools.
- Build custom deduplication pipelines by selecting from multiple hashing algorithms or supplying your own CNN model.
- Batch process image directories to generate perceptual encodings for downstream similarity analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Finds exact and near-duplicate images in collections using hashing algorithms and convolutional neural networks, with support for custom models and an evaluation framework.
Yes, if you need robust image deduplication and can tolerate the medium install friction from its deep learning dependencies. The package is stable (Production/Stable status), supports current Python versions, and has no known vulnerabilities. However, the aging maintenance status (364 days since last release) means updates and bug fixes may be slow; evaluate whether that risk is acceptable for your use case.
Install
imagededup on PyPI
pip
pip install imagededupuv
uv add imagededuppoetry
poetry add imagededupInstalling imagededup
Before you install
Medium install friction due to 7 runtime dependencies including torch, torchvision, and scikit-learn. Prebuilt wheels available for Python 3.9–3.12 on Linux, macOS, and Windows. Last release was 364 days ago; maintenance status is aging.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. You may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install imagededup
from imagededup.methods import PHash
phasher = PHash()
encodings = phasher.encode_images(image_dir='path/to/images')
duplicates = phasher.find_duplicates(encoding_map=encodings)
Requires Python 3.9 or later. torch and torchvision are heavy dependencies; initial installation and model loading may take significant time and disk space.
Verify before relying
- Whether the package's CNN models are pre-trained or require separate download/training steps.
- Memory requirements for processing large image collections.
- Performance characteristics of each hashing method on modern hardware.
- Current download volume and active user base.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 7 — torch, torchvision, Pillow, tqdm, scikit-learn, PyWavelets, matplotlib |
| Maintenance | aging — 364 days since the last release |
| First released | |
| Downloads | 101,056/month — #12,965 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: imagededup-0.3.3.post2-cp310-cp310-macosx_11_0_arm64.whl; imagededup-0.3.3.post2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; imagededup-0.3.3.post2-cp310-cp310-win32.whl; imagededup-0.3.3.post2-cp310-cp310-win_amd64.whl; imagededup-0.3.3.post2-cp311-cp311-macosx_11_0_arm64.whl; imagededup-0.3.3.post2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; imagededup-0.3.3.post2-cp311-cp311-win32.whl; imagededup-0.3.3.post2-cp311-cp311-win_amd64.whl; imagededup-0.3.3.post2-cp312-cp312-macosx_11_0_arm64.whl; imagededup-0.3.3.post2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; imagededup-0.3.3.post2-cp312-cp312-win32.whl; imagededup-0.3.3.post2-cp312-cp312-win_amd64.whl; imagededup-0.3.3.post2-cp39-cp39-macosx_11_0_arm64.whl; imagededup-0.3.3.post2-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; imagededup-0.3.3.post2-cp39-cp39-win32.whl; imagededup-0.3.3.post2-cp39-cp39-win_amd64.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
ImageHashImageHash computes perceptual fingerprints of…
permissive · top 5,000 on PyPI
semhashSemHash deduplicates, filters outliers from,…
permissive · top 15,000 on PyPI
lpipsComputes perceptual similarity between image…
permissive · top 5,000 on PyPI
simhashComputes Simhash fingerprints for text and…
permissive · top 15,000 on PyPI
pixelhogCompares PNG screenshots pixel-by-pixel and…
permissive · top 5,000 on PyPI
rensaRensa computes MinHash signatures for fast…
permissive · top 15,000 on PyPI
deepdiff6DeepDiff recursively compares two Python…
permissive · top 15,000 on PyPI
pytorchcvProvides a collection of pretrained computer…
unclear · top 15,000 on PyPI
blurhash-pythonEncodes images into BlurHash strings, compact…
permissive · top 15,000 on PyPI
fiftyoneFiftyOne is a Python framework for building,…
permissive · top 15,000 on PyPI