Skip to main content

Python 3 CLI application for finding visually similar images

Project description

usage: imagedupes [-h] [-a ALGORITHM] [-d DIRECTORY] [-D DATABASE] [-l]

[-o OPTIONS] [-p PROGRAM] [-r] [-R] [-s HASH_SIZE]

Finds visually similar images and opens them in an image viewer, one group of matches at a time. If no options are specified, it defaults to searching the current working directory non-recursively using a perceptual image hash algorithm with a hash size of 8, opens images in the system default image handler (all at once), and does not follow symbolic links or use a persistent database.

optional arguments:
-h, --help

show this help message and exit

-a ALGORITHM, --algorithm ALGORITHM

Specify a hash algorithm to use. Acceptable inputs: ‘dhash’ (horizontal difference hash), ‘dhash_vertical’, ‘ahash’ (average hash), ‘phash’ (perceptual hash), ‘phash_simple’, ‘whash_haar’ (Haar wavelet hash), ‘whash_db4’ (Daubechles wavelet hash). Defaults to ‘phash’ if not specified.

-d DIRECTORY, --directory DIRECTORY

Directory to search for images. Defaults to the current working directory if not specified.

-D DATABASE, --database DATABASE

Use a database to cache hash results and speed up hash comparisons. Argument should be the path to which you want to save or read from the database. Warning: runnning the program multiple times with the same database but a different hash algorithm will lead to problems. Defaults to no database if not specified.

-l, --links

Follow symbolic links. Defaults to off if not specified.

-o OPTIONS, --options OPTIONS

Option parameters to pass to the program opened by the –program flag. Defaults to no options if not specified.

-p PROGRAM, --program PROGRAM

Program to open the matched images with. Defaults to your system’s default image handler if not specified.

-r, --recursive

Search through directories recursively. Defaults to off if not specified.

-R, --raws

Process and hash raw image files. Note: Very slow. You might want to leave it running overnight for large image sets. Using the –database option in tandem is highly recommended. Defaults to off if not specified.

-s HASH_SIZE, --hash_size HASH_SIZE

Resolution of the hash; higher is more sensitive to differences. Some hash algorithms require that it be a power of 2 (2, 4, 8, 16…) so using a power of two is recommended. Defaults to 8 if not specified. Values lower than 8 may not work with some hash algorithms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imagedupes-1.2.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

imagedupes-1.2.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file imagedupes-1.2.1.tar.gz.

File metadata

  • Download URL: imagedupes-1.2.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for imagedupes-1.2.1.tar.gz
Algorithm Hash digest
SHA256 4ac54f4b736644f8be4fd8ec4fb52de3b2fc15aa7c514c8ae20b6e8d34095f88
MD5 734654cc73f0aca015fbda2b7bc74093
BLAKE2b-256 70eb34e1b15d000cf5aaabdd37d86cde1c8b9e5f0dd48f9e318555bb08cf38d1

See more details on using hashes here.

File details

Details for the file imagedupes-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for imagedupes-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec1da7abe725d71a62425aad38f86d0f247266ed0a95de1e04ca1292096d2c0
MD5 8f31bdd4c581bf156e3b976860565aa2
BLAKE2b-256 19d737c98126c10a3d1829ff5349bca77bbc2af4c2377b6a71f030c24a4ccf20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page