Skip to main content

Python 3 CLI application for finding visually similar images

Project description

usage: __init__.py [-h] [-a ALGORITHM] [-d DIRECTORY] [-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.

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.

-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. Best to leave running overnight for large image sets. Defaults to off if not specified.

-s HASH_SIZE, --hash_size HASH_SIZE

Resolution of the hash; higher is more sensitive to differences. Must be a power of 2 (2, 4, 8, 16…). 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.1.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

imagedupes-1.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for imagedupes-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f909afa6a9d860e5435872098696b06f8ac3e7846a33b6d0be7096a473f8f63f
MD5 3903a588e35c4a9d3f95b2921ab2c827
BLAKE2b-256 8048189df25d233919264fa3a58b07417db30b30749ed05ca1256dc518f7f719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for imagedupes-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fae98de8177adf1dabbaa415dfc2619007b8c28dc11db644ba57577299588e6
MD5 cf011e9f7ce95ac6a4a03145d699758f
BLAKE2b-256 8a45644b86dfb9e50b1e4a7e73be5452ab0cfcb376066a7657b5eb7eff474ac7

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