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.4.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.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unihasher-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0dd4a5abd1d2a122eff71ed8e301f47e529c8e172cf73ce4f5aa55f8689e64ff
MD5 23c2526776948726aba332fcbfd30ed1
BLAKE2b-256 eee70750c51a108fa325e25df9beb82a368600df93e1a47f02a2dcf8624a08e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unihasher-0.1.4-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.12.6

File hashes

Hashes for unihasher-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5f6321df1258fa4399e8a4393bd2f3389b1d4251739e5b9bd095e16cae1e39
MD5 36362df8c853965b479f98c4ccafed2c
BLAKE2b-256 6b3a24241fe5eac081ddb8769ec726c8cae7bd215928b4b3fe1809a43ced6f53

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