Unified Hasher
This library aims to streamline usage of different perceptual image hashes.
Installation
pip
pip install unihasher
Details
The library provides the following methods for comparing the similarity of two image hashes:
-
Individual Hash - The verdict for whether an image was good or modified from a bad one was determined solely from a single hash algorithm.
-
Majority Decision - The similarity values for all four hashing algorithms were compared separately, and the final verdict was the verdict of the majority of the hash algorithms. In the case of a tie, the verdict of the best performing hash from Approach 1 was taken.
-
Decision Tree - The similarity values for a combination of all four hashing algorithms were considered by passing the values through a decision tree.
The hashing algorithms implemented are:
dhash, phash, whash from imagehash library
nmfhash adapted from Robust Perceptual Image Hashing Based on Ring Partition and NMF (Tang et al.)
For more details, please refer to our paper.
Made by: Akshara Mantha, Peng Ruijia, Tan Siying
Usage
Please refer to unihasher_demo/unihasher_usage.py for details on how you may use the library.
Release files for unihasher 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unihasher-0.1.5.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unihasher-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / unihasher-0.1.5.tar.gz
| Download URL | unihasher-0.1.5.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cdb7ebd06b12753016314c353a039ba5402c0a1081adebafafd43212b7e9c27
|
|
BLAKE2b-256 checksum How to use checksums |
45e104d5d5e75e98bb8022ccf87896cb9b4548f4e6d328359954ac69da203397
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.9
|
Release files / unihasher-0.1.5-py3-none-any.whl
| Download URL | unihasher-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88afc3141ac43433b25e9aff9e03fdbead7d06407bf93eab5db6446a162e49e0
|
|
BLAKE2b-256 checksum How to use checksums |
047f14e47058c68c5e6fd0bb9617ca87f0fe0fe2996c694cac5d37b6af0b0a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.9
|