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.3.tar.gz (8.8 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.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unihasher-0.1.3.tar.gz
  • Upload date:
  • Size: 8.8 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.3.tar.gz
Algorithm Hash digest
SHA256 c28f895361739c9c870abc9f17472711bfecf974cac4f1afcca7a5ee3e178992
MD5 b3a761c649203effacc65587ebd78fe2
BLAKE2b-256 f7a2cfda147fad6016ebdbedeb831256313bfbb822c9f8fb19ecfe5ea9b36a56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unihasher-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 763223b6fe1cbd39de92df4311329086505024041617717ebf9035a0e9dcb752
MD5 c82e06ce155989c592d82389192c44d5
BLAKE2b-256 bc36b21e5753118f954af7ca1fb2b2a617464a4dd94d3d3168c4973c130c957a

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