Skip to main content

Compare image hashes using a unified library

Project description

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:

  1. Individual Hash - The verdict for whether an image was good or modified from a bad one was determined solely from a single hash algorithm.

  2. 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.

  3. 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.

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

unihasher-0.1.5.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unihasher-0.1.5-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file unihasher-0.1.5.tar.gz.

File metadata

  • Download URL: unihasher-0.1.5.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for unihasher-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7cdb7ebd06b12753016314c353a039ba5402c0a1081adebafafd43212b7e9c27
MD5 28263a5187eb7ac35940ae6cd0fddc39
BLAKE2b-256 45e104d5d5e75e98bb8022ccf87896cb9b4548f4e6d328359954ac69da203397

See more details on using hashes here.

File details

Details for the file unihasher-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: unihasher-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for unihasher-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 88afc3141ac43433b25e9aff9e03fdbead7d06407bf93eab5db6446a162e49e0
MD5 bb6e1a7471e3124bfdb23a73edf51026
BLAKE2b-256 047f14e47058c68c5e6fd0bb9617ca87f0fe0fe2996c694cac5d37b6af0b0a17

See more details on using hashes here.

Supported by

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