Skip to main content
# SDHash [![Build Status](https://travis-ci.org/horia141/sdhash.svg?branch=master)](https://travis-ci.org/horia141/sdhash)

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

## Usage

```python
import sdhash
from PIL import Image

i1 = Image.open('test1.png')
i2 = Image.open('test1_noise.png')
i3 = Image.open('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`:

```bash
pip install sdhash
```

## TODO

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

Metadata

Release files for sdhash 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sdhash 0.0.4
File Size Uploaded Provenance Actions
sdhash-0.0.4.tar.gz 4.0 kB Without provenance Details for sdhash-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sdhash 0.0.4
File Interpreter ABI Platform Actions
sdhash-0.0.4-py2-none-any.whl Python 2 none any Details for sdhash-0.0.4-py2-none-any.whl

Total release size: 9.5 kB

Release files / sdhash-0.0.4.tar.gz

Download URL sdhash-0.0.4.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
efb30ae8ab214b954282c003c6c6012f2cc131a722ec752f6d7d92076072204b
BLAKE2b-256 checksum
How to use checksums
19b3851dea40504daf899c0e545cdaa1641844d8090fe65ca319f13beebb3a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sdhash-0.0.4-py2-none-any.whl

Download URL sdhash-0.0.4-py2-none-any.whl
Size 5.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d67553152fb444b7a9237d08674640882447b60e950a40614558285fa03b7de6
BLAKE2b-256 checksum
How to use checksums
731ac58efc594f8ca4b952479ff2f004952502d0e209796ccf0e924701b2d908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sdhash 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page