Image Hashing library
Project description
A image hashing library written in Python. ImageHash supports:
average hashing (aHash)
perception hashing (pHash)
difference hashing (dHash)
wavelet hashing (wHash)
Requirements
Based on PIL/Pillow Image, numpy and scipy.fftpack (for pHash) Easy installation through pypi.
Basic usage
>>> from PIL import Image >>> import imagehash >>> hash = imagehash.average_hash(Image.open('test.png')) >>> print(hash) d879f8f89b1bbf >>> otherhash = imagehash.average_hash(Image.open('other.bmp')) >>> print(otherhash) ffff3720200ffff >>> print(hash == otherhash) False >>> print(hash - otherhash) 36
The demo script find_similar_images illustrates how to find similar images in a directory.
Source hosted at github: https://github.com/JohannesBuchner/imagehash
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ImageHash-2.2.tar.gz
(4.9 kB
view details)
File details
Details for the file ImageHash-2.2.tar.gz
.
File metadata
- Download URL: ImageHash-2.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7a9022b596172586469f1731c08c52b6af3c365a8695c0a52347fb8d0635620c
|
|
MD5 |
6ae162644f01ae45d62956ddd7c7ca91
|
|
BLAKE2b-256 |
42422a08dce3444e72fcd281d9c86cc3cf5f1a7366eee68903fcf9aebb1ef347
|