Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Library for image hashing and deduplication.

Project Description
# SDHash [![Build Status](](

A Python library for computing hashes of images which ignore perceptual differences.

## Usage

import sdhash
from PIL import Image

i1 ='test1.png')
i2 ='test1_noise.png')
i3 ='test2.png')

sdhash.test_duplicate(i1, i2) # True
sdhash.test_duplicate(i1, i3) # False
sdhash.hash_image(i1) # [ an md5 output ]

## Background

Suppose you want to test that two images are identical. The naive approach of simply comparing the byte-array representation of the two is not good.

## Algorithm

## Installation ##

The Python image library and NumPy/SciPy etc.

Installation is simple, via `pip`:

pip install sdhash


Resistance to rotation, mirroring etc.
Tunable knobs (for similarity detection etc.)
Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sdhash-0.0.4-py2-none-any.whl (5.5 kB) Copy SHA256 Checksum SHA256 py2 Wheel Sep 19, 2015
sdhash-0.0.4.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Sep 19, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting