imgdups
Most image duplicate checkers can find duplicates within a single folder. This solution can verify that no duplicates from one path (search) exists in another path (target). It will use opencv to create image descriptors and cache them into a pickle file for faster processing after it was run the first time. With this approach we can not just find exact duplicates but similar images based on a match score.
Requirements
Python 3.6+ was tested
sudo apt install python3 python3-pip
Option 1: Install from Source
git clone https://github.com/ChuckNorrison/imgdups
cd imgdups
pip3 install .
Option 2: Install from PyPi (recommended)
pip3 install imgdups
CLI Usage
imgdups --search "/path/to/reference" --target "/path/to/check"
or if not installed (git clone first)
cd imgdups
python3 imgdups.py --search "/path/to/reference" --target "/path/to/check"
Python example
#!/usr/bin/env python3
import imgdups
SEARCH_PATH = "/path/to/reference"
TARGET_PATH = "/path/to/check"
img_dups = imgdups.ImgDups(TARGET_PATH, SEARCH_PATH)
duplicates = img_dups.find_duplicates()
for duplicate in duplicates:
print("%s == %s (score: %d)",
duplicate["target"],
duplicate["search"],
duplicate["score"]
)
print("%d duplicates found", len(duplicates))
Metadata
Release files for imgdups 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imgdups-0.1.6.tar.gz | 18.2 kB | Without provenance | Details for imgdups-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imgdups-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for imgdups-0.1.6-py3-none-any.whl |
Total release size: 36.5 kB
Release files / imgdups-0.1.6.tar.gz
| Download URL | imgdups-0.1.6.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d7dba75c697a11353be5dc77b1365968d0062af78a061dd5efdab6aa6a857b1
|
|
BLAKE2b-256 checksum How to use checksums |
e314da7f56ad5913e279e11244b2ebb8cf1392adb4c0c3c9972850913bb0a5d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / imgdups-0.1.6-py3-none-any.whl
| Download URL | imgdups-0.1.6-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
881bfabd536e3f55a53a67bd61eb19dd33b7e7f5da3921fc3a4f6c018869624e
|
|
BLAKE2b-256 checksum How to use checksums |
edb54de509d966dbbb545ab1a2e6cc7172a2aca7a9f58f365f7aeb7a09359abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for imgdups 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.